Join Nostr
2026-03-24 20:55:04 UTC
in reply to

mikeiohash on Nostr: The #bot gets a JSON with #bitcoin market data. The #endpoints are: - Price - Volume ...

The #bot gets a JSON with #bitcoin market data. The #endpoints are:
- Price
- Volume
- Liquidity
- Funding Fees & Open Interest
- A full snapshot of all the above.

The #data sources are #binance global and #deribit. Here’s a JSON example of the full snapshot:
{"ok":true,"asset":"BTC","quote":"USDT","snapshot":{"price":{"price":70739.27,"staleness_ms":495},"volume_24h":{"volume_24h_base":17351.68477,"volume_24h_quote":1220136800.793085,"staleness_ms":495},"liquidity":{"data":{"mid_price":70739.275,"top_of_book":{"best_bid_price":70739.27,"best_bid_qty":0.49585,"best_ask_price":70739.28,"best_ask_qty":2.55837,"spread":0.00999999999476131,"spread_bps":0.0014136418552156934},"depth_window_bps":10,"bid_depth":{"qty_btc":1.2062200000000005,"notional_quote":85323.1726517,"levels":50},"ask_depth":{"qty_btc":4.630330000000001,"notional_quote":327558.809105,"levels":50}},"staleness_ms":702},"perps":{"venue":"deribit","instrument":"BTC-PERPETUAL","index_price":70728.9,"mark_price":70753.43,"current_funding":9.682e-05,"funding_8h":1.072e-05,"open_interest":983270190.0,"timestamp":1774062611686,"staleness_ms":1326},"deviation_bps_binance_vs_deribit_index":1.466161639727169},"verifications_spent":2,"verification_balance":198,"request_id":null}