Actions27
- Payment Actions
- Payout Actions
- Swap Actions
- Common Actions
Swap → Calculate a Swap
AI-generatedSummary
Calculate the estimated amount of cryptocurrency you will receive when swapping a specified amount from one currency to another using your OxaPay account.
Inputs
- From Currency (required) — Specify the currency symbol you want to swap from.
- To Currency (required) — Specify the currency symbol you want to swap to.
- Amount (required) — Specify the amount of currency you want to swap.
Output shape
a JSON object representing the calculated swap result as returned by the OxaPay API.
The response is obtained from the OxaPay /general/swap/calculate endpoint and includes the quote for converting the specified amount of the from-currency to the to-currency. Errors are surfaced as node errors unless 'Continue On Fail' is enabled.