MCPcopy Create free account

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

Functions792 in github.com/MrFadiAi/Polymarket-bot

FunctioncheckTrendTrades
()
bot-config.ts:773
FunctioncheckTrendTrades
()
bot-with-dashboard.ts:862
Methodclear
* Clear all cached values
src/core/cache.ts:65
Methodclear
()
src/core/unified-cache.ts:57
Methodclear
()
src/core/unified-cache.ts:123
Methodclear
()
src/core/cache-adapter-bridge.ts:38
Methodclear
()
src/core/cache-adapter-bridge.ts:86
Methodclear
()
src/__tests__/test-utils.ts:116
MethodclearAllPositions
* Clear positions from multiple markets * * @param markets Markets to clear * @param execute If true, execute clearing * @returns Results
src/services/arbitrage-service.ts:1233
MethodclearCache
* Clear all cached data
src/index.ts:620
FunctionclearHistory
()
src/dashboard/session-history.ts:325
MethodclearLogs
()
src/dashboard/state-emitter.ts:84
MethodcommentHandler
(comment: Comment)
src/services/realtime-service-v2.ts:772
MethodcompareWallets
* Compare multiple wallets * * @example * ```typescript * const comparison = await sdk.smartMoney.compareWallets( * ['0x111...', '0x2
src/services/smart-money-service.ts:1306
Methodconstructor
(config: PolymarketSDKConfig = {})
src/index.ts:420
Methodconstructor
(private cache: Cache)
src/core/unified-cache.ts:35
Methodconstructor
(private adapter: CacheAdapter)
src/core/unified-cache.ts:72
Methodconstructor
()
src/core/rate-limiter.ts:48
Methodconstructor
(private cache: Cache)
src/core/cache-adapter-bridge.ts:16
Methodconstructor
(private adapter: CacheAdapter)
src/core/cache-adapter-bridge.ts:48
Methodconstructor
( public code: ErrorCode, message: string, public retryable: boolean = false, public originalE
src/core/errors.ts:38
Methodconstructor
(config: RealtimeServiceConfig = {})
src/services/realtime-service-v2.ts:270
Methodconstructor
( realtimeService: RealtimeServiceV2, tradingService: TradingService | null, marketService: Market
src/services/dip-arb-service.ts:133
Methodconstructor
( walletService: WalletService, realtimeService: RealtimeServiceV2, tradingService: TradingService
src/services/smart-money-service.ts:694
Methodconstructor
( private gammaApi: GammaApiClient | undefined, private dataApi: DataApiClient | undefined, privat
src/services/market-service.ts:194
Methodconstructor
(config: OnchainServiceConfig)
src/services/onchain-service.ts:146
Methodconstructor
( private dataApi: DataApiClient, private subgraph: SubgraphClient, private cache: UnifiedCache
src/services/wallet-service.ts:213
Methodconstructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache, private config: TradingServiceCon
src/services/trading-service.ts:168
Methodconstructor
(signer: ethers.Wallet)
src/services/swap-service.ts:157
Methodconstructor
(config: ArbitrageServiceConfig = {})
src/services/arbitrage-service.ts:294
Methodconstructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache )
src/services/binance-service.ts:100
Methodconstructor
(signer: ethers.Wallet, config: AuthorizationServiceConfig = {})
src/services/authorization-service.ts:111
Methodconstructor
(config: CTFConfig)
src/clients/ctf-client.ts:193
Methodconstructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache )
src/clients/subgraph.ts:141
Methodconstructor
(config: BridgeConfig = {})
src/clients/bridge-client.ts:183
Methodconstructor
* Creates a new Gamma API client * * @param rateLimiter - Rate limiter instance for API throttling * @param cache - Cache instance for storin
src/clients/gamma-api.ts:324
Methodconstructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache )
src/clients/data-api.ts:386
FunctioncopyWallet
()
dashboard/src/components/Header.tsx:48
FunctioncreateMockFetch
(responses: Record<string, unknown>)
src/__tests__/test-utils.ts:123
FunctioncreateSessionFromState
( startTime: number, state: { totalPnL: number; tradesExecuted: number; smartMoneyTrades: numb
src/dashboard/session-history.ts:164
Methoddel
(key: string)
src/core/cache-adapter-bridge.ts:29
FunctiondeleteSession
(sessionId: string)
src/dashboard/session-history.ts:302
MethoddetectArbitrage
* Detect arbitrage opportunity * * 使用有效价格(考虑镜像订单)计算套利机会 * 详细原理见: docs/01-polymarket-orderbook-arbitrage.md
src/services/market-service.ts:1112
MethoddisableAutoRotate
* Disable auto-rotate
src/services/dip-arb-service.ts:1700
MethodestimateMergeGas
* Get detailed gas estimate for a merge operation
src/services/onchain-service.ts:434
MethodestimateSplitGas
* Get detailed gas estimate for a split operation
src/services/onchain-service.ts:427
Methodexecute
(_apiType: string, fn: () => Promise<T>)
src/__tests__/test-utils.ts:92
MethodexecuteBatch
* Execute multiple functions in order with rate limiting
src/core/rate-limiter.ts:66
Methodexists
(key: string)
src/core/cache-adapter-bridge.ts:33
FunctionexpectOrderbookSorted
(orderbook: { bids: Array<{ price: number }>; asks: Array<{ price: number }>; })
src/__tests__/test-utils.ts:148
MethodfetchAllFillsInPeriod
* Fetch all order filled events in a time period with pagination
src/services/wallet-service.ts:703
MethodfindAndStart
* Find and start arbitraging the best opportunity * * @param minProfit Minimum profit threshold (default: 0.005 = 0.5%) * @returns The scan r
src/services/arbitrage-service.ts:1843
MethodfindBalance
(token: string)
src/services/onchain-service.ts:196
MethodformatPercent
(v: number)
src/services/smart-money-service.ts:1672
MethodformatPnL
(v: number)
src/services/smart-money-service.ts:1671
MethodformatTime
(ts: number)
src/services/dip-arb-service.ts:2258
FunctionformatUsdc
(amount: BigNumber)
src/clients/ctf-client.ts:1216
MethodgenerateTextReport
* Generate a text analysis report for a wallet * * @param address - Wallet address * @param options - Report options with progress callback
src/services/smart-money-service.ts:1624
Methodget
(key: string)
src/core/unified-cache.ts:37
Methodget
(key: string)
src/core/unified-cache.ts:74
Methodget
(key: string)
src/core/cache-adapter-bridge.ts:18
Methodget
(key: string)
src/core/cache-adapter-bridge.ts:50
MethodgetAllLeaderboard
* Get all leaderboard entries up to a max count
src/clients/data-api.ts:789
MethodgetAllPositions
* Get all positions for the wallet across multiple markets
src/clients/ctf-client.ts:949
MethodgetAuthorizationService
* Get the underlying AuthorizationService for advanced operations
src/services/onchain-service.ts:585
MethodgetAutoRotateConfig
* Get auto-rotate configuration
src/services/dip-arb-service.ts:1715
MethodgetAvailablePools
* Get all available liquidity pools on QuickSwap V3
src/services/onchain-service.ts:511
MethodgetAvailablePools
* Get all available pools for supported tokens
src/services/swap-service.ts:246
MethodgetBalance
* Get current balance state
src/services/arbitrage-service.ts:471
FunctiongetBinaryTokens
(tokens: MarketToken[])
src/core/types.ts:494
MethodgetBtcDepositAddress
* Get the Bitcoin deposit address for a wallet * * @param walletAddress - Your Polymarket wallet address * @returns The Bitcoin deposit addre
src/clients/bridge-client.ts:310
MethodgetCTFClient
* Get the underlying CTFClient for advanced operations
src/services/onchain-service.ts:578
MethodgetClobClient
()
src/services/trading-service.ts:618
MethodgetDailyReport
* Get daily wallet report * * @param address - Wallet address * @param date - Date for the report (default: today) * * @example * ``
src/services/smart-money-service.ts:1363
MethodgetDepositAddress
* @deprecated Use getEvmDepositAddress(), getSolanaDepositAddress(), or getBtcDepositAddress() instead. * * The Bridge API returns universal add
src/clients/bridge-client.ts:323
MethodgetEventById
* Get a single event by its ID * * @param id - The internal event ID * @returns The event if found, null otherwise * * @example * ``
src/clients/gamma-api.ts:499
MethodgetEventBySlug
* Get a single event by its URL slug * * @param slug - The URL-friendly event slug * @returns The event if found, null otherwise * * @e
src/clients/gamma-api.ts:483
FunctiongetHistorySummary
()
src/dashboard/session-history.ts:278
MethodgetLastTrade
* Get cached last trade for an asset
src/services/realtime-service-v2.ts:870
MethodgetLastTradePrice
* Get last trade price for a token
src/services/market-service.ts:488
MethodgetMarketData
* 获取市场数据
src/clients/subgraph.ts:507
MethodgetMaticBalance
* Get native MATIC balance
src/services/onchain-service.ts:185
MethodgetNativeUsdcBalance
* Get native USDC balance (not compatible with CTF)
src/services/onchain-service.ts:332
MethodgetNetUserBalances
* 获取 Net 用户余额
src/clients/subgraph.ts:255
MethodgetOrCreateUserStats
(address: string)
src/services/wallet-service.ts:876
MethodgetOrSet
* Get a cached value or set it if not present
src/core/cache.ts:39
MethodgetOrSet
( key: string, ttlMs: number, factory: () => Promise<T> )
src/core/unified-cache.ts:45
MethodgetOrSet
( key: string, ttlMs: number, factory: () => Promise<T> )
src/core/unified-cache.ts:93
MethodgetOrSet
( key: string, ttlMs: number, factory: () => Promise<T> )
src/core/cache-adapter-bridge.ts:66
MethodgetOrSet
( key: string, ttl: number, fn: () => Promise<T> )
src/__tests__/test-utils.ts:102
MethodgetOrderbook
* Get current orderbook state
src/services/arbitrage-service.ts:464
MethodgetPendingRedemptions
* Get pending redemptions (for debugging/monitoring)
src/services/dip-arb-service.ts:1954
MethodgetPortfolioValue
* Get total portfolio value across positions
src/clients/ctf-client.ts:1059
MethodgetPositionsForMarket
* Get positions for a specific market
src/services/wallet-service.ts:286
MethodgetPrice
* Get cached derived price for an asset
src/services/realtime-service-v2.ts:849
MethodgetPriceAt
* Get price at a specific timestamp (nearest candle close) * * Uses the 1-minute candle that contains the timestamp and returns * the close p
src/services/binance-service.ts:202
MethodgetPriceChange
* Get price change over a time period * * @param symbol - Trading pair * @param startTime - Start time (Unix ms) * @param endTime - End ti
src/services/binance-service.ts:246
MethodgetPriceToBeat
* Get current price to beat
src/services/dip-arb-service.ts:538
MethodgetPrices
* Get multiple prices at once * * @param symbols - Array of trading pairs * @returns Map of symbol to price
src/services/binance-service.ts:227
MethodgetProvider
* Get the shared provider instance
src/services/onchain-service.ts:606
← previousnext →601–700 of 792, ranked by callers