Spark Orders

Get Spark orders for blocks 7000000 to 7010000.

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

Response

[
  ...
  {
    "chain": 9889,
    "block_number": 7008781,
    "block_hash": "0xc3b46412bdd5a5e08f6837b35c2e279a45e1dfc84878a69d6210bc09bc90d28f",
    "block_timestamp": 1732103475,
    "transaction_hash": "0x356d2a94e7dc2589a6ddd9d107c4a5d120b6708c4f1e0eed21463d2b85ad80b7",
    "transaction_index": 1,
    "log_index": 1,
    "market_id": "0xfe2c524ad8e088f33d232a45dbea43e792861640b71aa1814b30506bf8430ee5",
    "order_id": "0x3d46ffc1d2be58e6884cb6f4c2e1f35c6ce1e4657e8693ff349f3189e5ee1e14",
    "event_type": "Cancel",
    "asset": null,
    "amount": null,
    "order_type": null,
    "price": null,
    "user": null,
    "limit_type": null,
    "order_matcher": null,
    "seller_is_maker": null
  }
]

Query Parameters

app.pangea.foundation/v1/api/spark/orders?chains=FUEL

  • chains: Filters the data by specific blockchain networks.
  • from_block: Filters the data by a starting block number.
  • to_block: Filters the data by an ending block number.
  • order_id__in: Filters the data by a list of order_id.
  • order_type__in: Filters the data by a list of order_type (Buy, Sell).
  • event_type__in: Filters the data by a list of event_type (Open, Cancel, Trade).
  • limit_type__in: Filters the data by a list of limit_type (GTC, IOC, FOK)
  • user__in: Filters the data by a list of user addresses.
  • asset__in: Filters the data by a list of asset_id.
  • market_id__in: Filters the data by a list of market_id.
  • address__in / contractid__in / identity__in: Filters the data by a list of addresses.