Estimate a swap
Changed onPrices one stablecoin swap in the business's Go Account without committing anything, for a client to call as the amount is typed. The rate is indicative; POST /money/swap_quotes fixes a firm one. The estimate runs the quote's checks and reports the first that fails as refusal_reason, except the provider's own balance, which only the quote checks.
Requires kyb_locked, and assets_buy to swap USDC out or assets_sell to swap USDT into USDC. A business whose swap money movement type is off is refused with 403 money_movement_type_disabled.
Request
- Base URLhttps://api.stablesea.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.stablesea.com/money/swap_estimate
- Authnone declared
Query parameters
The route to swap on (GET /money/swap_routes).
The asset sent.
The asset received. Must differ from from_asset.
The amount on amount_side: a positive decimal of at most six places, no separators.
Which amount is fixed: send (the default) fixes the amount of from_asset sent; receive fixes the amount of to_asset received, and the server solves the least amount sent that delivers it.
Response
OK
Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- info
api tag
customer-sessionadded
- info