askmike/bitstamp

Throtle Queue

Removed-5an opened this issue · 1 comments

I'd like to propose a queue so we don't accidentally get banned from Bitstamp for flooding the API as implemented in:

http://pastebin.com/86F2x1r6

As we've discussed before on IRC:

  • It is unclear how the rate limit rules are enforced on the server, and when they change. We run into the same problems as we would when using a private API.
  • The server times which are used to check that users obey the limit is not the same as the local time. And because of networking latency and other factors we don't control and have knowledge over, we can't implement this in a solid way.
  • I think this belongs in userland, because if you want throttling you probably also want some things having priority over others in case of nearing Rate Limit. Some calls are important enough to risk getting banned, I'm not going to block that for all users (this is 100% up to the user not to me).