Build trading bots, DEX aggregators, and DeFi apps with a fraction of the code. Access every major Cardano DEX through one powerful Python interface. No complex integrations, no switching between APIs - just clean, efficient code that gets the job done.
from charli3_dendrite import GeniusYieldOrderState, MinswapCPPState, SundaeSwapCPPState
from charli3_dendrite.backend import set_backend
from charli3_dendrite.backend.blockfrost import BlockFrostBackend
# Configure blockchain access
set_backend(BlockFrostBackend("your-project-id"))
# Support multiple DEXs in one go
dexs = [
GeniusYieldOrderState,
MinswapCPPState,
SundaeSwapCPPState
]
# Track pools across DEXs
pool_data = {}
for dex in dexs:
selector = dex.pool_selector()
pools = backend.get_pool_utxos(
limit=1000,
historical=False,
**selector.model_dump()
)
for pool in pools:
data = dex.model_validate(pool.model_dump())
pool_data[data.pool_id] = {
"tvl": data.tvl,
"price": data.price,
"dex": dex.__name__
}
Charli3 Dendrite supports a growing list of Cardano DEXs, with more integrations on the way.
Discover a suite of features designed to simplify processes, enhance efficiency, and scale with your goals.
Seamlessly integrate with all major Cardano DEXs through a single interface
Fetch and analyze liquidity pool data across multiple DEXs in real-time
Execute cross-DEX token swaps with just a few lines of code
Flexible architecture that grows with your application's needs