get market

API details

This API returns detailed information for a single market.

Get market details

get
Query parameters
MarketIdstringOptional
Responses
200
OK
get
GET /v1/market HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "marketId": "text",
    "marketSymbol": "text",
    "baseAssetId": "text",
    "quoteAssetId": "text",
    "depthLevels": [
      1
    ]
  }
}

Code example

import { hibitClient } from '@delandlabs/hibit-sdk';

const options = {
  network: HibitNetwork.Testnet
};
hibitClient.setOptions(options);

const market = await hibitClient.getMarket(10016n);

SDK

Source code https://github.com/Deland-Labs/hibit-sdk

Last updated