opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

How to get latest orders for a particular collections?

Open dpenacton opened this issue 4 years ago • 5 comments

dpenacton avatar Mar 21 '22 06:03 dpenacton

Can you elaborate a little more on what you would like to do exactly? Because with the collection stats you can view a lot of fata.

esteban-OpenSea avatar Apr 01 '22 03:04 esteban-OpenSea

use orders endpoint (https://docs.opensea.io/reference/retrieving-orders)

velmoorthi avatar Apr 01 '22 04:04 velmoorthi

use orders endpoint (https://docs.opensea.io/reference/retrieving-orders)

this doesnt simply take collection slug like https://docs.opensea.io/reference/getting-assets

also it does takes contract_address but that also have to be supplied with list of token_ids refer(https://i.imgur.com/NsvTP2A.png)

also i don't think it will take all 10k or more token ids together

just need some ability to get latest orders for a particular collection just like i get for asses (would be awesome if i can simply pass coll slug and get the orders)

dpenacton avatar Apr 02 '22 19:04 dpenacton

+1

scald avatar May 10 '22 13:05 scald

Pagination past 10k is not yet supported

I will go ahead and close this issue since it's a duplicate. Please follow this ticket for the latest updates on this issue: https://github.com/ProjectOpenSea/opensea-js/issues/483

esteban-OpenSea avatar Jun 16 '22 19:06 esteban-OpenSea