Missing events when querying V1 API #1152
Unanswered
lamolivier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Since I haven't be able to get help in the
dev-support
channel on Discord, I am posting here my issue.I am querying the API with the V1 Events endpoint (
https://api.opensea.io/api/v1/events) and it seems that there are some event misses.
I tried the following experiment (with asset_contract_address='0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D' and 'event_type' = 'cancelled'):
1 query with limit = 10 (query A)
2 queries with limit = 5 each, the second query uses the cursor from the first query (query B, C)
When comparing the events, I observed that the first 5 results from query A correspond to the 5 results from query B but the last 5 results from query A do not correspond the to 5 results from query C.
On the API website, it is indicated that the results are sorted by event_timestamp so I don't understand this situation.
Could you clarify and explain why this is happening ?
Thank you
ps: I am querying with the library aiohttp in Python.
ps2: We needed to get all the historical cancelled events for a specific collection, let's say the 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D collection. When querying the endpoints by using cursors, we spot that some cancelled events were missing at the end of the run. On the contrary, when querying by specifying the token_id, the API shows the missing cancelled event. Is it normal that we encounter this behaviour ?
Beta Was this translation helpful? Give feedback.
All reactions