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
amount
body
number
true
The number of resources
buy_energy_type
body
string, number
true
"FAST", "MEDIUM", "SLOW" or number:
-"FAST" : If market ready to fill = 100%, FAST = MEDIUM. If market ready to fill < 100%, FAST = MEDIUM + 10. If market ready to fill = 0%, FAST = SLOW + 20.
-"MEDIUM" : The lowest price for the maximum market fill for this order. If market ready to fill = 0%, MEDIUM = SLOW + 10.
-"SLOW": The lowest price that can be set for this order.
-If price is number, price unit is equal to sun
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
Responses
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
Last updated