-
Notifications
You must be signed in to change notification settings - Fork 764
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
added a 'localAddress' option to specify which IP is to be used for r… #356
Conversation
…equests to Binance API (allows the use of multi IP on a single server)
Hey @DoobleD, TravisCI finished with status TravisBuddy Request Identifier: 8f756530-d3ce-11e9-9a2a-b93990a2c4d9 |
Thank you very much for your contribution, friend. Are you aware if this works on ipv6 addresses? |
My pleasure!
Good question. I see you've already hit it 4 years ago
<request/request#1944>. Following the hashtags,
it seems a fix has been merged <nodejs/node#6654> since
then for the 'family: 6' option, which allows for ipv6 addresses. We coud
check whether the 'localAddress' provided is ipv4 or ipv6 (with this
<https://github.com/keverw/range_check> for instance), and in case of ipv6,
add the 'family: 6' option?
I have no ipv6 at my disposal to test it though. Feel free to try if you're
motivated, or disregard the PR otherwise. :)
…On Tue, 10 Sep 2019 at 15:29, Jon Eyrick ***@***.***> wrote:
Thank you very much for your contribution, friend. Are you aware if this
works on ipv6 addresses?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#356>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHAFOJMLOYFHLUTRMJDW7DQI6OLNANCNFSM4IVHQSGQ>
.
--
Pierre Allétru
06 70 55 08 35
[email protected]
|
Also I realize the line It seems I was using an older version of node-binance-api (0.8.5) which didn't have that reqObjPost variable. |
Forgot about this until now, very sorry but I appreciate your hard work!
|
better late than never I guess 😏 finally got to take advantage of the issue I filed 4 years ago |
Hi |
this does not work. How do I run
|
I added a 'localAddress' option to specify which IP is to be used for requests to Binance API (allows the use of multi IP on a single server).
Usage :
All requests will then use the IP given by localAddress ('94.23.25.209' in the example above). You can then run say 10 bots on a single server, with 10 different IPs.
Why do that? Because Binance has API usage limits for IPs. Use several IPs thus allows to trade more, or to run different strategies and bots simultaneously with each one having the full usage limits for its IP. See https://www.binance.com/en/support/articles/360004492232
Of course you need to own the IPs you specify in the 'localAddress' parameter and have them configured on your server.
Works well on my server.