Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Axiom Arbitrage Trading Bot

Production-grade TypeScript arbitrage scanner and execution framework for Solana, built around the Axiom on-chain trading terminal and Jupiter aggregator routing. Detects cross-DEX, triangular, and CEX-DEX spread opportunities with configurable risk controls, circuit breakers, and dry-run execution by default.

Safety first: This bot does not move mainnet funds by default. DRY_RUN=true and EXECUTION_ENABLED=false are the defaults. Review risk limits and wallet configuration before enabling live execution.

Features

ModuleDescription
Cross-DEX strategyCompare quotes across Jupiter, Axiom, Raydium, Orca, Meteora, and Phoenix to find two-leg spreads
Triangular strategyDetect cyclic profit paths (A → B → C → A) via aggregator routing
CEX-DEX strategyCompare simulated CEX mid prices against on-chain DEX quotes
Axiom integrationDedicated client for Axiom terminal API with mock fallback
Jupiter quotesLive quote API support (quote-api.jup.ag) with retry logic
Risk managerMin profit (bps), max slippage, trade size caps, daily limits, confidence scoring
Circuit breakerHalts execution after consecutive failures with auto cooldown
REST APIHealth, stats, scan, and config endpoints
CLIOne-shot and continuous scanning modes

Architecture

src/
├── config/          Zod-validated environment configuration
├── types/           Shared domain types
├── market/          Token registry + price feed
├── exchanges/       Jupiter, Axiom, mock DEX clients
├── strategies/      Cross-DEX, triangular, CEX-DEX
├── core/            Arbitrage engine orchestrator
├── risk/            Risk manager + circuit breaker
├── execution/       Trade executor (dry-run / live)
├── api/             Express HTTP server
├── utils/           Logger, math, retry helpers
├── cli.ts           Command-line interface
└── index.ts         Main entry (API + continuous scan)

Quick start

cd axiom-arbitrage-trading-bot cp .env.example .env npm install npm test npm run build npm start

Verify the API:

curl http://127.0.0.1:8790/api/health curl -X POST http://127.0.0.1:8790/api/v1/scan

One-shot scan (mock mode)

npm run scan:once

Continuous scanning

npm run scan

CLI commands

npm run cli -- scan --once --json npm run cli -- stats npm run cli -- health

Configuration

Copy .env.example to .env and adjust:

VariableDefaultDescription
BOT_MODEmockmock (simulated) or live (real APIs)
SOLANA_RPC_URLmainnet RPCSolana JSON-RPC endpoint
AXIOM_API_KEYunsetAxiom terminal API key
JUPITER_QUOTE_URLJupiter v6Quote API base URL
MIN_PROFIT_BPS15Minimum net profit in basis points
MAX_SLIPPAGE_BPS50Max slippage tolerance
MAX_TRADE_SIZE_SOL1Max trade size per opportunity
MAX_DAILY_TRADES100Daily execution cap
EXECUTION_ENABLEDfalseEnable trade execution
DRY_RUNtrueSimulate trades without submitting txs
WATCH_TOKENSSOL,USDC,...Comma-separated token symbols
SCAN_INTERVAL_MS5000Continuous scan interval
PORT8790HTTP API port

REST API

MethodPathDescription
GET/api/healthLiveness probe
GET/api/v1/statsBot statistics
GET/api/v1/configActive configuration (safe fields)
POST/api/v1/scanTrigger one arbitrage scan

Strategies explained

Cross-DEX

Buys a token on the cheapest venue and sells on the most expensive venue for the same pair. Ideal for memecoin volatility on Solana where Raydium, Orca, Meteora, and Jupiter routes diverge briefly.

Triangular

Finds three-hop cycles (e.g. SOL → USDC → BONK → SOL) where the round-trip output exceeds input after fees and estimated gas.

CEX-DEX

Compares centralized exchange mid prices (simulated in mock mode; wire Binance/Bybit/OKX websockets for production) against on-chain DEX quotes for latency-arbitrage windows.

Production checklist

  1. Set BOT_MODE=live and configure a reliable SOLANA_RPC_URL (Helius, QuickNode, or Alchemy).
  2. Add your AXIOM_API_KEY for Axiom terminal routing.
  3. Wire CEX websocket feeds into CexDexStrategy for real CEX-DEX spreads.
  4. Set conservative MIN_PROFIT_BPS, MAX_TRADE_SIZE_SOL, and MAX_DAILY_TRADES.
  5. Only enable EXECUTION_ENABLED=true after thorough dry-run validation.
  6. Store WALLET_PRIVATE_KEY securely — never commit it to version control.

Scripts

ScriptPurpose
npm run buildCompile TypeScript to dist/
npm startStart API server + continuous scanner
npm run devDevelopment mode with hot reload
npm testRun Vitest test suite
npm run lint:typesTypeScript type check
npm run scan:onceOne-shot CLI scan
npm run scanContinuous CLI scanning

License

MIT — see LICENSE.


🆘 Technical Support

Need help deploying, configuring strategies, or integrating with Axiom / Jupiter?

Contact us on Telegram for technical support:

👉 @tradingtermin

ChannelHandle
Telegram@tradingtermin

We respond to setup questions, configuration issues, and integration requests.

关于 About

Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom Arbitrage Trading Bot Axiom

语言 Languages

TypeScript95.2%
JavaScript4.8%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
2
Total Commits
峰值: 1次/周
Less
More

核心贡献者 Contributors