MCPcopy Create free account

hub / github.com/DextersSlab/Polymarket-Arbitrage-Trading-Bot / functions

Functions389 in github.com/DextersSlab/Polymarket-Arbitrage-Trading-Bot

↓ 1 callersFunction_run_with_logging
(settings)
src/polybot5m/cli.py:83
↓ 1 callersMethod_schedule_at
(self, job: RedeemJob)
src/polybot5m/execution/redeem_scheduler.py:109
↓ 1 callersMethod_send
(self, msg: dict[str, Any])
src/polybot5m/data/clob_user_ws.py:237
↓ 1 callersMethod_send
(self, msg: dict[str, Any])
src/polybot5m/data/clob_ws.py:90
↓ 1 callersMethod_settlement_delay_s
(self)
src/polybot5m/execution/paper_exchange.py:130
↓ 1 callersFunction_shares_from_balance_allowance_response
(resp: Any)
src/polybot5m/execution/clob_balances.py:10
↓ 1 callersFunction_sign_deposit_wallet_batch
( *, private_key: str, chain_id: int, wallet_address: str, nonce: str, deadline: str,
src/polybot5m/execution/deposit_wallet.py:238
↓ 1 callersFunction_sim_metrics_to_dict
(m: SimulationRunMetrics)
src/polybot5m/backtest/replay.py:131
↓ 1 callersFunction_submit_deposit_wallet_batch
( client, *, wallet_address: str, calls: list, deadline: str | None = None, )
src/polybot5m/execution/relayer_creds.py:56
↓ 1 callersMethod_tick_loop
(self)
src/polybot5m/execution/buy_cross_market_slot.py:37
↓ 1 callersFunction_time_minutes
(dt: datetime)
src/polybot5m/schedule.py:29
↓ 1 callersMethod_wait_session_ready
Read first server message or confirm socket stays open (auth ok).
src/polybot5m/data/clob_user_ws.py:210
↓ 1 callersFunction_wallet_nonce
(client)
src/polybot5m/execution/relayer_creds.py:46
↓ 1 callersFunction_window_minutes
(window: ScheduleWindowConfig)
src/polybot5m/schedule.py:33
↓ 1 callersFunction_window_start_on_day
(day: datetime, window: ScheduleWindowConfig)
src/polybot5m/schedule.py:40
↓ 1 callersMethod_worker_loop
(self)
src/polybot5m/execution/redeem_scheduler.py:137
↓ 1 callersMethod_writer_loop
(self)
src/polybot5m/execution/executor.py:195
↓ 1 callersMethodall_asset_ids
(self)
src/polybot5m/data/models.py:52
↓ 1 callersFunctionapp_root
Directory containing the exe (frozen) or project root (dev).
src/polybot5m/windows_entry.py:10
↓ 1 callersMethodapply_trade
(self, data: dict[str, Any])
src/polybot5m/data/user_channel_store.py:31
↓ 1 callersMethodas_log_fields
(self)
src/polybot5m/trading_process_log.py:360
↓ 1 callersMethodavg_latency_ms
(self)
src/polybot5m/backtest/simulation.py:187
↓ 1 callersMethodbalances_for_pair
Settle due pending fills, then return YES/NO settled shares.
src/polybot5m/execution/paper_exchange.py:353
↓ 1 callersMethodbase_fields
(self, *, compact: bool = False)
src/polybot5m/trading_process_log.py:237
↓ 1 callersFunctionbuild_btc_strategy_fields
BTC strike/spot metrics and top-of-book for strategy JSONL rows.
src/polybot5m/trading_process_log.py:292
↓ 1 callersMethodbuild_log_row
(self, *, reason: str)
src/polybot5m/opposite_bid_history.py:85
↓ 1 callersFunctionbuild_market_summary
Build per-market paper summary. With split_yes_shares/split_no_shares: per-side held at resolution = split − sold + bought (buys: fills
src/polybot5m/execution/paper_report.py:71
↓ 1 callersFunctioncli
Polymarket monitor order book → redeem.
src/polybot5m/cli.py:26
↓ 1 callersFunctionconditional_balance_raw_from_response
Parse CONDITIONAL balance from CLOB /balance-allowance (6-decimal raw units).
src/polybot5m/execution/clob_client.py:79
↓ 1 callersMethodconnect
(self, asset_ids: list[str])
src/polybot5m/data/clob_ws.py:56
↓ 1 callersMethodconsume_balance_refresh
(self)
src/polybot5m/data/user_channel_store.py:60
↓ 1 callersMethoddeploy_deposit_wallet
(self)
src/polybot5m/execution/deposit_wallet.py:156
↓ 1 callersFunctionderive_deposit_wallet_address
Return the deterministic deposit wallet for the owner EOA.
src/polybot5m/execution/deposit_wallet.py:277
↓ 1 callersFunctiondescribe_schedule
(schedule: ScheduleConfig)
src/polybot5m/schedule.py:107
↓ 1 callersMethoddisconnect
(self)
src/polybot5m/data/clob_user_ws.py:174
↓ 1 callersMethoddrain
Wait until all queued and in-flight redeems complete.
src/polybot5m/execution/redeem_scheduler.py:131
↓ 1 callersFunctionepoch_start_ts
(now_utc: datetime, interval_seconds: int, offset: int = 0)
src/polybot5m/data/slug_builder.py:18
↓ 1 callersMethodfetch_all_snapshots
Return same shape as one snapshots response, with all pages merged (snapshots ascending by time).
src/polybot5m/backtest/client.py:112
↓ 1 callersFunctionfetch_latest_spot_price
Latest benchmark price for live spot (use /reports/latest, not timestamp lookup).
src/polybot5m/data/chainlink_feed.py:99
↓ 1 callersFunctionfetch_outcome_positions_shares
Return (yes_shares, no_shares) for one market from GET /positions, or None on error / no match.
src/polybot5m/execution/data_positions.py:12
↓ 1 callersFunctionfetch_strikes_at_timestamp
Fetch benchmark prices from Chainlink REST at epoch_start_unix. Keys = asset (e.g. btc).
src/polybot5m/data/chainlink_feed.py:122
↓ 1 callersFunctionformat_schedule_reminder
e.g. '459 min remind to 09/06/26 Monday 4 AM UTC'.
src/polybot5m/schedule.py:84
↓ 1 callersMethodfrom_snapshots
( cls, snaps: list[dict[str, Any]], end_dt: datetime, )
src/polybot5m/backtest/simulation.py:136
↓ 1 callersMethodget_best_ask
(self, asset_id: str)
src/polybot5m/data/orderbook.py:47
↓ 1 callersMethodget_best_bid
(self, asset_id: str)
src/polybot5m/data/orderbook.py:43
↓ 1 callersMethodget_snapshots_page
( self, session: aiohttp.ClientSession, *, coin: str, market_id: str,
src/polybot5m/backtest/client.py:87
↓ 1 callersMethodget_transaction
(self, transaction_id: str)
src/polybot5m/execution/deposit_wallet.py:123
↓ 1 callersMethodget_wallet_nonce
(self)
src/polybot5m/execution/deposit_wallet.py:335
↓ 1 callersFunctionis_builder_auth_error
Relayer rejected builder API credentials (not a batch revert).
src/polybot5m/execution/relayer_creds.py:14
↓ 1 callersFunctionis_legacy_collateral_adapter
True if address is a pre–May 2026 adapter (relayer rejects after cutover).
src/polybot5m/constants.py:71
↓ 1 callersMethodlist_markets
( self, session: aiohttp.ClientSession, *, coin: str, limit: int = 50,
src/polybot5m/backtest/client.py:57
↓ 1 callersMethodlog_cycle_end
(self, **extra: Any)
src/polybot5m/trading_process_log.py:284
↓ 1 callersMethodlog_cycle_start
(self, **extra: Any)
src/polybot5m/trading_process_log.py:281
↓ 1 callersMethodlog_user_trade
USER_TRADE from CLOB websocket during this cycle.
src/polybot5m/trading_process_log.py:287
↓ 1 callersFunctionmain
()
src/polybot5m/windows_entry.py:17
↓ 1 callersFunctionmain
Backtest: fetch latest N markets and replay market snapshots.
src/polybot5m/backtest/cli.py:67
↓ 1 callersFunctionmake_rng
(cfg: BacktestSimulationConfig)
src/polybot5m/backtest/simulation.py:499
↓ 1 callersFunctionmax_drawdown_from_series
(cumulative: list[float])
src/polybot5m/backtest/simulation.py:506
↓ 1 callersFunctionmonitor_bundle_print_order
(symbols_present: set[str])
src/polybot5m/execution/executor.py:85
↓ 1 callersFunctionmonitor_orderbook_until_epoch_end
Poll YES/NO CLOB books via REST until `epoch_end` (UTC). Trading logic runs every ``poll_interval_s`` using the latest polled snapshot.
src/polybot5m/execution/executor.py:461
↓ 1 callersFunctionnext_window_start
Next UTC datetime when a configured trading window opens.
src/polybot5m/schedule.py:65
↓ 1 callersMethodon_monitor_tick
( self, symbol: str, *, remaining_s: float, rem_yes: float, re
src/polybot5m/execution/exit_strategy.py:649
↓ 1 callersFunctionopposite_outcome
(outcome: str)
src/polybot5m/opposite_bid_history.py:11
↓ 1 callersFunctionordered_builder_cred_pool
Order credentials for split/redeem: time-rotation + optional per-market stagger, then failover order. When rotation_seconds <= 0, behavior matche
src/polybot5m/execution/redeem.py:105
↓ 1 callersFunctionpaper_session_from_bot_config
Build a shared paper ledger from ``settings.bot`` (or similar).
src/polybot5m/execution/paper_exchange.py:15
↓ 1 callersFunctionparse_collateral_balance_allowance_raw
Parse CLOB COLLATERAL balance-allowance (6-decimal raw units).
src/polybot5m/execution/clob_client.py:102
↓ 1 callersMethodpending_count
(self)
src/polybot5m/execution/paper_exchange.py:275
↓ 1 callersFunctionpost_redeem_monitor_orderbooks
After redeem: poll public order books for `duration_s` seconds.
src/polybot5m/execution/executor.py:430
↓ 1 callersFunctionprobe_builder_cred_authorized_for_submit
True when relayer accepts builder auth for SUBMIT (nonce-only checks are insufficient).
src/polybot5m/execution/relayer_creds.py:89
↓ 1 callersFunctionprobe_user_ws_auth
One-shot connect test; returns (ok, detail).
src/polybot5m/data/clob_user_ws.py:80
↓ 1 callersMethodrecord_spot_minus_strike_btc
Update epoch running min/max from a new spot_minus_strike sample.
src/polybot5m/trading_process_log.py:345
↓ 1 callersFunctionredeem_target_for_deposit_wallet
(*, neg_risk: bool = False, override: str = "")
src/polybot5m/constants.py:118
↓ 1 callersMethodregister_market
( self, symbol: str, *, tag: str, yes_token_id: str, no_token_
src/polybot5m/execution/exit_strategy.py:220
↓ 1 callersFunctionreplay_one_market
( client: PolyBacktestClient, session: aiohttp.ClientSession, *, coin: str, market_id: str
src/polybot5m/backtest/replay.py:195
↓ 1 callersMethodreset_btc_epoch_stats
(self)
src/polybot5m/execution/exit_strategy.py:173
↓ 1 callersMethodreset_epoch
Clear per-epoch strike/spot accumulators (new 5m window).
src/polybot5m/trading_process_log.py:351
↓ 1 callersFunctionresolve_collateral_adapter
( yes_token_id: str, clob_client: Any | None, *, ctf_adapter_override: str = "", neg_risk_
src/polybot5m/execution/collateral_adapter.py:10
↓ 1 callersFunctionresolve_outcome_token_ids
Map Gamma clobTokenIds to (up_or_yes_id, down_or_no_id) using outcomes labels. Defaults to asset_ids order when outcomes are missing or ambig
src/polybot5m/data/models.py:23
↓ 1 callersFunctionresolve_trading_process_path
Read liquidity_maker.trading_process_jsonl.
src/polybot5m/trading_process_log.py:383
↓ 1 callersFunctionrun_all_markets
( targets: list[MarketTarget], settings: Settings, export_path: Path | None = None, *, red
src/polybot5m/engine.py:495
↓ 1 callersFunctionrun_backtest_batch
( *, api_key: str, base_url: str, coin: str, market_type: str, last_n: int, settin
src/polybot5m/backtest/replay.py:340
↓ 1 callersFunctionrun_market_cycle
( target: MarketTarget, settings: Settings, export_path: Path | None = None, market_index: int
src/polybot5m/engine.py:254
↓ 1 callersMethodschedule
Enqueue redeem; optionally block until this job finishes.
src/polybot5m/execution/redeem_scheduler.py:115
↓ 1 callersMethodsettle_pending
Apply pending fills whose settlement time has passed (not tick-based SELL limits).
src/polybot5m/execution/paper_exchange.py:135
↓ 1 callersMethodshutdown
(self)
src/polybot5m/execution/redeem_scheduler.py:95
↓ 1 callersMethodshutdown
(self)
src/polybot5m/execution/executor.py:127
↓ 1 callersMethodsnap_at_or_after
(self, t: datetime)
src/polybot5m/backtest/simulation.py:151
↓ 1 callersFunctionsplit_target_for_deposit_wallet
splitPosition / mergePositions target for deposit-wallet relayer batches.
src/polybot5m/constants.py:109
↓ 1 callersMethodstart
(self)
src/polybot5m/execution/executor.py:123
↓ 1 callersFunctionstrategy_phase_from_event
Map strategy event name prefix to a normalized phase label.
src/polybot5m/trading_process_log.py:374
↓ 1 callersMethodunregister_market
(self, symbol: str)
src/polybot5m/execution/exit_strategy.py:249
↓ 1 callersFunctionvwap_buy_from_asks
Buy `size` shares from asks at or below max_pay_price.
src/polybot5m/backtest/simulation.py:83
↓ 1 callersFunctionvwap_sell_into_bids
Sell `size` shares into bid levels at or above min_accept_price (limit sell). Returns (filled_size, vwap, remaining_unfilled).
src/polybot5m/backtest/simulation.py:54
↓ 1 callersFunctionwait_for_trading_window
Block (with periodic logs) until the next trading window opens.
src/polybot5m/schedule.py:120
↓ 1 callersFunctionwrite_paper_report
Write detailed paper trading data: one JSON report and one CSV summary. Returns (json_path, csv_path).
src/polybot5m/execution/paper_report.py:191
Method__init__
(self, *, enabled: bool, balance_epsilon: float)
src/polybot5m/opposite_bid_history.py:34
Method__init__
(self, lookback_s: float)
src/polybot5m/trading_process_log.py:85
Method__init__
(self)
src/polybot5m/trading_process_log.py:120
Method__init__
(self)
src/polybot5m/trading_process_log.py:141
Method__init__
(self, path: Path | None, key: TradingCycleKey, *, tag: str = "")
src/polybot5m/trading_process_log.py:226
← previousnext →201–300 of 389, ranked by callers