MCPcopy Create free account

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

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

↓ 2 callersMethod_symbol_buy_blocked
(self, symbol: str)
src/polybot5m/execution/exit_strategy.py:274
↓ 2 callersFunction_tag
(symbol: str, epoch: str)
src/polybot5m/engine.py:63
↓ 2 callersMethod_tick_strategy
( self, state: _EntryStrategyState, *, cfg: Buy1Config | Buy2Config, s
src/polybot5m/execution/exit_strategy.py:440
↓ 2 callersFunction_utc_now
()
src/polybot5m/cli.py:19
↓ 2 callersMethodadvance_monitor_tick
(self, *, poll_interval_s: float | None = None)
src/polybot5m/execution/paper_exchange.py:411
↓ 2 callersMethodappend_strategy
Compact cycle header + row (reserved for strategy-specific events).
src/polybot5m/trading_process_log.py:277
↓ 2 callersMethodapply_book_msg
(self, data: dict[str, Any])
src/polybot5m/data/orderbook.py:26
↓ 2 callersFunctionbuild_structured_slug
(asset: str, interval: str, epoch_ts: int)
src/polybot5m/data/slug_builder.py:23
↓ 2 callersFunctionclob_monitor_session
Book store for REST polling; optional authenticated user WS for fills on this condition.
src/polybot5m/execution/executor.py:375
↓ 2 callersMethodcreate_order
( self, token_id: str, side: str, price: float, size: float, n
src/polybot5m/execution/clob_client.py:844
↓ 2 callersFunctioncredentials_from_clob_client
Prefer API creds loaded on ClobClient (matches signing wallet), not stale .env alone.
src/polybot5m/data/clob_user_ws.py:60
↓ 2 callersMethodexecute_deposit_wallet_batch
( self, *, wallet_address: str, calls: list[DepositWalletCall], nonce:
src/polybot5m/execution/deposit_wallet.py:338
↓ 2 callersMethodfetch_conditional_outcome_balances_shares
Outcome shares: on-chain CTF (monitor), or CLOB sync (post-split), Data API, chain fallback.
src/polybot5m/execution/clob_client.py:671
↓ 2 callersFunctionfetch_epoch_strike
Strike at epoch: chainlink (Data Streams) when configured; else polymarket UI scrape.
src/polybot5m/data/strike_price.py:14
↓ 2 callersMethodfetch_event_by_slug
(self, slug: str)
src/polybot5m/data/gamma.py:103
↓ 2 callersFunctionfetch_order_book
Fetch order book for a token via public REST API. No credentials required. Returns object with .bids and .asks (list of {price, size}).
src/polybot5m/data/clob_rest.py:83
↓ 2 callersFunctionfetch_price_to_beat_from_event_page
GET polymarket.com/event/{slug}, parse __NEXT_DATA__ JSON for priceToBeat.
src/polybot5m/data/polymarket_strike.py:62
↓ 2 callersFunctionformat_average_spot_minus_for_log
Suffix like ` averge_spot_minus_btc=-50.30974` for [STRIKE_SPOT] lines.
src/polybot5m/trading_process_log.py:169
↓ 2 callersFunctionformat_t_minus_suffix
Console suffix aligned with wave logs, e.g. `` ⏰t_minus=41.345s``.
src/polybot5m/trading_process_log.py:30
↓ 2 callersMethodget_conditional_balance_raw
Outcome token balance via official get_balance_allowance(CONDITIONAL).
src/polybot5m/execution/clob_client.py:533
↓ 2 callersMethodget_tick_size
(self, token_id: str)
src/polybot5m/execution/clob_client.py:625
↓ 2 callersFunctioninfluence_from_book
Sum sizes at the best `top_n` bid price levels and best `top_n` ask price levels (aggregate per price). influence_rate = (bid_n_sum - ask_n_
src/polybot5m/data/orderbook_influence.py:35
↓ 2 callersFunctioninstall_run_logging
Tee stdout/stderr to log_file. Call the returned cleanup() in finally to restore streams. log_timestamp_name: write logs/polybot5m_YYYYMMDD_
src/polybot5m/log_setup.py:54
↓ 2 callersMethodis_deployed
(self, wallet_address: str)
src/polybot5m/execution/deposit_wallet.py:332
↓ 2 callersFunctionis_trading_active
True when `now` falls inside a configured weekday + time window (UTC).
src/polybot5m/schedule.py:50
↓ 2 callersFunctionload_config
(path: str = "config/default.yaml")
src/polybot5m/config.py:351
↓ 2 callersMethodmaximum
(self)
src/polybot5m/trading_process_log.py:165
↓ 2 callersMethodminimum
(self)
src/polybot5m/trading_process_log.py:162
↓ 2 callersFunctionone
(token_id: str)
src/polybot5m/execution/clob_balances.py:41
↓ 2 callersFunctionone
(tid: str)
src/polybot5m/execution/clob_client.py:158
↓ 2 callersFunctionpair_depth_metrics_for_monitor
Flat dict for JSONL / on_tick: YES book, NO book, and canonical `influence_rate` (= YES book).
src/polybot5m/data/orderbook_influence.py:66
↓ 2 callersMethodpending_count
(self)
src/polybot5m/execution/redeem_scheduler.py:106
↓ 2 callersMethodplace_limit_order
( self, token_id: str, side: str, price: float, shares: float,
src/polybot5m/execution/paper_exchange.py:414
↓ 2 callersFunctionpoll_books_into_store
REST poll YES/NO books into an InMemoryOrderbookStore. True if both sides have levels.
src/polybot5m/data/clob_rest.py:34
↓ 2 callersMethodpost_order
( self, signed_order: Any, order_type: str = "FOK", )
src/polybot5m/execution/clob_client.py:904
↓ 2 callersFunctionredeem_positions_batch
Batch redeem winning CTF positions for multiple resolved markets in one relayer call. cred_index rotates which builder credential to start w
src/polybot5m/execution/redeem.py:328
↓ 2 callersFunctionresolve_clob_ws_auth
CLOB API creds for user-channel WebSocket — must match the signing wallet.
src/polybot5m/execution/executor.py:331
↓ 2 callersFunctionrun_chainlink_spot_loop
Poll Chainlink reports and mirror spot into price_store[product_id] (e.g. BTC-USD).
src/polybot5m/data/chainlink_feed.py:156
↓ 2 callersMethodsettle_pending
(self)
src/polybot5m/execution/paper_exchange.py:408
↓ 2 callersMethodstart
(self)
src/polybot5m/execution/redeem_scheduler.py:90
↓ 2 callersMethodsubmit_wave
(self, sym: str, part: MonitorWavePart)
src/polybot5m/execution/executor.py:168
↓ 2 callersFunctionsymbol_redeem_slot
(symbol: str)
src/polybot5m/execution/redeem_scheduler.py:23
↓ 2 callersMethodto_dict
(self)
src/polybot5m/execution/deposit_wallet.py:66
↓ 2 callersMethodtrade_row_for_log
(self, data: dict[str, Any])
src/polybot5m/data/user_channel_store.py:40
↓ 2 callersFunctionvalidated_builder_cred_pool
Drop builder keys that fail relayer SUBMIT auth (rotation may otherwise pick a 401 key).
src/polybot5m/execution/relayer_creds.py:131
↓ 1 callersFunction_adapter_override
Config/env override for adapter address (empty = use defaults).
src/polybot5m/constants.py:76
↓ 1 callersFunction_aggregate_batch_metrics
(results: list[BacktestMarketResult])
src/polybot5m/backtest/replay.py:147
↓ 1 callersFunction_apply_risk_to_bids
( bids: list[tuple[float, float]], *, remaining_s_at_exec: float, cfg: BacktestSimulationConfi
src/polybot5m/backtest/simulation.py:109
↓ 1 callersFunction_asks_from_snapshot
(snap: dict[str, Any], *, use_orderbook: bool)
src/polybot5m/backtest/replay.py:83
↓ 1 callersFunction_asset_product_id
(asset: str)
src/polybot5m/data/strike_price.py:10
↓ 1 callersFunction_balance_allowance_dict_to_shares
Parse /balance-allowance JSON; return human shares or None.
src/polybot5m/execution/clob_client.py:89
↓ 1 callersMethod_best_bid_side
(self, ob: Any)
src/polybot5m/backtest/simulation.py:242
↓ 1 callersFunction_bids_from_snapshot
Map UP → YES bid, DOWN → NO bid (matches Polymarket up/down binary naming).
src/polybot5m/backtest/replay.py:56
↓ 1 callersMethod_block_symbol_buys
(self, symbol: str)
src/polybot5m/execution/exit_strategy.py:277
↓ 1 callersFunction_book_rows
(book: Any, side: str)
src/polybot5m/data/orderbook_influence.py:8
↓ 1 callersFunction_build_relay_client
( private_key: str, chain_id: int, builder_api_key: str, builder_api_secret: str, builder_
src/polybot5m/execution/relayer_creds.py:20
↓ 1 callersFunction_clamp_buy_price
(price: float)
src/polybot5m/execution/exit_strategy.py:31
↓ 1 callersMethod_clob_conditional_update_allowed
(self, *, force: bool = False)
src/polybot5m/execution/clob_client.py:282
↓ 1 callersFunction_decode_v3_benchmark_price
(report_hex: str)
src/polybot5m/data/chainlink_feed.py:37
↓ 1 callersMethod_evaluate_risk_exits
(self, slot: MarketSlot)
src/polybot5m/execution/exit_strategy.py:525
↓ 1 callersMethod_execute_job
(self, job: RedeemJob)
src/polybot5m/execution/redeem_scheduler.py:169
↓ 1 callersMethod_fetch_via_data_api_positions
Portfolio-sized holdings via Polymarket Data API (matches polymarket.com UI).
src/polybot5m/execution/clob_client.py:300
↓ 1 callersMethod_fill_fraction
(self, order_type: str)
src/polybot5m/execution/paper_exchange.py:122
↓ 1 callersFunction_find_price_to_beat
Find first object with matching slug and numeric priceToBeat (embedded Next.js data).
src/polybot5m/data/polymarket_strike.py:18
↓ 1 callersFunction_function_selector
First 4 bytes of Keccak-256 of the function signature.
src/polybot5m/execution/redeem.py:146
↓ 1 callersFunction_generate_auth_headers
( method: str, path: str, body: bytes, user_id: str, secret: str, )
src/polybot5m/data/chainlink_feed.py:19
↓ 1 callersFunction_get_create2_address
(bytecode_hash: str, from_address: str, salt: bytes)
src/polybot5m/execution/deposit_wallet.py:217
↓ 1 callersFunction_in_time_window
(remaining_s: float, *, lo: float, hi: float)
src/polybot5m/execution/exit_strategy.py:39
↓ 1 callersFunction_init_code_hash_erc1967
(implementation: str, args: bytes)
src/polybot5m/execution/deposit_wallet.py:224
↓ 1 callersFunction_is_fak_no_match_error
(err: str)
src/polybot5m/execution/exit_strategy.py:27
↓ 1 callersFunction_is_rate_limit_error
True if error looks like a rate limit / quota response.
src/polybot5m/execution/redeem.py:56
↓ 1 callersFunction_is_wallet_busy_error
Relayer rejects concurrent actions on the same deposit wallet.
src/polybot5m/execution/redeem.py:65
↓ 1 callersFunction_is_zero_address
(address: str)
src/polybot5m/execution/deposit_wallet.py:213
↓ 1 callersMethod_listen
(self)
src/polybot5m/data/clob_user_ws.py:306
↓ 1 callersMethod_listen
(self)
src/polybot5m/data/clob_ws.py:121
↓ 1 callersMethod_listen_loop
(self)
src/polybot5m/data/clob_user_ws.py:252
↓ 1 callersMethod_listen_loop
(self)
src/polybot5m/data/clob_ws.py:94
↓ 1 callersFunction_log_user_trade_event
( *, tag: str, trading_process_path: Path | None, trading_journal: TradingCycleJournal | None,
src/polybot5m/execution/executor.py:349
↓ 1 callersMethod_mark_clob_conditional_update
(self)
src/polybot5m/execution/clob_client.py:290
↓ 1 callersFunction_market_summary_from_stored_dict
Backward-compatible load when older backtest JSON lacks new fields.
src/polybot5m/backtest/replay.py:92
↓ 1 callersFunction_normalize_winner
(w: str | None)
src/polybot5m/backtest/replay.py:100
↓ 1 callersFunction_outcome_side
(asset_id: str, yes_token_id: str, no_token_id: str)
src/polybot5m/data/user_channel_store.py:10
↓ 1 callersFunction_parse_snap_ts
(s: str | None)
src/polybot5m/backtest/simulation.py:15
↓ 1 callersFunction_passes_sign_alignment
( spot_minus_strike_btc: float, averge_spot_minus_btc: float | None, spot_minus_strike_eth: float
src/polybot5m/execution/exit_strategy.py:43
↓ 1 callersMethod_pick_risk_exit_reason
(self, slot: MarketSlot, pos: PositionState)
src/polybot5m/execution/exit_strategy.py:491
↓ 1 callersMethod_ping_loop
(self)
src/polybot5m/data/clob_user_ws.py:241
↓ 1 callersMethod_place_limit_buy
( self, slot: MarketSlot, token_id: str, price: float, shares: float,
src/polybot5m/execution/exit_strategy.py:836
↓ 1 callersFunction_price_to_beat_regex_fallback
priceToBeat is often not on the event dict in __NEXT_DATA__; scan JSON after this slug's key.
src/polybot5m/data/polymarket_strike.py:44
↓ 1 callersMethod_print_merged_wave
(self, parts: dict[str, MonitorWavePart])
src/polybot5m/execution/executor.py:175
↓ 1 callersFunction_realized_pnl
(summary: MarketPaperSummary, winner: str | None)
src/polybot5m/backtest/replay.py:111
↓ 1 callersFunction_redeem_batch_via_relayer
Batch redeem multiple markets in one deposit-wallet relayer WALLET batch. Returns {tx_hash, error, condition_ids} where condition_ids are the
src/polybot5m/execution/redeem.py:201
↓ 1 callersMethod_ref_remaining_s
(self)
src/polybot5m/execution/exit_strategy.py:270
↓ 1 callersFunction_rem_inventory_market_tick_suffix
Per-asset suffix for wave [MARKET_TICK], e.g. 🟢rem_YES_btc=1.0000 🔴rem_NO_btc=0.0000.
src/polybot5m/execution/executor.py:295
↓ 1 callersFunction_rem_inventory_suffix
Format remaining YES/NO shares for monitor logs.
src/polybot5m/execution/executor.py:283
↓ 1 callersFunction_require_relayer_deps
()
src/polybot5m/execution/deposit_wallet.py:198
↓ 1 callersFunction_resolve_log_path
(log_file: str, use_timestamp: bool)
src/polybot5m/log_setup.py:41
↓ 1 callersFunction_resolve_py_clob_signature_type
Polymarket py-clob-client-v2 examples/keys/signature_types.py.
src/polybot5m/execution/clob_client.py:51
↓ 1 callersFunction_run_btc_wave_monitor
Sidecar BTC monitor for merged wave logs when BTC is not in active symbols.
src/polybot5m/engine.py:67
↓ 1 callersFunction_run_loop
(settings)
src/polybot5m/cli.py:116
↓ 1 callersFunction_run_with_delay
(i: int, target: MarketTarget)
src/polybot5m/engine.py:550
← previousnext →101–200 of 389, ranked by callers