Create order
Create order
POST
https://api.tronsave.io/v0/buy-energy
POST
https://api.tronsave.io/v0/buy-energy
Request params
resource_type
body
string
true
"ENERGY"
unit_price
body
number
true
Price unit is equal to sun.
allow_partial_fill
body
boolean
true
Allow the order to be filled partially or not
target_address
body
string
true
Resource receiving address
duration_millisec
body
number
true
The duration of the bought resource, time unit is equal to millisec.
tx_id
body
string
true
Transaction ID
signed_tx
body
SignedTransaction
true
Signed transaction, Note that it is a json object (signed_tx in Step 2)
only_create_when_fulfilled
body
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
body
Number
false
Only create order when the estimate price less than this value.
add_order_incomplete
body
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