Skip to main content

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

ParameterTypeRequiredDescription
pairstringYesPair identifier (e.g., USDTNGN).
datestringYesDate in YYYY-MM-DD format.

Response

FieldTypeDescription
pairstringThe requested pair.
datestringThe requested date.
opennumberVWAP at 00:00 UTC.
highnumberHighest VWAP observed during the day.
lownumberLowest VWAP observed during the day.
closenumberVWAP at 23:59 UTC.
volumenumberTotal 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.