Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AV1080p/polymarket-trading-bot
/ functions
Functions
18 in github.com/AV1080p/polymarket-trading-bot
⨍
Functions
18
◇
Types & classes
2
↓ 2 callers
Method
get_active_markets
Query active market list
bot.py:64
↓ 2 callers
Method
get_arbitrage_statistics
Query arbitrage opportunity statistics for specified time period
data_logger.py:181
↓ 2 callers
Method
monitor_market
Monitor single market
bot.py:253
↓ 1 callers
Method
_init_csv
Initialize CSV file header
data_logger.py:35
↓ 1 callers
Method
_init_db
Initialize SQLite DB table
data_logger.py:55
↓ 1 callers
Method
_write_csv
Write data to CSV file
data_logger.py:145
↓ 1 callers
Method
_write_db
Write data to SQLite DB
data_logger.py:151
↓ 1 callers
Function
analyze_arbitrage_opportunities
Analyze arbitrage opportunities
analyze_data.py:17
↓ 1 callers
Method
check_arbitrage
Check for arbitrage opportunity Returns: (opportunity_exists, expected_profit_rate)
bot.py:200
↓ 1 callers
Method
execute_trade
Execute arbitrage trade For actual implementation: 1. Sign and send orders via CLOB API 2. Send transactions
bot.py:213
↓ 1 callers
Function
export_to_csv
Export SQLite DB data to CSV
analyze_data.py:121
↓ 1 callers
Method
get_market_orderbook
Query market orderbook data (CLOB API)
bot.py:103
↓ 1 callers
Method
get_market_prices
Query Yes/No ticket prices for a market
bot.py:119
↓ 1 callers
Method
log_price_data
Save price data to CSV and DB
data_logger.py:93
↓ 1 callers
Method
run
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
Function
signal_handler
(sig, frame)
test_bot.py:11