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
↓ 1 callers
Function
displayStatus
()
bot-with-dashboard.ts:1385
↓ 1 callers
Method
emergencyExitLeg1
* Emergency exit Leg1 position when Leg2 times out * Sells the Leg1 tokens at market price to avoid unhedged exposure
src/services/dip-arb-service.ts:1132
↓ 1 callers
Function
estimateRequiredGas
(provider: ethers.providers.Provider, address: string)
scripts/rescue/rescue-contract.ts:331
↓ 1 callers
Method
executeLeg1
* Execute Leg1 trade
src/services/dip-arb-service.ts:547
↓ 1 callers
Method
executeLeg2
* Execute Leg2 trade
src/services/dip-arb-service.ts:694
↓ 1 callers
Function
executeLongArb
(buyYesPrice: number, buyNoPrice: number, size: number, profitRate: number)
scripts/archive/one-off-trading/faze-bo3-arb.ts:291
↓ 1 callers
Method
executeLongArb
(opportunity: ArbitrageOpportunity)
src/services/arbitrage-service.ts:1390
↓ 1 callers
Function
executeShortArb
(size: number, estProfit: number)
scripts/archive/one-off-trading/faze-bo3-arb.ts:353
↓ 1 callers
Method
executeShortArb
(opportunity: ArbitrageOpportunity)
src/services/arbitrage-service.ts:1520
↓ 1 callers
Function
extractJsonFromOutput
(output: string)
scripts/benchmark/run-all.ts:91
↓ 1 callers
Function
fetchHistory
()
dashboard/src/components/HistoryPage.tsx:18
↓ 1 callers
Method
fetchLeaderboardByPeriod
* Get leaderboard by time period with pagination info * * Same as getLeaderboardByPeriod but returns pagination metadata. * * @param perio
src/services/wallet-service.ts:489
↓ 1 callers
Function
fetchSession
(sessionId: string)
dashboard/src/components/HistoryPage.tsx:34
↓ 1 callers
Method
formatDate
(d: Date)
src/services/smart-money-service.ts:1673
↓ 1 callers
Function
formatPnL
(value: number)
dashboard/src/components/PositionsPage.tsx:17
↓ 1 callers
Function
formatTime
(timestamp: string)
dashboard/src/components/SmartMoneyPanel.tsx:12
↓ 1 callers
Function
formatTime
(timestamp: string)
dashboard/src/components/ActivityLog.tsx:58
↓ 1 callers
Method
fromClobMarket
(clob: Market)
src/services/market-service.ts:1568
↓ 1 callers
Method
generateRecommendation
* Generate copy trading recommendation
src/services/smart-money-service.ts:1866
↓ 1 callers
Method
get
* Get a cached value
src/core/cache.ts:16
↓ 1 callers
Method
getAccountValue
* Get account total value (P1) * * @param address - Wallet address * @param markets - Optional: filter by specific markets * * @example
src/clients/data-api.ts:818
↓ 1 callers
Function
getActiveUser
()
scripts/api-verification/05-verify-params-effective.ts:8
↓ 1 callers
Method
getAllPrices
* Get all cached prices
src/services/realtime-service-v2.ts:856
↓ 1 callers
Method
getBook
* Get cached orderbook for an asset
src/services/realtime-service-v2.ts:863
↓ 1 callers
Method
getClobMarkets
* Get multiple markets from CLOB
src/services/market-service.ts:316
↓ 1 callers
Method
getCondition
* 获取单个 Condition
src/clients/subgraph.ts:304
↓ 1 callers
Method
getConditions
* 获取 Condition 结算状态
src/clients/subgraph.ts:291
↓ 1 callers
Method
getConfig
* Get current configuration
src/services/dip-arb-service.ts:179
↓ 1 callers
Method
getConfig
()
src/dashboard/state-emitter.ts:68
↓ 1 callers
Method
getCredentials
()
src/services/trading-service.ts:610
↓ 1 callers
Method
getCurrentRound
* Get current round state
src/services/dip-arb-service.ts:531
↓ 1 callers
Method
getDepositInstructions
* Format deposit instructions for a user * * @param walletAddress - The Polymarket wallet address * @returns Formatted instructions string
src/clients/bridge-client.ts:384
↓ 1 callers
Method
getDetailedMergeGasEstimate
* Get detailed gas estimate for a merge operation
src/clients/ctf-client.ts:769
↓ 1 callers
Method
getDetailedSplitGasEstimate
* Get detailed gas estimate for a split operation
src/clients/ctf-client.ts:761
↓ 1 callers
Function
getGasColor
(gas: number)
dashboard/src/components/NetworkStatus.tsx:26
↓ 1 callers
Function
getIntervalMs
(interval: KLineInterval)
src/core/types.ts:504
↓ 1 callers
Function
getIntervalMs
(interval: KLineInterval)
src/services/market-service.ts:1598
↓ 1 callers
Function
getLatencyColor
(ms: number)
dashboard/src/components/NetworkStatus.tsx:32
↓ 1 callers
Method
getLeaderboard
* Get leaderboard by time period * * @example * ```typescript * // Get weekly top 100 by PnL * const leaderboard = await sdk.smartMoney
src/services/smart-money-service.ts:1079
↓ 1 callers
Method
getLifecycleReport
* Get wallet lifecycle report * * @param address - Wallet address * @param options - Report options with progress callback * * @example
src/services/smart-money-service.ts:1482
↓ 1 callers
Function
getLogFilename
(marketSlug: string)
scripts/dip-arb/auto-trade.ts:105
↓ 1 callers
Method
getLogs
()
src/dashboard/state-emitter.ts:72
↓ 1 callers
Method
getMarket
* Get current market
src/services/dip-arb-service.ts:503
↓ 1 callers
Method
getMarketByConditionId
(conditionId: string)
src/services/market-service.ts:533
↓ 1 callers
Method
getMarketByConditionId
* Get a single market by condition ID * * @param conditionId - The unique condition identifier * @returns The market if found, null otherwise
src/clients/gamma-api.ts:421
↓ 1 callers
Method
getMarketBySlug
(slug: string)
src/services/market-service.ts:513
↓ 1 callers
Method
getMarketHolders
* Get market holders (P2) * * Returns top holders for a specific market. Note: This endpoint can timeout * for large markets. * * @para
src/clients/data-api.ts:860
↓ 1 callers
Method
getMarketOpenInterest
* 获取市场 Open Interest
src/clients/subgraph.ts:405
↓ 1 callers
Method
getMaticPrice
* Get or refresh MATIC price (cached for 5 minutes)
src/clients/ctf-client.ts:788
↓ 1 callers
Method
getMidpoint
* Get midpoint price for a token
src/services/market-service.ts:466
↓ 1 callers
Method
getMinDeposit
* Get minimum deposit amount for a chain/token * * @param chainId - The chain ID * @param tokenSymbol - The token symbol * @returns Minimu
src/clients/bridge-client.ts:361
↓ 1 callers
Method
getPeriodStartTime
* Get start timestamp for a time period
src/services/wallet-service.ts:224
↓ 1 callers
Method
getPositionBalance
* Get token balances for a market using calculated position IDs * * @deprecated Use getPositionBalanceByTokenIds for CLOB markets
src/services/onchain-service.ts:341
↓ 1 callers
Function
getQueryFields
(endpoint: string)
scripts/archive/api-verification-history/10-subgraph-official.ts:51
↓ 1 callers
Method
getQuote
* Get a quote for a swap (checks if route is possible)
src/services/swap-service.ts:267
↓ 1 callers
Method
getRecentRedemptions
* 获取最近的 Redemption 事件 (不限用户)
src/clients/subgraph.ts:385
↓ 1 callers
Method
getRevertReason
* Parse revert reason from transaction
src/clients/ctf-client.ts:909
↓ 1 callers
Function
getSession
(sessionId: string)
src/dashboard/session-history.ts:294
↓ 1 callers
Function
getSignalStyle
(type: DipArbSignal['type'])
dashboard/src/components/DipArbPanel.tsx:77
↓ 1 callers
Method
getSpread
* Get spread for a token
src/services/market-service.ts:477
↓ 1 callers
Method
getState
()
src/dashboard/state-emitter.ts:64
↓ 1 callers
Function
getStatusStyle
(status: string | undefined)
dashboard/src/components/ArbitragePanel.tsx:12
↓ 1 callers
Function
getSumStatus
(sum: number)
dashboard/src/components/DipArbPanel.tsx:92
↓ 1 callers
Function
getSystemInfo
()
scripts/benchmark/run-all.ts:114
↓ 1 callers
Method
getTokenBalances
* Get all token balances
src/services/onchain-service.ts:193
↓ 1 callers
Method
getTopMarkets
* Get top markets by PnL
src/services/smart-money-service.ts:2113
↓ 1 callers
Method
getTopMarketsByOI
* 获取 Top 市场按 OI 排序
src/clients/subgraph.ts:419
↓ 1 callers
Method
getTopTraders
* Get top traders from leaderboard
src/services/wallet-service.ts:385
↓ 1 callers
Method
getTradesByUser
* Get trades for a specific user (P2)
src/clients/data-api.ts:687
↓ 1 callers
Method
getTransactionStatus
* Get transaction status with detailed info
src/clients/ctf-client.ts:819
↓ 1 callers
Function
getTrendBadge
(t: Trend)
dashboard/src/components/TrendIndicators.tsx:10
↓ 1 callers
Method
getUsdcBalance
* Get USDC.e (bridged USDC) balance - the token used by Polymarket CTF
src/services/onchain-service.ts:325
↓ 1 callers
Method
getUserActivitySummary
* 获取用户完整的链上活动摘要
src/clients/subgraph.ts:523
↓ 1 callers
Method
getWalletChartData
* Get wallet chart data * * @param address - Wallet address * * @example * ```typescript * const chartData = await sdk.smartMoney.ge
src/services/smart-money-service.ts:1561
↓ 1 callers
Function
getWalletColor
(addr: string)
dashboard/src/components/WalletList.tsx:19
↓ 1 callers
Method
getWalletStatsByPeriod
* Get wallet stats for a specific time period * * Combines data from Orderbook Subgraph (trades) and Activity Subgraph (splits/merges/redemption
src/services/wallet-service.ts:634
↓ 1 callers
Method
getWorstMarkets
* Get worst markets by PnL
src/services/smart-money-service.ts:2134
↓ 1 callers
Method
handleActivityMessage
(type: string, payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1044
↓ 1 callers
Method
handleActivityTrade
( trade: ActivityTrade, options: { filterAddresses?: string[]; minSize?: number; smartMoneyOnly?: bool
src/services/smart-money-service.ts:840
↓ 1 callers
Method
handleBookUpdate
(update: BookUpdate)
src/services/arbitrage-service.ts:1253
↓ 1 callers
Method
handleChainlinkPriceUpdate
(price: CryptoPrice)
src/services/dip-arb-service.ts:1018
↓ 1 callers
Function
handleClose
(pos: any)
dashboard/src/components/PositionsPage.tsx:22
↓ 1 callers
Method
handleCommentMessage
(type: string, payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1091
↓ 1 callers
Method
handleCryptoChainlinkPriceMessage
(payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1073
↓ 1 callers
Method
handleCryptoPriceMessage
(payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1064
↓ 1 callers
Method
handleEquityPriceMessage
(payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1082
↓ 1 callers
Method
handleMarketMessage
(type: string, payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:972
↓ 1 callers
Method
handleOrderbookUpdate
(book: OrderbookSnapshot)
src/services/dip-arb-service.ts:932
↓ 1 callers
Method
handleRFQMessage
(type: string, payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1114
↓ 1 callers
Function
handleRedeem
(pos: any)
dashboard/src/components/PositionsPage.tsx:28
↓ 1 callers
Method
handleSignal
(signal: DipArbSignal)
src/services/dip-arb-service.ts:1471
↓ 1 callers
Method
handleUserMessage
(type: string, payload: Record<string, unknown>, timestamp: number)
src/services/realtime-service-v2.ts:1014
↓ 1 callers
Function
isCollateralAsset
* Check if an asset ID is collateral (USDC) or outcome token
src/services/wallet-service.ts:46
↓ 1 callers
Method
isConditionResolved
* 检查 Condition 是否已结算
src/clients/subgraph.ts:320
↓ 1 callers
Method
isInitialized
* Check if SDK is initialized
src/index.ts:495
↓ 1 callers
Method
isSmartMoney
* Check if an address is Smart Money
src/services/smart-money-service.ts:762
↓ 1 callers
Method
isSupported
* Check if a chain/token combination is supported * * @param chainId - The chain ID to check * @param tokenSymbol - The token symbol to check
src/clients/bridge-client.ts:347
↓ 1 callers
Function
isWinningPosition
(userOutcome: string, payouts: number[])
scripts/dip-arb/redeem-positions.ts:24
↓ 1 callers
Function
main
()
bot-config.ts:869
↓ 1 callers
Function
main
()
bot-with-dashboard.ts:1007
← previous
next →
301–400 of 792, ranked by callers