Exchange Request
Last updated
Last updated
Effortlessly initiate currency conversions for a specific amount from one cryptocurrency to another in real-time, receiving your desired currency at the prevailing global market price. To explore the available conversion options, refer to the exchange pairs endpoint, which provides a comprehensive list of supported currency pairs for seamless transactions. Whether you're swapping Bitcoin for Tether or Tether for Litecoin, this feature ensures quick and accurate conversions at the current market rates.
POST
https://api.oxapay.com/exchange/request
To use this endpoint, you need to make a POST request to the specified URL with the required parameters. The typical parameters for this request include:
Name | Type | Description |
---|---|---|
Please ensure that you provide the necessary parameters accurately in the request to create a exchange request successfully.
Please note that a successful request will return a result code 100. In case of any issues or validation problems, refer to the corresponding result codes for further details.
Replace YOUR_GENERAL_API_KEY
with your actual API key and adjust the parameters as needed for your specific use case.
key*
string
Your general API key for authentication and authorization.
toCurrency*
string
The currency code of the cryptocurrency you want to convert to
fromCurrency*
string
The currency code of the cryptocurrency you want to convert from
amount*
decimal
The amount of cryptocurrency to you want to exchange