trade-v2
Offline-simulated quote against new-contract pools
Offline-simulated quote against new-contract pools
get/v2/trade/quote
Request
- Base URLhttps://swap-backend.stage.defi.ovh.gala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
tokenInstring required
Example:GALA
Input token class key or SDK trading symbol.
tokenOutstring required
Example:GUSDC
Output token class key or SDK trading symbol.
amountInstring
Example:100
Input amount as a decimal string.
amountOutstring
Example:25.5
Output amount as a decimal string.
fee0 | 500 | 3000 | 10000
Example:3000
Fee tier in basis points.
Response
Example response
{
"status": 200,
"message": "Response fetched successfully",
"data": {
"contractVersion": "v2",
"fee": 3000,
"amountIn": "100",
"amountOut": "99.7",
"currentSqrtPrice": "123.45",
"newSqrtPrice": "124.01",
"newTick": 1234,
"tradingFees": "0.3",
"protocolFees": "0.1",
"totalFees": "0.4",
"feeTokenSymbol": "GALA",
"token0Symbol": "GALA",
"token1Symbol": "GUSDC",
"tokenInIsToken0": true
}
}Changes
No recorded changes to this operation across all 1 revision of this API.