RevokeCash / revoke.cash

❌ Revoke or update your token approvals
https://revoke.cash
MIT License
674 stars 238 forks source link

NFT price information #152

Closed rkalis closed 7 months ago

rkalis commented 1 year ago

We can use https://reservoir.tools/, which seems the best in terms of returned data and coverage. Pricing is not very low, but not unreasonably high either (many other APIs have much higher prices). We can also use Alchemy's NFT API, which would be nice because we already have an Alchemy subscription, and the NFT API seems reasonably priced. But the returned data is a bit less usable, and the coverage is also worse.

rkalis commented 10 months ago

Alchemy supports ETH, Polygon, Arbitrum, Optimism, Base, (Starknet). Reservoir also supports these chains + BNB, Zora, Linea, Avalanche, ZKSync, Polygon ZKEVM, Scroll.

With Alchemy we can request about 10M NFT price data points per month within our current plan. With Reservoir we need to pay $400/m for 8M data points per month (or $50/m for 1M data points).

So probably best way to go is use Alchemy for the chains it supports and Reservoir for the others.

rkalis commented 10 months ago

Alchemy's getFloorPrice API only works with Ethereum Mainnet.

On top of that, many of the prices they report are from weeks ago (!)

So it seems like Alchemy is not a feasible option.

We're looking into OpenSea's API now, and of course Reservoir Tools is still an option.