Create order
Create order
POST
https://api.tronsave.io/v0/buy-energy
POST
https://api.tronsave.io/v0/buy-energy
Rate limit: 15 requests per 1 second
Request params
resource_type
string
true
"ENERGY"
unit_price
number
true
Price unit is equal to sun.
allow_partial_fill
boolean
true
Allow the order to be filled partially or not
target_address
string
true
Resource receiving address
duration_millisec
number
true
The duration of the bought resource, time unit is equal to millisec.
tx_id
string
true
Transaction ID
signed_tx
SignedTransaction
true
only_create_when_fulfilled
Boolean
false
[true]=> order only create when it can be fulfilled
[false] => order will create even it can not be fulfilled
Default value: false
max_price_accepted
Number
false
Only create order when the estimate price less than this value.
add_order_incomplete
Boolean
false
[true]=> order only create when there has no same parameters order is not complete in order list
[false] => order will create even there has no same parameters order is not complete in order list
Default value: false
Request params example
Responses
Last updated