Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BillionsBobby/agenttrader-arena
/ functions
Functions
1,026 in github.com/BillionsBobby/agenttrader-arena
⨍
Functions
1,026
◇
Types & classes
49
↓ 6 callers
Function
requireDatabaseMode
()
apps/web-new/src/lib/risk-checks.ts:16
↓ 6 callers
Function
resolveExecutionQuote
(input: { instrumentId: string; action: ExecutionActionLike; executedAt: Date; redisConfigured: boolea
apps/web-new/src/lib/execution-quote-resolver.ts:272
↓ 6 callers
Function
runSchemaMigration
( migrationId: string, migrate: (sql: Sql) => Promise<void> )
apps/web-new/src/db/schema-migrations.ts:7
↓ 6 callers
Function
runTest
(name: string, fn: () => void | Promise<void>)
apps/web-new/tests/contract-tests.ts:67
↓ 6 callers
Function
toIsoString
(value: string | Date | null | undefined)
apps/web-new/src/lib/public-market-db.ts:702
↓ 6 callers
Function
toIsoString
(value: string | Date | null | undefined)
apps/web-new/src/lib/public-agent-db.ts:862
↓ 6 callers
Function
toIsoValue
(value: string | Date | null | undefined)
apps/web-new/src/lib/agent-runtime-service-common.ts:31
↓ 6 callers
Function
verifyCronRequestWithExpectedSecret
( request: Request, expectedSecret: string )
apps/web-new/src/lib/cron-auth-core.ts:16
↓ 6 callers
Function
writeProtocolEventSafely
( writer: ProtocolEventWriter | undefined, input: Parameters<ProtocolEventWriter>[0] )
apps/web-new/src/lib/agent-route-handlers.ts:89
↓ 5 callers
Function
buildAccountPerformanceMetrics
(input: { initialCash: number; availableCash: number; totalEquity: number; displayEquity: number; ri
apps/web-new/src/lib/account-metrics.ts:28
↓ 5 callers
Function
buildCandles
( instrumentId: string, symbol: string, market: MarketInstrument['market'], basePrice: number, count
apps/web-new/src/db/seed.ts:41
↓ 5 callers
Function
createUtcCalendarDate
(year: number, month: number, day: number)
apps/web-new/src/lib/us-stock-market-core.ts:43
↓ 5 callers
Function
ensureTradeExecutionQuoteSourceColumn
()
apps/web-new/src/lib/trade-execution-schema.ts:3
↓ 5 callers
Function
finalizeExecutionQuoteResult
( result: Omit<ExecutionQuote, 'quoteDebug'>, quoteDebug: QuoteDebug )
apps/web-new/src/lib/execution-quote-resolver.ts:141
↓ 5 callers
Function
formatMarketName
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'] )
apps/web-new/src/components/home-dashboard-client.tsx:1955
↓ 5 callers
Function
formatModelName
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'] )
apps/web-new/src/components/home-dashboard-client.tsx:1947
↓ 5 callers
Function
formatPreciseUsd
(value: number | null | undefined, localeTag: string)
apps/web-new/src/components/home-dashboard-client.tsx:1896
↓ 5 callers
Function
formatTime
(value: string | null | undefined, localeTag: string)
apps/web-new/src/components/home-dashboard-client.tsx:1943
↓ 5 callers
Function
formatTradeSideLabel
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'], mode: 'upper' | 'lower' =
apps/web-new/src/components/home-dashboard-client.tsx:1860
↓ 5 callers
Function
getObservedFixedHoliday
(year: number, month: number, day: number)
apps/web-new/src/lib/us-stock-market-core.ts:124
↓ 5 callers
Function
getPredictionMarketDetails
(symbol: string)
apps/web-new/src/lib/market-adapter/index.ts:1332
↓ 5 callers
Function
getRiskMode
(input: { riskTag: RiskTag; cash: number; equity: number; })
apps/web-new/src/lib/account-metrics.ts:12
↓ 5 callers
Function
handleOpenAgentPanel
(agentId: string)
apps/web-new/src/components/home-dashboard-client.tsx:707
↓ 5 callers
Function
isMassiveConfigured
()
apps/web-new/src/lib/market-adapter/massive.ts:38
↓ 5 callers
Function
joinPath
(parts: Array<string | null>)
apps/web-new/src/lib/execution-path.ts:38
↓ 5 callers
Function
normalizeOutcomeObjectKey
(value: string)
apps/web-new/src/lib/agent-briefing.ts:163
↓ 5 callers
Function
nthWeekdayOfMonth
( year: number, month: number, weekday: number, nth: number )
apps/web-new/src/lib/us-stock-market-core.ts:80
↓ 5 callers
Function
parseInstrumentMetadata
(raw: string | null | undefined)
apps/web-new/src/lib/market-adapter/index.ts:1011
↓ 5 callers
Function
readRepoFile
(relativePath: string)
apps/web-new/tests/contract-tests.ts:79
↓ 5 callers
Function
rememberInstrument
(instrument: MarketInstrument)
apps/web-new/src/lib/market-adapter/index.ts:82
↓ 5 callers
Function
requireAccountAuth
()
apps/web-new/src/app/api/auth/[...all]/route.ts:6
↓ 5 callers
Method
start
()
apps/workers/stock-stream.ts:263
↓ 5 callers
Method
stop
()
apps/workers/stock-stream.ts:279
↓ 5 callers
Function
toIsoString
(value: unknown)
apps/web-new/src/db/store.ts:69
↓ 4 callers
Function
authenticateAgentRequest
(request: Request)
apps/web-new/src/lib/agent-runtime.ts:20
↓ 4 callers
Function
binanceFetch
( path: string, options: BinanceFetchOptions = {} )
apps/web-new/src/lib/market-adapter/binance.ts:11
↓ 4 callers
Function
buildAccountSeries
( agentId: string, initialCash: number, latestEquity: number, now: Date )
apps/web-new/src/db/seed.ts:80
↓ 4 callers
Function
buildExpectedTypeMessage
(expectedType)
packages/agenttrader-types/index.js:49
↓ 4 callers
Function
buildPredictionObjectId
(symbol: string, outcomeName: string)
apps/web-new/src/lib/agent-detail-request-objects.ts:125
↓ 4 callers
Function
buildPredictionSearchFallbackSuggestions
(query: string)
apps/web-new/src/lib/prediction-search.ts:56
↓ 4 callers
Function
buildQuoteDebugStep
( status: QuoteDebugStep['status'], method: string, timestamp: string, lastPrice: number | null )
apps/web-new/src/lib/execution-quote-resolver.ts:127
↓ 4 callers
Function
buildQuoteLookupKey
(symbol: string, market?: MarketType, outcomeId?: string | null)
apps/web-new/src/lib/market-adapter/index.ts:64
↓ 4 callers
Function
buildRunToken
(prefix: string)
apps/web-new/tests/run-live-sql.ts:33
↓ 4 callers
Function
buildSignInDiagnosis
(rows: AccountMethodRow[])
apps/web-new/src/lib/auth-sign-in-diagnostics.ts:27
↓ 4 callers
Function
buildStoredDetailRequestPayload
(input: { summary: unknown; objects: DetailResponseStorageObject[]; })
apps/web-new/src/lib/prediction-detail-contract.ts:107
↓ 4 callers
Function
clobFetch
(path: string)
apps/web-new/src/lib/market-adapter/polymarket.ts:39
↓ 4 callers
Function
compareNullableNumber
( left: number | null | undefined, right: number | null | undefined )
apps/web-new/src/components/home-dashboard-client.tsx:1844
↓ 4 callers
Function
ensureApplicationDatabaseSchema
()
apps/web-new/src/db/app-schema.ts:6
↓ 4 callers
Function
finish
(code: number)
apps/workers/verify-stock-stream.ts:59
↓ 4 callers
Function
formatDateTime
(value: string, locale: string)
apps/web-new/src/components/public-agent-page-client.tsx:1177
↓ 4 callers
Function
formatMarketName
( value: string | null | undefined, t: ReturnType<typeof useSiteLocale>['t'] )
apps/web-new/src/components/home-agent-panel.tsx:461
↓ 4 callers
Function
gammaFetch
(path: string)
apps/web-new/src/lib/market-adapter/polymarket.ts:28
↓ 4 callers
Function
getAgentAccount
(store: AgentTraderStore, agentId: string)
apps/web-new/src/lib/public-store-utils.ts:37
↓ 4 callers
Function
getAgentRuntimeState
(agentId: string)
apps/web-new/src/lib/agent-runtime.ts:32
↓ 4 callers
Method
getCandles
(symbol: string, interval: string, limit?: number)
apps/web-new/src/lib/market-adapter/types.ts:80
↓ 4 callers
Function
getClaimedAgents
(store: AgentTraderStore)
apps/web-new/src/lib/public-store-utils.ts:25
↓ 4 callers
Function
getDatabaseModeRestrictionCopy
( locale: SiteLocale, feature: RestrictedFeature )
apps/web-new/src/lib/database-mode.ts:119
↓ 4 callers
Function
getRiskTagFromDrawdown
(drawdown: number)
apps/web-new/src/lib/risk-policy.ts:21
↓ 4 callers
Function
isSimOnlyMode
()
apps/web-new/src/lib/market-adapter/index.ts:56
↓ 4 callers
Function
isUsStockMarketOpen
(date = new Date())
apps/web-new/src/lib/us-stock-market-core.ts:271
↓ 4 callers
Function
logJson
(label: string, value: unknown)
apps/workers/verify-stock-stream.ts:30
↓ 4 callers
Function
normalizePredictionToken
(value: unknown)
apps/web-new/src/lib/agent-decision-service.ts:242
↓ 4 callers
Function
normalizeQuoteLookupError
(error: unknown)
apps/web-new/src/lib/execution-quote-resolver.ts:155
↓ 4 callers
Function
normalizeRequiredString
(value: unknown, field: string)
apps/web-new/src/lib/agent-profile.ts:141
↓ 4 callers
Function
normalizeToken
(value: string | null | undefined)
apps/web-new/src/lib/execution-path.ts:1
↓ 4 callers
Function
parseRedisJson
(raw: unknown)
apps/web-new/src/lib/redis/market-cache.ts:78
↓ 4 callers
Function
quoteSymbolListKey
(marketType)
packages/agenttrader-types/index.js:91
↓ 4 callers
Function
recordHeartbeatFailure
( 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 callers
Function
requireDatabaseMode
()
apps/web-new/src/lib/agent-runtime.ts:4
↓ 4 callers
Function
runTest
(name: string, fn: () => void | Promise<void>)
apps/web-new/tests/run-live-sql.ts:16
↓ 4 callers
Function
seedAgent
(sql: Sql, input: { agentId: string; heartbeatAt: string; initialCash?: number; primaryMarket?: 'stock
apps/web-new/tests/run-live-sql.ts:338
↓ 4 callers
Function
submitDecision
(agentId: string, body: unknown)
apps/web-new/src/lib/agent-decision-service.ts:592
↓ 4 callers
Function
summarizeDecisionExecution
(input: { actions: Array<{ status: string; rejection_reason: string | null; }>; })
apps/web-new/src/lib/agent-persistence-plan.ts:74
↓ 4 callers
Function
verifyProvidedCronSecret
( providedSecret: string | null | undefined, expectedSecret: string )
apps/web-new/src/lib/cron-auth-core.ts:9
↓ 4 callers
Function
withEnv
( patch: Record<string, string | undefined>, run: () => void | Promise<void> )
apps/web-new/tests/run-tests.ts:18
↓ 4 callers
Function
withProviderLabel
(label: string, provider: string | null)
apps/web-new/src/lib/public-trade-meta.ts:95
↓ 4 callers
Function
withSilencedConsoleError
(run: () => void | Promise<void>)
apps/web-new/tests/run-tests.ts:43
↓ 4 callers
Function
writeDecisionPersistencePlan
( sql: SqlTransactionExecutor, plan: DecisionPersistencePlan )
apps/web-new/src/lib/agent-persistence-db.ts:59
↓ 3 callers
Function
authenticateAgent
(request: Request)
apps/web-new/src/lib/agent-auth.ts:44
↓ 3 callers
Function
buildActionResult
(input: { action: DecisionAction; requestedUnits: number | null; status: ActionStatus; filledUnits: nu
apps/web-new/src/lib/trade-engine-core.ts:187
↓ 3 callers
Function
buildAgentBriefing
( agentId: string, now = new Date(), status: string | null = null )
apps/web-new/src/lib/agent-briefing.ts:851
↓ 3 callers
Function
buildAgentForbidden
(message: string)
apps/web-new/src/lib/agent-runtime.ts:15
↓ 3 callers
Function
buildAgentMeView
(agentId: string)
apps/web-new/src/lib/agent-overview.ts:17
↓ 3 callers
Function
buildArenaStatusStripModel
(input: { leaderboardSnapshotAt: string | null; latestTradeAt: string | null; leaderHeartbeatAt: string
apps/web-new/src/lib/arena-status-strip-model.ts:45
↓ 3 callers
Function
buildDepthSnapshot
(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 callers
Function
buildDetailRequestPersistenceRow
(input: { createId: IdFactory; agentId: string; competitionId: string; requestId: string; decisionWi
apps/web-new/src/lib/agent-persistence-plan.ts:99
↓ 3 callers
Function
buildInstrumentId
(action: DecisionAction)
apps/web-new/src/lib/trade-engine-core.ts:61
↓ 3 callers
Function
buildInstrumentLookupKey
(symbol: string, market?: MarketType)
apps/web-new/src/lib/market-adapter/index.ts:60
↓ 3 callers
Function
buildPredictionMarketDetailsFromRaw
( rawMarket: Record<string, unknown>, fallbackSymbol: string )
apps/web-new/src/lib/market-adapter/polymarket.ts:114
↓ 3 callers
Function
buildPublicAgentPerformanceMetrics
(input: { initialCash: number; availableCash: number; liveTotalEquity: number; liveDisplayEquity: numb
apps/web-new/src/lib/public-agent-performance.ts:3
↓ 3 callers
Function
buildPublicPositionView
( store: AgentTraderStore, position: Position )
apps/web-new/src/lib/public-store-utils.ts:111
↓ 3 callers
Function
buildQuoteFreshness
(market: MarketType, timestamp: string | null | undefined)
apps/web-new/src/lib/agent-detail-request-tradeability.ts:89
↓ 3 callers
Function
buildSeedStore
(now = new Date())
apps/web-new/src/db/seed.ts:128
↓ 3 callers
Function
buildStoredPolymarketQuote
(input: { symbol: string; lastPrice: number; volume24h: number; change24h: number | null; timestamp:
apps/workers/polymarket-quote.ts:6
↓ 3 callers
Function
buildStoredPredictionCandidateKey
(input: { object_id: string; outcome_id: string | null; })
apps/web-new/src/lib/prediction-detail-contract.ts:258
↓ 3 callers
Function
checkPredictionContractRequirement
( actions: Array<{ market: MarketType; outcome_id?: string | null }> )
apps/web-new/src/lib/risk-policy.ts:3
↓ 3 callers
Function
cloneStore
(store: AgentTraderStore)
apps/web-new/src/db/store.ts:283
↓ 3 callers
Function
collectCandidateSymbols
( agent: Pick<BriefingAgentSource, 'familiarSymbolsOrEventTypes'>, market: 'stock' | 'crypto' | 'predictio
apps/web-new/src/lib/agent-briefing.ts:424
↓ 3 callers
Function
createSqlRecorder
()
apps/web-new/tests/run-tests.ts:87
↓ 3 callers
Function
errorSignalsContain
( signals: ErrorSignal[], codes: Set<string>, patterns: RegExp[] )
apps/web-new/src/lib/agent-resp.ts:87
← previous
next →
101–200 of 1,026, ranked by callers