Not exactly an issue, but was wondering if anybody had figured out the location of binance trading servers? I see that they have a bunch of different end points. Thinking of renting a server but need to know the location for the best speeds as my orders keep getting beaten.
If anybody could share any info on their server setup / where it is that would be great. I've had a look and different info suggests either korea or japan.
Thanks
I have the same problem, trying to figure out where to rent the VPS for my Binance bot...
Have you found it out? Wrote to Binance support, still no response.
I believe it's hosted in tokyo, atleast thats where I've rented my server. However I still suffer from slippage with my program having ~2ms turnaround from receiving websocket data to the trade. So any help would be great.
A traceroute and the generic server location sites gave me aws tokyo using api.binance.com
Wow! 2ms it's not much at all!
Could you tell me where do you rent your VPS? and how good it is?
Thanks!
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sat, Mar 3, 2018 at 10:26 AM, kinsey1313 notifications@github.com
wrote:
I believe it's hosted in tokyo, atleast thats where I've rented my server.
However I still suffer from slippage with my program having ~2ms turnaround
from receiving websocket data to the trade. So any help would be great.
A traceroute and the generic server location sites gave me aws tokyo using
api.binance.com—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/sammchardy/python-binance/issues/189#issuecomment-370130292,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFV_faMfgbIT9X8-AVIl3lvJRNlF5ffAks5talPJgaJpZM4SJiFU
.
No thats the time my program takes to calculate what to trade. The time it takes for me to receive server data is about 200ms... 👎 from Melbourne Australia and there is not a considerable change using japan aws hosted in Tokyo.
there is also us.binance.com which is in New Jersey
Is this the actual trading server however? I'm not sure of the binance server structure but I'd imagine its a single location that handles the trading. Someone please correct me if I'm wrong! If you're from the US, have you pinged this server and gotten a decent response time?
This subdomain seems to be separate, at least is my experience. Several weeks ago when trading was inaccessible, the US subdomain was the first to come back up followed by the main.
General consensus is that they are located on AWS in the Tokyo zone.
Do not use anything other than the api.binance.com domain for accessing the API as domains like us.binance.com is only for website access and has different restrictions.
XXXX.ap-northeast-1.compute.amazonaws.com
I tested with Vaultr (https://www.vultr.com/?ref=8732615-6G) 100USD free.
In Tokyo region with < 2ms ping.
tokyo for sure.
Tokyo
Tokyo though?
Binance is experiencing an issue now... they officially said it is an issue on AWS... I just checked it in status.aws.amazon.com and the only issue displayed there is in Tokyo. I just can´t believe such a rich company running a trading service does not have redundancy.
I tested with Vaultr (https://www.vultr.com/?ref=8732615-6G) 100USD free.
In Tokyo region with < 2ms ping.
I used your link, thanks for sharing bro.
I use for trading, more than a year, low price and beautiful ping with Binance. https://ahost.eu/vds-windows/japan
I use for trading, more than a year, low price and beautiful ping with Binance. https://ahost.eu/vds-windows/japan
Sorry to ask. But I imagine that this would be useful mostly for an automatic bot right?
If you want to manually do scalping, I imagine that the best would be to live in Tokyo.
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.
So you can get as low as 10ms including already the calculation from the server. It's not just ping.
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.
I use for trading, more than a year, low price and beautiful ping with Binance. https://ahost.eu/vds-windows/japan
Sorry to ask. But I imagine that this would be useful mostly for an automatic bot right?
If you want to manually do scalping, I imagine that the best would be to live in Tokyo.
True basically I use bots, but I myself personally use it for short positions, as the delay is very minimal I get big Profit.
Better or live in Tokyo or have your own broker in Tokyo xD.
Do not be fooled by discounts :) You will lose more in support, if something goes wrong.
since I'm looking also for server location. I did this : ping api.binance.com
from singapour cloud , time is 17ms
from san fransisco cloud time is 1 ms .
So my guess is than the server responding for url api.binance.com are somewhere in the USA
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.So you can get as low as 10ms including already the calculation from the server. It's not just ping.
- Tokyo - 0.01s*
- Seul - 0.042s*
- New Jersey - 0.01s*
- Los Angeles - 0.125s*
- Frankfurt - 0.245s*
- London - 0.24s*
- Singapore - 0.095s*
- Sydney - 0.126s*
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.
Are se sure that those are for the server which use the prices?
I know that new jersey has servers for the us web, but not sure if the price u get from the servers in tokyo is the same thing
since I'm looking also for server location. I did this : ping api.binance.com
from singapour cloud , time is 17ms
from san fransisco cloud time is 1 ms .So my guess is than the server responding for url api.binance.com are somewhere in the USA
i forgot to say , this test was made on a digital ocean virtual machine.
I use them because they are very reliable (one downtime in 1 years) and they are cheap (less than 5$ a month for a single cpu machine with 25go and 1go ram, and 1To network transfer ).
So far it's enough to run my bot (even with some tensorflow computation) .
Here is the link just i case : https://m.do.co/c/a6e619c6428a
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.
So you can get as low as 10ms including already the calculation from the server. It's not just ping.
- Tokyo - 0.01s*
- Seul - 0.042s*
- New Jersey - 0.01s*
- Los Angeles - 0.125s*
- Frankfurt - 0.245s*
- London - 0.24s*
- Singapore - 0.095s*
- Sydney - 0.126s*
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.Are se sure that those are for the server which use the prices?
I know that new jersey has servers for the us web, but not sure if the price u get from the servers in tokyo is the same thing
The way how I was doing the test, I opened the vultr.com service multiple server in different locations. And then run on them the same script to request prices. I have not changed the native API-Url that is in this python-module. So I was not requesting data from binance.us, as I am a customer on binance.com. I am not sure if it's technically two different servers. But maybe for that reason they have a low ping in US East Coast, because they need to have there a location for legal reasons. So they server other customers also.
so I am sure I was getting the same prices, because I was using the same URL, just the location of MY server was in New Jersey.
i forgot to say , this test was made on a digital ocean virtual machine.
I use them because they are very reliable (one downtime in 1 years) and they are cheap (less than 5$ a month for a single cpu machine with 25go and 1go ram, and 1To network transfer ).So far it's enough to run my bot (even with some tensorflow computation) .
Here is the link just i case : https://m.do.co/c/a6e619c6428a
I personally found, that 1 CPU might be quite degerious because some time just one process can grid-lock the machine, and than you need to restart it.
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.So you can get as low as 10ms including already the calculation from the server. It's not just ping.
- Tokyo - 0.01s*
- Seul - 0.042s*
- New Jersey - 0.01s*
- Los Angeles - 0.125s*
- Frankfurt - 0.245s*
- London - 0.24s*
- Singapore - 0.095s*
- Sydney - 0.126s*
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.
Hello @kasper747
I bought a VPS Vultr Tokyo
1024 MB Cloud Compute
1CPU
25 GB SSD
I got time for price request - 0.023s *
How to get 0.01s?
Must be faster VPS? 2 CPU?
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.
So you can get as low as 10ms including already the calculation from the server. It's not just ping.
- Tokyo - 0.01s*
- Seul - 0.042s*
- New Jersey - 0.01s*
- Los Angeles - 0.125s*
- Frankfurt - 0.245s*
- London - 0.24s*
- Singapore - 0.095s*
- Sydney - 0.126s*
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.Hello @kasper747
I bought a VPS Vultr Tokyo
1024 MB Cloud Compute
1CPU
25 GB SSD
I got time for price request - 0.023s *
How to get 0.01s?
Must be faster VPS? 2 CPU?
I have been using vps from https://www.vpsserver.com/?affcode=3fb1efc10231 at tokyo with pings less than 2ms to api.binance.com around 1.5ms. you can charge with crypto if you want and can use their trial to simply check the time before buying the vps.
You should note that there is some time related to opening socket and ssl/tls related data. So to get better results first open the socket and keep it open only send request and measure time from sending request on already established connection and response to get a better time.
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.
So you can get as low as 10ms including already the calculation from the server. It's not just ping.
- Tokyo - 0.01s*
- Seul - 0.042s*
- New Jersey - 0.01s*
- Los Angeles - 0.125s*
- Frankfurt - 0.245s*
- London - 0.24s*
- Singapore - 0.095s*
- Sydney - 0.126s*
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.Hello @kasper747
I bought a VPS Vultr Tokyo
1024 MB Cloud Compute
1CPU
25 GB SSD
I got time for price request - 0.023s *
How to get 0.01s?
Must be faster VPS? 2 CPU?
I would always advise to use at least 2 CPUs. Because if you use only one your instance can easelly friezze from one process and than you need to restart the whole instance - too much risk for critical services. In my test I used an isntance with two CPUs, nothing else. Maybe it is connected with opening and closing sockets. How many times have you repeated the test?
@C-Rules 2ms is just a ping. Requesting a service might take longer. Definitly, I was counting while socket was already opened and the requests were triggered from the server itself, not from my side.
In my experience I have not seen any difference in latency between VPS and virtual instances. As far I know a dedicated server is simply more stable in regards of avalble resources.
But it might make sense to test out difference service providers in Tokyio to find the one with better latency to binance if one want to go faster.
Thank you guys for your insight! I used your ideas and did some extensive testing.
It looks like they have local servers in Tokyo and New Jersey. So basically some of you, who are from American can probably use the servers in New Jersey to have also low ping to your own system. I am in Europe myself, and using this solution was day and night. As you see the Europe has the highest ping from them all.
So you can get as low as 10ms including already the calculation from the server. It's not just ping.
- Tokyo - 0.01s*
- Seul - 0.042s*
- New Jersey - 0.01s*
- Los Angeles - 0.125s*
- Frankfurt - 0.245s*
- London - 0.24s*
- Singapore - 0.095s*
- Sydney - 0.126s*
*time for price request
*Using this server provider: https://www.vultr.com/?ref=8815565-6G. You get 100$ credits with them. Much simplier to use than AWS, that I usually use.Hello @kasper747
I bought a VPS Vultr Tokyo
1024 MB Cloud Compute
1CPU
25 GB SSD
I got time for price request - 0.023s *
How to get 0.01s?
Must be faster VPS? 2 CPU?I would always advise to use at least 2 CPUs. Because if you use only one your instance can easelly friezze from one process and than you need to restart the whole instance - too much risk for critical services. In my test I used an isntance with two CPUs, nothing else. Maybe it is connected with opening and closing sockets. How many times have you repeated the test?
@C-Rules 2ms is just a ping. Requesting a service might take longer. Definitly, I was counting while socket was already opened and the requests were triggered from the server itself, not from my side.
In my experience I have not seen any difference in latency between VPS and virtual instances. As far I know a dedicated server is simply more stable in regards of avalble resources.
But it might make sense to test out difference service providers in Tokyio to find the one with better latency to binance if one want to go faster.
@kasper747 I have a ping of 1.4ms. It takes about 23ms to get the price via API or buy and sell orders. You managed to get 10 milliseconds - so you want to. Will try on 2 CPUs. I have a program in php. Maybe that's why...
@hps314 How were you using Php? I was testing it with one python script. I mean this library is in python
@hps314 How were you using Php? I was testing it with one python script. I mean this library is in python
@kasper747
I have all the code in php. I download prices and execute orders in php.
https://github.com/jaggedsoft/php-binance-api
hello all,
I made this small script in python3 , in order to make some reliable test . Please feel free to use it to make your own test.
#!/usr/bin/env python3
from time import time, sleep
from binance.client import Client
loop=10
ROKEY = 'your_key_here'
ROKEYSEC = 'your_secret_here'
total_delai = 0
bclient = Client(api_key=ROKEY,api_secret=ROKEYSEC)
for i in range(loop):
s = time()
r = bclient.get_avg_price(symbol='BTCUSDT')
delai = time()-s
print('loop number {} delai {} result {}'.format(i,delai, r))
total_delai +=delai
sleep(2)
print('average delay {}'.format(total_delai/loop))
I made my test on a digital ocean cloud machine in san fransisco.
DO is cheap, easy to manipulate and to migrate machine . a trick to pay less is to use switzerland for VAT.
(here is the ref link https://m.do.co/c/a6e619c6428a )
here is a billing example from my account for one month of a single cpu droplet
Final Invoice for January billing period
Issued on February 1, 2021
Product usage charges
$5.00
Droplets
$5.00
Subtotal
$5.00
Tax - VAT France (20.00%)
$1.00
Total
$6.00
AND THE RESULTS ARE :
for san fransico :
loop number 0 delai 0.11401081085205078 result {'mins': 5, 'price': '57601.68212838'}
loop number 1 delai 0.11512947082519531 result {'mins': 5, 'price': '57600.82330593'}
loop number 2 delai 0.1240854263305664 result {'mins': 5, 'price': '57599.76693144'}
loop number 3 delai 0.11418557167053223 result {'mins': 5, 'price': '57598.65621511'}
loop number 4 delai 0.12267851829528809 result {'mins': 5, 'price': '57595.97103323'}
loop number 5 delai 0.12673449516296387 result {'mins': 5, 'price': '57595.04113173'}
loop number 6 delai 0.11628222465515137 result {'mins': 5, 'price': '57593.85896357'}
loop number 7 delai 0.3298838138580322 result {'mins': 5, 'price': '57590.86031280'}
loop number 8 delai 0.11496281623840332 result {'mins': 5, 'price': '57586.98004146'}
loop number 9 delai 0.11507511138916016 result {'mins': 5, 'price': '57586.34099463'}
average delay 0.13930282592773438
from my personal computer in France (optic fiber line)
loop number 0 delai 0.23161005973815918 result {'mins': 5, 'price': '57473.98379488'}
loop number 1 delai 0.23066449165344238 result {'mins': 5, 'price': '57473.43746742'}
loop number 2 delai 0.23328661918640137 result {'mins': 5, 'price': '57472.88959753'}
loop number 3 delai 0.23072385787963867 result {'mins': 5, 'price': '57458.06634297'}
loop number 4 delai 0.23455023765563965 result {'mins': 5, 'price': '57456.40777730'}
loop number 5 delai 0.2302262783050537 result {'mins': 5, 'price': '57454.75135576'}
loop number 6 delai 0.23994970321655273 result {'mins': 5, 'price': '57451.64674543'}
loop number 7 delai 0.23225021362304688 result {'mins': 5, 'price': '57445.75241252'}
loop number 8 delai 0.2384181022644043 result {'mins': 5, 'price': '57444.58485420'}
loop number 9 delai 0.23217058181762695 result {'mins': 5, 'price': '57442.35732907'}
average delay 0.23338501453399657
Most helpful comment
I tested with Vaultr (https://www.vultr.com/?ref=8732615-6G) 100USD free.
In Tokyo region with < 2ms ping.