MCPcopy Create free account

hub / github.com/AV1080p/polymarket-trading-bot / functions

Functions18 in github.com/AV1080p/polymarket-trading-bot

↓ 2 callersMethodget_active_markets
Query active market list
bot.py:64
↓ 2 callersMethodget_arbitrage_statistics
Query arbitrage opportunity statistics for specified time period
data_logger.py:181
↓ 2 callersMethodmonitor_market
Monitor single market
bot.py:253
↓ 1 callersMethod_init_csv
Initialize CSV file header
data_logger.py:35
↓ 1 callersMethod_init_db
Initialize SQLite DB table
data_logger.py:55
↓ 1 callersMethod_write_csv
Write data to CSV file
data_logger.py:145
↓ 1 callersMethod_write_db
Write data to SQLite DB
data_logger.py:151
↓ 1 callersFunctionanalyze_arbitrage_opportunities
Analyze arbitrage opportunities
analyze_data.py:17
↓ 1 callersMethodcheck_arbitrage
Check for arbitrage opportunity Returns: (opportunity_exists, expected_profit_rate)
bot.py:200
↓ 1 callersMethodexecute_trade
Execute arbitrage trade For actual implementation: 1. Sign and send orders via CLOB API 2. Send transactions
bot.py:213
↓ 1 callersFunctionexport_to_csv
Export SQLite DB data to CSV
analyze_data.py:121
↓ 1 callersMethodget_market_orderbook
Query market orderbook data (CLOB API)
bot.py:103
↓ 1 callersMethodget_market_prices
Query Yes/No ticket prices for a market
bot.py:119
↓ 1 callersMethodlog_price_data
Save price data to CSV and DB
data_logger.py:93
↓ 1 callersMethodrun
Bot execution main loop
bot.py:296
Method__init__
(self, csv_file: str, db_file: str)
data_logger.py:21
Method__init__
Args: market_ids: List of market IDs to monitor. If None, automatically discovers active markets
bot.py:38
Functionsignal_handler
(sig, frame)
test_bot.py:11