Spot Product List
Get the spot product list.
Interface Information
- Method:
GET - Path:
/api/v1/stock/open-api/spotProducts
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | int | Yes | Product type, 1=US stocks; currently only 1 is supported |
Request Example
GET /api/v1/stock/open-api/spotProducts?type=1
Response Fields
| Field | Type | Description |
|---|---|---|
| code | int | Status code, 0 indicates success |
| data | array | Spot product list |
Fields for each item in data:
| Field | Type | Description |
|---|---|---|
| symbol | string | Product symbol |
| name | string | Product name in English |
| nameZh | string | Product name in Chinese |
| logo | object | Product icon |
| logo.light | string | Icon URL for light theme |
| logo.dark | string | Icon URL for dark theme |
| price | number | Current price |
Response Example
{
"code": 0,
"data": [
{
"symbol": "NVDA",
"name": "NVIDIA Corporation",
"nameZh": "英伟达公司",
"logo": {
"light": "https://test.test9529.xyz/files/uploads/stock_icons/NVDA_icon.png",
"dark": "https://test.test9529.xyz/files/uploads/stock_icons/NVDA_icon.png"
},
"price": 195.22
}
]
}