Actions27
- Payment Actions
- Payout Actions
- Swap Actions
- Common Actions
Swap → Get the Swap Rate
AI-generatedSummary
Fetches the current swap rate between two specified cryptocurrencies using the OxaPay API.
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.
Output shape
a JSON object containing the real-time swap rate details between the specified cryptocurrencies
Requires a valid General API Key credential. The response is the direct result of a POST request to '/general/swap/rate' with the from_currency and to_currency parameters. Errors are returned as standard node errors with descriptive messages.
Examples
Example 1: Get swap rate from BTC to ETH
Set 'From Currency' to 'BTC' and 'To Currency' to 'ETH'.