Directories
¶
| Path | Synopsis |
|---|---|
|
brain
|
|
|
arbv1
Package arbv1 is the Go-side orchestrator for the arbv1 (arbitrage v1) bot mode.
|
Package arbv1 is the Go-side orchestrator for the arbv1 (arbitrage v1) bot mode. |
|
testperpv1
Package testperpv1 is the Go-side orchestrator for the testperpv1 bot mode -- a real-transaction smoke test, not a real trading strategy.
|
Package testperpv1 is the Go-side orchestrator for the testperpv1 bot mode -- a real-transaction smoke test, not a real trading strategy. |
|
Package bundler defines account bundling schemes
|
Package bundler defines account bundling schemes |
|
astralane
Package astralane wraps bundler functionality
|
Package astralane wraps bundler functionality |
|
jito
Package jito wraps jito
|
Package jito wraps jito |
|
examples
|
|
|
eino-ollama-agent
command
Command eino-ollama-agent is a minimal example of building a tool-calling agent with github.com/cloudwego/eino.
|
Command eino-ollama-agent is a minimal example of building a tool-calling agent with github.com/cloudwego/eino. |
|
telnet
command
|
|
|
Command harness is a minimal tool-calling agent, built the same way as go-wiki/examples/eino-ollama-agent/main.go (github.com/cloudwego/eino's prebuilt ReAct agent: call the model -> if it asked for a tool, run the tool and feed the result back -> repeat until the model answers without a tool call), but with walletTools() (see tools.go) in place of that example's demoTools().
|
Command harness is a minimal tool-calling agent, built the same way as go-wiki/examples/eino-ollama-agent/main.go (github.com/cloudwego/eino's prebuilt ReAct agent: call the model -> if it asked for a tool, run the tool and feed the result back -> repeat until the model answers without a tool call), but with walletTools() (see tools.go) in place of that example's demoTools(). |
|
Package portfolio persists bot balance snapshots (each tagged with the token's USD price at capture time) to a local SQLite database, and computes PnL from them.
|
Package portfolio persists bot balance snapshots (each tagged with the token's USD price at capture time) to a local SQLite database, and computes PnL from them. |
|
Package prefetch builds wasm bots preloaded with necessary information
|
Package prefetch builds wasm bots preloaded with necessary information |
|
alt
Package alt persists Address Lookup Table contents to prefetch.db -- see cmd/alt.go, the only writer.
|
Package alt persists Address Lookup Table contents to prefetch.db -- see cmd/alt.go, the only writer. |
|
drift
Package drift preloads Drift v2 SpotMarket accounts (global market data only -- User, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load, and PerpMarket is skipped since it has no mint/vault of its own -- perp markets settle in the program's quote asset).
|
Package drift preloads Drift v2 SpotMarket accounts (global market data only -- User, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load, and PerpMarket is skipped since it has no mint/vault of its own -- perp markets settle in the program's quote asset). |
|
jet
Package jet preloads Jet Protocol V1 lending pool reserve accounts (global market data only -- Obligation, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load).
|
Package jet preloads Jet Protocol V1 lending pool reserve accounts (global market data only -- Obligation, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load). |
|
kamino
Package kamino preloads Kamino Lending reserve accounts.
|
Package kamino preloads Kamino Lending reserve accounts. |
|
liquidity
Package liquidity generates router.json for the catscope-rust-bot build.
|
Package liquidity generates router.json for the catscope-rust-bot build. |
|
lst-yield
Package lstyield estimates real Solana liquid-staking-token (LST) staking yield from a periodic SOL-per-LST exchange-rate timeseries, so an LST-collateral leverage-loop strategy (originally built as leveragedloopv1's Time-Expanded DAG, since removed) has a real profitability signal to work from.
|
Package lstyield estimates real Solana liquid-staking-token (LST) staking yield from a periodic SOL-per-LST exchange-rate timeseries, so an LST-collateral leverage-loop strategy (originally built as leveragedloopv1's Time-Expanded DAG, since removed) has a real profitability signal to work from. |
|
marginfi
Package marginfi preloads marginfi-v2 Bank accounts (global market data only -- MarginfiAccount, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load).
|
Package marginfi preloads marginfi-v2 Bank accounts (global market data only -- MarginfiAccount, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load). |
|
mintinfo
Package mintinfo provides a small shared cache of SPL Mint decimals, populated opportunistically by every prefetcher that discovers a mint (Orca, Raydium AMM/CPMM/CLMM) so a mint referenced by many pools (USDC, wSOL) is only ever fetched once per run, not once per pool.
|
Package mintinfo provides a small shared cache of SPL Mint decimals, populated opportunistically by every prefetcher that discovers a mint (Orca, Raydium AMM/CPMM/CLMM) so a mint referenced by many pools (USDC, wSOL) is only ever fetched once per run, not once per pool. |
|
obligation
Package obligation records this bot's own Solend/Kamino lending obligation state (deposits/borrows, across multimodelv1's pair/ directional/hawkes trade types, since removed) into prefetch.db, the same skip-if-unchanged shape optimizer/prefetch/pnl uses for wallet token balances -- see this package's schema.sql for the real motivation (there was previously no way to see this state without manually deriving each obligation's address and parsing its raw account bytes).
|
Package obligation records this bot's own Solend/Kamino lending obligation state (deposits/borrows, across multimodelv1's pair/ directional/hawkes trade types, since removed) into prefetch.db, the same skip-if-unchanged shape optimizer/prefetch/pnl uses for wallet token balances -- see this package's schema.sql for the real motivation (there was previously no way to see this state without manually deriving each obligation's address and parsing its raw account bytes). |
|
orca
Package orca preloads Orca Whirlpool trading pools.
|
Package orca preloads Orca Whirlpool trading pools. |
|
phoenix
Package phoenix preloads Phoenix perpetuals market identity (symbol, asset_id, market_account) into prefetch.db.
|
Package phoenix preloads Phoenix perpetuals market identity (symbol, asset_id, market_account) into prefetch.db. |
|
pnl
Package pnl records a trading wallet's token position history into prefetch.db and computes mark-to-market PnL from it: the market value of a position at its earliest known snapshot vs.
|
Package pnl records a trading wallet's token position history into prefetch.db and computes mark-to-market PnL from it: the market value of a position at its earliest known snapshot vs. |
|
price-feed
Package pricefeed polls the Jupiter Price API v3 for a configurable list of token mints and publishes price updates on a channel.
|
Package pricefeed polls the Jupiter Price API v3 for a configurable list of token mints and publishes price updates on a channel. |
|
pumpfun
Package pumpfun preloads Pump.fun bonding-curve state.
|
Package pumpfun preloads Pump.fun bonding-curve state. |
|
pumpswap
Package pumpswap preloads PumpSwap AMM pool state.
|
Package pumpswap preloads PumpSwap AMM pool state. |
|
raydium
Package raydium preloads Raydium AMM v4 trading pools.
|
Package raydium preloads Raydium AMM v4 trading pools. |
|
raydium/amm
Package amm tracks amm
|
Package amm tracks amm |
|
raydium/clmm
Package clmm tracks clmm
|
Package clmm tracks clmm |
|
raydium/cpmm
Package cpmm tracks cpmm
|
Package cpmm tracks cpmm |
|
sanctum
Package sanctum preloads Sanctum S Controller LST pool state.
|
Package sanctum preloads Sanctum S Controller LST pool state. |
|
solend
Package solend preloads Solend/Save token-lending reserve accounts (global market data only -- Obligation, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load).
|
Package solend preloads Solend/Save token-lending reserve accounts (global market data only -- Obligation, the per-wallet position account, is not fetched here since there is no bounded set to bulk-load). |
|
trading
Package trading holds common structs
|
Package trading holds common structs |
|
Package shell sets up a telnet endpoint
|
Package shell sets up a telnet endpoint |
|
Package store persists prefetched on-chain data to a local SQLite database.
|
Package store persists prefetched on-chain data to a local SQLite database. |
|
Package util contains generic functions.
|
Package util contains generic functions. |
Click to show internal directories.
Click to hide internal directories.