Market Data API
The Market Data API provides access to real-time and historical market data including trades, quotes, and OHLCV (Open, High, Low, Close, Volume) data.Base URL
| Environment | URL |
|---|---|
| Dev | https://dev-api.mangrovetrader.com |
| Test | https://test-api.mangrovetrader.com |
| Prod | https://api.mangrovetrader.com |
GET /api/v1/marketdata/{endpoint}
Authentication
The Market Data API requires Bearer token authentication.Data Types
Trade
Quote
OHLCV
Endpoints
Health Check
GET /api/v1/marketdata/health
Trades
Get Latest Trade
GET /api/v1/marketdata/trades/{base}/{quote}/latest
Get Trade History
GET /api/v1/marketdata/trades/{base}/{quote}/history
| Parameter | Type | Required | Description |
|---|---|---|---|
start_time | string | yes | Start time (RFC3339) |
end_time | string | yes | End time (RFC3339) |
limit | integer | no | Max trades (default: 100, max: 1000) |
asc | boolean | no | Sort ascending (default: false) |
Quotes
Get Latest Quote
GET /api/v1/marketdata/quotes/{base}/{quote}/latest
Get Quote History
GET /api/v1/marketdata/quotes/{base}/{quote}/history
OHLCV
Get Latest OHLCV
GET /api/v1/marketdata/ohlcv/{base}/{quote}/latest
| Parameter | Type | Required | Description |
|---|---|---|---|
period | string | yes | ONE_MINUTE, FIVE_MINUTES, FIFTEEN_MINUTES, THIRTY_MINUTES, ONE_HOUR, FOUR_HOURS, ONE_DAY |
Get OHLCV Interval
GET /api/v1/marketdata/ohlcv/{base}/{quote}/interval
Returns 1-minute bars for the specified time range.
Get OHLCV Period
GET /api/v1/marketdata/ohlcv/{base}/{quote}/period
Returns a single OHLCV bar for a specific period and end time.