Get Order Book
Retrieve the current Energy or Bandwidth order book with available offers and prices, authenticated with a TronSave API key.
Retrieve the current Energy and Bandwidth order book with the available offers and their prices. Use it to inspect resource pricing and depth before placing an order.
GET https://api.tronsave.io/v2/order-book
Headers
* Required.
Query parameters
address
String
Resource receiver address.
minDelegateAmount
Number
The minimum amount of Energy delegated from one provider.
durationSec
Number
Order duration in seconds.
resourceType
String
"ENERGY" or "BANDWIDTH". Default: ENERGY.
Response
Each entry in data describes one price level: price is the price in SUN and availableResourceAmount is the resource amount available at that price.
{
"error": false,
"message": "Success",
"data": [
{
"price": 602,
"availableResourceAmount": 1179
},
{
"price": 650,
"availableResourceAmount": 2409
},
{
"price": 700,
"availableResourceAmount": 5395
},
{
"price": 701,
"availableResourceAmount": 6613
}
]
}Example
Query parameters:
address
TFwUFWr3QV376677Z8VWXxGUAMFSrq11111
resourceType
BANDWIDTH
minDelegateAmount
1000
durationSec
86400
Request examples
Next steps
Estimate TRX for a resource amount and rental duration.
Buy Energy (Create Order) once you have picked a price level.
Learn the difference between Energy and Bandwidth.
Last updated