exchange-external-api
Get best price for order
Changed onget/exchange/api/orders/price
Request
- Base URLhttps://external.dev.onboardpay.co
- Authnone required
- TypeScripthttps://skmtc.dev/nestechops/apis/onboard-external-api-gateway/docs/exchange/api/orders/price/get.tsA function with typed inputs. Its response is checked against the schema.
Query parameters
tradeType'BUY' | 'SELL'
Type of trade (maps to transaction type: BUY - ONRAMP, SELL - OFFRAMP)
fiatstring
fiatAmountnumber
tokenstring
tokenAmountnumber
networkIdstring
Onboard blockchain network identifier or chain Id e.g Base will be base or 8453 or 0x2105
paymentChannelstring
Response
Success
Changes
- info
the
queryrequest parameterfiatbecame optional - info
the
queryrequest parametertokenbecame optional - info
the
queryrequest parametertradeTypebecame optional
- info