stav 1 Report post Posted April 14 I have a demo account that works fine for everything, for example: https://ciapi.cityindex.com/tradingapi/market/401153870/barhistory?span=1&PriceBars=3&priceType=MID&interval=DAY { PriceBars: [ { BarDate: "/Date(1649635200000)/", Open: 1946.57, High: 1969.66, Low: 1940.05, Close: 1953.71 }, { BarDate: "/Date(1649721600000)/", Open: 1952.97, High: 1978.71, Low: 1949.75, Close: 1966.66 }, { BarDate: "/Date(1649808000000)/", Open: 1966.88, High: 1981.59, Low: 1962.92, Close: 1977.87 } ], PartialPriceBar: { BarDate: "/Date(1649894400000)/", Open: 1977.27, High: 1980.4, Low: 1960.72, Close: 1972.3 } } But this call fails: https://ciapi.cityindex.com/tradingapi/market/401153870/barhistoryafter?span=1&maxResults=3&priceType=MID&interval=DAY&fromTimestampUTC=1647264903000 { ok: false, redirected: false, status: 500, statusText: "Internal Server Error", url: "https://ciapi.cityindex.com/tradingapi/market/401153870/barhistoryafter?span=1&maxResults=3&priceTyp..." } Why am I getting the error? Share this post Link to post
Physicsman 30 Report post Posted April 20 Hello Stav, We're looking into this for you and will reply once I have results of the investigation. Kind Regards, PM 1 stav reacted to this Share this post Link to post
Physicsman 30 Report post Posted April 21 Hi Stav, The timestamp has to be supplied in seconds, rather than milliseconds. I have tried a test call and it works when supplied in seconds. Kind Regards, PM Share this post Link to post
stav 1 Report post Posted April 22 I'm the worst hacker of all time. That was it PM, it works. Thanks for your time and for your heroic support in this forum. Steven Almeroth Cleveland 1 Physicsman reacted to this Share this post Link to post