Estimate of TRX

Estimate of TRX

POST https://api.tronsave.io/v0/estimate-trx

Get many orders sorted by created time. Default: return 10 newest orders

Request params

Field
Position
Type
Required
Description

amount

body

number

true

The number of resources

buy_energy_type

body

string, number

true

"FAST", "MEDIUM", "SLOW" or number

duration_millisec

body

number

true

The duration of the bought resource, time unit is equal to millisecond.

request_address

body

string

false

The address of requester.

target_address

body

string

false

The address of receiver resource.

is_partial

body

boolean

false

Allow the order to be filled partially or not.

Request params example

{
      "amount": 100000,
      "buy_energy_type": "MEDIUM",
      "duration_millisec": 259200000
 }

Responses

Field
Type
Required
Description

unit_price

number

true

price in SUN of energy that fit with your buy_energy_type

duration_millisec

number

true

available_energy

number

true

total amount available ernery on Tronsave market that match with unit_price

estimate_trx

number

true

estimate total trx value will pay for buy all available_energy with price is unit_price in duration_millisec

{
    "unit_price": 45,
    "duration_millisec": 259200000,
    "available_energy": 4298470,
     "estimate_trx": 13500000,
}

Last updated