Ana içeriğe atla
GET
/
api
/
v1
/
orders
Siparişleri Listele
curl --request GET \
  --url https://api.example.com/api/v1/orders

Siparişleri Listele

Siparişlerinizin sayfalanmış listesini, en yeniden başlayarak döndürür.

Sorgu parametreleri

page
number
Sayfa numarası (varsayılan 1)
page_size
number
Sayfa başına sonuç (varsayılan 50, en fazla 100)
status
string
Duruma göre filtrele (örn. filled, pending, failed)
type
string
Sipariş türüne göre filtrele — energy veya bandwidth

Yanıt

orders (sipariş nesneleri dizisi), total, page ve page_size döndürür.

Örnek

curl "https://api.tronrental.com/v1/orders?type=energy&status=filled&page=1" \
  -H "X-API-Key: your_api_key"
Response
{
  "orders": [
    {
      "id": 12345,
      "type": "energy",
      "target_address": "TRecipientAddress...",
      "volume": 65000,
      "duration": "1h",
      "price_trx": "1.79",
      "status": "filled",
      "delegate_txid": "a1b2c3d4e5f6...",
      "undelegate_txid": null,
      "reclaim_at": null,
      "source": "api",
      "created_at": "2026-06-10T04:30:00Z"
    }
  ],
  "total": 42,
  "page": 1,
  "page_size": 50
}