MCPcopy Create free account

hub / github.com/MrFadiAi/Polymarket-bot / functions

Functions792 in github.com/MrFadiAi/Polymarket-bot

MethodgetRealtimeSpread
* Get real-time spread analysis only (without K-lines) * Use this for quick arbitrage checks
src/services/market-service.ts:1092
MethodgetSmartMoneyInfo
* Get Smart Money info for an address
src/services/smart-money-service.ts:774
MethodgetSolanaDepositAddress
* Get the Solana deposit address for a wallet * * @param walletAddress - Your Polymarket wallet address * @returns The Solana deposit address
src/clients/bridge-client.ts:299
MethodgetStats
* Get statistics
src/services/dip-arb-service.ts:512
MethodgetStats
* Get statistics
src/services/arbitrage-service.ts:478
FunctiongetSupportedDepositTokens
()
src/clients/bridge-client.ts:789
MethodgetSupportedTokens
* Get list of supported tokens
src/services/swap-service.ts:713
MethodgetSwapQuote
* Get a quote for a swap (checks if route is possible)
src/services/onchain-service.ts:466
MethodgetSwapService
* Get the underlying SwapService for advanced operations
src/services/onchain-service.ts:592
MethodgetTokenOrderbooks
* Get orderbooks for multiple tokens
src/services/market-service.ts:364
MethodgetTokenUnderlyingData
* Get aligned K-line data for token and underlying asset * * This method fetches K-line data from both Polymarket (token prices) * and Binanc
src/services/market-service.ts:748
MethodgetTransactionStatus
* Get transaction status with detailed info
src/services/onchain-service.ts:450
MethodgetTrendingMarkets
* Get trending markets
src/services/market-service.ts:1144
MethodgetUserBalances
* 获取用户余额
src/clients/subgraph.ts:239
MethodgetWallet
* Get the shared wallet instance
src/services/onchain-service.ts:599
MethodgetWallet
()
src/services/trading-service.ts:606
MethodgetWalletBalance
* Get balance for a specific token for any wallet (static)
src/services/swap-service.ts:761
MethodgetWalletReport
* Generate comprehensive wallet report * * @example * ```typescript * const report = await sdk.smartMoney.getWalletReport('0x...'); * c
src/services/smart-money-service.ts:1131
FunctionhandleBookUpdate
(update: { assetId: string; bids: Array<{ price: string; size: string }>; asks: Array<{ price: string; size: s
scripts/archive/one-off-trading/faze-bo3-arb.ts:198
FunctionhandleClosePosition
(tokenId: string, size: number)
dashboard/src/App.tsx:30
MethodhandleConnect
(client: RealTimeDataClient)
src/services/realtime-service-v2.ts:900
MethodhandleMessage
(client: RealTimeDataClient, message: Message)
src/services/realtime-service-v2.ts:929
FunctionhandleRedeemPosition
(conditionId: string)
dashboard/src/App.tsx:38
MethodhandleStatusChange
(status: ConnectionStatus)
src/services/realtime-service-v2.ts:916
FunctionhandleToggleDryRun
()
dashboard/src/App.tsx:42
FunctionhandleToggleStrategy
(strategy: string, enabled: boolean)
dashboard/src/App.tsx:34
Methodhandler
(event: MarketEvent)
src/services/realtime-service-v2.ts:498
Methodinvalidate
* Invalidate all keys matching a pattern
src/core/cache.ts:54
Methodinvalidate
(pattern: string)
src/core/unified-cache.ts:53
Methodinvalidate
(pattern: string)
src/core/unified-cache.ts:115
Methodinvalidate
(pattern: string)
src/core/cache-adapter-bridge.ts:80
MethodinvalidateMarketCache
* Invalidate cache for a specific market
src/index.ts:627
MethodisActive
* Check if service is running
src/services/arbitrage-service.ts:457
FunctionisDipArbLeg2Signal
(signal: DipArbSignal)
src/services/dip-arb-types.ts:717
MethodlastTradeHandler
(trade: LastTradeInfo)
src/services/realtime-service-v2.ts:362
Methodmerge
* Merge YES + NO tokens back to USDC * * @param conditionId - Market condition ID * @param amount - Number of token pairs to merge * @retu
src/services/onchain-service.ts:272
MethodorderHandler
(order: UserOrder)
src/services/realtime-service-v2.ts:534
MethodorderbookHandler
(book: OrderbookSnapshot)
src/services/realtime-service-v2.ts:350
FunctionparseUsdc
(amount: string)
src/clients/ctf-client.ts:1209
MethodpriceChangeHandler
(change: PriceChange)
src/services/realtime-service-v2.ts:356
FunctionprintSubHeader
(title: string)
scripts/arb-tests/03-e2e-tests.ts:75
Methodquery
* 执行 GraphQL 查询
src/clients/subgraph.ts:149
MethodquoteHandler
(quote: RFQQuote)
src/services/realtime-service-v2.ts:821
MethodreactionHandler
(reaction: Reaction)
src/services/realtime-service-v2.ts:773
Methodredeem
* Redeem winning tokens after market resolution (Standard CTF) * * ⚠️ IMPORTANT: This method uses standard CTF position ID calculation. * It
src/clients/ctf-client.ts:488
MethodrequestHandler
(request: RFQRequest)
src/services/realtime-service-v2.ts:820
MethodresolveMarketTokens
* Resolve market tokens from CLOB API * * This method fetches the actual token IDs from the CLOB API, * which are different from the calculat
src/services/market-service.ts:291
MethodrotateToNextMarket
* Manually rotate to next market
src/services/dip-arb-service.ts:1757
FunctionsdkLogHandler
(message: string)
scripts/dip-arb/auto-trade.ts:118
MethodsearchMarkets
* Search markets
src/services/market-service.ts:1154
Methodset
(key: string, value: T, ttlMs: number)
src/core/unified-cache.ts:41
Methodset
(key: string, value: T, ttlMs: number)
src/core/unified-cache.ts:79
Methodset
(key: string, value: T, ttl?: number)
src/core/cache-adapter-bridge.ts:23
Methodset
(key: string, value: T, ttlMs: number)
src/core/cache-adapter-bridge.ts:60
MethodsetDataApiClient
* Set DataApiClient for report generation * This allows setting the client after construction
src/services/smart-money-service.ts:716
MethodsetErc1155Approval
* Set approval for an ERC1155 operator
src/services/onchain-service.ts:245
MethodsetErc1155Approval
* Set approval for an ERC1155 operator * * @param operatorAddress - The operator address to approve * @param approved - Whether to approve or
src/services/authorization-service.ts:331
MethodsetMaticPrice
* Set MATIC price manually (for testing or when external price is available)
src/clients/ctf-client.ts:809
MethodsettleMultiple
* Settle multiple markets at once
src/services/arbitrage-service.ts:877
Functionshutdown
()
examples/13-arbitrage-service.ts:154
Methodsize
* Get the number of cached entries
src/core/cache.ts:72
Methodsize
()
src/core/cache-adapter-bridge.ts:90
Methodstop
* Stop monitoring
src/services/arbitrage-service.ts:424
FunctionstopDashboard
()
src/dashboard/server.ts:187
MethodsubscribeComments
* Subscribe to comment and reaction events
src/services/realtime-service-v2.ts:750
MethodsubscribeEquityPrices
* Subscribe to equity price updates * @param symbols - Array of symbols (e.g., ['AAPL', 'GOOGL']) * @param handlers - Event handlers
src/services/realtime-service-v2.ts:710
MethodsubscribeMarketEvents
* Subscribe to market lifecycle events (creation, resolution)
src/services/realtime-service-v2.ts:488
MethodsubscribeRFQ
* Subscribe to RFQ (Request for Quote) events
src/services/realtime-service-v2.ts:801
MethodsubscribeUserEvents
* Subscribe to user order and trade events * @param credentials - CLOB API credentials * @param handlers - Event handlers
src/services/realtime-service-v2.ts:525
FunctionswapAndDeposit
( signer: ethers.Wallet, token: string, amount: string, options: SwapAndDepositOptions = {} )
src/clients/bridge-client.ts:673
MethodswapAndDeposit
* Swap any supported token to USDC.e and deposit to Polymarket * * This is a convenience method for converting tokens to the USDC.e * format
src/services/onchain-service.ts:497
MethodswapMultiHop
* Execute a multi-hop swap
src/services/swap-service.ts:374
MethodtickSizeHandler
(change: TickSizeChange)
src/services/realtime-service-v2.ts:368
MethodtoRanking
(entry: PeriodLeaderboardEntry | null)
src/services/smart-money-service.ts:1178
MethodtrackGroupSellRatio
* Track sell ratio for multiple wallets (aggregated)
src/services/wallet-service.ts:1016
MethodtradeHandler
(trade: UserTrade)
src/services/realtime-service-v2.ts:535
Methodtransfer
* Transfer an ERC20 token to another address
src/services/onchain-service.ts:527
MethodtransferMatic
* Transfer native MATIC to another address
src/services/onchain-service.ts:534
MethodtransferUsdc
* Transfer native USDC to another address * * WARNING: This transfers NATIVE USDC, not USDC.e. * For Polymarket CTF operations, use transferU
src/services/onchain-service.ts:544
MethodtransferUsdc
* Transfer native USDC to another address * * ⚠️ WARNING: This transfers NATIVE USDC (0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359) * * For
src/services/swap-service.ts:870
MethodtransferUsdcE
* Transfer USDC.e (bridged USDC) to another address * * This is the correct method for Polymarket CTF operations.
src/services/onchain-service.ts:553
MethodtransferUsdcE
* Transfer USDC.e (bridged USDC) to another address * * ✅ This is the correct method for Polymarket CTF operations. * * Polymarket's Condi
src/services/swap-service.ts:893
MethodunwrapMatic
* Unwrap WMATIC to native MATIC
src/services/onchain-service.ts:569
MethodupdateBalanceAllowance
( assetType: 'COLLATERAL' | 'CONDITIONAL', tokenId?: string )
src/services/trading-service.ts:585
MethodupdateConfig
(config: Partial<ArbitrageServiceConfig>)
src/services/arbitrage-service.ts:342
MethodupdateConfig
(newConfig: BotConfig)
src/dashboard/state-emitter.ts:28
FunctionwaitFor
(ms: number)
src/__tests__/test-utils.ts:168
MethodwaitForTransaction
* Wait for transaction confirmation with timeout
src/services/onchain-service.ts:457
MethodwaitForTransaction
* Wait for transaction confirmation with timeout
src/clients/ctf-client.ts:879
MethodwalletAddress
* Get the wallet address
src/services/authorization-service.ts:119
FunctionwithRetry
( fn: () => Promise<T>, options: { maxRetries?: number; delay?: number } = {} )
src/core/errors.ts:97
MethodwrapMatic
* Wrap native MATIC to WMATIC
src/services/onchain-service.ts:562
← previous701–792 of 792, ranked by callers