API referenceMetrics

This period against the last

Money in, money out, net and closing balance, with the period before. The comparison window is the same length immediately before, not the previous calendar month. Comparing a partial month against a whole one shows a fall that is an artefact of the calendar, which is the classic way a dashboard invents bad news. Reported per currency and never summed. Adding 500 EUR to 500 USD gives 1000 of nothing; `/fx/display/balance` is the endpoint that converts, and it says when it could not price a leg.

GET
/api/b/v1/metrics/kpis

Money in, money out, net and closing balance, with the period before.

The comparison window is the same length immediately before, not the previous calendar month. Comparing a partial month against a whole one shows a fall that is an artefact of the calendar, which is the classic way a dashboard invents bad news.

Reported per currency and never summed. Adding 500 EUR to 500 USD gives 1000 of nothing; /fx/display/balance is the endpoint that converts, and it says when it could not price a leg.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

Query Parameters

period?Period

day, week or month. The comparison window is the same length immediately before.

Default"month"
currency?|null
admin_access_token?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/b/v1/metrics/kpis"
{  "period": "string",  "period_start": "2019-08-24T14:15:22Z",  "period_end": "2019-08-24T14:15:22Z",  "previous_start": "2019-08-24T14:15:22Z",  "currencies": [    {      "currency": "string",      "money_in": {        "current_minor": 0,        "previous_minor": 0,        "change_minor": 0,        "change_bps": 0      },      "money_out": {        "current_minor": 0,        "previous_minor": 0,        "change_minor": 0,        "change_bps": 0      },      "net": {        "current_minor": 0,        "previous_minor": 0,        "change_minor": 0,        "change_bps": 0      },      "closing_balance": {        "current_minor": 0,        "previous_minor": 0,        "change_minor": 0,        "change_bps": 0      }    }  ]}