API DOCUMENTATION

Exchange Rate API Documentation

The standard API uses header authentication, while Epusdt uses a dedicated URL token. A complete API key is shown only once when it is created.

Standard Authentication

Use either of the following request headers:

Authorization: Bearer rh_live_xxxxxxxxx
X-API-Key: rh_live_xxxxxxxxx

Get All Rates

GET https://2fa.hk/api/rates/v1/rates/cny?exchange=binance

The response includes prices (CNY value of one asset) and rates (amount of an asset purchasable with 1 CNY).

Get One Asset

GET https://2fa.hk/api/rates/v1/ticker/trx?exchange=okx&fiat=CNY

Epusdt-Compatible Endpoint

The account center displays a base URL for each key, for example:

https://2fa.hk/epusdt/binance/rhe_xxxxxxxxx

Epusdt requests:

https://2fa.hk/epusdt/binance/rhe_xxxxxxxxx/cny.json