OHLC Bars & Indicators
Candlestick data and server-side technical indicator computation.
GET /v1/bars
OHLCV candlestick data from Binance.
Interval: 5m, 15m, 30m, 1h, 2h, 4h, 1d
curl "https://api.crypton.dev/v1/bars?symbol=BTC&interval=4h&limit=50"
{
"status": "ok",
"data": [
{
"open": 67450.0,
"high": 67890.0,
"low": 67200.0,
"close": 67650.0,
"volume": 1234.56,
"timestamp": 1711670400000
}
]
}
POST /v1/indicators/compute
Compute custom technical indicators server-side on OHLCV data.
Request body:
{
"symbol": "BTC",
"interval": "1h",
"limit": 100,
"indicators": ["rsi", "macd", "bbands"]
}
curl -X POST "https://api.crypton.dev/v1/indicators/compute" \
-H "Content-Type: application/json" \
-d '{"symbol":"BTC","interval":"1h","limit":100,"indicators":["rsi"]}'