Last updated 1 month ago
This API retrieves detailed trade execution records for an order.
import { hibitClient } from '@delandlabs/hibit-client'; const options = { network: HibitNetwork.Testnet, hin: 10000n }; hibitClient.setOptions(options); const orderId = 'test order id'; const trades = await hibitClient.getOrderTrades(orderId);
Source code https://github.com/Deland-Labs/hibit-sdk
What is HIN?
How to Obtain your HIN and Proxy Key?
order id
curl -L \ --url 'https://testnetopenapi.hibit.app/v1/order/trades'
{ "code": 1, "message": "text", "data": [ { "tid": "text", "fp": "text", "fv": "text", "fa": "text", "ts": 1, "t": null } ] }