Jump to content
Sign in to follow this  
Guest andreif

Occasional error when trying to get price history

Recommended Posts

Guest andreif

I get errors like this from time to time. Any ideas, why it can happen?

The request was aborted: The request was canceled.
 REQUEST INFO:
 ItemState : Pending
 Url : https://ciapi.cityindex.com/TradingApi/market/400237064/barhistory?interval=MINUTE&span=1&pricebars=50
 Method : GET
 Target : market
 UriTemplate : /{marketId}/barhistory?interval={interval}&span={span}&pricebars={priceBars}
 Parameters :
 Request URI : https://ciapi.cityindex.com/TradingApi/market/400237064/barhistory?interval=MINUTE&span=1&pricebars=50
 Request Headers :
 UserName: XX107969
 Session: D3EBE79C-07A2-4FAB-94A5-515011B7DFB7
 Host: ciapi.cityindex.com
 Accept-Encoding: gzip, deflate
 CacheDuration : 00:00:10
 RetryCount : 0
 ThrottleScope : data
 Expiration : 0001-01-01 00:00:00Z
 ResponseText : NULL

The request was aborted: The request was canceled.
 REQUEST INFO:
 ItemState : Pending
 Url : https://ciapi.cityindex.com/TradingApi/market/154297/barhistory?interval=MINUTE&span=1&pricebars=50
 Method : GET
 Target : market
 UriTemplate : /{marketId}/barhistory?interval={interval}&span={span}&pricebars={priceBars}
 Parameters :
 Request URI : https://ciapi.cityindex.com/TradingApi/market/154297/barhistory?interval=MINUTE&span=1&pricebars=50
 Request Headers :
 UserName: XX107969
 Session: D3EBE79C-07A2-4FAB-94A5-515011B7DFB7
 Host: ciapi.cityindex.com
 Accept-Encoding: gzip, deflate
 CacheDuration : 00:00:10
 RetryCount : 0
 ThrottleScope : data
 Expiration : 0001-01-01 00:00:00Z
 ResponseText : NULL

Share this post


Link to post
Guest sky.sanders

That error typically describes an error writing to the request stream so I think this may be an issue in JsonClient. Adding a .Flush() to see if this resolves the issue.

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
Sign in to follow this  
×