Swap Request
Last updated
Last updated
This endpoint allows you to swap your account assets. You can swap one cryptocurrency for another instantly at the current market rate. To see the supported swap options, refer to the endpoint. Whether you're swapping Bitcoin for Tether, Tether for Litecoin, or any other supported combination, this feature ensures secure and accurate asset swaps. Swaps are processed in real-time to provide you with the best available rates.
POST
https://api.oxapay.com/v1/general/swap
You must include the General API Key in the request header to authenticate your access to the API.
general_api_key*
string
Your General API Key for authentication and authorization.
from_currency*
string
to_currency*
string
amount*
decimal
Specify the amount of currency you want to swap.
These example code snippets demonstrate how to request the "Swap Request" endpoint using different programming languages. You can customize the data parameters according to your specific requirements.
The response example above is provided to help you understand the format and structure of the response. If you have any further questions or need assistance, please feel free to contact to your account manager.
Specify the you want to swap from.
Specify the you want to swap to.
Please note that a successful request will return status 200. In case of any issues or validation problems, refer to the corresponding for further details.