LedgerCore
Market Intelligence

Orderbooks

Market depth and liquidity analysis from cryptocurrency exchanges.

Endpoint

GET /api/v1/market-data/orderbooks

Parameters

ParameterTypeRequiredDescription
symbolstringYesTrading pair (e.g., BTC-USD)
depthintegerNoNumber of price levels (default: 20, max: 100)

Response Format

{
  "data": {
    "symbol": "BTC-USD",
    "timestamp": "2026-01-20T12:00:00Z",
    "bids": [
      [45200.00, 1.5],
      [45190.00, 2.3]
    ],
    "asks": [
      [45210.00, 1.2],
      [45220.00, 1.8]
    ]
  }
}

Examples

Get Orderbook Snapshot

curl "http://localhost:8090/api/v1/market-data/orderbooks?symbol=BTC-USD&depth=20" \
  -H "Authorization: Bearer YOUR_API_KEY"

JavaScript Example

async function getOrderbook(symbol, depth = 20) {
  const response = await fetch(
    `http://localhost:8090/api/v1/market-data/orderbooks?symbol=${symbol}&depth=${depth}`,
    {
      headers: {
        'Authorization': `Bearer ${process.env.LEDGERLINK_API_KEY}`
      }
    }
  );
  
  return await response.json();
}

const orderbook = await getOrderbook('BTC-USD', 20);

Next Steps

Was this page helpful?