Spark Orders

Get Spark orders for the last 10000 blocks.

curl -s --location --request GET \
    "https://fuel.beta.pangea.foundation/v1/api/spark/orders?chains=FUELTESTNET&from_block=-10000&to_block=latest" \
    --header "Accept: application/jsonstream" \
    --header "Accept-Encoding: gzip" --compressed \
    --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

[
  {
    "chain": 2147483646,
    "block_number": 11467338,
    "block_hash": "0xfb68d3d8c7a2f74c4a7017f549af7f94927397d7275558de82b037ea6d77df56",
    "block_timestamp": 1727442592,
    "transaction_hash": "0x9f0d48a8f9a1d65a5a4c73b9bdde5e43ff277fb277b3b077b8fe2a21708d105a",
    "transaction_index": 0,
    "log_index": 11,
    "market_id": "0xb1ed073b4dccbff48e2ac1b52a49454e6a2921aa54effee89eb958dc5ddbffbe",
    "order_id": "0xf537c9adf20c96aaf9870cbf45a52440e44bf830d647272b8238baa6bd9e8818",
    "event_type": "Open",
    "asset": "0x38e4ca985b22625fff93205e997bfc5cc8453a953da638ad297ca60a9f2600bc",
    "amount": 94970,
    "order_type": "Sell",
    "price": 65724423135,
    "user": "0x96b9b56e8861700b90ba99b62e155f222c957eb85f4d2ae9c51db523ea18b342",
    "limit_type": null,
    "order_matcher": null
  }
...
]

Query Parameters

fuel.beta.pangea.foundation/v1/api/spark/orders?chains=FUELTESTNET

  • chains: This parameter is used to filter the data by specific blockchain networks.
  • from_block: This parameter is used to filter the data by a starting block number.
  • to_block: This parameter is used to filter the data by an ending block number.
  • order_id__in: This parameter is used to filter the data by a list of order ids.
  • order_type__in: This parameter is used to filter the data by a list of order types (i.e. Buy, Sell).
  • event_type__in: This parameter is used to filter the data by a list of event types (i.e. Open, Cancel, Trade).
  • limit_type_in: This parameter is used to filter the data by a list of limit types (i.e. GTC, IOC, FOK)
  • user__in: This parameter is used to filter the data by a list of user accounts.
  • asset__in: This parameter is used to filter the data by a list of asset ids.
  • market_id__in: This parameter is used to filter the data by a list of asset market ids.
  • address__in / contractid__in / identity__in: This parameter is used to filter the data by a list of addresses.