Market Overview

Provides multi-asset market data covering global core markets including precious metals, forex, energy, agricultural products, bonds, indices, and digital assets. Supports additional subcategories such as gold, crude oil, base metals, soft commodities, grains, stock index futures, regional currency pairs, and forex futures to meet cross-market, multi-asset allocation needs.

Market API

1. UDP Interface

1.1 Interface Address

Receive real-time market data via UDP

1.2 Interface Description

Receive real-time market data via UDP protocol; data is transmitted in JSON format.

1.3 Transmission Method

Data is transmitted using UDP protocol; clients must specify IP address and port to receive data.

1.4 Data Format

All market data is transmitted in JSON format.

Data Type ID Data Type Template Name Field Name Description
1 ExCode Exchange Code
2 Code Currency
3 QuoteTime Time Unix Timestamp
4 Last Last Price
5 Open Open Price
6 High High Price
7 Low Low Price
8 Buy Buy Price
9 Sell Sell Price
10 Volume Volume Unit: Lot
11 Total Turnover Unit: RMB
12 LastClose Previous Close
13 LastSettle Previous Settlement
14 Bid1 Bid Price 1
15 Bid2 Bid Price 2
16 Bid3 Bid Price 3
17 Bid4 Bid Price 4
18 Bid5 Bid Price 5
19 BidLot1 Bid Volume 1
20 BidLot2 Bid Volume 2
21 BidLot3 Bid Volume 3
22 BidLot4 Bid Volume 4
23 BidLot5 Bid Volume 5
24 Ask1 Ask Price 1
25 Ask2 Ask Price 2
26 Ask3 Ask Price 3
27 Ask4 Ask Price 4
28 Ask5 Ask Price 5
29 AskLot1 Ask Volume 1
30 AskLot2 Ask Volume 2
31 AskLot3 Ask Volume 3
32 AskLot4 Ask Volume 4
33 AskLot5 Ask Volume 5
Market Example

Short Format:Suitable for market data without volume information

{
  "Code": "USD",
  "QuoteTime": "1359949094",
  "Last": "79.2417",
  "Open": "0.0000",
  "High": "79.2417",
  "Low": "79.2417",
  "LastClose": "0.0000",
  "Buy": "79.2417",
  "Sell": "79.2517"
}
          

Full Format:Suitable for markets like Shanghai Gold, domestic stocks with bid/ask levels

{
  "Code": "AGT+D",
  "QuoteTime": "1347329399",
  "Last": "7070.00",
  "Open": "7048.00",
  "High": "7110.00",
  "Low": "7030.00",
  "Volume": 780580,
  "Total": 5511113216,
  "LastClose": "7086.00",
  "LastSettle": "7099.00",
  "Bid1": "7069.00",
  "Bid2": "7068.00",
  "Bid3": "7067.00",
  "Bid4": "7066.00",
  "Bid5": "7065.00",
  "BidLot1": 8,
  "BidLot2": 374,
  "BidLot3": 13,
  "BidLot4": 154,
  "BidLot5": 30,
  "Ask1": "7070.00",
  "Ask2": "7071.00",
  "Ask3": "7072.00",
  "Ask4": "7073.00",
  "Ask5": "7074.00",
  "AskLot1": 227,
  "AskLot2": 103,
  "AskLot3": 13,
  "AskLot4": 200,
  "AskLot5": 312
}
          

2. HTTP Interface

2.1 Interface Address

Retrieve the latest quote for all instruments in a specified market via HTTP

2.2 Interface Description

Provides an HTTP endpoint with the latest quote for all instruments in a specified market in JSON format, allowing clients to actively fetch data.

2.3 Transmission Method

Data is transmitted via HTTP protocol; clients access the specified URL to obtain market data.

2.4 Data Format

All market data is transmitted as a JSON array, each element representing an instrument’s market data.

Market Example
[{
    "Code": "XAG",
    "QuoteTime": "1754456662",
    "Last": "37.79",
    "Open": "37.79",
    "High": "37.85",
    "Low": "37.74",
    "Volume": 0,
    "Amount": "0",
    "LastClose": "37.78",
    "Buy": "37.79",
    "Sell": "37.84"
}, {
    "Code": "XAU",
    "QuoteTime": "1754456667",
    "Last": "3372.61",
    "Open": "3380.85",
    "High": "3385.22",
    "Low": "3371.98",
    "Volume": 0,
    "Amount": "0",
    "LastClose": "3380.65",
    "Buy": "3372.61",
    "Sell": "3372.96"
}]