Add enhanced concurrency patterns, rate limiting, market management, and pipeline processing
This commit is contained in:
@@ -8,6 +8,26 @@ arbitrum:
|
||||
ws_endpoint: ""
|
||||
# Chain ID for Arbitrum (42161 for mainnet)
|
||||
chain_id: 42161
|
||||
# Rate limiting configuration for RPC endpoint
|
||||
rate_limit:
|
||||
# Maximum requests per second (adjust based on your provider's limits)
|
||||
requests_per_second: 10
|
||||
# Maximum concurrent requests
|
||||
max_concurrent: 5
|
||||
# Burst size for rate limiting
|
||||
burst: 20
|
||||
# Fallback RPC endpoints
|
||||
fallback_endpoints:
|
||||
- url: "https://arbitrum-mainnet.infura.io/v3/YOUR_INFURA_KEY"
|
||||
rate_limit:
|
||||
requests_per_second: 5
|
||||
max_concurrent: 3
|
||||
burst: 10
|
||||
- url: "https://arbitrum-rpc.publicnode.com"
|
||||
rate_limit:
|
||||
requests_per_second: 8
|
||||
max_concurrent: 4
|
||||
burst: 15
|
||||
|
||||
# Bot configuration
|
||||
bot:
|
||||
@@ -19,6 +39,12 @@ bot:
|
||||
min_profit_threshold: 10.0
|
||||
# Gas price multiplier (for faster transactions)
|
||||
gas_price_multiplier: 1.2
|
||||
# Maximum number of concurrent workers for processing
|
||||
max_workers: 10
|
||||
# Buffer size for channels
|
||||
channel_buffer_size: 100
|
||||
# Timeout for RPC calls in seconds
|
||||
rpc_timeout: 30
|
||||
|
||||
# Uniswap configuration
|
||||
uniswap:
|
||||
@@ -31,6 +57,14 @@ uniswap:
|
||||
- 500 # 0.05%
|
||||
- 3000 # 0.3%
|
||||
- 10000 # 1%
|
||||
# Cache configuration for pool data
|
||||
cache:
|
||||
# Enable or disable caching
|
||||
enabled: true
|
||||
# Cache expiration time in seconds
|
||||
expiration: 300
|
||||
# Maximum cache size
|
||||
max_size: 10000
|
||||
|
||||
# Logging configuration
|
||||
log:
|
||||
@@ -44,4 +78,8 @@ log:
|
||||
# Database configuration
|
||||
database:
|
||||
# Database file path
|
||||
file: "mev-bot.db"
|
||||
file: "mev-bot.db"
|
||||
# Maximum number of open connections
|
||||
max_open_connections: 10
|
||||
# Maximum number of idle connections
|
||||
max_idle_connections: 5
|
||||
Reference in New Issue
Block a user