Comment on page
Common Problem

When the server receives the request, it will judge the timestamp in the request. If it is sent before 5000 milliseconds, the request will be considered invalid. This time window value can be customized by sending the optional parameter recvWindow.
First, it is recommended that the user print out the X-CH-TS, and check whether the X-CH-TS is empty when there is an exception, and it is recommended that the user code is optimized, and judge whether the X-CH-TS is empty before each request.
You can print out the request header information and the string before signature, with the following points::
- Compare your request header with the following request header example one by one
Example request header:Content-Type: application/jsonX-CH-APIKEY: 44c541a1-****-****-****-10fe390df2X-CH-SIGN: ssseLeefrffraoEQ3yI9qEtI1CZ82ikZ4xSG5Kj8gnl3uw=X-CH-TS: 1574327555669
- Is the API-key configured correctly in the program
- Whether the string before signing conforms to the standard format, the order of all elements must be consistent. You can copy the following example to compare with your string before signing:
GET Example: 1588591856950GET/sapi/v1/accountPOST Example:1588591856950POST/sapi/v1/order/test{"symbol":"BTCUSDT","price":"9300","volume":"1","side":"BUY","type":"LIMIT"}
We recommend attaching Content-Type to all request headers and setting it to application/json
There are restrictions. For details, see the access frequency restrictions for each interface in the document.
Personal data is restricted according to API-key, and public data is restricted according to ip. It should be noted that if the user requests public data and passes in valid personal information, it is restricted according to API-key.
The request interface exceeds the access frequency limit. It is recommended to reduce the access frequency.
Normally not, just reduce the frequency of access.
- Without adding a heartbeat, the WebSocket connection requires the client to return to pong to ensure the stability of the connection.
- The pong message sent by the client is caused by network reasons, but the server does not receive it, or other network reasons may also cause automatic disconnection.
- It is recommended that users have a good WebSocket disconnect and reconnect mechanism to ensure that the program can automatically reconnect when the heartbeat (ping/pong) connection is accidentally disconnected.
The network cannot connect to the server. It is recommended that you check whether the network is smooth.
Coin's /sapi/v1/symbols interface can be obtained
Yes, the batch interface will limit 10 orders
- newClientOrderId is your customized order number, which can be used to identify your order. After the order is placed, you can make newClientOrderId call the "Order Information" interface to view the order status;
- The user needs to ensure that this ID is not repeated, and we will not prompt for re-relocation. If there is a repetition, you can only cancel or query the latest piece of data when canceling and querying the order
You can get ticker information, last is the latest transaction price
Last modified 3mo ago