MCPcopy Create free account

hub / github.com/ChiryanOY/MimicPolymarket / functions

Functions139 in github.com/ChiryanOY/MimicPolymarket

↓ 100 callersMethoderror
(message: string)
src/utils/logger.ts:68
↓ 56 callersMethodinfo
(message: string)
src/utils/logger.ts:53
↓ 40 callersMethodwarning
(message: string)
src/utils/logger.ts:63
↓ 11 callersFunctionquestion
(prompt: string)
src/scripts/setup.ts:50
↓ 11 callersMethodseparator
()
src/utils/logger.ts:171
↓ 11 callersMethodsuccess
(message: string)
src/utils/logger.ts:58
↓ 9 callersFunctiongetUserActivityModel
(walletAddress: string)
src/models/userHistory.ts:72
↓ 8 callersMethodwriteToFile
(message: string)
src/utils/logger.ts:20
↓ 7 callersMethodclearLine
()
src/utils/logger.ts:190
↓ 7 callersMethodformatAddress
(address: string)
src/utils/logger.ts:37
↓ 7 callersFunctionformatTokenAmount
(tokens: number)
src/utils/postOrderModules/shared.ts:63
↓ 7 callersFunctionprintSection
(title: string)
src/scripts/setup.ts:80
↓ 6 callersFunctioncalculateOrderSize
( config: MimicStrategyConfig, traderOrderSize: number, availableBalance: number, currentPosit
src/config/mimicStrategy.ts:54
↓ 6 callersFunctionfetchData
(url: string)
src/utils/fetchData.ts:22
↓ 6 callersFunctionisPermanentOrderError
(message: string | undefined)
src/utils/postOrderModules/shared.ts:114
↓ 5 callersFunctiongetStrategyForTrader
( traderAddress: string, traderStrategies: Map<string, MimicStrategyConfig>, defaultConfig: MimicS
src/config/mimicStrategy.ts:265
↓ 4 callersFunctiongracefulShutdown
(signal: string)
src/index.ts:17
↓ 4 callersMethodheader
(title: string)
src/utils/logger.ts:46
↓ 4 callersFunctionisValidEthereumAddress
(address: string)
src/config/env.ts:10
↓ 4 callersFunctionnormalizeAddress
(address: string)
src/utils/walletMode.ts:20
↓ 4 callersFunctionroundPriceTo2Decimals
(price: number, roundDown: boolean = true)
src/utils/postOrderModules/shared.ts:18
↓ 4 callersFunctionroundTokensTo2Decimals
(tokens: number)
src/utils/postOrderModules/shared.ts:10
↓ 3 callersFunctionclampPrice
(price: number)
src/utils/postOrderModules/shared.ts:25
↓ 3 callersFunctionextractOrderError
(response: unknown)
src/utils/postOrderModules/shared.ts:67
↓ 3 callersFunctiongetMyBalance
(address: string)
src/utils/getMyBalance.ts:20
↓ 3 callersFunctiongetOpenBuyOrdersForAsset
( clobClient: ClobClient, assetId: string )
src/utils/postOrderModules/orders.ts:20
↓ 3 callersMethodgetPosition
(assetId: string)
src/services/myStateManager.ts:67
↓ 3 callersFunctionisFokFillError
(message: string | undefined)
src/utils/postOrderModules/shared.ts:137
↓ 3 callersFunctionmarkTradeAsProcessing
(trade: TradeWithUser)
src/services/tradeExecutorModules/persistence.ts:42
↓ 3 callersFunctionmarkTradeStatus
( userAddress: string, tradeId: UserActivityInterface['_id'], status: Record<string, unknown> )
src/services/tradeExecutorModules/persistence.ts:53
↓ 3 callersFunctionvalidateMimicStrategyConfig
(config: MimicStrategyConfig)
src/config/mimicStrategy.ts:119
↓ 2 callersMethodbalance
(myBalance: number, traderBalance: number, traderAddress: string)
src/utils/logger.ts:113
↓ 2 callersFunctioncloseDB
()
src/config/db.ts:20
↓ 2 callersFunctionconnectDB
()
src/config/db.ts:7
↓ 2 callersMethodenqueue
(userAddress: string, taskFactory: () => Promise<void>)
src/services/tradeExecutorModules/queue.ts:8
↓ 2 callersFunctionfetchExecutionContext
( userAddress: string, conditionId: string, asset: string )
src/services/tradeExecutorModules/execution.ts:24
↓ 2 callersFunctionformatClobAmount
(raw: string, decimals: number)
src/scripts/checkAllowance.ts:95
↓ 2 callersFunctiongetRealBalance
( clobClient: ClobClient, assetType: AssetType, tokenId?: string )
src/utils/postOrderModules/balance.ts:4
↓ 2 callersFunctiongroupByTrader
(items: T[])
src/services/tradeExecutor.ts:26
↓ 2 callersFunctionisInsufficientBalanceOrAllowanceError
(message: string | undefined)
src/utils/postOrderModules/shared.ts:106
↓ 2 callersFunctionisNetworkError
(error: unknown)
src/utils/fetchData.ts:6
↓ 2 callersFunctionisValidEthereumAddress
(address: string)
src/scripts/setup.ts:58
↓ 2 callersFunctionlogHealthCheck
(result: HealthCheckResult)
src/utils/healthCheck.ts:140
↓ 2 callersMethodmyPositions
( wallet: string, count: number, topPositions: any[], overallPnl: number,
src/utils/logger.ts:194
↓ 2 callersMethodorderResult
(success: boolean, message: string)
src/utils/logger.ts:125
↓ 2 callersFunctionparseMimicStrategy
()
src/config/env.ts:234
↓ 2 callersFunctionperformHealthCheck
()
src/utils/healthCheck.ts:21
↓ 2 callersFunctionpostOrder
( clobClient: ClobClient, condition: 'buy' | 'sell', myPosition: unknown, userPosition: unknow
src/utils/postOrder.ts:16
↓ 2 callersFunctionresolveWalletRuntimeInfo
()
src/utils/walletMode.ts:31
↓ 2 callersMethodsize
()
src/services/tradeExecutorModules/queue.ts:4
↓ 2 callersMethodsyncStateFromAPI
()
src/services/myStateManager.ts:34
↓ 2 callersMethodwaiting
(traderCount: number, extraInfo?: string)
src/utils/logger.ts:178
↓ 1 callersMethodaddTrade
(trade: TradeWithUser)
src/services/tradeExecutorModules/aggregation.ts:30
↓ 1 callersFunctionalignMarketBuyOrder
( tokens: number, price: number )
src/utils/postOrderModules/shared.ts:40
↓ 1 callersFunctionapplySyntheticTradeStatus
( trades: TradeWithUser[], syntheticTrade: UserActivityInterface )
src/services/tradeExecutorModules/persistence.ts:67
↓ 1 callersFunctionbuildClobClient
(provider: ethers.providers.JsonRpcProvider)
src/scripts/checkAllowance.ts:33
↓ 1 callersFunctioncancelBuyOrdersForAsset
( clobClient: ClobClient, assetId: string )
src/utils/postOrderModules/orders.ts:81
↓ 1 callersFunctioncheckAndSetAllowance
()
src/scripts/checkAllowance.ts:185
↓ 1 callersFunctioncreateClobClient
()
src/utils/createClobClient.ts:12
↓ 1 callersFunctioncreateRelayClient
()
src/scripts/setupDepositWallet.ts:57
↓ 1 callersFunctioncreateUserActivityModels
(addresses: string[])
src/services/tradeExecutorModules/persistence.ts:10
↓ 1 callersMethoddbConnection
(traders: string[], counts: number[])
src/utils/logger.ts:162
↓ 1 callersFunctionderiveExpectedDepositWallet
(ownerAddress: string)
src/utils/walletMode.ts:22
↓ 1 callersFunctiondoAggregatedTrading
( clobClient: ClobClient, aggregatedTrades: AggregatedTrade[] )
src/services/tradeExecutor.ts:77
↓ 1 callersFunctiondoTrading
(clobClient: ClobClient, trades: TradeWithUser[])
src/services/tradeExecutor.ts:40
↓ 1 callersMethodensureLogsDir
()
src/utils/logger.ts:14
↓ 1 callersFunctionexecuteBuyOrder
( clobClient: ClobClient, trade: UserActivityInterface, myBalance: number, userAddress: string
src/utils/postOrderModules/buy.ts:16
↓ 1 callersFunctionexecuteSellOrder
( clobClient: ClobClient, trade: UserActivityInterface, _myPosition: unknown, userPosition: {
src/utils/postOrderModules/sell.ts:22
↓ 1 callersFunctionexecuteTraderAggregations
( clobClient: ClobClient, _userAddress: string, aggregatedTrades: AggregatedTrade[], deps: Exe
src/services/tradeExecutorModules/execution.ts:159
↓ 1 callersFunctionexecuteTraderTrades
( clobClient: ClobClient, _userAddress: string, trades: TradeWithUser[], deps: ExecutionDepend
src/services/tradeExecutorModules/execution.ts:90
↓ 1 callersFunctionfetchTradeData
()
src/services/tradeMonitor.ts:108
↓ 1 callersFunctiongcd
(a: number, b: number)
src/utils/postOrderModules/shared.ts:29
↓ 1 callersFunctiongenerateEnvFile
(config: Config)
src/scripts/setup.ts:280
↓ 1 callersMethodgetAggregationKey
(trade: TradeWithUser)
src/services/tradeExecutorModules/aggregation.ts:84
↓ 1 callersMethodgetAllPositions
()
src/services/myStateManager.ts:71
↓ 1 callersMethodgetBalance
()
src/services/myStateManager.ts:63
↓ 1 callersMethodgetLogFileName
()
src/utils/logger.ts:9
↓ 1 callersMethodgetReadyTrades
()
src/services/tradeExecutorModules/aggregation.ts:67
↓ 1 callersFunctiongetUserPositionModel
(walletAddress: string)
src/models/userHistory.ts:67
↓ 1 callersFunctionhandleExecutionError
( userAddress: string, trade: UserActivityInterface, errorMsg: string, isSell: boolean = false
src/utils/postOrderModules/orders.ts:323
↓ 1 callersFunctioninit
()
src/services/tradeMonitor.ts:21
↓ 1 callersMethodinit
(clobClient: ClobClient)
src/services/myStateManager.ts:16
↓ 1 callersMethodisEnabledForTrader
(traderAddress: string)
src/services/tradeExecutorModules/aggregation.ts:16
↓ 1 callersFunctionisValidPrivateKey
(key: string)
src/scripts/setup.ts:62
↓ 1 callersFunctionmain
()
src/index.ts:66
↓ 1 callersFunctionmain
()
src/scripts/healthCheck.ts:104
↓ 1 callersFunctionmain
()
src/scripts/setupDepositWallet.ts:137
↓ 1 callersFunctionmain
()
src/scripts/setup.ts:358
↓ 1 callersFunctionmarkInsufficientBalanceTrades
( trades: TradeWithUser[] )
src/services/tradeExecutorModules/execution.ts:79
↓ 1 callersFunctionmarkTradesAsProcessing
(trades: TradeWithUser[])
src/services/tradeExecutorModules/persistence.ts:47
↓ 1 callersMethodmaskAddress
(address: string)
src/utils/logger.ts:41
↓ 1 callersFunctionmaybeApproveContracts
(relayClient: RelayClient, depositWallet: string)
src/scripts/setupDepositWallet.ts:98
↓ 1 callersFunctionmaybeDeployWallet
(relayClient: RelayClient, depositWallet: string)
src/scripts/setupDepositWallet.ts:81
↓ 1 callersFunctionparseBuilderConfig
()
src/config/env.ts:283
↓ 1 callersFunctionparseClobBuilderConfig
()
src/config/env.ts:306
↓ 1 callersFunctionparsePerTraderStrategies
()
src/config/env.ts:250
↓ 1 callersFunctionparseTraderStrategies
( jsonStr: string, defaultConfig: MimicStrategyConfig )
src/config/mimicStrategy.ts:183
↓ 1 callersFunctionparseUserAddresses
(input: string)
src/config/env.ts:172
↓ 1 callersFunctionplaceLimitOrder
( clobClient: ClobClient, tokenID: string, side: Side, tokensToOrder: number, initialLimit
src/utils/postOrderModules/orders.ts:188
↓ 1 callersFunctionprintConfiguration
()
src/scripts/healthCheck.ts:90
next →1–100 of 139, ranked by callers