OxaPay icon

OxaPay

OxaPay Crypto Payment gateway

Swap → Get the Swap Rate

AI-generated

Summary

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'.

Links

Discussion