Last updated 1 month ago
This API returns detailed information for a single market.
import { hibitClient } from '@delandlabs/hibit-client'; const options = { network: HibitNetwork.Testnet }; hibitClient.setOptions(options); const market = await hibitClient.getMarket(10016n);
Source code https://github.com/Deland-Labs/hibit-sdk
The market id.
curl -L \ --url 'https://testnetopenapi.hibit.app/v1/market'
{ "code": 1, "message": "text", "data": { "marketId": "text", "marketSymbol": "text", "baseAssetId": "text", "quoteAssetId": "text", "depthLevels": [ 1 ] } }