POST
/
trade
/
quote
Get trade quote (EVM + Solana, 1inch)
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": {
    "price": "0.9987",
    "srcAmount": "1000000000000000000",
    "dstAmount": "998700000000000000",
    "approvalNeeded": true,
    "allowanceTarget": "0xRouter",
    "raw": { "...": "..." }
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Quote response

The response is of type object.