BTC-E API (Retrieve error)

1

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.

meld24

Posted 2014-11-22T13:18:12.763

Reputation: 13

Answers

0

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

George

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