How can I get price history for all dats in a range

I have a REST request that uses the price history Extraction request template to return historical price for an asset/ric.
However, it only returns the price for the last date in the range.
This is despite the template setting a start and end date of the range.
Also - I have set the following template fields:
"QueryStartDate": "2015-12-01T00:00:00.000Z",
"QueryEndDate": "2018-12-03T00:00:00.000Z",
"AdjustedPrices": false,
"LastEntityOnly": false,
"ReportDateRangeType": "Range"
How can I get all prices for the date range specified?
P.S. I have also tried 'DaysAgo' = 30 with "ReportDateRangeType": "Delta" - this does exactly the same thing.
I need data for multiple years.
Thanks
Kashif.
Best Answer
-
This was a Python code issue, solved outside of the community forum. Thanks to Gareth.
0
Answers
-
Hi @kashif.sherwany,
Could you share your entire request message? I am able to retrieve data for the specific range using your provided condition. Below is my request.
{
"ExtractionRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest",
"ContentFieldNames": [
"RIC",
"Trade Date",
"Official Close Price",
"High Price",
"Low Price",
"Open Price",
"Universal Close Price",
"Exchange Code",
"Currency Code"
],
"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": "IBM.N", "IdentifierType": "Ric" }
]
},
"Condition": {
"QueryStartDate": "2015-12-01T00:00:00.000Z",
"QueryEndDate": "2018-12-03T00:00:00.000Z",
"AdjustedPrices": false,
"LastEntityOnly": false,
"ReportDateRangeType": "Range"
}
}
}0 -
HI @veerapath.rungruengrayubkul My request body is almost exactly as your own:
{
'ExtractionRequest': {
'@odata.type': '#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest',
'ContentFieldNames': [
'RIC',
'Trade Date',
'Official Close Price',
'Ask Price',
'Bid Price',
'High Price',
'Low Price',
'Open Price',
'Universal Close Price',
'Exchange Code',
'Currency Code'
],
'IdentifierList': {
'@odata.type': '#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList',
'InstrumentIdentifiers': [
{
'Identifier': 'CARR.PA','IdentifierType': 'Ric'
}
]
},
'Condition': {
'QueryStartDate': '2015-12-01T00:00:00.000Z',
'QueryEndDate': '2018-12-03T00:00:00.000Z',
'AdjustedPrices': False,
'LastEntityOnly': False,
'ReportDateRangeType': 'Range'
}
}
}0 -
Hi @kashif.sherwany,
With your request body, I am able to receive data using Postman from 2015-12-01. Below is the sample of data. Can you share the application you used to send request?
{
"@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ExtractionResult",
"Contents": [
{
"IdentifierType": "Ric",
"Identifier": "CARR.PA",
"RIC": "CARR.PA",
"Trade Date": "2015-12-01",
"Official Close Price": null,
"Ask Price": 28.27,
"Bid Price": 28.26,
...
},
{
"IdentifierType": "Ric",
"Identifier": "CARR.PA",
"RIC": "CARR.PA",
"Trade Date": "2015-12-02",
...
},
{
"IdentifierType": "Ric",
"Identifier": "CARR.PA",
"RIC": "CARR.PA",
"Trade Date": "2015-12-03",
...
}0 -
The code is in python and I am using requests library - like this:
requests.post(url, json=json_object, headers=headers, proxies=self.proxy)
where the json_object is the template I pasted above, and the header just has my token info etc..
could this be a permissions issue?
0 -
@kashif.sherwany @Christiaan Meihsl
Hi Kashif,
I have modified an example request for Price History in Python and sent via email. Please let us know if the example On Demand Price History (Range) works for you.
Based on an extraction Notes file I think it unlikely to be a permission issue.
Best regards,
Gareth
0 -
@Christiaan Meihsl - received confirm of issue has been resolved, please could we mark as closed?
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 614 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 640 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛