Get history

To use this feature you must have the API key. Read here to view how to get our API key.

History

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

GET https://api.tronsave.io/v0/fast-charge-order-history

Get your history by API key

Rate limit: 1 request per 2 seconds

Headers

Name
Type
Description

apikey*

String

Tronsave API key that present for the internal account

Query Parameters

Name
Type
Description

from

String

Start time in milliseconds

to

String

End time in milliseconds

page

Integer

start from 0. Default:0

pageSize

Integer

default: 10

{
    "total": number,
    "results": [
        {
            "_id": string, // id of order
            "receiver": string, // the address that is received resource 
            "resource_type": string, // the amount type is "ENERGY",
            "amount": number, // the amount of resource
            "options": {
                "deadline": number, //Maximum matching time in seconds. Exceeding it cancels the order and refunds.
                "max_price_accept": number, //Only create an order when the estimated price is less than this value.
            },
            "charge_amount": number, // Total payout estimated of this order
            "status": string, // status of this order
            "requester": string, // the address represents for order owner
            "unit_price": number, // price unit is equal to sun
            "is_matched": boolean, // matched status of this order
            "charge_duration_sec": number, // rent duration, duration unit is equal to second
            "delegate_amount_in_sun": number //The amount of resource was delegated
            "delegate_txid": string, //on-chain delegate transaction
            "delegator": string, // The address that delegates resource for the target address
            "paid_amount_actual": number, //Actual amount TRX to be paid for this order
            "repay_amount": number, //The refunded amount is directly added to the internal account.
            ....
        }
    ]
}

Example

GET https://api.tronsave.io/v0/fast-charge-order-history?from=1732066773000&to=1732073973000&page=0&pageSize=10

Last updated