BTC-E API (Retrieve error)


Is it normal to infrequently see errors retrieving trade/depth history by API from BTC-E? Or should I never see them.

I seem to be seeing at least one such error each day, I am running my script on an Amazon EC2.

Thanks, Jon.


Posted 2014-11-22T13:18:12.763

Reputation: 13



Yes, most exchange APIs fail at times. Add a sleep-and-retry to your code.


Posted 2014-11-22T13:18:12.763

Reputation: 606

Thanks, that's great. How long do you think the sleep should be/number of times to retry? – meld24 – 2014-11-22T19:58:06.500

Depends on the exchange's request limit and how urgent the data is, you wouldn't want to abuse the API service. Personally I'd give it at least 10 seconds but it's up to you. – George – 2014-11-22T22:29:51.333