A prototype of scraping APY data of farms and LPs on Raydium with async I/O.
Only necessary Solana API calls that are relevant to APY scraping were rewritten in async version.
Fee APR and token price were retrieved from Raydium API endpoint (api.raydium.io).
The output includes:
- LP share supply and LP share price.
- Token price.
- The amount of each token in the LP, i.e. LP composition.
- Liquidity value.
- Staking LP APR.
- Fee APR (i.e. 1 Yr Fee / Liquidity).
Feedback is welcomed.
python driver.py