I am extracting ONE MINUTE TIME BARS. However, it is not clear what the difference is if I choose TimebarPersistence to be true or false? There appears to be data on weekends for both cases. The difference is that quotes seem to change on Saturdays whilst the values do not change on Saturday and Sunday until market open ... please advise.
requestUrl='https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw';
requestHeaders={"Prefer":"respond-async","Content-Type":"application/json","Authorization": "token " + token}
requestBody={
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
"ContentFieldNames": ["Close Ask","Close Bid","High Ask","High Bid","Low Ask","Low Bid","No. Asks","No. Bids",
"Open Ask","Open Bid"],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [{"Identifier": ticker1,"IdentifierType": "Ric"},
#{"Identifier": ticker2,"IdentifierType": "Ric"}
],
"UseUserPreferencesForValidationOptions":"false"
},
"Condition": {
"MessageTimeStampIn": "GmtUtc",
"ReportDateRangeType": "Range",
"QueryStartDate":QueryStartDate ,
"QueryEndDate": QueryEndDate,
"SummaryInterval": "OneMinute",
"TimebarPersistence":"false",
"DisplaySourceRIC":"true"
}
}
}
r2 = requests.post(requestUrl, json=requestBody,headers=requestHeaders)