# Error code description

English / [中文](https://apis.alltick.co/jie-ru-liu-cheng/jie-kou-xian-zhi-shuo-ming/cuo-wu-ma-shuo-ming)

<table><thead><tr><th width="126.08203125">Error Code</th><th width="189.16015625">Error Msg</th><th width="432.40234375">Meaning</th></tr></thead><tbody><tr><td>200</td><td>ok</td><td>Success</td></tr><tr><td>400</td><td>request header param invalid</td><td><p>First-level JSON parameter issue<br>Suggestions:</p><p>1、Check if the JSON structure is complete.</p><p>2、Ensure all required fields are correctly included.</p><p>3、Validate that the <code>data</code> field is a valid object type.</p><p>4、Verify the presence of key fields like <code>trace</code>.</p></td></tr><tr><td>400</td><td>request data param invalid</td><td><p>Invalid <code>data</code> field parameter in JSON request<br>Suggestions:</p><p>1、Check if the <code>data</code> field is a valid object.</p><p>2、Ensure all required fields in <code>data</code> are correctly filled.</p><p>3、Verify the content of the <code>data</code> field against the specific API documentation.</p><p>4、Pay special attention to POST requests, ensuring the JSON parameters in the body are complete and correct.</p></td></tr><tr><td>401</td><td>token invalid</td><td><p>Token is invalid<br>Possible Causes:</p><p>1、Incorrect token format.</p><p>2、Token account has expired.</p></td></tr><tr><td>402</td><td>query invalid</td><td><p>Invalid query parameters in request<br>Suggestions:</p><p>1、Check the query parameters in the GET request.</p><p>2、URL-encode the query parameters.</p><p>3、Ensure the parameter format meets API requirements.</p><p>4、Verify that special characters are correctly escaped.</p></td></tr><tr><td>429</td><td>Too Many Requests</td><td><p>Exceeded the subscribed plan's request frequency<br>Suggestions:</p><p>1、Optimize request frequency and logic.</p><p>2、Consider upgrading your plan for a higher request frequency.<br>Click to view  interface limits：<br><a href="http-interface-restrictions">HTTP interface limits</a><br><a href="websocket-interface-limitations">Websocket interface limits</a><br><br><mark style="color:$danger;">Common scenario:</mark><br>For example, with the basic plan:<br>1.  if you send at least 2 requests to the <code>/kline</code> endpoint within 1 second.<br>the responses will be as follows:<br>1. The first request succeeds, while the second request returns a 429 “Too Many Requests” error.<br> 2. This is because, under the basic plan, the <code>/kline</code> endpoint allows only 1 request per second, so exceeding this limit results in a 429 “Too Many Requests” response.</p></td></tr><tr><td>600</td><td>code invalid</td><td><p>Request code product is invalid<br>Suggestions:</p><p>1、Check the Request URL:<br>Carefully verify the API documentation, as the request URLs for stock and forex/precious metals data are different.</p><p>2、Check the Product Code:<br>Refer to the product list to ensure the code is valid and accurate: <a href="https://docs.google.com/spreadsheets/d/1avkeR1heZSj6gXIkDeBt8X3nv4EzJetw4yFuKjSDYtA/edit?gid=495387863#gid=495387863">[Product List]</a></p></td></tr><tr><td>601</td><td>body empty</td><td><p>The request message body data is empty<br>Suggestions:</p><p>1、Check the message body of the POST request.</p><p>2、Ensure the body contains complete JSON parameters.</p><p>3、Pay special attention to batch retrieval interfaces like <code>/batch-kline</code>.</p><p>4、Verify that all required fields are correctly filled.</p></td></tr><tr><td>603</td><td>token level not enough</td><td><p>Requested number of products or K-lines exceeds API limits<br>Suggestions:<br><strong>1、Check Product Count:</strong> </p><ul><li>For K-line interfaces: Check if the total of [product count] and [K-line type] exceeds the plan limit.</li><li>For non-K-line interfaces: Confirm if requested product count exceeds the plan limit.</li></ul><p><strong>2、Validate K-line Requests:</strong> Confirm the K-line count meets API specifications. Batch requests allow only 2 K-lines at a time.<br><br>Click to view HTTP interface limits：<a href="http-interface-restrictions">HTTP interface limits</a></p></td></tr><tr><td>604</td><td>code unauthorized</td><td>Your token does not have permission to access this code.</td></tr><tr><td>605</td><td>too many requests</td><td><p>Request frequency exceeds limit.<br>Suggestions:</p><p>1、Optimize request frequency and logic.</p><p>2、Consider upgrading your plan for higher request frequency.<br><br>Click to view  interface limits：<br><a href="http-interface-restrictions">HTTP interface limits</a><br><a href="websocket-interface-limitations">Websocket interface limits</a></p></td></tr><tr><td>606</td><td>too many requests and connection will be closed</td><td><p>Generally, it is the Websocket interface request frequency limit<br>Suggestions:</p><p><strong>1、Check WebSocket Connections:</strong><br>Ensure you do not exceed the maximum connections allowed by your plan.</p><p><strong>2、Control Request Frequency:</strong><br>Ensure a minimum interval of 3 seconds between multiple WebSocket requests.<br><br>Click to view  interface limits：<br><a href="websocket-interface-limitations">Websocket interface limits</a></p></td></tr></tbody></table>

***

### Official Website

{% hint style="info" %}
Official website: <https://alltick.co/>
{% endhint %}
