Get exchange quote (preview)
POST
/v1/exchange/quote
const url = 'https://api.parasta.io/v1/exchange/quote';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"source":"example","target":"example","networkId":"example","direction":"exactInput","amount":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.parasta.io/v1/exchange/quote \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "source": "example", "target": "example", "networkId": "example", "direction": "exactInput", "amount": "example" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
source
required
string
target
required
string
networkId
required
string
direction
required
string
amount
required
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
source
string
target
string
direction
string
sourceAmount
string
targetAmount
string
sourceDisplayAmount
string
targetDisplayAmount
string
exchangeRate
string
priceImpact
string
priceImpactWarning
boolean
route
Array<string>
feeTier
integer
slippage
string
minimumReceived
string
minimumReceivedDisplay
string
networkId
string
executable
boolean
notExecutableReason
string
intermediary
string
Example
{ "direction": "exactInput", "notExecutableReason": "insufficient_balance"}