Kline/candlestick data
Get kline/candlestick data for a symbol. Returns data in Binance array-of-arrays format. This is a public endpoint — no authentication required. Requires `DATABASE_URL` to be configured.
Get kline/candlestick data for a symbol. Returns data in Binance
array-of-arrays format. This is a public endpoint — no authentication required.
Requires DATABASE_URL to be configured.
Query Parameters
Trading pair (e.g. ETH-USD)
Kline interval
"1m" | "5m" | "15m" | "1h" | "4h" | "1d"Start time in milliseconds since epoch
int64End time in milliseconds since epoch
int64Number of klines to return (1–1000, default 500)
5001 <= value <= 1000Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:3000/api/v1/klines?symbol=ETH-USD&interval=1h"[
[
1709040000000,
"3210.50",
"3250.00",
"3200.00",
"3245.75",
"14523.8000",
1709040059999,
"0",
308,
"0",
"0",
"0"
]
]{
"code": -1121,
"msg": "Invalid symbol."
}{
"code": -1,
"msg": "history not available"
}Account order history GET
Get all orders for the authenticated account, including active, filled, and cancelled orders. Returns order 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.
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.