Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Track where Solana smart money goes in 24 hours with a free API, in Python

"Smart money is buying X" is one of the most repeated lines in crypto, and most of the time it means one wallet bought a lot. One wallet is not a signal. It can be a market maker, a treasury moving funds, or someone exiting a different position. This post pulls the coins tracked Solana traders bought most in the last 24 hours, splits real crowds from single wallets, then ranks the hot coins by…

The post reveals which Solana smart money acquired the most during the previous 24 hours, distinguishing large purchases from single wallets. Utilizing a free API with no authentication key and just 40 lines of Python, the author succeeded in creating copy.top. To begin, install the package using python3 -m venv .venv .venv/bin/pip install copytop.

The package is standard library only and does not require a key. The code was verified with copytop 0.1.1 on Python 3.14.5. The API has two endpoints, each posing a question: "where did the most dollars go?" and "what are top traders piling into, and are they still in?". Each coin is accompanied by the USD value of the dollars bought by tracked traders and the number of traders who bought it. The available time windows are 1h, 6h, 24h, or 7d, with a maximum of 10 coins.

In the first step, the code identifies coins with the highest dollar amount bought, separating crowds from single wallets. The MIN_TRADERS constant is set to 3, meaning one whale does not constitute a crowd. The biggest_buys function utilizes the client's money_flow method to fetch the top 10 coins bought in the last 24 hours by side "buy". It filters out coins bought by at least three traders and coins bought by fewer than three traders.

The second step determines which coins have the highest number of top traders still holding. The conviction function iterates through the coins returned by the hot_coins method with a 24-hour window and limit of 15. It excludes coins not on the Solana chain or lacking top traders. The function then calculates the net USD value and the number of top traders still holding, along with the coin's URL.

Finally, the results are sorted based on the ratio of top traders still holding to the total number of top traders and the net USD value.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

I animated the 23-year architecture domino effect from Google's 2003 GFS Patent

When juniors start learning Data Engineering, they usually jump straight into PySpark DataFrames and Delta tables without knowing why each layer was invented or what bottleneck killed the previous…

  • Google's 2003 GFS Patent sparked 23-year architecture domino effect
  • Apache Hadoop emerged in 2006 to address disk I/O bottlenecks
  • PySpark bridge enabled Python and SQL users to access Spark ecosystem

More from Thursday 26 November →