API v2 - Documentation
Quote. Order. Track.
Ship energy in minutes.
Public API v2 for Energy, Bandwidth, flash top-ups, and auto-refill. From zero to first delegation in minutes.
# 1. Get a quote
curl https://api.profeex.io/api/v2/energy/quote \
-H "X-API-Key: $API_KEY" \
-G -d "count=65000¤cy=TRX"
# 2. Buy energy
curl -X POST https://api.profeex.io/api/v2/energy/orders \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "TXa...", "count": 65000, "currency": "TRX"}'
# 3. Check order status
curl https://api.profeex.io/api/v2/orders/$ORDER_ID \
-H "X-API-Key: $API_KEY"Get a live price for 1-hour Energy (TRX or USDT)
Query
?count=65000¤cy=TRX
Response
{ "count": 65000, "price_sun": "42", "amount": "2.73", "currency": "TRX" }Buy Energy and delegate it to a TRON address
Request body
{ "address": "TXa...", "count": 65000, "currency": "TRX" }Response
{ "order_id": "a1b2c3d4-...", "status": "pending", "amount": "2.73", "currency": "TRX" }Check order status and on-chain transaction id
Response
{ "order_id": "a1b2c3d4-...", "status": "completed", "txid": "abc123...", "count": 65000 }Check TRX / USDT balances and deposit address
Response
{ "balances": { "trx": "1250.5", "usdt": "420.0" }, "deposit_address": "TXa..." }Orders return immediately as pending, then settle on-chain. Poll GET /api/v2/orders/:order_id until status is completed - typically within a minute.
GET /api/v2/orders/a1b2c3d4-...
{
"order_id": "a1b2c3d4-...",
"status": "completed",
"address": "TXa...",
"count": 65000,
"amount": "2.73",
"currency": "TRX",
"txid": "abc123..."
}Structured errors
for every failure mode
| Code | HTTP | Description |
|---|---|---|
| E_RATE_LIMIT | 429 | Too many requests. Retry after the indicated delay. |
| E_INSUFFICIENT_BALANCE | 402 | Not enough TRX or USDT on the account. |
| E_VALIDATION | 422 | Invalid request parameters. |
| E_NOT_ACTIVATED | 428 | Address is not activated. Activate first or set activate: true on Energy orders. |
| E_TEMP_UNAVAILABLE | 503 | Temporary capacity issue. Retry in 30 seconds. |
API specs
& limits
≤ 10s
API response time (avg)
excl. client network
10 req/s
Rate limit
per API key
3-60s
On-chain delegation
typical, network-dependent
Free
API call cost
pay only for energy
All requests require an API key in the X-API-Key header. Get your key from the Profeex dashboard.
Ship your first delegation
in under 30 minutes
API key, sandbox, typed SDKs - most teams integrate in one session. Failed or incomplete requests follow your commercial agreement and the published SLA.