> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tronrental.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Prices

> Get current energy and bandwidth prices

## Get Prices

Returns current market prices for energy and bandwidth.

**This endpoint is public — no authentication required.**

### Response

<ResponseField name="energy_trx" type="object">
  Energy price in TRX for 65,000 units, keyed by duration (`1h`)
</ResponseField>

<ResponseField name="energy_sun" type="object">
  Energy price in SUN per 1 unit, keyed by duration (`1h`)
</ResponseField>

<ResponseField name="energy_usd" type="object">
  Energy price in USD for 65,000 units, keyed by duration (`1h`)
</ResponseField>

<ResponseField name="energy_volume" type="number">
  Volume used for energy price calculation (65,000)
</ResponseField>

<ResponseField name="bandwidth_trx" type="object">
  Bandwidth price in TRX for 350 units, keyed by duration (`1h`)
</ResponseField>

<ResponseField name="bandwidth_sun" type="object">
  Bandwidth price in SUN per 1 unit, keyed by duration (`1h`)
</ResponseField>

<ResponseField name="bandwidth_usd" type="object">
  Bandwidth price in USD for 350 units, keyed by duration (`1h`)
</ResponseField>

<ResponseField name="bandwidth_volume" type="number">
  Volume used for bandwidth price calculation (350)
</ResponseField>

<ResponseField name="trx_usd_rate" type="string">
  Current TRX/USD exchange rate
</ResponseField>

<ResponseField name="burn_cost_trx" type="string">
  Cost of burning TRX for 65,000 energy (without rental)
</ResponseField>

<ResponseField name="burn_cost_usd" type="string">
  Same burn cost in USD
</ResponseField>

<ResponseField name="savings_percent" type="string">
  Percentage saved by renting vs burning
</ResponseField>

### Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.tronrental.com/v1/prices
  ```

  ```python Python theme={null}
  import requests
  resp = requests.get("https://api.tronrental.com/v1/prices")
  print(resp.json())
  ```

  ```javascript JavaScript theme={null}
  const resp = await fetch("https://api.tronrental.com/v1/prices");
  const data = await resp.json();
  console.log(data);
  ```
</CodeGroup>

<Info>
  Response values below are examples. Actual prices update in real-time based on market conditions.
</Info>

```json Response theme={null}
{
  "energy_trx": {"1h": "2.32"},
  "energy_sun": {"1h": "35.68"},
  "energy_usd": {"1h": "0.69"},
  "energy_volume": 65000,
  "bandwidth_trx": {"1h": "0.14"},
  "bandwidth_sun": {"1h": "400.00"},
  "bandwidth_usd": {"1h": "0.04"},
  "bandwidth_volume": 350,
  "trx_usd_rate": "0.297",
  "burn_cost_trx": "6.5",
  "burn_cost_usd": "1.93",
  "savings_percent": "64.3",
  "note": "Energy price is for 65,000 units in TRX"
}
```
