get trades of order

API details

This API retrieves detailed trade execution records for an order.

Get order trades

get
Query parameters
OrderIdstring Β· stringOptional

Order id

Responses
200

OK

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

Example

https://hibit-sdk-example.hibit.app/

References

What is HIN?

How to Obtain your HIN and Proxy Key?

Last updated