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
  • Price Change Calculation
  • Market Closure and Trading Hours
  • Holiday Notice
  • Explanation of Price Limits for Stocks
  • Explanation of Stock Delisting
  • New Stock Listing Notice
  • Official Website

Was this helpful?

  1. REST API
  2. HTTP interface API

Price changes, Market closure, Holidays, Limit up/down, New listings, and Delistings

PreviousGET Stocks product information queryNextWebsocket request example

Last updated 1 month ago

Was this helpful?

English /

Price Change Calculation

Alltick API does not provide price change or 24-hour price change fields. Users can calculate price changes using Alltick data.

1、Daily Price Change Calculation

Method 1: Use the HTTP API to get the daily K-line closing price for today and the previous day:

Formula: Price Change (%) = (Today's Closing Price - Previous Day's Closing Price) / Previous Day's Closing Price * 100%

Method 2: Use the WebSocket API to get the latest price and the HTTP API to retrieve the previous day's closing price for the daily candlestick chart. The calculation formula is as follows:

Formula: Price Change (%) = (Latest Price - Previous Day's Closing Price) / Previous Day's Closing Price * 100%

2、24-Hour Price Change Calculation

Use the WebSocket trade price API (Request Protocol: 22004) to receive real-time tick data.

To calculate, store the latest price from 24 hours ago and use the following formula:

Formula: 24H Price Change (%) = (Latest Price - Price 24 Hours Ago) / Price 24 Hours Ago * 100%

Market Closure and Trading Hours

Alltick does not provide an interface for market closure or trading hours. Customers can view the fixed trading hours for various products in the .

Holiday Notice

Alltick does not provide a holiday interface. Holiday market closure notifications will be posted in advance on our Telegram channel. Please refer to the Telegram channel for specific product information regarding market closures. Stay updated by following our channel:

Explanation of Price Limits for Stocks

Alltick does not provide an API to determine stock limit-up or limit-down. Users can determine this using the depth market data API:

Depth Market Data Judgment:

When subscribing to the depth market data API:

  • If only one side (bid or ask) has data, and the other side's price and volume are both zero, the stock is at its limit-up or limit-down.

Judgment Rules:

  • Limit-Up: Only the bid side has data, while the ask price and volume are zero.

  • Limit-Down: Only the ask side has data, while the bid price and volume are zero.

Below is a sample screenshot of the data returned:

Explanation of Stock Delisting

Alltick does not provide an interface for delisting judgment. Customers can determine if a stock is delisted using the following method:

Judgment Method: When subscribing to the depth market data interface, if both the bid and ask sides' prices and volumes return as 0, the stock is considered delisted.

Below is a sample screenshot of the data returned:

New Stock Listing Notice

Click the link to access the product list:

Official Website

Chinese Channel:

English Channel:

Alltick does not provide an interface for determining new stock listings. We regularly update the to reflect newly listed stocks and remove delisted stocks.

Official website:

Telegram Channel
Telegram Channel
Product List
[ Product List ]
https://alltick.co/
Product List
中文