Quote API Overview
Description Of Security Code
The security code uses the ticker.region
format, ticker
represents the code, and example for each market:
- US Market:
region
isUS
, for example:AAPL.US
. - HK Market:
region
isHK
, for example:700.HK
. - CN Market:
region
isSH
for Shanghai Stock Exchange andSZ
for Shenzhen Stock Exchange, for example:399001.SZ
,600519.SH
. - SG Market:
region
isSG
, for example:D05.SG
.
Access Method
- Use private protocol and long connection mode to access, please refer to Binary Communication Protocol for access method.
- Use SDK for access, SDK introduction and download address.
Business Data Serialization
The market request, response and push data are stored as business data in the body part of the data package of the private protocol. We use the Protobuf protocol to serialize business data. Compared with common text protocols (such as JSON, XML, etc.), the Protobuf protocol has the following advantages:
- Faster serialization time.
- Smaller packet size.
- Strongger version forward and backward compatibility.
Quote Protobuf protocol document download link.