Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jon-Becker/prediction-market-analysis
/ functions
Functions
266 in github.com/Jon-Becker/prediction-market-analysis
⨍
Functions
266
◇
Types & classes
55
Method
parse_time
(val: Optional[str])
src/indexers/kalshi/models.py:72
Function
pie_chart
Create a pie chart configuration.
src/common/interfaces/chart.py:204
Function
polymarket_blocks_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:227
Function
polymarket_legacy_trades_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:213
Function
polymarket_markets_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:220
Function
polymarket_trades_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:206
Method
post
(self, url: str, *, json: Optional[Any] = None)
src/common/client.py:83
Method
price
Calculate price in USDC per token.
src/indexers/polymarket/blockchain.py:66
Method
price
Calculate price in collateral per token.
src/indexers/polymarket/fpmm_trades.py:48
Method
run
Fetch timestamps for every block, continuing from where we left off.
src/indexers/polymarket/blocks.py:91
Method
run
(self)
src/indexers/polymarket/markets.py:26
Method
run
Backfill all Polymarket FPMM trades from the Polygon blockchain. This fetches FPMMBuy and FPMMSell events from all FPMM contracts dep
src/indexers/polymarket/fpmm_trades.py:182
Method
run
(self)
src/indexers/kalshi/markets.py:29
Method
run
(self)
src/indexers/kalshi/trades.py:38
Method
run
Execute the analysis and return animated output.
src/analysis/comparison/win_rate_by_price_animated.py:64
Method
run
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_volume_over_time.py:41
Method
run
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_trades_over_time.py:33
Method
run
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_calibration_by_bucket.py:48
Method
run
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_win_rate_by_price.py:39
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/win_rate_by_price.py:31
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/yes_vs_no_by_price.py:29
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/ev_yes_vs_no.py:43
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/maker_returns_by_direction.py:37
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/vwap_by_hour.py:38
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/maker_win_rate_by_direction.py:36
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/volume_over_time.py:29
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/maker_taker_gap_over_time.py:36
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/kalshi_calibration_deviation_over_time.py:32
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/statistical_tests.py:42
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/maker_vs_taker_returns.py:38
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/win_rate_by_trade_size.py:37
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/market_types.py:34
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/mispricing_by_price.py:31
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/returns_by_hour.py:36
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/maker_taker_returns_by_category.py:38
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/trade_size_by_role.py:36
Method
run
Execute the analysis and return outputs.
src/analysis/kalshi/longshot_volume_share_over_time.py:36
Method
save
Save with GIF as default format for animated output.
src/analysis/comparison/win_rate_by_price_animated.py:22
Method
save_batch
(trades_batch)
src/indexers/polymarket/fpmm_trades.py:230
Method
save_batch
(trades_batch)
src/indexers/polymarket/trades.py:93
Method
save_batch
(trades_batch: list[dict])
src/indexers/kalshi/trades.py:94
Function
scatter_chart
Create a scatter chart configuration.
src/common/interfaces/chart.py:214
Method
side
BUY or SELL from taker's perspective.
src/indexers/polymarket/blockchain.py:86
Method
size
Number of tokens traded (in token units, 6 decimals).
src/indexers/polymarket/blockchain.py:79
Method
size
Number of tokens traded (in token units, 18 decimals for FPMM).
src/indexers/polymarket/fpmm_trades.py:55
Function
test_analysis_discovery
Analysis.load() should find at least one concrete analysis.
tests/test_compile.py:44
Function
test_analysis_instantiation
Every discovered analysis should instantiate with default arguments.
tests/test_compile.py:51
Function
test_analysis_run
Every non-animated analysis run() returns valid AnalysisOutput.
tests/test_analysis_run.py:53
Function
test_animated_analysis_run
Animated analysis run() returns valid AnalysisOutput with FuncAnimation.
tests/test_analysis_run.py:80
Method
test_animation_skips_png_pdf
(self, tmp_path: Path)
tests/test_analysis_save.py:109
Method
test_creates_output_dir
(self, tmp_path: Path)
tests/test_analysis_save.py:146
Method
test_csv_roundtrips
(self, tmp_path: Path)
tests/test_analysis_save.py:70
Method
test_data_only
(self, tmp_path: Path)
tests/test_analysis_save.py:120
Method
test_default_formats
(self, tmp_path: Path)
tests/test_analysis_save.py:133
Method
test_empty_output
(self, tmp_path: Path)
tests/test_analysis_save.py:127
Method
test_figure_closed_after_save
(self, tmp_path: Path)
tests/test_analysis_save.py:139
Function
test_indexer_discovery
Indexer.load() should find at least one concrete indexer.
tests/test_compile.py:61
Function
test_indexer_instantiation
Every discovered indexer should instantiate with default arguments.
tests/test_compile.py:68
Function
test_interrupt_then_resume_completes
Interrupt a backfill with Ctrl+C, then resume and finish the job.
tests/test_backfill_cursor.py:55
Method
test_json_has_required_keys
(self, tmp_path: Path)
tests/test_analysis_save.py:78
Function
test_module_imports
Every source module should import without errors.
tests/test_compile.py:36
Method
test_saves_all_formats
(self, tmp_path: Path)
tests/test_analysis_save.py:61
Method
test_saves_gif_and_csv
(self, tmp_path: Path)
tests/test_analysis_save.py:90
Method
test_static_figure_skips_gif
(self, tmp_path: Path)
tests/test_analysis_save.py:103
Function
treemap
Create a treemap configuration.
src/common/interfaces/chart.py:245
Method
volume
Volume in collateral units (typically 6 decimals for USDC).
src/indexers/polymarket/fpmm_trades.py:60
← previous
201–266 of 266, ranked by callers