Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MrFadiAi/Polymarket-bot
/ functions
Functions
792 in github.com/MrFadiAi/Polymarket-bot
⨍
Functions
792
◇
Types & classes
342
Function
checkTrendTrades
()
bot-config.ts:773
Function
checkTrendTrades
()
bot-with-dashboard.ts:862
Method
clear
* Clear all cached values
src/core/cache.ts:65
Method
clear
()
src/core/unified-cache.ts:57
Method
clear
()
src/core/unified-cache.ts:123
Method
clear
()
src/core/cache-adapter-bridge.ts:38
Method
clear
()
src/core/cache-adapter-bridge.ts:86
Method
clear
()
src/__tests__/test-utils.ts:116
Method
clearAllPositions
* Clear positions from multiple markets * * @param markets Markets to clear * @param execute If true, execute clearing * @returns Results
src/services/arbitrage-service.ts:1233
Method
clearCache
* Clear all cached data
src/index.ts:620
Function
clearHistory
()
src/dashboard/session-history.ts:325
Method
clearLogs
()
src/dashboard/state-emitter.ts:84
Method
commentHandler
(comment: Comment)
src/services/realtime-service-v2.ts:772
Method
compareWallets
* Compare multiple wallets * * @example * ```typescript * const comparison = await sdk.smartMoney.compareWallets( * ['0x111...', '0x2
src/services/smart-money-service.ts:1306
Method
constructor
(config: PolymarketSDKConfig = {})
src/index.ts:420
Method
constructor
(private cache: Cache)
src/core/unified-cache.ts:35
Method
constructor
(private adapter: CacheAdapter)
src/core/unified-cache.ts:72
Method
constructor
()
src/core/rate-limiter.ts:48
Method
constructor
(private cache: Cache)
src/core/cache-adapter-bridge.ts:16
Method
constructor
(private adapter: CacheAdapter)
src/core/cache-adapter-bridge.ts:48
Method
constructor
( public code: ErrorCode, message: string, public retryable: boolean = false, public originalE
src/core/errors.ts:38
Method
constructor
(config: RealtimeServiceConfig = {})
src/services/realtime-service-v2.ts:270
Method
constructor
( realtimeService: RealtimeServiceV2, tradingService: TradingService | null, marketService: Market
src/services/dip-arb-service.ts:133
Method
constructor
( walletService: WalletService, realtimeService: RealtimeServiceV2, tradingService: TradingService
src/services/smart-money-service.ts:694
Method
constructor
( private gammaApi: GammaApiClient | undefined, private dataApi: DataApiClient | undefined, privat
src/services/market-service.ts:194
Method
constructor
(config: OnchainServiceConfig)
src/services/onchain-service.ts:146
Method
constructor
( private dataApi: DataApiClient, private subgraph: SubgraphClient, private cache: UnifiedCache
src/services/wallet-service.ts:213
Method
constructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache, private config: TradingServiceCon
src/services/trading-service.ts:168
Method
constructor
(signer: ethers.Wallet)
src/services/swap-service.ts:157
Method
constructor
(config: ArbitrageServiceConfig = {})
src/services/arbitrage-service.ts:294
Method
constructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache )
src/services/binance-service.ts:100
Method
constructor
(signer: ethers.Wallet, config: AuthorizationServiceConfig = {})
src/services/authorization-service.ts:111
Method
constructor
(config: CTFConfig)
src/clients/ctf-client.ts:193
Method
constructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache )
src/clients/subgraph.ts:141
Method
constructor
(config: BridgeConfig = {})
src/clients/bridge-client.ts:183
Method
constructor
* 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
Method
constructor
( private rateLimiter: RateLimiter, private cache: UnifiedCache )
src/clients/data-api.ts:386
Function
copyWallet
()
dashboard/src/components/Header.tsx:48
Function
createMockFetch
(responses: Record<string, unknown>)
src/__tests__/test-utils.ts:123
Function
createSessionFromState
( startTime: number, state: { totalPnL: number; tradesExecuted: number; smartMoneyTrades: numb
src/dashboard/session-history.ts:164
Method
del
(key: string)
src/core/cache-adapter-bridge.ts:29
Function
deleteSession
(sessionId: string)
src/dashboard/session-history.ts:302
Method
detectArbitrage
* Detect arbitrage opportunity * * 使用有效价格(考虑镜像订单)计算套利机会 * 详细原理见: docs/01-polymarket-orderbook-arbitrage.md
src/services/market-service.ts:1112
Method
disableAutoRotate
* Disable auto-rotate
src/services/dip-arb-service.ts:1700
Method
estimateMergeGas
* Get detailed gas estimate for a merge operation
src/services/onchain-service.ts:434
Method
estimateSplitGas
* Get detailed gas estimate for a split operation
src/services/onchain-service.ts:427
Method
execute
(_apiType: string, fn: () => Promise<T>)
src/__tests__/test-utils.ts:92
Method
executeBatch
* Execute multiple functions in order with rate limiting
src/core/rate-limiter.ts:66
Method
exists
(key: string)
src/core/cache-adapter-bridge.ts:33
Function
expectOrderbookSorted
(orderbook: { bids: Array<{ price: number }>; asks: Array<{ price: number }>; })
src/__tests__/test-utils.ts:148
Method
fetchAllFillsInPeriod
* Fetch all order filled events in a time period with pagination
src/services/wallet-service.ts:703
Method
findAndStart
* 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
Method
findBalance
(token: string)
src/services/onchain-service.ts:196
Method
formatPercent
(v: number)
src/services/smart-money-service.ts:1672
Method
formatPnL
(v: number)
src/services/smart-money-service.ts:1671
Method
formatTime
(ts: number)
src/services/dip-arb-service.ts:2258
Function
formatUsdc
(amount: BigNumber)
src/clients/ctf-client.ts:1216
Method
generateTextReport
* 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
Method
get
(key: string)
src/core/unified-cache.ts:37
Method
get
(key: string)
src/core/unified-cache.ts:74
Method
get
(key: string)
src/core/cache-adapter-bridge.ts:18
Method
get
(key: string)
src/core/cache-adapter-bridge.ts:50
Method
getAllLeaderboard
* Get all leaderboard entries up to a max count
src/clients/data-api.ts:789
Method
getAllPositions
* Get all positions for the wallet across multiple markets
src/clients/ctf-client.ts:949
Method
getAuthorizationService
* Get the underlying AuthorizationService for advanced operations
src/services/onchain-service.ts:585
Method
getAutoRotateConfig
* Get auto-rotate configuration
src/services/dip-arb-service.ts:1715
Method
getAvailablePools
* Get all available liquidity pools on QuickSwap V3
src/services/onchain-service.ts:511
Method
getAvailablePools
* Get all available pools for supported tokens
src/services/swap-service.ts:246
Method
getBalance
* Get current balance state
src/services/arbitrage-service.ts:471
Function
getBinaryTokens
(tokens: MarketToken[])
src/core/types.ts:494
Method
getBtcDepositAddress
* 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
Method
getCTFClient
* Get the underlying CTFClient for advanced operations
src/services/onchain-service.ts:578
Method
getClobClient
()
src/services/trading-service.ts:618
Method
getDailyReport
* Get daily wallet report * * @param address - Wallet address * @param date - Date for the report (default: today) * * @example * ``
src/services/smart-money-service.ts:1363
Method
getDepositAddress
* @deprecated Use getEvmDepositAddress(), getSolanaDepositAddress(), or getBtcDepositAddress() instead. * * The Bridge API returns universal add
src/clients/bridge-client.ts:323
Method
getEventById
* 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
Method
getEventBySlug
* 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
Function
getHistorySummary
()
src/dashboard/session-history.ts:278
Method
getLastTrade
* Get cached last trade for an asset
src/services/realtime-service-v2.ts:870
Method
getLastTradePrice
* Get last trade price for a token
src/services/market-service.ts:488
Method
getMarketData
* 获取市场数据
src/clients/subgraph.ts:507
Method
getMaticBalance
* Get native MATIC balance
src/services/onchain-service.ts:185
Method
getNativeUsdcBalance
* Get native USDC balance (not compatible with CTF)
src/services/onchain-service.ts:332
Method
getNetUserBalances
* 获取 Net 用户余额
src/clients/subgraph.ts:255
Method
getOrCreateUserStats
(address: string)
src/services/wallet-service.ts:876
Method
getOrSet
* Get a cached value or set it if not present
src/core/cache.ts:39
Method
getOrSet
( key: string, ttlMs: number, factory: () => Promise<T> )
src/core/unified-cache.ts:45
Method
getOrSet
( key: string, ttlMs: number, factory: () => Promise<T> )
src/core/unified-cache.ts:93
Method
getOrSet
( key: string, ttlMs: number, factory: () => Promise<T> )
src/core/cache-adapter-bridge.ts:66
Method
getOrSet
( key: string, ttl: number, fn: () => Promise<T> )
src/__tests__/test-utils.ts:102
Method
getOrderbook
* Get current orderbook state
src/services/arbitrage-service.ts:464
Method
getPendingRedemptions
* Get pending redemptions (for debugging/monitoring)
src/services/dip-arb-service.ts:1954
Method
getPortfolioValue
* Get total portfolio value across positions
src/clients/ctf-client.ts:1059
Method
getPositionsForMarket
* Get positions for a specific market
src/services/wallet-service.ts:286
Method
getPrice
* Get cached derived price for an asset
src/services/realtime-service-v2.ts:849
Method
getPriceAt
* 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
Method
getPriceChange
* 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
Method
getPriceToBeat
* Get current price to beat
src/services/dip-arb-service.ts:538
Method
getPrices
* Get multiple prices at once * * @param symbols - Array of trading pairs * @returns Map of symbol to price
src/services/binance-service.ts:227
Method
getProvider
* Get the shared provider instance
src/services/onchain-service.ts:606
← previous
next →
601–700 of 792, ranked by callers