Jump to content

kensplanet

Members
  • Content count

    2
  • Joined

  • Last visited

  1. When I execute the below URL, https://ciapi.cityindex.com/TradingAPI/market/401437607/barhistory?interval=HOUR&span=1&PriceBars=200&UserName=XXXXX&Session=XXXXXXXXXX I get only 5 results when I have requested 200. I observed this request doesn't always honor the PriceBars query param. It sometimes gives me all 200. I was testing this around 11.53 PM EST Sunday and markets have opened at 6 PM EST for US Tech 100 CFD (the Market in the above case). My assumption is it's only providing me price bars after the market has opened. Is this a known issue? { "PriceBars": [ { "BarDate": "/Date(1606086000000)/", "Open": 11912.1, "High": 11937.8, "Low": 11903.0, "Close": 11934.5 }, { "BarDate": "/Date(1606089600000)/", "Open": 11934.1, "High": 11950.8, "Low": 11928.7, "Close": 11949.6 }, { "BarDate": "/Date(1606093200000)/", "Open": 11949.5, "High": 11954.0, "Low": 11937.0, "Close": 11941.8 }, { "BarDate": "/Date(1606096800000)/", "Open": 11941.7, "High": 11951.1, "Low": 11939.0, "Close": 11944.5 }, { "BarDate": "/Date(1606100400000)/", "Open": 11944.6, "High": 11957.6, "Low": 11942.5, "Close": 11953.5 } ], "PartialPriceBar": { "BarDate": "/Date(1606104000000)/", "Open": 11953.3, "High": 11955.8, "Low": 11949.6, "Close": 11954.3 } } Thanks, Ken
×