Hello everyone! I’m building a crypto api which al...
# share-what-you-are-working-on
Hello everyone! I’m building a crypto api which allows you to check historical on-chain ethereum data. The website is: eisberg.gg. I’ll create a thread, and add an example as a comment for those interested in trying it out. Would be great to hear your thoughts and suggestions. Currently struggling to get users to test it out, and give feedback. So suggestions here would also be welcomed 🙂
If you wanted to check the pool prices for WETH/USDC: Python:
Copy code
r= requests.get('<https://api.eisberg.gg/pair_prices/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48>', params={'start_block':15033530, 'end_block':15041754, 'auth_key':'$YOUR_API_KEY'})
Copy code
curl "<https://api.eisberg.gg/pair_prices/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?start_block=15033530&end_block=15041754&auth_key=$YOUR_API_KEY>"
This endpoint would return the end of block prices for all Uniswap pools for WETH and USDC, between the above blocks. Please note, you’d have to replace the $YOUR_API_KEY part of both examples with your own requested key. Have a try and let me know