For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Rate limit: 15 requests per 1 second.

Headers

Name
Type
Description

apikey*

String

TronSave API key tied to your internal account. See Authentication.

* Required.

Query parameters

Name
Type
Description

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:

Key
Value

address

TFwUFWr3QV376677Z8VWXxGUAMFSrq11111

resourceType

BANDWIDTH

minDelegateAmount

1000

durationSec

86400

Request examples

Next steps

Last updated