GET /v1/rates/eod
Returns a single daily OHLCV candle for the requested pair and date. The day boundary is 00:00 UTC. This endpoint is designed for daily NAV calculations, accounting, and compliance reporting where a single authoritative closing rate is needed.
Authentication
note
This endpoint requires an API key. See Authentication.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pair | string | Yes | Pair identifier (e.g., USDTNGN). |
date | string | Yes | Date in YYYY-MM-DD format. |
Response
| Field | Type | Description |
|---|---|---|
pair | string | The requested pair. |
date | string | The requested date. |
open | number | VWAP at 00:00 UTC. |
high | number | Highest VWAP observed during the day. |
low | number | Lowest VWAP observed during the day. |
close | number | VWAP at 23:59 UTC. |
volume | number | Total volume traded across all exchanges during the day. |
Examples
curl
curl -X GET "https://api.moxiemetrx.com/v1/rates/eod?pair=USDTNGN&date=2026-03-01" \
-H "X-API-Key: your_key"
Python
import requests
response = requests.get(
"https://api.moxiemetrx.com/v1/rates/eod",
params={"pair": "USDTNGN", "date": "2026-03-01"},
headers={"X-API-Key": "your_key"},
)
eod = response.json()
print(f"USDTNGN close on {eod['date']}: {eod['close']}")
Response (200):
{
"pair": "USDTNGN",
"date": "2026-03-01",
"open": 1410.20,
"high": 1418.50,
"low": 1408.30,
"close": 1415.80,
"volume": 3421050.0
}
Response (404 -- no data for requested date):
{
"error": "not_found",
"message": "No end-of-day data available for USDTNGN on 2026-03-01.",
"status": 404
}
tip
Use the end-of-day endpoint for audit-friendly daily snapshots. For intraday granularity, use Historical Rates with the 1h or 5m interval.