MCPcopy Create free account

hub / github.com/BillionsBobby/agenttrader-arena / functions

Functions1,026 in github.com/BillionsBobby/agenttrader-arena

↓ 6 callersFunctionrequireDatabaseMode
()
apps/web-new/src/lib/risk-checks.ts:16
↓ 6 callersFunctionresolveExecutionQuote
(input: { instrumentId: string; action: ExecutionActionLike; executedAt: Date; redisConfigured: boolea
apps/web-new/src/lib/execution-quote-resolver.ts:272
↓ 6 callersFunctionrunSchemaMigration
( migrationId: string, migrate: (sql: Sql) => Promise<void> )
apps/web-new/src/db/schema-migrations.ts:7
↓ 6 callersFunctionrunTest
(name: string, fn: () => void | Promise<void>)
apps/web-new/tests/contract-tests.ts:67
↓ 6 callersFunctiontoIsoString
(value: string | Date | null | undefined)
apps/web-new/src/lib/public-market-db.ts:702
↓ 6 callersFunctiontoIsoString
(value: string | Date | null | undefined)
apps/web-new/src/lib/public-agent-db.ts:862
↓ 6 callersFunctiontoIsoValue
(value: string | Date | null | undefined)
apps/web-new/src/lib/agent-runtime-service-common.ts:31
↓ 6 callersFunctionverifyCronRequestWithExpectedSecret
( request: Request, expectedSecret: string )
apps/web-new/src/lib/cron-auth-core.ts:16
↓ 6 callersFunctionwriteProtocolEventSafely
( writer: ProtocolEventWriter | undefined, input: Parameters<ProtocolEventWriter>[0] )
apps/web-new/src/lib/agent-route-handlers.ts:89
↓ 5 callersFunctionbuildAccountPerformanceMetrics
(input: { initialCash: number; availableCash: number; totalEquity: number; displayEquity: number; ri
apps/web-new/src/lib/account-metrics.ts:28
↓ 5 callersFunctionbuildCandles
( instrumentId: string, symbol: string, market: MarketInstrument['market'], basePrice: number, count
apps/web-new/src/db/seed.ts:41
↓ 5 callersFunctioncreateUtcCalendarDate
(year: number, month: number, day: number)
apps/web-new/src/lib/us-stock-market-core.ts:43
↓ 5 callersFunctionensureTradeExecutionQuoteSourceColumn
()
apps/web-new/src/lib/trade-execution-schema.ts:3
↓ 5 callersFunctionfinalizeExecutionQuoteResult
( result: Omit<ExecutionQuote, 'quoteDebug'>, quoteDebug: QuoteDebug )
apps/web-new/src/lib/execution-quote-resolver.ts:141
↓ 5 callersFunctionformatMarketName
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'] )
apps/web-new/src/components/home-dashboard-client.tsx:1955
↓ 5 callersFunctionformatModelName
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'] )
apps/web-new/src/components/home-dashboard-client.tsx:1947
↓ 5 callersFunctionformatPreciseUsd
(value: number | null | undefined, localeTag: string)
apps/web-new/src/components/home-dashboard-client.tsx:1896
↓ 5 callersFunctionformatTime
(value: string | null | undefined, localeTag: string)
apps/web-new/src/components/home-dashboard-client.tsx:1943
↓ 5 callersFunctionformatTradeSideLabel
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'], mode: 'upper' | 'lower' =
apps/web-new/src/components/home-dashboard-client.tsx:1860
↓ 5 callersFunctiongetObservedFixedHoliday
(year: number, month: number, day: number)
apps/web-new/src/lib/us-stock-market-core.ts:124
↓ 5 callersFunctiongetPredictionMarketDetails
(symbol: string)
apps/web-new/src/lib/market-adapter/index.ts:1332
↓ 5 callersFunctiongetRiskMode
(input: { riskTag: RiskTag; cash: number; equity: number; })
apps/web-new/src/lib/account-metrics.ts:12
↓ 5 callersFunctionhandleOpenAgentPanel
(agentId: string)
apps/web-new/src/components/home-dashboard-client.tsx:707
↓ 5 callersFunctionisMassiveConfigured
()
apps/web-new/src/lib/market-adapter/massive.ts:38
↓ 5 callersFunctionjoinPath
(parts: Array<string | null>)
apps/web-new/src/lib/execution-path.ts:38
↓ 5 callersFunctionnormalizeOutcomeObjectKey
(value: string)
apps/web-new/src/lib/agent-briefing.ts:163
↓ 5 callersFunctionnthWeekdayOfMonth
( year: number, month: number, weekday: number, nth: number )
apps/web-new/src/lib/us-stock-market-core.ts:80
↓ 5 callersFunctionparseInstrumentMetadata
(raw: string | null | undefined)
apps/web-new/src/lib/market-adapter/index.ts:1011
↓ 5 callersFunctionreadRepoFile
(relativePath: string)
apps/web-new/tests/contract-tests.ts:79
↓ 5 callersFunctionrememberInstrument
(instrument: MarketInstrument)
apps/web-new/src/lib/market-adapter/index.ts:82
↓ 5 callersFunctionrequireAccountAuth
()
apps/web-new/src/app/api/auth/[...all]/route.ts:6
↓ 5 callersMethodstart
()
apps/workers/stock-stream.ts:263
↓ 5 callersMethodstop
()
apps/workers/stock-stream.ts:279
↓ 5 callersFunctiontoIsoString
(value: unknown)
apps/web-new/src/db/store.ts:69
↓ 4 callersFunctionauthenticateAgentRequest
(request: Request)
apps/web-new/src/lib/agent-runtime.ts:20
↓ 4 callersFunctionbinanceFetch
( path: string, options: BinanceFetchOptions = {} )
apps/web-new/src/lib/market-adapter/binance.ts:11
↓ 4 callersFunctionbuildAccountSeries
( agentId: string, initialCash: number, latestEquity: number, now: Date )
apps/web-new/src/db/seed.ts:80
↓ 4 callersFunctionbuildExpectedTypeMessage
(expectedType)
packages/agenttrader-types/index.js:49
↓ 4 callersFunctionbuildPredictionObjectId
(symbol: string, outcomeName: string)
apps/web-new/src/lib/agent-detail-request-objects.ts:125
↓ 4 callersFunctionbuildPredictionSearchFallbackSuggestions
(query: string)
apps/web-new/src/lib/prediction-search.ts:56
↓ 4 callersFunctionbuildQuoteDebugStep
( status: QuoteDebugStep['status'], method: string, timestamp: string, lastPrice: number | null )
apps/web-new/src/lib/execution-quote-resolver.ts:127
↓ 4 callersFunctionbuildQuoteLookupKey
(symbol: string, market?: MarketType, outcomeId?: string | null)
apps/web-new/src/lib/market-adapter/index.ts:64
↓ 4 callersFunctionbuildRunToken
(prefix: string)
apps/web-new/tests/run-live-sql.ts:33
↓ 4 callersFunctionbuildSignInDiagnosis
(rows: AccountMethodRow[])
apps/web-new/src/lib/auth-sign-in-diagnostics.ts:27
↓ 4 callersFunctionbuildStoredDetailRequestPayload
(input: { summary: unknown; objects: DetailResponseStorageObject[]; })
apps/web-new/src/lib/prediction-detail-contract.ts:107
↓ 4 callersFunctionclobFetch
(path: string)
apps/web-new/src/lib/market-adapter/polymarket.ts:39
↓ 4 callersFunctioncompareNullableNumber
( left: number | null | undefined, right: number | null | undefined )
apps/web-new/src/components/home-dashboard-client.tsx:1844
↓ 4 callersFunctionensureApplicationDatabaseSchema
()
apps/web-new/src/db/app-schema.ts:6
↓ 4 callersFunctionfinish
(code: number)
apps/workers/verify-stock-stream.ts:59
↓ 4 callersFunctionformatDateTime
(value: string, locale: string)
apps/web-new/src/components/public-agent-page-client.tsx:1177
↓ 4 callersFunctionformatMarketName
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'] )
apps/web-new/src/components/home-agent-panel.tsx:461
↓ 4 callersFunctiongammaFetch
(path: string)
apps/web-new/src/lib/market-adapter/polymarket.ts:28
↓ 4 callersFunctiongetAgentAccount
(store: AgentTraderStore, agentId: string)
apps/web-new/src/lib/public-store-utils.ts:37
↓ 4 callersFunctiongetAgentRuntimeState
(agentId: string)
apps/web-new/src/lib/agent-runtime.ts:32
↓ 4 callersMethodgetCandles
(symbol: string, interval: string, limit?: number)
apps/web-new/src/lib/market-adapter/types.ts:80
↓ 4 callersFunctiongetClaimedAgents
(store: AgentTraderStore)
apps/web-new/src/lib/public-store-utils.ts:25
↓ 4 callersFunctiongetDatabaseModeRestrictionCopy
( locale: SiteLocale, feature: RestrictedFeature )
apps/web-new/src/lib/database-mode.ts:119
↓ 4 callersFunctiongetRiskTagFromDrawdown
(drawdown: number)
apps/web-new/src/lib/risk-policy.ts:21
↓ 4 callersFunctionisSimOnlyMode
()
apps/web-new/src/lib/market-adapter/index.ts:56
↓ 4 callersFunctionisUsStockMarketOpen
(date = new Date())
apps/web-new/src/lib/us-stock-market-core.ts:271
↓ 4 callersFunctionlogJson
(label: string, value: unknown)
apps/workers/verify-stock-stream.ts:30
↓ 4 callersFunctionnormalizePredictionToken
(value: unknown)
apps/web-new/src/lib/agent-decision-service.ts:242
↓ 4 callersFunctionnormalizeQuoteLookupError
(error: unknown)
apps/web-new/src/lib/execution-quote-resolver.ts:155
↓ 4 callersFunctionnormalizeRequiredString
(value: unknown, field: string)
apps/web-new/src/lib/agent-profile.ts:141
↓ 4 callersFunctionnormalizeToken
(value: string | null | undefined)
apps/web-new/src/lib/execution-path.ts:1
↓ 4 callersFunctionparseRedisJson
(raw: unknown)
apps/web-new/src/lib/redis/market-cache.ts:78
↓ 4 callersFunctionquoteSymbolListKey
(marketType)
packages/agenttrader-types/index.js:91
↓ 4 callersFunctionrecordHeartbeatFailure
( agentId: string, now: Date, failure: { code: string; message: string; statusCode: number;
apps/web-new/src/app/api/openclaw/agents/heartbeat-ping/route.ts:112
↓ 4 callersFunctionrequireDatabaseMode
()
apps/web-new/src/lib/agent-runtime.ts:4
↓ 4 callersFunctionrunTest
(name: string, fn: () => void | Promise<void>)
apps/web-new/tests/run-live-sql.ts:16
↓ 4 callersFunctionseedAgent
(sql: Sql, input: { agentId: string; heartbeatAt: string; initialCash?: number; primaryMarket?: 'stock
apps/web-new/tests/run-live-sql.ts:338
↓ 4 callersFunctionsubmitDecision
(agentId: string, body: unknown)
apps/web-new/src/lib/agent-decision-service.ts:592
↓ 4 callersFunctionsummarizeDecisionExecution
(input: { actions: Array<{ status: string; rejection_reason: string | null; }>; })
apps/web-new/src/lib/agent-persistence-plan.ts:74
↓ 4 callersFunctionverifyProvidedCronSecret
( providedSecret: string | null | undefined, expectedSecret: string )
apps/web-new/src/lib/cron-auth-core.ts:9
↓ 4 callersFunctionwithEnv
( patch: Record<string, string | undefined>, run: () => void | Promise<void> )
apps/web-new/tests/run-tests.ts:18
↓ 4 callersFunctionwithProviderLabel
(label: string, provider: string | null)
apps/web-new/src/lib/public-trade-meta.ts:95
↓ 4 callersFunctionwithSilencedConsoleError
(run: () => void | Promise<void>)
apps/web-new/tests/run-tests.ts:43
↓ 4 callersFunctionwriteDecisionPersistencePlan
( sql: SqlTransactionExecutor, plan: DecisionPersistencePlan )
apps/web-new/src/lib/agent-persistence-db.ts:59
↓ 3 callersFunctionauthenticateAgent
(request: Request)
apps/web-new/src/lib/agent-auth.ts:44
↓ 3 callersFunctionbuildActionResult
(input: { action: DecisionAction; requestedUnits: number | null; status: ActionStatus; filledUnits: nu
apps/web-new/src/lib/trade-engine-core.ts:187
↓ 3 callersFunctionbuildAgentBriefing
( agentId: string, now = new Date(), status: string | null = null )
apps/web-new/src/lib/agent-briefing.ts:851
↓ 3 callersFunctionbuildAgentForbidden
(message: string)
apps/web-new/src/lib/agent-runtime.ts:15
↓ 3 callersFunctionbuildAgentMeView
(agentId: string)
apps/web-new/src/lib/agent-overview.ts:17
↓ 3 callersFunctionbuildArenaStatusStripModel
(input: { leaderboardSnapshotAt: string | null; latestTradeAt: string | null; leaderHeartbeatAt: string
apps/web-new/src/lib/arena-status-strip-model.ts:45
↓ 3 callersFunctionbuildDepthSnapshot
(input: { bid: number | null; ask: number | null; bidSize: number | null; askSize: number | null; ti
apps/web-new/src/lib/market-adapter/index.ts:175
↓ 3 callersFunctionbuildDetailRequestPersistenceRow
(input: { createId: IdFactory; agentId: string; competitionId: string; requestId: string; decisionWi
apps/web-new/src/lib/agent-persistence-plan.ts:99
↓ 3 callersFunctionbuildInstrumentId
(action: DecisionAction)
apps/web-new/src/lib/trade-engine-core.ts:61
↓ 3 callersFunctionbuildInstrumentLookupKey
(symbol: string, market?: MarketType)
apps/web-new/src/lib/market-adapter/index.ts:60
↓ 3 callersFunctionbuildPredictionMarketDetailsFromRaw
( rawMarket: Record<string, unknown>, fallbackSymbol: string )
apps/web-new/src/lib/market-adapter/polymarket.ts:114
↓ 3 callersFunctionbuildPublicAgentPerformanceMetrics
(input: { initialCash: number; availableCash: number; liveTotalEquity: number; liveDisplayEquity: numb
apps/web-new/src/lib/public-agent-performance.ts:3
↓ 3 callersFunctionbuildPublicPositionView
( store: AgentTraderStore, position: Position )
apps/web-new/src/lib/public-store-utils.ts:111
↓ 3 callersFunctionbuildQuoteFreshness
(market: MarketType, timestamp: string | null | undefined)
apps/web-new/src/lib/agent-detail-request-tradeability.ts:89
↓ 3 callersFunctionbuildSeedStore
(now = new Date())
apps/web-new/src/db/seed.ts:128
↓ 3 callersFunctionbuildStoredPolymarketQuote
(input: { symbol: string; lastPrice: number; volume24h: number; change24h: number | null; timestamp:
apps/workers/polymarket-quote.ts:6
↓ 3 callersFunctionbuildStoredPredictionCandidateKey
(input: { object_id: string; outcome_id: string | null; })
apps/web-new/src/lib/prediction-detail-contract.ts:258
↓ 3 callersFunctioncheckPredictionContractRequirement
( actions: Array<{ market: MarketType; outcome_id?: string | null }> )
apps/web-new/src/lib/risk-policy.ts:3
↓ 3 callersFunctioncloneStore
(store: AgentTraderStore)
apps/web-new/src/db/store.ts:283
↓ 3 callersFunctioncollectCandidateSymbols
( agent: Pick<BriefingAgentSource, 'familiarSymbolsOrEventTypes'>, market: 'stock' | 'crypto' | 'predictio
apps/web-new/src/lib/agent-briefing.ts:424
↓ 3 callersFunctioncreateSqlRecorder
()
apps/web-new/tests/run-tests.ts:87
↓ 3 callersFunctionerrorSignalsContain
( signals: ErrorSignal[], codes: Set<string>, patterns: RegExp[] )
apps/web-new/src/lib/agent-resp.ts:87
← previousnext →101–200 of 1,026, ranked by callers