AiCoin
AiCoin
现货行情
获取现货行情列表。
请求地址
GET /deepcoin/aicoin/spot/tickers
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| PageSize | 否 | integer | 每页数量,最大 500 |
| PageIndex | 否 | integer | 页码,从 1 开始 |
返回示例
{
"result": true,
"message": "success",
"response": {
"timestamp": 1710000000,
"ticker": [
{
"symbol": "BTC/USDT",
"buy": "38703.65",
"sell": "38729.78",
"high": "39074.47",
"low": "38177.47",
"last": "38715.7",
"vol": "655729682.1670185",
"volume": "12345"
}
]
}
}
合约行情
获取合约行情列表。
请求地址
GET /deepcoin/aicoin/swap/tickers
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| PageSize | 否 | integer | 每页数量,最大 500 |
| PageIndex | 否 | integer | 页码,从 1 开始 |
返回示例
{
"result": true,
"message": "success",
"response": {
"timestamp": 1710000000,
"ticker": [
{
"symbol": "BTC/USDT",
"buy": "38703.65",
"sell": "38729.78",
"high": "39074.47",
"low": "38177.47",
"last": "38715.7",
"vol": "655729682.1670185",
"volume": "12345"
}
]
}
}
现货深度
获取现货订单簿。
请求地址
GET /deepcoin/aicoin/spot/depth
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 是 | string | 交易对 |
| size | 否 | integer | 深度范围 [2, 100] |
返回示例
{
"result": true,
"message": "success",
"response": {
"bids": [["38700", "1"]],
"asks": [["38710", "2"]],
"volume_bids": [["38700", "10"]],
"volume_asks": [["38710", "20"]]
}
}
合约深度
获取合约订单簿。
请求地址
GET /deepcoin/aicoin/swap/depth
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 是 | string | 交易对 |
| size | 否 | integer | 深度范围 [2, 100] |
返回示例
{
"result": true,
"message": "success",
"response": {
"bids": [["38700", "1"]],
"asks": [["38710", "2"]],
"volume_bids": [["38700", "10"]],
"volume_asks": [["38710", "20"]]
}
}
现货成交记录
获取现货最近成交记录。
请求地址
GET /deepcoin/aicoin/spot/trades
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 否 | string | 交易对 |
| size | 否 | integer | 每页数量 [10, 50],默认 50 |
| fromId | 否 | string | 从指定成交 id 开始返回 |
返回示例
{
"result": true,
"message": "success",
"response": [
{
"tid": "10001",
"price": 38700.5,
"amount": 0.01,
"volume": 1,
"direction": "buy",
"timestamp": "1710000000"
}
]
}
合约成交记录
获取合约最近成交记录。
请求地址
GET /deepcoin/aicoin/swap/trades
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 否 | string | 交易对 |
| size | 否 | integer | 每页数量 [10, 50],默认 50 |
| fromId | 否 | string | 从指定成交 id 开始返回 |
返回示例
{
"result": true,
"message": "success",
"response": [
{
"tid": "10001",
"price": 38700.5,
"amount": 0.01,
"volume": 1,
"direction": "sell",
"timestamp": "1710000000"
}
]
}
现货 K 线
获取现货 K 线数据。
请求地址
GET /deepcoin/aicoin/spot/kline
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 是 | string | 产品 ID |
| type | 否 | string | 时间粒度,默认 1min |
| limit | 否 | integer | 最大 100,默认 100 |
返回示例
{
"result": true,
"message": "success",
"response": [
["1710000000", "38700", "38800", "38600", "38750", "123"]
]
}
合约 K 线
获取合约 K 线数据。
请求地址
GET /deepcoin/aicoin/swap/kline
请求参数
| 字段名 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| symbol | 是 | string | 产品 ID |
| type | 否 | string | 时间粒度,默认 1min |
| limit | 否 | integer | 最大 100,默认 100 |
返回示例
{
"result": true,
"message": "success",
"response": [
["1710000000", "38700", "38800", "38600", "38750", "123"]
]
}
交易对列表
获取全部交易对。
请求地址
GET /deepcoin/aicoin/symbol-list
请求参数
无
返回示例
{
"result": true,
"message": "success",
"response": [
{
"symbol": "BTCUSDT",
"inst_type": "swap",
"base_asset": "BTC",
"base_asset_precision": 8,
"quote_asset": "USDT",
"quote_asset_precision": 6,
"contract_size": 0.001,
"state": "0",
"name": "BTCUSDT",
"future_type": "2",
"divivery": "0"
}
]
}