v1
latestOpenAPI 3.1.02026-07-173814.2 KBcrate::server
Example quote handler
This is an example quote handler that returns a hardcoded quote response
post/quote
Headers
X-API-KEYstring nullable
Optional API Key (if required by the webhook)
Request body
Example request
{
"amount": "250000000",
"quoteId": "59db3e19-c7b0-4753-a8aa-206701004498",
"requestId": "629bddf3-0038-43a6-8956-f5433d6b1191",
"taker": "5v2Vd71VoJ1wZhz1PkhTY48mrJwS6wF4LfvDbYPnJ3bc",
"tokenIn": "So11111111111111111111111111111111111111112",
"tokenOut": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}Response
Example response
{
"amountIn": "250000000",
"amountOut": "1000000000",
"maker": "8iJxVDtFxnWpdCvdrgNDSXigxHo9vLf7KCS1pNKrs5Nh",
"quoteId": "59db3e19-c7b0-4753-a8aa-206701004498",
"requestId": "629bddf3-0038-43a6-8956-f5433d6b1191",
"taker": "5v2Vd71VoJ1wZhz1PkhTY48mrJwS6wF4LfvDbYPnJ3bc",
"tokenIn": "So11111111111111111111111111111111111111112",
"tokenOut": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}