Author

Topic: Why Poloniex API is so slow (Read 411 times)

newbie
Activity: 6
Merit: 0
June 13, 2017, 11:27:32 AM
#1
Hi

I want to use Poloniex trading api for my purposes, i wrote simple api requester which calls returnBalances command and this is speed log:
Quote
Elapsed 745ms
Elapsed 984ms
Elapsed 33520ms
Elapsed 363ms
Elapsed 33734ms
Elapsed 490ms
Elapsed 33406ms
Elapsed 230ms
Elapsed 358ms
Elapsed 299ms
Elapsed 364ms
Elapsed 215ms
Elapsed 204ms
Elapsed 283ms
Elapsed 354ms
Elapsed 32842ms
Elapsed 1711ms
Elapsed 31565ms
Elapsed 330ms
Elapsed 2631ms

Code waits a second between requests. As you can see average waiting time is 200-400ms per request, but sometimes i need to wait as long as 30secs, why this happening? And this is only returnBalances command, what will happen if i use trading api like placeOrder, moveOrder? It will be catastrophy if i will need to wait 30secs. What i should do improve API requests to avoid 30secs sleep?

Thanks!
Jump to: