Jump to content
jflaggs

Potential Bug - GetPriceBarsBetweenDates Endpoint

Recommended Posts

Hello, 

I am finding that the endpoint is returning empty bars for multiple symbols before 2015. Here are my GET requests to the endpoint. The only difference between the two requests are the dates. I repeated this test for all 1 year intervals beginning 2007-2008, 2008-2009, etc and the only GET requests that return non-empty price bars are those requests after 2014. For most requests before 2015, I only get a partial price bar response and zero price bars. Are you able to explain why this is? If there is better endpoint to get price history please advise. 


Doesn't Work : 4/19/2014 12:00:00 AM - 4/19/2015 12:00:00 AM
https://ciapi.cityindex.com/TradingAPI/market/401153870/barhistorybetween
?FromTimestampUTC=1397865600
&ToTimestampUTC=1429401600
&MarketId=401153870
&MaxResults=4000
&Interval=Day
&Span=1
&PriceType=Mid
&Session=my_session_id
&UserName=my_user_name


Does Work : 4/19/2015 12:00:00 AM - 4/18/2016 12:00:00 AM
https://ciapi.cityindex.com/TradingAPI/market/401153870/barhistorybetween
?FromTimestampUTC=1429401600
&ToTimestampUTC=1460937600
&MarketId=401153870
&MaxResults=4000
&Interval=Day
&Span=1
&PriceType=Mid
&Session=my_session_id
&UserName=my_user_name

Share this post


Link to post

Hi Jflaggs,

We only store historic price data for this market back to 2015. It's why you are unable to retrieve anything from before then.

Kind Regards, PM 

Share this post


Link to post

Hi Jflaggs,

To find out what price history data is available in the price databases for the market(s) you are interested in, please contact client services who can liase with the appropriate team.

Kind Regards, PM

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×