Get Internal Account Order History
To use this feature, you must have the API key. Read here to view how to get our API key
Get order history by API key
GET https://api.tronsave.io/v2/orders
Rate limit: 15 requests per 1 second
Get many orders sorted by creation time. Default: return 10 newest orders
Query Parameters
Name
Type
Description
page
Integer
start from 0. Default:0
pageSize
Integer
default: 10
status
String
"Active" or "Completed", default get all
{
"error": false,
"message": "Success",
"data": {
"id": string, // id of order
"requester": string, // the address represents the order owner
"receiver": string, // the address of the resource that is received
"resourceAmount": number, // the amount of resource
"resourceType": string, // the resource type is "ENERGY" or "BANDWIDTH"
"remainAmount": number, // the remaining amount can be matched by the system,
"price": number, // price unit is equal to SUN
"durationSec": number, // rent duration, duration unit is equal to seconds
"status": string, // the order status, either Active or Completed
"orderType": string, // type of order is "NORMAL" or "EXTEND"
"allowPartialFill": boolean, //Allow the order to be filled partially or not
"payoutAmount": number, // Total payout of this order
"fulfilledPercent": number, //The percent that shows filling processing. 0-100
"delegates": [ //All matched delegates for this order
{
"delegator": string, // The address that delegates the resource for the target address
"amount": number, //The amount of resource was delegated
"txid": number // The transaction ID in on-chain
}[]
}
}[],
"total": number
}Example
Example Code
Last updated