Create a rate lock
Authentication
Request
Base currency of the pair (ISO 4217) — the currency you price in, e.g. USD.
Quote currency of the pair (ISO 4217) — the currency you collect in, e.g. KES.
Response
An existing active rate lock, returned because two active locks already exist for this currency pair (the maximum of two). The freshest of the two is returned.
active— usable.expired— pastexpiresAt. Terminal.cancelled— invalidated before expiry; seecancellationReason. Terminal.
expired and cancelled are permanent — a lock never returns to active.
A lock at or past expiresAt is invalid even if status still reads active.
Base currency (ISO 4217).
Quote currency (ISO 4217).
Reference mid-market rate the lock was priced from. 1 base = <midRate> quote.
The markup applied over the mid, in basis points (100 bps = 1%).
The rate you transact at: mid plus markup. This is the rate carried onto every
transaction that uses the lock. 1 base = <allInRate> quote.
End of the lock’s validity window. The lock is invalid from this time even if
status still reads active.
Why the lock was cancelled. Present only when status is cancelled.
market_drift — the rate moved beyond the allowed tolerance. requested — you
cancelled the lock yourself via the cancel endpoint.