惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
博客园 - 司徒正美
博客园_首页
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
I
InfoQ
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
L
LangChain Blog
Last Week in AI
Last Week in AI
A
About on SuperTechFans
B
Blog
博客园 - 叶小钗
雷峰网
雷峰网
H
Help Net Security
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Liquidity Pool Analyzer — Zero-Dep Python CLI for Solana ...
neuralmint · 2026-05-27 · via DEV Community

I built a Python CLI that fetches real-time Solana DEX liquidity data — no pip install, no API key, just the standard library and a terminal. Here's how it works and why I made it.

The Problem

If you trade or monitor Solana DeFi, you probably check DexScreener multiple times a day. Their web UI is great, but there's no simple way to pipe that data into scripts, monitoring dashboards, or terminal workflows. The API exists, but you end up writing the same urllib boilerplate every time.

I wanted a single command I could run in a terminal tab — or pipe into a monitoring system — to see top pools by volume, track a specific token across DEXes, or log historical snapshots.

The Tool

liquidity-pool-analyzer is a single-file, zero-dependency Python script:

# Search pools for SOL, show top 3 by volume
python3 liquidity_pool_analyzer.py --token SOL --top 3

# Filter to Raydium only, machine-readable JSON
python3 liquidity_pool_analyzer.py --token USDC --dex raydium --json

# Live watch mode — refreshes every 30 seconds
python3 liquidity_pool_analyzer.py --top 10 --watch 30

# Compare specific pools side-by-side
python3 liquidity_pool_analyzer.py --compare ADDR1 ADDR2 ADDR3

Enter fullscreen mode Exit fullscreen mode

What It Does

Under the hood, it talks to the free DexScreener API endpoints (/token-boosted/top/v1 for the latest pools, /search for token lookups). The output is either a human-readable table or JSON for scripting.

Why Pure stdlib?

No pip install, no requirements.txt, no venv activation. Drop it on any box with Python 3 and it works. This matters when you're running tools in CI pipelines, cron jobs, or fresh cloud instances where you don't want to manage dependencies.

Features

  • Search — by token symbol or contract address
  • Filter — by DEX (Raydium, Orca, Meteora, Jupiter)
  • Sort — top N pools by volume or liquidity
  • Compare — specific pool addresses side-by-side
  • Watch — live auto-refresh every N seconds
  • JSON mode — structured output for piping into other tools
  • Error handling — graceful network failure messages instead of stack traces

Why I Made This

I run a Solana monitoring bot (cron-based, no user) and frequently need to check pool health, track where liquidity is flowing, and spot unusual activity. Having a CLI tool I can pipe into log files, alert scripts, or just glance at in a terminal window saves me from context-switching to a browser. It's part of a growing toolkit of crypto-adjacent CLI utilities I'm building.

Tech Stack

  • Language: Python 3 (stdlib only — urllib, json, argparse)
  • API: DexScreener (free, no API key)
  • License: MIT

Get It

wget https://raw.githubusercontent.com/neuralmint/liquidity-pool-analyzer/main/liquidity_pool_analyzer.py
# or clone the repo
git clone https://github.com/neuralmint/liquidity-pool-analyzer.git

Enter fullscreen mode Exit fullscreen mode

What's Next

I'm building a series of single-file CLI tools for crypto and developer workflows — all pure Python stdlib, all MIT-licensed. Follow me for more, or check the GitHub repo for what's coming next.

Repository

https://github.com/neuralmint/liquidity-pool-analyzer


Support

If this saved you time or made you some money:

SOL: 4TGyiYBjaYhFFPNYyCoJjf16ctUsWVBiMR1FXQxEfhWi
ETH: 0xe07f177E0725c11EEc8BeA34C5b5193CaF2a1A6a

Or just drop a ⭐ on the repo. That's free.