Skip to content

Your current rate of TRX to the currency of your contract​

GET
/billing/rate

How much one TRX is worth in the currency of your contract right now. Every account has its own contract currency, so the pair and the rate are your own. The rate at the moment of at, for comparison with your records; a recorded charge keeps the rate of its own time. Requires the billing.read key permission and a postpaid account.

Authorizations​

ApiKeyAuth

API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.

Type
API Key (header: X-API-KEY)

Parameters​

Header Parameters

X-Real-IP*

An IP address from the key's whitelist. A request from an address outside the whitelist is rejected with 401.

Type
string
Required
Example"203.0.113.10"
Format
"ipv4"

Responses​

Your current rate.

application/json
JSON
{
  
"success": true,
  
"data": {
  
  
"asset": "string",
  
  
"pair": "string",
  
  
"rate": "0.331515333133553092",
  
  
"at": "string"
  
},
  
"timestamp": "string"
}

Playground​

Authorization
Headers

Samples​

Powered by VitePress OpenAPI