
stav
Members-
Content count
4 -
Joined
-
Last visited
-
Days Won
1
stav last won the day on April 22
stav had the most liked content!
About stav
-
Rank
Newbie
-
-
GetPriceBarsAfterDate gets 500 Server Error
stav replied to stav's topic in General Questions and Discussion
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 -
-
-
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?
-
Ok, I just had to reset my password on the website and now I can login fine. Thanks for the tip.
-
I can't seem to login. I tried the pre-prod server: curl -i -H "Content-Type: application/json" -X POST -d '{"UserName":"...","Password":"...","AppKey":"...","AppComments":"Kingbot","AppVersion":"1"}' https://ciapipreprod.cityindextest9.co.uk/TradingApi/session HTTP/1.1 401 Unauthorized Content-Type: application/json; charset=utf-8 Server: Microsoft-IIS/10.0 Date: Thu, 30 Dec 2021 05:55:02 GMT Content-Length: 183 {"AdditionalInfo":null,"StatusCode":2,"HttpStatus":401,"ErrorMessage":"Sorry, your login has failed|This is because your login credentials do not match our records.","ErrorCode":4010} And same thing from the live server curl -i -H "Content-Type: application/json" -X POST -d '{"UserName":"...","Password":"...","AppKey":"...","AppComments":"Kingbot","AppVersion":"1"}' https://ciapi.cityindex.com/tradingapi/session HTTP/2 401 date: Thu, 30 Dec 2021 05:55:52 GMT content-type: application/json; charset=utf-8 content-length: 183 server: cloudflare {"AdditionalInfo":null,"StatusCode":2,"HttpStatus":401,"ErrorMessage":"Sorry, your login has failed|This is because your login credentials do not match our records.","ErrorCode":4010} Am I doing something wrong?