Global Futures Quotes
Global Futures Quotes
Documentation
API Introduction
This API provides real-time quote data for major international futures products. By passing a specific futures product code (symbol), you can obtain core market data fields including the latest price, bid/ask order book, trading volume, open interest, and change percentage. The data is suitable for business scenarios requiring monitoring of international commodities and financial derivatives prices.
Use Cases
- Financial News Platforms: Display real-time dynamics and market trends of the international futures market.
- Quantitative Trading Assistance: Provide basic price and volume data input for strategy models.
- Enterprise Risk Management: Monitor international price fluctuations of raw materials (e.g., crude oil, metals, agricultural products).
- Personal Investment Tools: Develop market monitoring software or price alert notification services.
Request and Response Description
- Request Method: POST
- Key Parameter:
symbol(Required), the futures product code, must be passed with a valid value referencing the official code table. - Response Structure:
code/msg: API status code and description, 200 indicates success.data: Object containing specific market data.price: Real-time latest price.bid/ask: Bid 1 price and Ask 1 price.volume/hold: Trading volume and open interest.change/changeRate: Change amount and change rate.
Integration Suggestions
- Code Mapping: Please ensure to maintain a valid
symbolcode table to avoid query failures caused by passing invalid codes. - Frequency Control: Real-time market data updates frequently. It is recommended to set a reasonable polling interval based on actual business needs to avoid high-frequency invalid requests.
- Data Validation: When parsing the returned data, please check the
codefield to ensure the request was successful, and pay attention to handling network exceptions or timeouts. - Time Zone Note:
update_timeis in timestamp format; it needs to be converted to the user's local time zone for front-end display.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"symbol": "期货品种代码,详见代码表"
}Response Example
{
"msg": "成功",
"code": 200,
"taskNo": "883993816152322760914592",
"data": {
"change": "5.0300",
"ask_vol": "3",
"bid_vol": "10",
"hold": "249261.000",
"volume": "5347",
"high": "312.800",
"update_time": 1721629440,
"low": "307.600",
"price": "312.530",
"name": "美黄豆粉",
"ask": "312.600",
"changeRate": "1.6358",
"preclose": "307.500",
"bid": "312.500",
"open": "307.600"
}
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.symbol | object | {...} |
| properties.symbol.type | string | string |
| properties.symbol.description | string | 期货品种代码,详见代码表 |
| required | array | "symbol" |
| required[] | string | symbol |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.msg | object | {...} |
| properties.msg.type | string | string |
| properties.msg.example | string | 成功 |
| properties.msg.description | string | 返回码 对应描述 |
| properties.code | object | {...} |