99 lines
2.8 KiB
TOML
99 lines
2.8 KiB
TOML
# ============================================================
|
|
# Pump.fun Sniper Bot 主网配置
|
|
# ============================================================
|
|
|
|
[bot]
|
|
# 运行模式: "sniper" (新币狙击) | "graduation" (毕业狙击) | "both"
|
|
mode = "sniper"
|
|
# 是否启用模拟模式 (不实际发送交易)
|
|
dry_run = true
|
|
# 日志级别: "trace" | "debug" | "info" | "warn" | "error"
|
|
log_level = "info"
|
|
|
|
[detection]
|
|
# Yellowstone gRPC 端点
|
|
yellowstone_grpc_url = "https://grpc.example.com"
|
|
# Yellowstone X-Token (认证)
|
|
yellowstone_x_token = ""
|
|
# 备用 RPC WebSocket (gRPC 断开时的降级方案)
|
|
backup_ws_url = "wss://api.mainnet-beta.solana.com"
|
|
# 毕业触发阈值 (SOL) - 当 real_sol >= 此值时触发毕业狙击
|
|
graduation_trigger_sol = 84.5
|
|
# 事件通道容量
|
|
event_channel_capacity = 10000
|
|
|
|
[decision]
|
|
# 最小综合评分阈值 (0-100)
|
|
min_score_threshold = 60.0
|
|
# 最大价格影响 (basis points, 100 = 1%)
|
|
max_price_impact_bps = 500
|
|
# 滑点容忍度 (basis points)
|
|
slippage_bps = 1000
|
|
# 创建者黑名单 (逗号分隔的 Pubkey)
|
|
blacklisted_creators = []
|
|
# 创建者最小历史成功率
|
|
min_creator_success_rate = 0.05
|
|
# 创建者最大历史发币数 (超过视为批量发币)
|
|
max_creator_total_tokens = 50
|
|
|
|
[execution]
|
|
# Solana RPC URL
|
|
rpc_url = "https://api.mainnet-beta.solana.com"
|
|
# Jito Block Engine URL
|
|
jito_block_engine_url = "https://mainnet.block-engine.jito.wtf"
|
|
# Jito Tip (lamports)
|
|
jito_tip_lamports = 10000
|
|
# 默认 Priority Fee (micro-lamports per CU)
|
|
default_priority_fee = 50000
|
|
# Compute Unit Limit
|
|
compute_unit_limit = 200000
|
|
# 交易确认超时 (秒)
|
|
confirm_timeout_secs = 30
|
|
# 最大重试次数
|
|
max_retries = 3
|
|
# 是否启用交易模拟预检
|
|
enable_simulation = true
|
|
# 是否启用多中继提交
|
|
enable_multi_relay = true
|
|
|
|
[position]
|
|
# 单次最大仓位 (SOL)
|
|
max_position_sol = 0.1
|
|
# 最小仓位 (SOL)
|
|
min_position_sol = 0.01
|
|
# 最大并发持仓数
|
|
max_concurrent_positions = 5
|
|
# 止盈 1: 收益率 (倍数) → 卖出比例
|
|
take_profit_1_roi = 2.0
|
|
take_profit_1_sell_pct = 0.5
|
|
# 止盈 2: 收益率 (倍数) → 卖出比例
|
|
take_profit_2_roi = 5.0
|
|
take_profit_2_sell_pct = 0.3
|
|
# 止盈 3: 收益率 (倍数) → 卖出比例 (剩余全部)
|
|
take_profit_3_roi = 10.0
|
|
take_profit_3_sell_pct = 1.0
|
|
# 止损: 最大亏损比例
|
|
stop_loss_pct = 0.3
|
|
# 时间止损: 最大持仓时间 (秒)
|
|
time_stop_secs = 600
|
|
|
|
[risk]
|
|
# 日亏损限制 (SOL)
|
|
daily_loss_limit_sol = 1.0
|
|
# 最大连续失败次数 → 触发熔断
|
|
max_consecutive_failures = 5
|
|
# 熔断冷却时间 (分钟)
|
|
circuit_breaker_cooldown_minutes = 30
|
|
# 单笔最大亏损 (SOL)
|
|
max_single_loss_sol = 0.5
|
|
# 最大日交易次数
|
|
max_daily_trades = 100
|
|
|
|
[monitoring]
|
|
# Prometheus 指标端口
|
|
prometheus_port = 9090
|
|
# 是否启用 JSON 日志格式
|
|
json_logs = false
|
|
# 指标刷新间隔 (秒)
|
|
metrics_flush_interval_secs = 15
|