Skip to content

获取行情最新成交记录

描述

获取行情最新成交记录

HTTP请求

  • GET /open/api/get_trades

请求参数

参数名参数类型是否必须描述
symbolString币对,例如: btcusdt

请求示例

http
curl 'https://openapi.100ex.com/open/api/get_trades?symbol=btcusdt'

返回参数

返回字段字段类型字段说明
>amountDecimal数量
>priceDecimal价格
>ctimeLong成交时间
>idLong成交单id
>typeString成交类型: buy 买单,sell 卖单

返回示例

json
{
    "code": "0",
    "msg": "suc",
    "data": [
        {
            "amount": 0.0001100000000000,
            "price": 99569.9700000000000000,
            "ctime": 1736146512910,
            "id": 14978463,
            "type": "buy"
        },
        {
            "amount": 0.0001800000000000,
            "price": 99569.9700000000000000,
            "ctime": 1736146512340,
            "id": 14978462,
            "type": "sell"
        }
    ],
    "message": null,
    "traceId": null
}

状态码

状态码说明
0成功
1系统错误