Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

AL-THE-BOT-FATHER/pump_swap_market_cap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PumpSwapMarketCap

A Python module for discovering the highest-liquidity trading pool, parsing on-chain AMM data, and computing token price & market cap in SOL and USD for a Pump.Swap AMM Pool.

Features

  • Scan all PumpSwap AMM pools to pick the one with the most liquidity for your token vs. WSOL

  • Decode on-chain AMM account data into structured PoolKeys

  • Fetch live token & SOL reserves directly from the pool

  • Retrieve current SOL→USD price from the DIA Oracle

  • Calculate:

    • Token price in SOL
    • Token price in USD
    • Token market cap in USD
  • Dataclasses

    • PoolKeys — holds all the on-chain pool account addresses and mints
    • MarketCapData — cleanly returns token_price_sol, token_price_usd, and market_cap_usd from get_market_cap()

Releases

No releases published

Packages

No packages published

Languages