查询交易询价信息
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/integrated/trade/rfq/price
参数
字段 |
类型 |
描述 |
b_id |
String |
业务线ID |
trading_pair |
String |
交易对,如 BTCUSDT 交易对中 base 币种是 BTC,quote币种是USDT |
base_amount |
String |
base 币种数量,如果提供了quote数量则本参数被忽略 |
quote_amount |
String |
quote 币种数量 |
side |
String |
交易方向(BUY-买,SELL-卖) |
响应
字段 |
类型 |
描述 |
pair |
String |
交易对 |
price_id |
String |
价格id(创建询价类型的交易订单需要的参数) |
qty_base |
Integer |
base数量 |
qty_quote |
Integer |
quote数量 |
price |
Integer |
价格 |
expire_time |
Long |
询价过期时间(ms) |
count_down |
Integer |
询价有效期(ms) |
响应示例
{
"code": 0,
"data": {
"count_down": 0,
"expire_time": 0,
"pair": "string",
"price_id": "string",
"qty_base": "string",
"qty_quote": "string",
"price": "string"
},
"message": "string",
"successful": true
}