get trades of order
API details
This API retrieves detailed trade execution records for an order.
Query parameters
OrderIdstring · stringOptional
Order id
Responses
200
OK
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
501
Not Implemented
get
GET /v1/order/trades HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
"code": 1,
"message": "text",
"data": [
{
"tid": "text",
"fp": "text",
"fv": "text",
"fa": "text",
"ts": 1,
"t": null
}
]
}
Code example
import { hibitClient } from '@delandlabs/hibit-sdk';
const options = {
network: HibitNetwork.Testnet,
hin: 10000n
};
hibitClient.setOptions(options);
const orderId = 'test order id';
const trades = await hibitClient.getOrderTrades(orderId);
SDK
Source code https://github.com/Deland-Labs/hibit-sdk
References
Last updated