Get trade quote Run in API Explorer
Ask AI
Requests an RFQ quote for the authenticated API key owner.
Headers
-
Public API key issued from the Lumetrade API key management flow.
-
API secret paired with the public API key.
Body
Required
-
How much the customer wants to send or pay. Provide either fromAmount or toAmount, not both.
-
How much the customer wants to receive. Provide either toAmount or fromAmount, not both.
-
Currency the customer is sending or paying with.
-
Currency the customer wants to receive.
-
Use client_linked when the customer may confirm this quote. Use indicative when the customer only needs a preview price.
Format should match the following pattern:
(?i)indicative|client_linked. Values areindicativeorclient_linked.
POST
/api/v1/trades/quote
curl \
--request POST 'https://api.staging.lumetrade.com/api/v1/trades/quote' \
--header "Content-Type: application/json" \
--header "X-API-KEY: string" \
--header "X-API-SECRET: string" \
--data '"{\n \"fromAmount\": 100,\n \"fromCurrency\": \"ZAR\",\n \"toCurrency\": \"BTC\",\n \"quoteIntent\": \"client_linked\"\n}"'
Request examples
Request a quote using fromAmount, for example spend 100 ZAR
Quote by send amount
{
"fromAmount": 100,
"fromCurrency": "ZAR",
"toCurrency": "BTC",
"quoteIntent": "client_linked"
}
Quote by receive amount
{
"toAmount": 1840,
"fromCurrency": "USDT",
"toCurrency": "ZAR",
"quoteIntent": "client_linked"
}
Response examples (200)
{}
Response examples (400)
{
"httpStatus": 400,
"errors": [],
"timestamp": "2026-01-01T00:00:00Z",
"code": 400,
"message": "Request validation failed",
"requestId": "req_01HY0000000000000000000000"
}
Response examples (403)
{
"httpStatus": 403,
"errors": [],
"timestamp": "2026-01-01T00:00:00Z",
"code": 403,
"message": "Authenticated API key is not allowed to perform this action",
"requestId": "req_01HY0000000000000000000000"
}
Response examples (429)
{
"error": "rate_limit_exceeded",
"message": "API rate limit exceeded"
}
Response examples (401)
{
"httpStatus": 401,
"errors": [],
"timestamp": "2026-01-01T00:00:00Z",
"code": 401,
"message": "API key authentication failed",
"requestId": "req_01HY0000000000000000000000"
}
Response examples (500)
{
"httpStatus": 500,
"errors": [],
"timestamp": "2026-01-01T00:00:00Z",
"code": 500,
"message": "Unexpected server error",
"requestId": "req_01HY0000000000000000000000"
}