Best bid/ask price and quantity
Returns the best bid and ask price and quantity. When `symbol` is provided, returns a single object. When omitted, returns an array of all symbols.
Returns the best bid and ask price and quantity. When symbol is provided,
returns a single object. When omitted, returns an array of all symbols.
Query Parameters
Instrument symbol. If omitted, returns all symbols.
Response Body
application/json
application/json
curl -X GET "http://localhost:3000/api/v1/ticker/bookTicker"{
"symbol": "AAPL-USD",
"bidPrice": "149.95",
"bidQty": "25",
"askPrice": "150.05",
"askQty": "15",
"time": 1709123456789
}{
"code": -1121,
"msg": "Invalid symbol."
}Account trade history GET
Get trades for the authenticated account. Returns trade history in Binance-compatible format. Requires `DATABASE_URL` to be configured. **Dev mode:** Requires `X-Account-Address` header. **Production:** Requires `X-Account-Address`, `X-Signature`, and `X-Timestamp` headers.
Order book depth GET
Returns the current order book depth for a symbol. Follows Binance USDS-M Futures format with bids and asks as `[price, qty]` arrays.