Spark Orders
Get Spark orders for the last 10000 blocks.
curl -s --location --request GET \
"https://app.pangea.foundation/v1/api/spark/orders?chains=FUEL&from_block=-10000&to_block=latest" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
[
{
"chain": 9889,
"block_number": 5120033,
"block_hash": "0x1872d55c56a6a5528908926933495d11d3c31d7915396f01f542c73fe1ffdca3",
"block_timestamp": 1730199475,
"transaction_hash": "0x5157d63240c420fb5fbf70b6db4b34edd8f3988056868ca43d440f410041703b",
"transaction_index": 0,
"log_index": 0,
"market_id": "0x12a5f8666279f841e5900500297ce3c8bcf40103dd191c56dd3ec86f92b9217b",
"order_id": "0x51e7fb9b58c88e0e5f70bf33b023dff09628d474caacbf6830bc81ee11939412",
"event_type": "Trade",
"asset": null,
"amount": 20000,
"order_type": "Sell",
"price": 1000000000,
"user": "0x1ef9ec55122609502d923f8a7831f50ac05e02bdd640522a2ef18fd0f26d5fc7",
"limit_type": "GTC",
"order_matcher": "0x1ef9ec55122609502d923f8a7831f50ac05e02bdd640522a2ef18fd0f26d5fc7",
"seller_is_maker": false
}
...
]
Query Parameters
app.pangea.foundation/v1/api/spark/orders?chains=FUEL
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 addresses.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 market ids.address__in
/contractid__in
/identity__in
: This parameter is used to filter the data by a list of addresses.