· 3 years ago · Mar 25, 2022, 07:00 PM
1ERRORCODES:
2HTTP 4XX REQUISIÇÃO MALFORMADA
3HTTP 403 BLOQUEADO PELO FIREWALL
4HTTP 429 EXCESSO DE REQUISIÇÕES
5HTTP 418 VOCÊ FOI BANIDO
6HTTP 5XX PROBLEMA NA BINANCE
7HTTP 503 VÁRIAS TRETAS DIFERENTES
8
9
10For POST, PUT, and DELETE endpoints, the parameters may be sent as a query string or in the request body with content type application/x-www-form-urlencoded
11
12
13Every request will contain X-MBX-USED-WEIGHT-(intervalNum)(intervalLetter) in the response headers which has the current used weight for the IP
14
15When a 429 is received, it's your obligation as an API to back off and not spam the API. Repeatedly violating rate limits and/or failing to back off after receiving 429s will result in an automated IP ban (HTTP status 418). IP bans are tracked and scale in duration for repeat offenders, from 2 minutes to 3 days.
16
17
18SIGNED (TRADE and USER_DATA) Endpoint Security
19
20SIGNED endpoints require an additional parameter, signature, to be sent in the query string or request body.
21Endpoints use HMAC SHA256 signatures. The HMAC SHA256 signature is a keyed HMAC SHA256 operation. Use your secretKey as the key and totalParams as the value for the HMAC operation.
22The signature is not case sensitive.
23Please make sure the signature is the end part of your query string or request body.
24totalParams is defined as the query string concatenated with the request body.
25
26Timing Security
27
28A SIGNED endpoint also requires a parameter, timestamp, to be sent which should be the millisecond timestamp of when the request was created and sent.
29An additional parameter, recvWindow, may be sent to specify the number of milliseconds after timestamp the request is valid for. If recvWindow is not sent, it defaults to 5000.
30
31Serious trading is about timing. Networks can be unstable and unreliable, which can lead to requests taking varying amounts of time to reach the servers.
32With recvWindow, you can specify that the request must be processed within a certain number of milliseconds or be rejected by the server