请求接口

1. /Trade/getTrustOrderList (此接口只可获取六小时内的,状态为2、3的成交单数据)

2. /Trade/getUserStockOrder (此接口只可获取六小时外的,状态为2、3的成交单数据)

参数 是否必传 类型 说明
symbol string 交易对名称 例如btc_usdt
side string 购买类型 买:buy 卖:sell
status string 订单状态 0-未成,1-部分成交,2-全部成交,3-已撤销
start_time int 查询开始时间戳
end_time int 查询截止时间戳
page int 当前页数
page_size int 每页展示数量 最大值 100
client_user_id string 用户自定义user_id

返回数据示例

{
    "status":200, //成功码
    "source":"API",
    "msg":"OK", //status为200时返回OK 否则返回FAIL
    "data":{
        "list":[
            {
                "order_id":1324800,  //订单ID
                "user_id":100000665, //用户uid
                "client_user_id":157489, //用户自定义用户ID
                "symbol":"btc_usdt", //交易对名称
                "price":30000, //价格
                "side":"buy", //类型 buy 买 sell 卖
                "total":"2000.88",  //委托总价格
                "over_num":"0", //剩余数量
                "deal_num":"0.05", //成交数量
                "deal_total":"2000.88", //成交总价格
                "deal_avg_price":"36262.96",  //成交均价
                "fee":"0", //手续费
                "status":2 //状态 0-未成交|1-部分成交|2-全部成交|3-已撤销
            },
            {
                "order_id":1324755,
                "user_id":100000665,
                "client_user_id":157489,
                "symbol":"btc_usdt",
                "side":"buy",
                "total":"2000.88",
                "over_num":"0.000000",
                "deal_num":"0.055157",
                "deal_total":"2000.88",
                "deal_avg_price":"36275.54",
                "fee":"0.000050",
                "status":2
            },
          ...
        ],
        "pageInfo":{
            "pageCurrent":1,
            "pageCount":1,
            "pageSize":12,
            "pageTotal":7
        }
    },
    "seconds":1625056658,
    "microtime":1625056658075
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""

      results matching ""

        No results matching ""