MCPcopy Create free account

hub / github.com/Jon-Becker/prediction-market-analysis / functions

Functions266 in github.com/Jon-Becker/prediction-market-analysis

Methodparse_time
(val: Optional[str])
src/indexers/kalshi/models.py:72
Functionpie_chart
Create a pie chart configuration.
src/common/interfaces/chart.py:204
Functionpolymarket_blocks_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:227
Functionpolymarket_legacy_trades_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:213
Functionpolymarket_markets_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:220
Functionpolymarket_trades_dir
(tmp_path_factory: pytest.TempPathFactory)
tests/conftest.py:206
Methodpost
(self, url: str, *, json: Optional[Any] = None)
src/common/client.py:83
Methodprice
Calculate price in USDC per token.
src/indexers/polymarket/blockchain.py:66
Methodprice
Calculate price in collateral per token.
src/indexers/polymarket/fpmm_trades.py:48
Methodrun
Fetch timestamps for every block, continuing from where we left off.
src/indexers/polymarket/blocks.py:91
Methodrun
(self)
src/indexers/polymarket/markets.py:26
Methodrun
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
Methodrun
(self)
src/indexers/kalshi/markets.py:29
Methodrun
(self)
src/indexers/kalshi/trades.py:38
Methodrun
Execute the analysis and return animated output.
src/analysis/comparison/win_rate_by_price_animated.py:64
Methodrun
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_volume_over_time.py:41
Methodrun
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_trades_over_time.py:33
Methodrun
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_calibration_by_bucket.py:48
Methodrun
Execute the analysis and return outputs.
src/analysis/polymarket/polymarket_win_rate_by_price.py:39
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/win_rate_by_price.py:31
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/yes_vs_no_by_price.py:29
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/ev_yes_vs_no.py:43
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/maker_returns_by_direction.py:37
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/vwap_by_hour.py:38
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/maker_win_rate_by_direction.py:36
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/volume_over_time.py:29
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/maker_taker_gap_over_time.py:36
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/kalshi_calibration_deviation_over_time.py:32
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/statistical_tests.py:42
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/maker_vs_taker_returns.py:38
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/win_rate_by_trade_size.py:37
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/market_types.py:34
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/mispricing_by_price.py:31
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/returns_by_hour.py:36
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/maker_taker_returns_by_category.py:38
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/trade_size_by_role.py:36
Methodrun
Execute the analysis and return outputs.
src/analysis/kalshi/longshot_volume_share_over_time.py:36
Methodsave
Save with GIF as default format for animated output.
src/analysis/comparison/win_rate_by_price_animated.py:22
Methodsave_batch
(trades_batch)
src/indexers/polymarket/fpmm_trades.py:230
Methodsave_batch
(trades_batch)
src/indexers/polymarket/trades.py:93
Methodsave_batch
(trades_batch: list[dict])
src/indexers/kalshi/trades.py:94
Functionscatter_chart
Create a scatter chart configuration.
src/common/interfaces/chart.py:214
Methodside
BUY or SELL from taker's perspective.
src/indexers/polymarket/blockchain.py:86
Methodsize
Number of tokens traded (in token units, 6 decimals).
src/indexers/polymarket/blockchain.py:79
Methodsize
Number of tokens traded (in token units, 18 decimals for FPMM).
src/indexers/polymarket/fpmm_trades.py:55
Functiontest_analysis_discovery
Analysis.load() should find at least one concrete analysis.
tests/test_compile.py:44
Functiontest_analysis_instantiation
Every discovered analysis should instantiate with default arguments.
tests/test_compile.py:51
Functiontest_analysis_run
Every non-animated analysis run() returns valid AnalysisOutput.
tests/test_analysis_run.py:53
Functiontest_animated_analysis_run
Animated analysis run() returns valid AnalysisOutput with FuncAnimation.
tests/test_analysis_run.py:80
Methodtest_animation_skips_png_pdf
(self, tmp_path: Path)
tests/test_analysis_save.py:109
Methodtest_creates_output_dir
(self, tmp_path: Path)
tests/test_analysis_save.py:146
Methodtest_csv_roundtrips
(self, tmp_path: Path)
tests/test_analysis_save.py:70
Methodtest_data_only
(self, tmp_path: Path)
tests/test_analysis_save.py:120
Methodtest_default_formats
(self, tmp_path: Path)
tests/test_analysis_save.py:133
Methodtest_empty_output
(self, tmp_path: Path)
tests/test_analysis_save.py:127
Methodtest_figure_closed_after_save
(self, tmp_path: Path)
tests/test_analysis_save.py:139
Functiontest_indexer_discovery
Indexer.load() should find at least one concrete indexer.
tests/test_compile.py:61
Functiontest_indexer_instantiation
Every discovered indexer should instantiate with default arguments.
tests/test_compile.py:68
Functiontest_interrupt_then_resume_completes
Interrupt a backfill with Ctrl+C, then resume and finish the job.
tests/test_backfill_cursor.py:55
Methodtest_json_has_required_keys
(self, tmp_path: Path)
tests/test_analysis_save.py:78
Functiontest_module_imports
Every source module should import without errors.
tests/test_compile.py:36
Methodtest_saves_all_formats
(self, tmp_path: Path)
tests/test_analysis_save.py:61
Methodtest_saves_gif_and_csv
(self, tmp_path: Path)
tests/test_analysis_save.py:90
Methodtest_static_figure_skips_gif
(self, tmp_path: Path)
tests/test_analysis_save.py:103
Functiontreemap
Create a treemap configuration.
src/common/interfaces/chart.py:245
Methodvolume
Volume in collateral units (typically 6 decimals for USDC).
src/indexers/polymarket/fpmm_trades.py:60
← previous201–266 of 266, ranked by callers