Jump to content

Search the Community

Showing results for tags 'getpricebarsbetweendates'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Gain Capital API FAQ
    • General Questions and Discussion

Found 1 result

  1. 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
×