SDK

Python SDK for Yoriichi. Read DEX data, analyze signals, and see what others cannot.

pip install yoriichi

Basic Usage

from yoriichi import read
from yoriichi.models import DexToken

token = DexToken(
    token_mint="YoriXyz...pump",
    symbol="YORI",
    dex_volume_24h=800_000.0,
    dex_volume_7d_avg=400_000.0,
    liquidity_usd=500_000.0,
    unique_traders_24h=600,
    buy_sell_ratio=1.6,
    pool_count=6,
)

report = read(token)

print(report.phase)           # ASCENDANT
print(report.breathing_score) # 88.4
print(report.yoriichi_read)

Batch Processing

from yoriichi import read_batch, strongest_dex

tokens = [token1, token2, token3]

# Read all tokens
reports = read_batch(tokens)

for report in reports:
    print(f"{report.symbol}: {report.phase} ({report.breathing_score})")

# Find strongest DEX signal
best = strongest_dex(tokens)
print(f"Strongest: {best.symbol} — {best.phase}")

Dashboard Integration

# React dashboard updates every 4 seconds
# Dark orange/red DEX theme

cd dashboard
npm install
npm run dev

# Opens at localhost:3000
# Real-time signal updates
# Phase visualizations

API Reference

DexToken

Token data model

token_mintToken mint address
symbolToken symbol
dex_volume_24h24h DEX volume in USD
liquidity_usdTotal liquidity in USD
unique_traders_24hUnique wallets trading
pool_countActive pool count
DexReport

Analysis output

.phaseDORMANT | AWAKENING | SLAYING | ASCENDANT
.breathing_score0-100 weighted score
.is_activeBoolean activity status
.yoriichi_readNarrative interpretation
Functions

Core functions

read(token)Analyze single token
read_batch(tokens)Analyze multiple tokens
strongest_dex(tokens)Find highest signal

Try it live in the Lab

Experiment with signals interactively

Open Lab