MCPcopy Create free account

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

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

Method__init__
(self, primary: TextIO, secondary: TextIO)
src/polybot5m/log_setup.py:15
Method__init__
( self, ws_url: str = WS_URL, *, auth: ClobWsCredentials, on_trade: Ms
src/polybot5m/data/clob_user_ws.py:134
Method__init__
(self, bid_price: float, bid_size: float, ask_price: float, ask_size: float)
src/polybot5m/data/orderbook.py:10
Method__init__
(self)
src/polybot5m/data/orderbook.py:22
Method__init__
(self, data: dict)
src/polybot5m/data/clob_rest.py:100
Method__init__
(self, base_url: str, session: "aiohttp.ClientSession | None")
src/polybot5m/data/gamma.py:99
Method__init__
( self, ws_url: str = WS_URL, *, on_book: MsgCallback | None = None, o
src/polybot5m/data/clob_ws.py:33
Method__init__
( self, api_key: str, base_url: str = "https://api.polybacktest.com", *,
src/polybot5m/backtest/client.py:13
Method__init__
( self, starting_usdc: float, fee_bps: float = 0.0, *, settlement_dela
src/polybot5m/execution/paper_exchange.py:61
Method__init__
( self, yes_token_id: str, no_token_id: str, *, session: PaperSessionL
src/polybot5m/execution/paper_exchange.py:365
Method__init__
(self, settings: Settings)
src/polybot5m/execution/redeem_scheduler.py:71
Method__init__
(self, settings: Settings)
src/polybot5m/execution/exit_strategy.py:158
Method__init__
(self, *, cycle_interval_s: float, cooldown_cycles: int)
src/polybot5m/execution/buy_cross_market_slot.py:13
Method__init__
( self, symbols_present: set[str], *, wave_collect_timeout_s: float = 3.0,
src/polybot5m/execution/executor.py:109
Method__init__
(self, client: _DepositWalletRelayerClient, transaction_id: str, transaction_hash: str | None)
src/polybot5m/execution/deposit_wallet.py:75
Method__init__
( self, *, relayer_url: str, chain_id: int, private_key: str,
src/polybot5m/execution/deposit_wallet.py:97
Method__init__
( self, *, relayer_url: str, chain_id: int, private_key: str,
src/polybot5m/execution/deposit_wallet.py:313
Method__init__
( self, private_key: str, api_key: str, api_secret: str, api_passphras
src/polybot5m/execution/clob_client.py:179
Method_buy1_side_ok
(self, outcome: str)
src/polybot5m/execution/exit_strategy.py:378
Method_buy2_side_ok
(self, outcome: str)
src/polybot5m/execution/exit_strategy.py:409
Function_clob_order_id_from_response
(resp: Any)
src/polybot5m/execution/executor.py:53
Method_default_windows
(self)
src/polybot5m/config.py:40
Function_entry_refresh_balances
()
src/polybot5m/execution/executor.py:673
Function_fetch_conditional_outcome_pair_shares_sync
( client: Any, yes_token_id: str, no_token_id: str, signature_type: int, )
src/polybot5m/execution/clob_client.py:152
Method_get
()
src/polybot5m/execution/clob_client.py:525
Function_on_trade
(data: dict[str, Any])
src/polybot5m/execution/executor.py:403
Function_redeem_via_relayer
Execute redeem via Polymarket relayer (gasless). Matches TypeScript claimWinnings flow. Requires builder API credentials (POLY_BUILDER_API_KE
src/polybot5m/execution/redeem.py:169
Method_run
()
src/polybot5m/execution/clob_client.py:509
Method_symbols_to_markets
(self)
src/polybot5m/config.py:309
Methodactivate
(self, sold_outcome: str, *, opp_best_bid: float)
src/polybot5m/opposite_bid_history.py:43
Methodactive
(self)
src/polybot5m/opposite_bid_history.py:40
Methodadvance_monitor_tick
Decrement tick-based pending SELL limits once per monitor poll wave. Parallel markets share one ledger; debounce so four symbols do
src/polybot5m/execution/paper_exchange.py:156
Methodauth_failed
(self)
src/polybot5m/data/clob_user_ws.py:161
Functionbootstrap_books
One-shot full books for a token list (optional bootstrap; monitor uses poll_books_into_store).
src/polybot5m/data/clob_rest.py:66
Methodcancel_order
Best-effort cancel by order id.
src/polybot5m/execution/clob_client.py:917
Functionclamp_split_allocation_usdc
Apply min/max bounds and 6-decimal rounding for split notional.
src/polybot5m/execution/wallet_balance.py:40
Functioncleanup
()
src/polybot5m/log_setup.py:92
Functionclob_allowance_for_contract
Allowance for one spender from CLOB allowances map (0 if missing).
src/polybot5m/execution/clob_client.py:135
Methodcondition_id_for_asset
Return the condition_id of the market that contains this asset_id.
src/polybot5m/data/models.py:58
Methodconnected
(self)
src/polybot5m/data/clob_user_ws.py:157
Methodconnected
(self)
src/polybot5m/data/clob_ws.py:53
Methodcreate_market_order
Sign a market order (amount = pUSD for BUY, shares for SELL). V2: fees set at match time.
src/polybot5m/execution/clob_client.py:873
Methodcycle_id
(self)
src/polybot5m/trading_process_log.py:212
Methoddisconnect
(self)
src/polybot5m/data/clob_ws.py:63
Methodencoding
(self)
src/polybot5m/log_setup.py:37
Functionensure_deposit_wallet_deployed
Deploy the deposit wallet when missing. Returns the relayer transaction hash when a deploy was submitted; otherwise None.
src/polybot5m/execution/deposit_wallet.py:354
Methodexecute_buy_limit
( self, *, token_side: str, limit_price: float, size: float, r
src/polybot5m/backtest/simulation.py:209
Methodexecute_buy_limit
( self, *, token_side: str, limit_price: float, size: float, r
src/polybot5m/backtest/simulation.py:417
Methodexecute_deposit_wallet_batch
( self, *, wallet_address: str, calls: list[DepositWalletCall], nonce:
src/polybot5m/execution/deposit_wallet.py:165
Methodexecute_sell_limit
( self, *, token_side: str, limit_price: float, size: float, r
src/polybot5m/backtest/simulation.py:194
Methodexecute_sell_limit
( self, *, token_side: str, limit_price: float, size: float, r
src/polybot5m/backtest/simulation.py:278
Methodfee_bps
(self)
src/polybot5m/execution/paper_exchange.py:402
Functionfetch_ctf_outcome_balances_shares
Return (yes_shares, no_shares) in human units (raw balance / 1e6), or None on error.
src/polybot5m/execution/ctf_balances.py:28
Functionfetch_usdce_balance_usdc
Return spendable pUSD balance in human units (6 decimals). None if RPC/query fails.
src/polybot5m/execution/wallet_balance.py:19
Methodfileno
(self)
src/polybot5m/log_setup.py:33
Methodfinalize
Append one NDJSON row; return True if logged.
src/polybot5m/opposite_bid_history.py:97
Methodfinish_buy_attempt
(self, tick_at_reserve: int, accepted: bool)
src/polybot5m/execution/buy_cross_market_slot.py:58
Functionformat_btc_wave_header
Merged-wave header: t_minus plus BTC spot-minus-strike epoch extrema.
src/polybot5m/trading_process_log.py:179
Functionformat_difference_rate_for_log
Suffix like ` difference_rate_btc = 1.03` for [STRIKE_SPOT] lines; empty when unavailable.
src/polybot5m/trading_process_log.py:105
Methodget_all_asset_ids
(self)
src/polybot5m/data/orderbook.py:63
Methodget_best_bid_ask
(self, asset_id: str)
src/polybot5m/data/orderbook.py:51
Methodget_collateral_balance_allowance_raw
pUSD balance + max trading allowance via Polymarket CLOB API (no Polygon RPC).
src/polybot5m/execution/clob_client.py:516
Methodget_collateral_balance_allowance_response
Raw CLOB /balance-allowance JSON for COLLATERAL.
src/polybot5m/execution/clob_client.py:603
Methodget_fee_rate_bps
(self, token_id: str)
src/polybot5m/execution/clob_client.py:622
Methodget_market
( self, session: aiohttp.ClientSession, *, coin: str, market_id: str )
src/polybot5m/backtest/client.py:81
Methodget_mergeable_amount_raw
Return (yes_raw, no_raw, merge_amount_raw) where merge = min(yes, no).
src/polybot5m/execution/clob_client.py:553
Methodget_order_book
(self, token_id: str)
src/polybot5m/execution/clob_client.py:628
Methodget_wallet_nonce
(self)
src/polybot5m/execution/deposit_wallet.py:150
Methodis_deployed
(self, wallet_address: str)
src/polybot5m/execution/deposit_wallet.py:144
Methodisatty
(self)
src/polybot5m/log_setup.py:30
Methodlatest_trade
(self)
src/polybot5m/data/user_channel_store.py:66
Functionmerge_target_for_deposit_wallet
(*, neg_risk: bool = False, override: str = "")
src/polybot5m/constants.py:114
Functionofficial_sync_and_get_conditional_pair
Read conditional balances via get_balance_allowance. When sync_update is True, call update_balance_allowance first (post-split only — rate li
src/polybot5m/execution/clob_balances.py:19
Methodplace_limit_order
Queue partial fill with settlement delay; balances update when settled.
src/polybot5m/execution/paper_exchange.py:279
Functionread_ctf_position_balance_raw
ERC1155 balance on core CTF (fallback when CLOB conditional cache is stale).
src/polybot5m/execution/clob_client.py:121
Methodrecord
(self, now_mono: float, sms: float | None)
src/polybot5m/trading_process_log.py:89
Methodrecord
Update extrema when ``sms`` is valid; return (min, max) after this sample.
src/polybot5m/trading_process_log.py:146
Functionredeem_positions
Redeem winning CTF positions for a single resolved market. If use_relayer is True and api_key, api_secret, api_passphrase are all set, u
src/polybot5m/execution/redeem.py:287
Functionrpc_execution_http_connected
True when Web3 HTTPProvider can connect (False if RPC URL is bad, expired quota, etc.).
src/polybot5m/execution/ctf_balances.py:12
Functionrun
Run: monitor order book → redeem, repeat.
src/polybot5m/cli.py:45
Methodsettings_customise_sources
( cls, settings_cls: type[BaseSettings], init_settings: PydanticBaseSettingsSource,
src/polybot5m/config.py:339
Methodstart
(self)
src/polybot5m/execution/buy_cross_market_slot.py:23
Methodstarting_usdc
(self)
src/polybot5m/execution/paper_exchange.py:398
Methodstop
(self)
src/polybot5m/execution/buy_cross_market_slot.py:27
Methodsync_conditional_balances_after_split
Post-split: wait for relayer confirm, then refresh via CLOB SDK + Data API fallback.
src/polybot5m/execution/clob_client.py:485
Methodto_monitor_summary
(self)
src/polybot5m/execution/paper_exchange.py:437
Methodtry_reserve_buy_slot
If True, caller may POST one BUY; must call ``finish_buy_attempt`` afterward. Second return value is ``tick_cycle`` at reservation (f
src/polybot5m/execution/buy_cross_market_slot.py:44
Methodupdate
( self, *, best_bid_yes: float, best_bid_no: float, rem_yes: float,
src/polybot5m/opposite_bid_history.py:59
Methodupdate_key
(self, **fields: Any)
src/polybot5m/trading_process_log.py:232
← previous301–389 of 389, ranked by callers