US Stock Categories
US Stock Categories
Documentation
API Introduction
This API is used to retrieve the list of trading symbols for specified US stock markets. By passing a market code (e.g., NYSE, NASDAQ, or AMEX), it returns the corresponding stock symbol and its Chinese name. The data is suitable for building a basic US stock market database or a frontend stock picker.
Use Cases
- Financial Terminal Development: Initialize US stock dropdown selectors or search indexes.
- Quantitative Strategy Backtesting: Obtain the full universe of symbols for a specific exchange, used for filtering tradable assets.
- Information Aggregation Applications: Establish a mapping between stock symbols and Chinese names to enhance user reading experience.
Request and Response Description
- Request Method: POST
- Core Parameter:
market(Required), enum values includenu(NYSE),ou(NASDAQ),au(AMEX). - Response Structure: Standard JSON format. On success,
codeis 200, and thedata.listarray contains objects, each withsymbol(stock code) andname(Chinese name).
Integration Suggestions
- Caching Strategy: The frequency of US stock listings changes is relatively low. It is recommended to cache the returned results locally (e.g., update once daily) to reduce API call frequency and latency.
- Error Handling: Please validate the returned
codefield. If the status code is not 200, record themsginformation for troubleshooting. - Data Cleaning: Returned stock names may contain special characters or lengthy descriptions. It is recommended to truncate or format them for frontend display compatibility.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"market": "市场,au 美交所 ,nu 纽交所 ,ou 纳斯达克"
}Response Example
{
"msg": "成功",
"code": 200,
"taskNo": "644761017176228998465587",
"data": {
"list": [
{
"symbol": "gdxu",
"name": "金矿指数3倍做多ETN"
},
{
"symbol": "evav",
"name": "2倍做多电动和自动驾驶汽车ETF-Direxion"
}
]
}
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.market | object | {...} |
| properties.market.type | string | string |
| properties.market.description | string | 市场,au 美交所 ,nu 纽交所 ,ou 纳斯达克 |
| required | array | "market" |
| required[] | string | market |
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 | {...} |