The quoting flow you use in the dashboard is available through the API, so you can integrate firm-price execution directly into your treasury or trading systems. The pattern mirrors the manual flow, request a quote, then accept it before it expires.
The request and accept pattern
You send a quote request specifying the pair, direction, and size, and the API returns a firm price along with a quote identifier and an expiry timestamp. To trade, you send an accept call referencing that identifier while the quote is still valid.
- Send the pair, direction, and the size on either leg
- Read the returned quote id and expiry timestamp
- Accept using the quote id before expiry to lock the price
- Handle an expired quote by requesting a fresh one
Handling expiry in code
Build your integration to treat expiry as a normal outcome. If an accept call is rejected because the quote has lapsed, request a new quote and repeat rather than retrying the stale identifier.
Using an idempotency key on your accept call protects you from accidentally booking a trade twice if a network retry occurs. This keeps automated execution safe even when connectivity is imperfect.