MCPcopy Create free account

hub / github.com/BizShibe/openclaw-ai-polymarket-trading-bot / functions

Functions75 in github.com/BizShibe/openclaw-ai-polymarket-trading-bot

↓ 16 callersFunctionfmt
(n, d = 4)
ui/app.js:22
↓ 8 callersFunctionvalidHttpUrl
(s: string)
src/envCheck.ts:20
↓ 5 callersFunctionloadPositions
(filePath = defaultPath)
src/engine/positionStore.ts:7
↓ 4 callersFunctionclamp01
(v: number)
src/connectors/polymarket.ts:240
↓ 4 callersFunctionescapeHtml
(s)
ui/app.js:158
↓ 4 callersFunctionisPlaceholder
(v: string)
src/envCheck.ts:11
↓ 3 callersFunctiongetTokenIdsForCondition
(conditionId: string)
src/connectors/orderExecution.ts:164
↓ 3 callersFunctionrefreshPrediction
()
ui/app.js:56
↓ 2 callersFunctionbuildFeatures
( ticks: MarketTick[], whale: WhaleFlow, walletWinrates: Map<string, number> )
src/engine/features.ts:4
↓ 2 callersFunctionema
(prices: number[], period: number)
src/engine/features.ts:53
↓ 2 callersMethodfetchRecentTrades
(limit = 200)
src/connectors/polymarket.ts:208
↓ 2 callersFunctionfmtCountdown
(sec)
ui/app.js:25
↓ 2 callersMethodgetCurrentMarketInfo
()
src/connectors/polymarket.ts:118
↓ 2 callersMethodgetMarketTicks
(limit = 15)
src/connectors/polymarket.ts:40
↓ 2 callersFunctiongetPublicClient
()
src/connectors/orderExecution.ts:69
↓ 2 callersFunctiongetWalletWinrates
(wallets: string[])
src/connectors/walletPerformance.ts:121
↓ 2 callersMethodgetWhaleFlow
(marketId: string)
src/connectors/polymarket.ts:55
↓ 2 callersFunctionparseJsonArray
(v?: string)
src/connectors/polymarket.ts:223
↓ 2 callersFunctionplaceOrder
(params: PlaceOrderParams)
src/connectors/orderExecution.ts:194
↓ 2 callersFunctionpredict
(features: FeatureVector, llmBias: number)
src/engine/predictor.ts:3
↓ 2 callersFunctionremovePosition
(marketId: string, filePath = defaultPath)
src/engine/positionStore.ts:37
↓ 2 callersFunctionrenderHistory
()
ui/app.js:164
↓ 2 callersMethodresolveMarket
()
src/connectors/polymarket.ts:139
↓ 2 callersFunctionsavePositions
(positions: LivePosition[], filePath = defaultPath)
src/engine/positionStore.ts:17
↓ 2 callersMethodscore
(features: FeatureVector)
src/models/llmScorer.ts:10
↓ 2 callersFunctionsell
( tokenId: string, sizeShares: number, priceLimit: number )
src/connectors/orderExecution.ts:252
↓ 2 callersFunctionsetStatus
(loading)
ui/app.js:44
↓ 2 callersFunctiontid
(t: { token_id?: string; tokenId?: string })
src/connectors/orderExecution.ts:154
↓ 2 callersFunctiontoClobChain
(id: number)
src/connectors/orderExecution.ts:22
↓ 2 callersFunctionvalidEthAddress
(a: string)
src/envCheck.ts:29
↓ 1 callersFunctionaddPosition
(position: LivePosition, filePath = defaultPath)
src/engine/positionStore.ts:30
↓ 1 callersFunctionbadge
(side)
ui/app.js:32
↓ 1 callersFunctionbuy
( tokenId: string, amountUsd: number, priceLimit: number )
src/connectors/orderExecution.ts:238
↓ 1 callersFunctioncalcRsi
(prices: number[], period: number)
src/engine/features.ts:63
↓ 1 callersFunctionclamp01
(v: number)
src/connectors/walletPerformance.ts:12
↓ 1 callersFunctionclamp1
(v: number)
src/engine/features.ts:78
↓ 1 callersFunctionclobAuthOptions
()
src/connectors/orderExecution.ts:34
↓ 1 callersFunctioncomputeLocalWinrates
(trades: TradeRow[], targetWallets: Set<string>)
src/connectors/walletPerformance.ts:63
↓ 1 callersMethodderiveYesPrice
(m: GammaMarket)
src/connectors/polymarket.ts:189
↓ 1 callersFunctionenvBool
(v: string | undefined, defaultVal = false)
src/config.ts:3
↓ 1 callersFunctionfetchRecentTrades
(signal: AbortSignal)
src/connectors/walletPerformance.ts:56
↓ 1 callersFunctiongateBadge
(pass)
ui/app.js:38
↓ 1 callersFunctiongetClient
()
src/connectors/orderExecution.ts:86
↓ 1 callersMethodgetConditionId
()
src/connectors/polymarket.ts:114
↓ 1 callersFunctiongetOpenPositions
(filePath = defaultPath)
src/engine/positionStore.ts:22
↓ 1 callersFunctiongetPositionsDueToClose
( closeAfterSeconds: number, filePath = defaultPath )
src/engine/positionStore.ts:42
↓ 1 callersFunctiongetSnapshot
()
src/uiServer.ts:22
↓ 1 callersFunctionhasManualClobCreds
()
src/connectors/orderExecution.ts:79
↓ 1 callersFunctionhasOpenPosition
(marketId: string, filePath = defaultPath)
src/engine/positionStore.ts:26
↓ 1 callersFunctionloop
()
src/main.ts:24
↓ 1 callersFunctionmain
()
src/clobVerify.ts:5
↓ 1 callersFunctionnormalizeWallet
(raw: unknown)
src/connectors/walletPerformance.ts:17
↓ 1 callersFunctionparse5mStartFromSlug
(slug: string)
src/connectors/polymarket.ts:233
↓ 1 callersFunctionparse5mStartFromSlug
(slug: string)
src/connectors/walletPerformance.ts:39
↓ 1 callersFunctionparseClobSignatureLabel
(raw: string)
src/clobSignature.ts:19
↓ 1 callersFunctionsideFromProb
(p)
ui/app.js:19
↓ 1 callersFunctionsigmoid
(x: number)
src/engine/predictor.ts:28
↓ 1 callersFunctionsignatureTypeV2FromLabel
(l: ClobSignatureLabel)
src/clobSignature.ts:31
↓ 1 callersFunctionsignedYesNotional
(t: TradeRow)
src/connectors/walletPerformance.ts:46
↓ 1 callersFunctiontoViemChain
(id: number)
src/connectors/orderExecution.ts:28
↓ 1 callersFunctiontokensFromClobMarketInfo
(info: MarketDetails)
src/connectors/orderExecution.ts:135
↓ 1 callersFunctiontokensFromGammaStyleMarket
(market: unknown)
src/connectors/orderExecution.ts:151
↓ 1 callersFunctiontryParseClobSignatureLabel
(raw: string)
src/clobSignature.ts:26
↓ 1 callersFunctionvalidPrivateKey
(pk: string)
src/envCheck.ts:15
↓ 1 callersFunctionvalidateBotEnv
()
src/envCheck.ts:34
↓ 1 callersFunctionvalidateUiEnv
()
src/envCheck.ts:157
↓ 1 callersFunctionverifyClobReadiness
(conditionId?: string)
src/connectors/orderExecution.ts:266
↓ 1 callersFunctionwalletClientFromPrivateKey
()
src/connectors/orderExecution.ts:58
Methodconstructor
(private readonly maxPositionUsd: number, private readonly edgeThreshold: number)
src/engine/paperTrader.ts:6
Methodconstructor
(private readonly baseUrl: string)
src/connectors/polymarket.ts:38
Methodconstructor
( private readonly apiKey?: string, private readonly baseUrl = "https://api.openai.com/v1", privat
src/models/llmScorer.ts:4
MethodfetchJson
(url: string)
src/connectors/polymarket.ts:216
MethodlistPositions
()
src/engine/paperTrader.ts:28
MethodonPrediction
(pred: Prediction, currentYesPrice: number)
src/engine/paperTrader.ts:8
FunctiontickMarketTimer
()
ui/app.js:197