| name | bitmex-market-intel |
| version | 1.0.0 |
| description | Market data commands for bitmex-cli: instruments, order books, trades, candles, funding, and quotes. |
| metadata | {"openclaw":{"category":"finance"},"requires":{"bins":["bitmex"]},"depends":["bitmex-shared"]} |
bitmex-market-intel
All market data commands require no authentication. Use these for dashboards, signal generation, and pre-trade analysis.
Instrument Info
Retrieve contract specifications, mark price, open interest, and 24h volume.
bitmex market instrument --symbol XBTUSD -o json 2>/dev/null | \
jq '.[0] | {symbol, lastPrice, markPrice, openInterest, volume24h: .volume}'
bitmex market instrument --active -o json 2>/dev/null | \
jq '[.[] | {symbol, lastPrice, fundingRate, openInterest}]'
bitmex market instrument --indices -o json 2>/dev/null | \
jq '[.[] | {symbol, lastPrice}]'
Order Book
bitmex market orderbook XBTUSD -o json 2>/dev/null | \
jq '{bids: [.[] | select(.side=="Buy") | [.price,.size]][:5], asks: [.[] | select(.side=="Sell") | [.price,.size]][:5]}'
bitmex market orderbook XBTUSD --depth 5 -o json 2>/dev/null
bitmex market orderbook XBTUSD --depth 1 -o json 2>/dev/null | \
jq '([.[] | select(.side=="Buy") | .price][0] + [.[] | select(.side=="Sell") | .price][0]) / 2'
Recent Trades
bitmex market trades --symbol XBTUSD --reverse --count 100 -o json 2>/dev/null | \
jq '[.[] | {timestamp, side, price, size}]'
bitmex market trades --symbol XBTUSD --bucketed --bin-size 1h -o json 2>/dev/null | \
jq '[.[] | {timestamp, open, high, low, close, volume}]'
bitmex market trades --symbol XBTUSD --bucketed --bin-size 5m -o json 2>/dev/null | \
jq 'last'
Quote (Best Bid/Ask)
bitmex market quote --symbol XBTUSD -o json 2>/dev/null | \
jq '.[0] | {bidPrice, bidSize, askPrice, askSize}'
bitmex market quote --symbol XBTUSD --bucketed --bin-size 1h -o json 2>/dev/null
Funding Rate
Perpetual contracts pay or receive funding every 8 hours (00:00, 08:00, 16:00 UTC).
bitmex market funding --symbol XBTUSD -o json 2>/dev/null | \
jq '.[0] | {symbol, fundingRate, fundingRateDaily: (.fundingRate * 3), timestamp}'
bitmex market funding --symbol XBTUSD --count 10 --reverse -o json 2>/dev/null | \
jq '[.[] | {timestamp, fundingRate}]'
Liquidations
bitmex market liquidation --symbol XBTUSD -o json 2>/dev/null | \
jq '[.[] | {timestamp, side, price, leavesQty}]'
Settlement
bitmex market settlement --symbol XBTM25 -o json 2>/dev/null | \
jq '.[0] | {timestamp, settledPrice}'
Insurance Fund
bitmex market insurance -o json 2>/dev/null | \
jq '[.[] | {currency, walletBalance}]'
Exchange Stats
bitmex market stats -o json 2>/dev/null | \
jq '[.[] | {rootSymbol, currency, volume24h, openInterest}]'
Leaderboard
bitmex market leaderboard --method notional -o json 2>/dev/null | jq '.[0:5]'