Swap Rate

This endpoint allows you to fetch real-time swap rates for cryptocurrency pairs supported by OxaPay. It’s ideal for applications that need the latest cryptocurrency prices to ensure accurate and timely calculations.

post
Header parameters
general_api_keystringRequired

Your General API Key for authentication and authorization.

Content-TypestringRequiredDefault: application/json
Body
from_currencystringRequired

Specify the currency symbol you want to swap from.

Example: BTC
to_currencystringRequired

Specify the currency symbol you want to swap to.

Example: USDT
Responses
chevron-right
200

Successful operation

application/json
messagestringOptional

A message containing additional information about the result of the request.

statusintegerOptional

The status of the request response. Typically provided as a numeric code (e.g., 200 for success or other codes for errors).

versionstringOptional

The version of the API being used.

post
/general/swap/rate

Last updated