Can exchange.Go work with multiple exchanges?

Author: Targa, Created: 2019-01-16 13:33:46, Updated:

For example:

var Ticker_A = exchanges[0].Go(“GetTicker”); var Depth_A = exchanges[0].Go(“GetDepth”); var Ticker_B = exchanges[1].Go(“GetTicker”); var Depth_B = exchanges[1].Go(“GetDepth”);

Thank you.


More

Inventors quantifiedOkay, watch the frequency limit.

The Little DreamCan, likewise, actually use the bottom is the co-ordinate of go.

TargaAli Cloud's VPS (server) 1 core 1 ghz, does it have asynchronous multi-line function? Operating system: CentOS is used to run over a dozen lines of exchange.go, with policies written in Javascript. 1 core = 2 threads only?

The Little DreamExperience has shown that Binance can access two interfaces in one second; as long as it is not an ultra-high frequency, or a local ultra-high frequency calling interface written in the program, it is fine.

TargaIs that all? I'm going to have to ask you a few questions. Binance has three different types of restrictions, which can change at any time. Tough restrictions Machine learning limitations of ML WAF network firewall restrictions What do you mean? Tough restrictions Weight of 1200 requests per minute (not necessarily the same request weight for these 1200 requests) Orders are limited to 10 per second. The number of orders in 24 hours is limited to 100,000 Our hard limits are listed at the end of /api/v1/exchangeInfo What do you mean? The limitations of machine learning Trading behaviour is evaluated based on the trading behaviour of the average user, if your trading behaviour deviates too far from the behaviour of the average user, you may be banned from trading, lasting from 5 minutes to 3 days What do you mean? Assume a penalty for trading misconduct, and your penalty will increase when: I've always been a big fan of buying and selling, but I'm not a big fan of buying and selling. Frequent withdrawals/deposits without any transactions; The transaction rate is very low, the transaction rate = the number of transactions / ((hanging number of transactions + withdrawal number); The transaction weight is very low, the transaction weight = total transaction/ (total pending order + total cancelled); In the case of BNB transactions, the penalty will be amplified. What do you mean? We don't provide more detailed information than above, and you can use iterative testing, or methods of interacting with other API users to help you achieve your ideal trading pattern What do you mean? Network firewall restrictions What do you mean? We do not currently provide clear information about the limitations of the network firewall, if you receive an HTTP403 error prompt, it indicates that you are in violation of a network firewall rule. In most cases, the appearance of this error prompt is due to too many requests and will continue to be banned for five minutes, however, if the request you sent is judged to be a malicious request, it can also lead to a longer continuous ban.

The Little DreamYes, note the frequency limitation of the exchange on interface calls.

TargaThank you for your reply. Is there a frequency limit on the exchange? Should five seconds be okay?