cURL
curl --request POST \ --url https://app.afkcrypto.com/api/v1/trade/quote \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "chain": "<string>", "fromToken": "<string>", "toToken": "<string>", "amount": "<string>" }'
{ "quote": { "price": "0.9987", "srcAmount": "1000000000000000000", "dstAmount": "998700000000000000", "approvalNeeded": true, "allowanceTarget": "0xRouter", "raw": { "...": "..." } } }
Quote response
The response is of type object.
object