Bitcoin Forum
May 30, 2024, 08:43:07 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why Poloniex API is so slow  (Read 388 times)
Hippey (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
June 13, 2017, 04:27:32 PM
 #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!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!