Creates a Purchase or Sell Quote
Only one of the input parameters "amountIn" and "amountOut" must be provided. for on ramps receives adicionally clientId and paymentMethodId. Returns a quoteId that can be use to create an order (is not necessary, but if provided and still valid, fewer values will be necessary to create the order). If executable is true, we store it and return a UUID.
POST
/rest/quotes
amountIn
amountOut
clientId
executable
paymentMethodId
symbolIn
symbolOut
curl --request POST \
--url https://api-test.koywe.com/rest/quotes \
--header 'Content-Type: application/json'
{
"amountIn": "238228",
"amountOut": "1",
"co2": "number",
"exchangeRate": "235816",
"koyweFee": 2358.16,
"networkFee": "54",
"paymentMethodId": "632d7fe6237ded3a748112cf",
"quoteId": "63da8100c6d0af192f9f9e8c",
"symbolIn": "CLP",
"symbolOut": "BNB",
"validFor": "10",
"validUntil": "1675264266"
}
Body
application/json
amountIn
number
amountOut
number
clientId
string
executable
boolean
paymentMethodId
string
symbolIn
string
symbolOut
string
Response
200 - application/json
amountIn
number
amountOut
number
co2
number
exchangeRate
number
koyweFee
number
networkFee
number
paymentMethodId
string
quoteId
string
symbolIn
string
symbolOut
string
validFor
number
validUntil
number
curl --request POST \
--url https://api-test.koywe.com/rest/quotes \
--header 'Content-Type: application/json'
{
"amountIn": "238228",
"amountOut": "1",
"co2": "number",
"exchangeRate": "235816",
"koyweFee": 2358.16,
"networkFee": "54",
"paymentMethodId": "632d7fe6237ded3a748112cf",
"quoteId": "63da8100c6d0af192f9f9e8c",
"symbolIn": "CLP",
"symbolOut": "BNB",
"validFor": "10",
"validUntil": "1675264266"
}