Directories
¶
| Path | Synopsis |
|---|---|
|
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 brain is a generic, mode-agnostic bot-orchestration layer: it allocates a slot on a Catscope/Solpipe validator pipeline, then uploads whatever WASM bot images are requested of it over time (via Request), handing back a Bot object per upload -- the running instance's handshake, an on-disk log file of its stderr output, and plain Go channels for its stdin/stdout messaging.
|
Package brain is a generic, mode-agnostic bot-orchestration layer: it allocates a slot on a Catscope/Solpipe validator pipeline, then uploads whatever WASM bot images are requested of it over time (via Request), handing back a Bot object per upload -- the running instance's handshake, an on-disk log file of its stderr output, and plain Go channels for its stdin/stdout messaging. |
|
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. |
|
helloworldv1
Package helloworldv1 is the Go-side orchestrator for the helloworldv1 bot mode.
|
Package helloworldv1 is the Go-side orchestrator for the helloworldv1 bot mode. |
|
leveragedloopv1
Package leveragedloopv1 is the Go-side orchestrator for leveragedloopv1 -- Phase 2 of catscope-rust-bot's leveraged_yield_farming_plan.md: a single, conservative jitoSOL-collateral/USDC-debt leverage loop on Kamino, manual/explicit trigger only.
|
Package leveragedloopv1 is the Go-side orchestrator for leveragedloopv1 -- Phase 2 of catscope-rust-bot's leveraged_yield_farming_plan.md: a single, conservative jitoSOL-collateral/USDC-debt leverage loop on Kamino, manual/explicit trigger only. |
|
marketwatchv1
Package marketwatchv1 is the Go-side orchestrator for the marketwatchv1 bot mode -- forked from optimizer/brain/arbv1, stripped of every trading-specific piece (no wallet, no latency-file, no bundler tip wiring).
|
Package marketwatchv1 is the Go-side orchestrator for the marketwatchv1 bot mode -- forked from optimizer/brain/arbv1, stripped of every trading-specific piece (no wallet, no latency-file, no bundler tip wiring). |
|
multimodelv1
loopInstance runs in its own goroutine after Init completes.
|
loopInstance runs in its own goroutine after Init completes. |
|
perpfundingv1
Package perpfundingv1 is the Go-side orchestrator for the perpfundingv1 bot mode (inter-venue perpetual-futures funding-rate observation, Phoenix vs.
|
Package perpfundingv1 is the Go-side orchestrator for the perpfundingv1 bot mode (inter-venue perpetual-futures funding-rate observation, Phoenix vs. |
|
testperplatencyv1
Package testperplatencyv1 is the Go-side orchestrator for the testperplatencyv1 bot mode -- a real-transaction latency test, not a real trading strategy.
|
Package testperplatencyv1 is the Go-side orchestrator for the testperplatencyv1 bot mode -- a real-transaction latency test, not a real trading strategy. |
|
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. |
|
xstockshealthv1
Package xstockshealthv1 is the Go-side orchestrator for the xstockshealthv1 bot mode.
|
Package xstockshealthv1 is the Go-side orchestrator for the xstockshealthv1 bot mode. |
|
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 |
|
tmpverifymw
command
|
|
|
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
|
|
|
Package optimizer
|
Package optimizer |
|
Command hedgefund is the multi-agent hedge-fund system built on top of optimizer/harness.
|
Command hedgefund is the multi-agent hedge-fund system built on top of optimizer/harness. |
|
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 perpfundingv1's leveraged-yield-farming plan (see catscope-rust-bot/src/brain/leveraged_yield_farming_plan.md, "Phase 0") and leveragedloopv1's Time-Expanded DAG (see catscope-rust-bot/src/trader/TIME.md) have a real profitability signal for LST-collateral loops.
|
Package lstyield estimates real Solana liquid-staking-token (LST) staking yield from a periodic SOL-per-LST exchange-rate timeseries, so perpfundingv1's leveraged-yield-farming plan (see catscope-rust-bot/src/brain/leveraged_yield_farming_plan.md, "Phase 0") and leveragedloopv1's Time-Expanded DAG (see catscope-rust-bot/src/trader/TIME.md) have a real profitability signal for LST-collateral loops. |
|
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. |
|
multimodel
Package multimodel persists multimodelv1's cross-restart residual/ z-score warm-up snapshot into prefetch.db, one row per mint -- see schema.sql's doc comment for why one row/message per mint, not one big batch.
|
Package multimodel persists multimodelv1's cross-restart residual/ z-score warm-up snapshot into prefetch.db, one row per mint -- see schema.sql's doc comment for why one row/message per mint, not one big batch. |
|
obligation
Package obligation records this bot's own Solend/Kamino lending obligation state (deposits/borrows, across multimodelv1's pair/ directional/hawkes trade types) 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) 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.