History Summary

Returns aggregated statistics for your account: total orders placed, total energy purchased, cumulative spending, and average price per unit of energy.

GET/api/v1/history/summaryRequires authentication

Request

No query parameters or request body. Requires a valid JWT or API key.

Request examples
curl https://merx.exchange/api/v1/history/summary \
  -H "X-API-Key: sk_live_your_key_here"

Response

Returns a single object with four aggregate fields covering your entire account history.

200Success
{
  "total_orders": 142,
  "total_energy": 9500000,
  "total_spent_sun": 304000000,
  "avg_price_sun": 32
}

Response fields

total_ordersnumberTotal number of orders placed
total_energynumberTotal energy units purchased across all orders
total_spent_sunnumberCumulative amount spent in SUN
avg_price_sunnumberAverage price per energy unit in SUN