Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nonce sleep? #1

Open
perlancar opened this issue May 31, 2017 · 1 comment
Open

nonce sleep? #1

perlancar opened this issue May 31, 2017 · 1 comment

Comments

@perlancar
Copy link

hi :)

saya perhatiin di kodenya nonce pake sleep(1), apakah gak mengganggu kalo harus sering call API? misalnya dalam kode bot yang harus ngecek last trades + depth, lalu list open orders, lalu open order? bisa jadi berdetik2 delaynya.

saya perhatiin juga, si app android bitcoin.co.id menggunakan nonce yang besar nilainya (>32 bit) dan diizinkan. mungkin bisa dipertimbangkan nonce-nya menggunakan unix time dalam milidetik, seperti yg saya pakai di perl wrapper https://github.com/perlancar/perl-Finance-BTCIndo

@ngeong
Copy link
Collaborator

ngeong commented Aug 1, 2018

Iya, saya juga sudah ubah jadi milidetik pakai unix time. Untuk penggunaan bot awalnya emang jadi delay lama.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants