Skip to content
AllTick

3-Step Integration Roadmap

Standardized workflow from account registration to your first live market data response:

01

Get Your API Token

Register on the AllTick official portal and copy your API Token from the developer console. Permissions and supported markets follow console specifications.

Register on Official Site
02

Install Dependencies

Install standard HTTP client library requests and store your API Token in environment variables to avoid hardcoded credentials.

pip install requests
03

Run First Quote Query

Execute the Python snippet to query supported symbols and inspect real-time tick payloads, latency, and field accuracy.

Read Python Tutorial
quickstart_quote.py
Python 3 · REST API

Python Request

# AllTick Market Data API Quickstart (Python)
import os
import requests

# 1. Endpoint & API Token (read from environment variable)
url = "https://quote.alltick.co/quote-stock-b-api/trade-tick"
token = os.getenv("ALLTICK_API_TOKEN", "YOUR_API_TOKEN")

# 2. Query payload: supports HK (700.HK), US (AAPL.US), A-shares (600519.SH)
params = {
    "token": token,
    "query": '{"trace":"start-demo-1","data":{"symbol_list":[{"code":"700.HK"}]}}'
}

# 3. Request and parse real-time tick quote
response = requests.get(url, params=params, timeout=10)
data = response.json()
if data.get("ret") == 200:
    tick = data["data"]["tick_list"][0]
    print("700.HK Latest Price:", tick["price"])
else:
    print(f"Error: ret={data.get('ret')} msg={data.get('msg')}")

Mock Response

{
  "ret": 200,
  "msg": "ok",
  "trace": "start-demo-1",
  "data": {
    "tick_list": [
      {
        "code": "700.HK",
        "price": "398.20",
        "tick_time": "1712648400000",
        "volume": "1200",
        "turnover": "477840"
      }
    ]
  }
}

Jump by Development Task

Choose the most relevant in-depth technical guide or official resource based on your current engineering goal:

Verify Market Coverage

Check symbol formats and K-line periods across HK stocks, US equities, forex, and commodities

Read Full API Reference

Complete REST endpoint parameters, WebSocket protocols, and JSON payload definitions

Get Free Test Token

Register on AllTick to obtain your API Token; scope and limits follow official console rules

Evaluate Plans & Rate Limits

Compare symbol quotas, per-minute API call limits, and concurrent WebSocket connections

Run First Code Example

Query verified symbols using Python requests following official endpoint specifications

Enterprise & Licensing Inquiry

Contact AllTick for commercial redistribution, dedicated lines, or custom SLAs

Ready to Integrate AllTick Market Data?

Generate a free test token and use the documented stock or FX/commodity endpoint prefix while keeping a consistent REST and WebSocket integration model.