AllTick API Docs
API Status
  • Welcome
  • Integration Process
    • Process Description
    • Market Address Description
      • HTTP Quotes API Address Description
      • Websocket Quotes API Address Description
    • Token application
    • Interface restriction description
      • HTTP interface restrictions
      • Websocket interface limitations
      • Error code description
    • Universal standard header description
      • HTTP Common Standard Headers
      • Websocket Common Standard Header
    • Product Code List
      • A Share
      • Hong Kong Stock
      • US Stock
      • Cryptocurrency (Digital Currency)
      • Commodity (Precious Metals)
      • Forex
  • REST API
    • HTTP request example
    • HTTP interface API
      • GET Single Product K line query(High Low, Open, Close)
      • POST Query the latest 2 K lines of products in batches(High , Low, Open, Close)
      • GET Order Book(Depth) Query
      • GET Latest transaction price query(Latest Price)
      • GET Stocks product information query
      • Price changes, Market closure, Holidays, Limit up/down, New listings, and Delistings
  • Websocket API
    • Websocket request example
    • Websocket Interface API
      • Latest Trade Price (Real-time Tick Data) Batch Subscription
      • Order Book (Real-time Tick-by-Tick, Market Depth) Subscription
      • Cancel quote subscription
      • Ping Pong
      • K-line push (not supported)
  • FAQs
    • Basic usage
      • What types of financial data does AllTick provide?
      • How to obtain an API key from AllTick?
      • What is the data update frequency of AllTick?
      • How to integrate AllTick data into my application?
      • What programming languages does AllTick support for API calls?
      • Can I use AllTick's data for commercial purposes?
      • How to contact AllTick customer support?
      • Does AllTick's API have request limitations?
      • How to report data issues or API malfunctions?
      • Does AllTick provide real-time or delayed data?
    • Subscription and Account Management
      • How to register an AllTick account?
      • Does AllTick offer a free trial period?
      • How to cancel AllTick's subscription service?
      • What services does my subscription include?
      • How to upgrade my AllTick subscription plan?
      • How to change my account information?
      • I forgot my login password, what should I do?
      • How to secure my AllTick account?
      • Can multiple people share one AllTick account?
      • Can my subscription be refunded?
    • Data usage and technical issues
      • How to Use AllTick's WebSocket Service?
      • What data formats does AllTick's API support?
      • How to Handle High-Frequency Updates of AllTick Data?
      • I encountered a technical problem when using the API, how can I solve it?
      • How to ensure the accuracy of data received from AllTick?
      • Does AllTick Provide Historical Data Query?
      • How do I limit my data usage to avoid exceeding my subscription limits?
      • Does AllTick's API support batch requests?
      • How can I get real-time notifications and alerts on specific financial markets?
      • Does AllTick provide data analysis and visualization tools?
Powered by GitBook
On this page

Was this helpful?

  1. Integration Process
  2. Interface restriction description

Error code description

PreviousWebsocket interface limitationsNextUniversal standard header description

Last updated 1 day ago

Was this helpful?

English /

Error Code
Error Msg
Meaning

200

ok

Success

400

request header param invalid

First-level JSON parameter issue Suggestions:

1、Check if the JSON structure is complete.

2、Ensure all required fields are correctly included.

3、Validate that the data field is a valid object type.

4、Verify the presence of key fields like trace.

400

request data param invalid

Invalid data field parameter in JSON request Suggestions:

1、Check if the data field is a valid object.

2、Ensure all required fields in data are correctly filled.

3、Verify the content of the data field against the specific API documentation.

4、Pay special attention to POST requests, ensuring the JSON parameters in the body are complete and correct.

401

token invalid

Token is invalid Possible Causes:

1、Incorrect token format.

2、Token account has expired.

402

query invalid

Invalid query parameters in request Suggestions:

1、Check the query parameters in the GET request.

2、URL-encode the query parameters.

3、Ensure the parameter format meets API requirements.

4、Verify that special characters are correctly escaped.

429

rate limit

Exceeded the subscribed plan's request frequency Suggestions:

1、Optimize request frequency and logic.

2、Consider upgrading your plan for a higher request frequency. Click to view interface limits:

600

code invalid

Request code product is invalid Suggestions:

1、Check the Request URL: Carefully verify the API documentation, as the request URLs for stock and forex/precious metals data are different.

2、Check the Product Code: Refer to the product list to ensure the code is valid and accurate:

601

body empty

The request message body data is empty Suggestions:

1、Check the message body of the POST request.

2、Ensure the body contains complete JSON parameters.

3、Pay special attention to batch retrieval interfaces like /batch-kline.

4、Verify that all required fields are correctly filled.

603

token level not enough

Requested number of products or K-lines exceeds API limits Suggestions: 1、Check Product Count:

  • For K-line interfaces: Check if the total of [product count] and [K-line type] exceeds the plan limit.

  • For non-K-line interfaces: Confirm if requested product count exceeds the plan limit.

2、Validate K-line Requests: Confirm the K-line count meets API specifications. Batch requests allow only 2 K-lines at a time. Click to view HTTP interface limits:

604

code unauthorized

Your token does not have permission to access this code.

605

too many requests

Request frequency exceeds limit. Suggestions:

1、Optimize request frequency and logic.

2、Consider upgrading your plan for higher request frequency. Click to view interface limits:

606

too many requests and connection will be closed

Generally, it is the Websocket interface request frequency limit Suggestions:

1、Check WebSocket Connections: Ensure you do not exceed the maximum connections allowed by your plan.

2、Control Request Frequency: Ensure a minimum interval of 3 seconds between multiple WebSocket requests. Click to view interface limits:


Official Website

Official website:

中文
https://alltick.co/
HTTP interface limits
Websocket interface limits
[Product List]
HTTP interface limits
HTTP interface limits
Websocket interface limits
Websocket interface limits