Skip to main content
POST

Overview

Partners can calculate the final amount for a given input amount and order type. Set reverse=true to calculate the required input amount for a desired outcome.
amount
string
required
Input amount to calculate. In VND for deposit orders, USD for withdrawal orders.
order_type
integer
required
Type of the order. 1 = Deposit, 2 = Withdrawal.
chain_id
integer
required
Blockchain network ID. See List Tokens.
token_address
string
required
Token contract address. See List Tokens.
reverse
boolean
required
If true, calculates the required input amount to achieve a desired outcome.
buffer
number
required
Optional buffer rate override (fractional). Effective buffer = max(override, configured). Example: 0.005 = 0.5%.