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.
string
required
Input amount to calculate. In VND for deposit orders, USD for withdrawal orders.
integer
required
Type of the order. 1 = Deposit, 2 = Withdrawal.
integer
required
Blockchain network ID. See List Tokens.
string
required
Token contract address. See List Tokens.
boolean
required
If true, calculates the required input amount to achieve a desired outcome.
number
required
Optional buffer rate override (fractional). Effective buffer = max(override, configured). Example: 0.005 = 0.5%.