跳到主要内容

CoinGlass

CoinGlass

合约行情

请求地址

GET /deepcoin/coinglass/swap/marketdata

请求参数

返回示例

{
"list": [
{
"ExchangeID": "DeepCoin",
"InstrumentID": "BTCUSDT",
"ProductGroup": "Swap",
"LastPrice": 38700.5,
"Volume": 1234.5,
"Turnover": 123456.7,
"BidPrice1": 38690.1,
"BidVolume1": 10,
"AskPrice1": 38710.2,
"AskVolume1": 12,
"OpenPrice": 39000,
"HighestPrice": 39200,
"LowestPrice": 38000,
"OpenInterest": 1000,
"OpenInterestUsdt": 1000,
"UnderlyingPrice": 38650,
"MarkedPrice": 38680,
"funding_rate": 0.0001,
"UpdateTime": 1710000000
}
]
}

合约成交记录

请求地址

GET /deepcoin/coinglass/swap/trades

请求参数

字段名是否必填类型说明
fromTradeIdstring从指定成交 id 开始返回

返回示例

{
"list": [
{
"TradeID": "10001",
"ContractType": "Swap",
"InstrumentID": "BTCUSDT",
"Direction": "buy",
"Price": 38700.5,
"Volume": 1,
"TradeTime": 1710000000,
"IsForceClosed": false
}
]
}