Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TraderAlice/OpenAlice
/ functions
Functions
9,054 in github.com/TraderAlice/OpenAlice
⨍
Functions
9,054
◇
Types & classes
2,062
↓ 13 callers
Function
writeWorkspaceFile
( workspaceDir: string, relPath: string, content: string, )
src/workspaces/file-service.ts:124
↓ 12 callers
Method
_set_event
Set an event to indicate that a response has been received. Args: req_id: The request ID event_name: The event name data: The response dat
packages/ibkr/ref/source/pythonclient/ibapi/sync_wrapper.py:153
↓ 12 callers
Method
_wait_for_response
Wait for a response from TWS for a specific request. Args: req_id: The request ID to wait for event_name: The event name to wait for ti
packages/ibkr/ref/source/pythonclient/ibapi/sync_wrapper.py:109
↓ 12 callers
Function
cachedBoard
( ttlMs: number, fn: () => Promise<T>, )
src/domain/market-data/reference/cache.ts:19
↓ 12 callers
Function
cfg
(origins: string[] = [], allowAnyOrigin = false)
src/webui/workspaces-ws.spec.ts:12
↓ 12 callers
Function
compareVersions
(a: string, b: string)
apps/desktop/src/update-check.ts:74
↓ 12 callers
Function
create
(base?: DeepPartial<PnL>)
packages/ibkr/src/protobuf/PnL.ts:114
↓ 12 callers
Function
createChannel
()
src/core/async-channel.ts:16
↓ 12 callers
Function
ctx
(extra: Partial<SpawnContext> = {})
src/workspaces/adapters/interactive-seed.spec.ts:34
↓ 12 callers
Method
declareProducer
Declare a producer (pure event source). Throws on name collision with any * listener or existing producer. Returns a constrained, validated emit h
src/core/listener-registry.ts:56
↓ 12 callers
Method
ensureLoaded
* Force-load the records for one workspace (no-op if already loaded or * the file doesn't exist). New workspaces start with an empty map.
src/workspaces/session-registry.ts:130
↓ 12 callers
Function
extractMediaFromToolOutput
(output: unknown)
src/core/media.ts:11
↓ 12 callers
Function
fakeManager
(accounts: ReturnType<typeof fakeAccount>[])
src/tool/trading.spec.ts:45
↓ 12 callers
Function
fileReturns
Simulate a file read that returns JSON content.
src/core/config.spec.ts:51
↓ 12 callers
Function
floatMaxString
(val: number)
packages/ibkr/src/order-state.ts:8
↓ 12 callers
Function
fmtPnl
(input: number | string | undefined | null, currency?: string)
ui/src/lib/format.ts:56
↓ 12 callers
Function
grepRss
( context: NewsToolContext, options: { pattern: string contextChars?: number metadataFilter?:
src/domain/news/query/archive.ts:98
↓ 12 callers
Function
inferCredentialVendor
(opts: { agent?: string; baseUrl?: string })
src/core/credential-inference.ts:32
↓ 12 callers
Method
ingest
* Ingest a single news item. Returns true if new (not a duplicate). * * Serialized via writeChain so that concurrent callers cannot both pass th
src/domain/news/store.ts:127
↓ 12 callers
Function
injectWorkspaceContext
(opts: { readonly template: TemplateMeta; readonly wsId: string; readonly dir: string; })
src/workspaces/context-injector.ts:40
↓ 12 callers
Function
makeMigration
(id: string, body?: (ctx: MigrationContext) => Promise<void>)
src/migrations/runner.spec.ts:34
↓ 12 callers
Function
makePlaceOrderOp
(overrides: { symbol?: string action?: 'BUY' | 'SELL' orderType?: string cashQty?: number totalQuant
services/uta/src/domain/trading/guards/guards.spec.ts:17
↓ 12 callers
Function
nativeFetch
( url: string, options: { headers?: Record<string, string>; timeoutMs?: number } = {}, )
packages/opentypebb/src/core/provider/utils/helpers.ts:182
↓ 12 callers
Function
place
(p: Record<string, unknown>)
services/uta/src/domain/trading/UnifiedTradingAccount.spec.ts:473
↓ 12 callers
Function
readUTAsConfig
()
src/core/config.ts:694
↓ 12 callers
Function
resolveAnthropicAuthMode
( opts: { authMode?: 'x-api-key' | 'bearer'; baseUrl?: string }, )
src/core/credential-inference.ts:53
↓ 12 callers
Function
run
(cmd: string, args: readonly string[], env?: NodeJS.ProcessEnv)
src/workspaces/workspace-creation.e2e.spec.ts:60
↓ 12 callers
Function
runScript
( script: string, deps: CalcDeps, precision = 4, opts: { withDates?: boolean } = {}, )
src/domain/analysis/calc-v2/index.ts:25
↓ 12 callers
Function
svc
Build a structural fake service with both authorities.
src/server/inbox-origin.spec.ts:7
↓ 12 callers
Function
toModelMessages
(entries: SessionEntry[])
src/core/session.ts:313
↓ 11 callers
Method
callCount
Count calls to a specific method.
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:238
↓ 11 callers
Function
checkAuth
(cfg: WebhookConfig, presented: string | null)
src/webui/routes/webhook-auth.ts:40
↓ 11 callers
Function
commit
(ops: Operation[], results: OperationResult[], message = 'test')
services/uta/src/domain/trading/order-history.spec.ts:9
↓ 11 callers
Function
contractToCcxt
( contract: Contract, markets: Record<string, CcxtMarket>, exchangeName: string, )
services/uta/src/domain/trading/brokers/ccxt/ccxt-contracts.ts:118
↓ 11 callers
Function
createConfigRoutes
(opts?: ConfigRouteOpts)
src/webui/routes/config.ts:37
↓ 11 callers
Function
createEconomyTools
( economyClient: EconomyClientLike, commodityClient: CommodityClientLike, )
src/tool/economy.ts:30
↓ 11 callers
Function
defaultPath
(...parts: string[])
src/core/paths.ts:48
↓ 11 callers
Function
derivePositionMath
(input: PositionMathInput)
services/uta/src/domain/trading/position-math.ts:52
↓ 11 callers
Function
extractPresentedToken
(headers: { authorization?: string | null 'x-openalice-token'?: string | null })
src/webui/routes/webhook-auth.ts:26
↓ 11 callers
Function
fetchLatestRelease
(opts?: { /** Force re-fetch even if cache is fresh. */ force?: boolean })
src/core/version.ts:119
↓ 11 callers
Method
getAccountCache
Read the cached account data. Returns null if not yet loaded.
services/uta/src/domain/trading/brokers/ibkr/request-bridge.ts:256
↓ 11 callers
Method
getContractDetails
(query: Contract)
packages/uta-protocol/src/types/broker.ts:468
↓ 11 callers
Function
hasCredential
(credentials: Record<string, string>, bbProvider: string)
src/domain/market-data/__tests__/bbProviders/setup.ts:31
↓ 11 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/OrderStatus.ts:277
↓ 11 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/TickOptionComputation.ts:266
↓ 11 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/HistoricalDataRequest.ts:361
↓ 11 callers
Method
listUTAs
()
src/services/uta-client/UTAManagerSDK.ts:74
↓ 11 callers
Function
pos
(o: { symbol: string secType?: string currency?: string side?: 'long' | 'short' qty: string avgCos
ui/src/demo/fixtures/trading.ts:104
↓ 11 callers
Function
px
(v: number)
src/domain/analysis/simulate.ts:66
↓ 11 callers
Function
quickChat
(app: any, body: unknown)
src/webui/routes/workspaces-quickchat.spec.ts:77
↓ 11 callers
Function
readWorkspaceFile
( workspaceDir: string, relPath: string, )
src/workspaces/file-service.ts:104
↓ 11 callers
Method
remove
(wsId: string, id: string)
src/workspaces/session-registry.ts:197
↓ 11 callers
Function
req
(routes: ReturnType<typeof createSimulatorRoutes>, method: 'GET' | 'POST', path: string, body?: unknown)
services/uta/src/http/simulator.spec.ts:33
↓ 11 callers
Function
run
(key: string, probe: () => Promise<TestOutcome>)
ui/src/lib/useTestGate.ts:39
↓ 11 callers
Function
seal
(value: unknown)
src/core/sealing.ts:94
↓ 11 callers
Method
stop
Terminal stop. Clears the pending timer; sets stopped flag.
src/core/pump.ts:65
↓ 11 callers
Method
tickSize
(reqId: number, tickType: number, size: Decimal)
packages/ibkr/src/wrapper.ts:76
↓ 11 callers
Function
userBlocks
(blocks: ContentBlock[])
src/core/session.spec.ts:31
↓ 10 callers
Method
_resetForTest
Reset all state and delete the log file. For tests only.
src/core/event-log.ts:97
↓ 10 callers
Function
apply
(next)
ui/src/live/createLiveStore.ts:86
↓ 10 callers
Function
assistantBlocks
(blocks: ContentBlock[])
src/core/session.spec.ts:27
↓ 10 callers
Function
assistantText
(content: string)
src/core/session.spec.ts:23
↓ 10 callers
Method
attach
Swap in `ws` as the attached client. A controller claim makes ownership * explicit: a second controller is rejected unless it deliberately takes
src/workspaces/persistent-session.ts:305
↓ 10 callers
Function
buildSpawnEnv
( parent: NodeJS.ProcessEnv, extras: { [key: string]: string } = {}, cwd?: string, )
src/workspaces/spawn-env.ts:67
↓ 10 callers
Function
compatibleCredentials
( credentials: Record<string, Credential>, agentId: string, )
src/workspaces/credential-injection.ts:50
↓ 10 callers
Method
convertToUsd
* Convert an amount in the given currency to USD. * Returns a warning only when the default (hardcoded) table is used.
services/uta/src/domain/trading/fx-service.ts:211
↓ 10 callers
Function
createInboxStore
(opts: InboxStoreOptions = {})
src/core/inbox-store.ts:160
↓ 10 callers
Function
createReferenceRoutes
(ctx: EngineContext)
src/webui/routes/reference.ts:14
↓ 10 callers
Function
createSimulatorRoutes
(ctx: UTAEngineContext)
services/uta/src/http/routes-simulator.ts:105
↓ 10 callers
Function
evalExpr
(e: Expr)
src/domain/analysis/calc-v2/evaluator.ts:75
↓ 10 callers
Function
fetchFredMultiSeries
( seriesIds: string[], apiKey: string, opts: { startDate?: string | null endDate?: string | null
packages/opentypebb/src/providers/federal_reserve/utils/fred-helpers.ts:102
↓ 10 callers
Function
filterByProvider
(accounts: TestAccount[], provider: BrokerEngine)
services/uta/src/domain/trading/__test__/e2e/setup.ts:142
↓ 10 callers
Method
getNewsV2
* Get news (supports semantic time and count limit) * * @param options - Query options * @returns News list (ascending by time, newest last)
src/domain/news/types.ts:84
↓ 10 callers
Function
getTestAccounts
()
services/uta/src/domain/trading/__test__/e2e/setup.ts:92
↓ 10 callers
Function
intMaxString
(val: number)
packages/ibkr/src/contract.ts:10
↓ 10 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/ApiPrecautionsConfig.ts:266
↓ 10 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/HistoricalTicksRequest.ts:343
↓ 10 callers
Method
listSubAccounts
* Enumerate the sub-accounts this connection spans. OPTIONAL — a broker that * omits it is treated as having a single implicit 'default' sub-accoun
packages/uta-protocol/src/types/broker.ts:506
↓ 10 callers
Method
readAll
()
src/core/session.ts:77
↓ 10 callers
Method
readRange
(opts?: { startTime?: string; endTime?: string; limit?: number })
services/uta/src/domain/trading/snapshot/store.ts:32
↓ 10 callers
Function
readWorkspaceMetadata
(wsDir: string)
src/workspaces/workspace-metadata.ts:31
↓ 10 callers
Function
refresh
()
ui/src/components/workspace/FilesPanel.tsx:26
↓ 10 callers
Function
resolveAccount
Resolve account by :id param, return 404 if not found.
services/uta/src/http/routes-trading.ts:84
↓ 10 callers
Function
resolveSymbol
(contract: Contract)
services/uta/src/domain/trading/brokers/longbridge/longbridge-contracts.ts:67
↓ 10 callers
Function
safeJson
(c: import('hono').Context)
src/webui/routes/workspaces.ts:1460
↓ 10 callers
Method
search
Substring match on name + description (case-insensitive). Empty query * returns everything. Used by the agent's pre-create dedup check and the
src/core/entity-store.ts:55
↓ 10 callers
Method
simulatePriceChange
(priceChanges: PriceChangeInput[])
services/uta/src/domain/trading/git/interfaces.ts:74
↓ 10 callers
Method
skipNewlines
()
src/domain/analysis/calc-v2/parser.ts:38
↓ 10 callers
Method
stageCancelOrder
(params: { orderId: string })
services/uta/src/domain/trading/UnifiedTradingAccount.ts:673
↓ 10 callers
Function
stk
(symbol: string, exchange = 'SMART')
ui/src/demo/fixtures/trading.ts:286
↓ 10 callers
Function
symbolsOf
(xs: ReturnType<typeof fuzzyRankContracts>)
services/uta/src/domain/trading/brokers/fuzzy-rank.spec.ts:17
↓ 10 callers
Method
tickPrice
( reqId: number, tickType: number, price: number, attrib: TickAttrib, )
packages/ibkr/src/wrapper.ts:69
↓ 10 callers
Method
updateAccountValue
( key: string, val: string, currency: string, accountName: string, )
packages/ibkr/src/wrapper.ts:163
↓ 10 callers
Function
updateIssueFields
( wsDir: string, id: string, patch: IssueFieldPatch, )
src/workspaces/issues/mutate.ts:109
↓ 9 callers
Function
cfg
(tokens: Array<{ id: string; token: string }>)
src/webui/routes/webhook-auth.spec.ts:5
↓ 9 callers
Function
computeNextRun
(schedule: Schedule, afterMs: number)
src/core/schedule-expr.ts:20
↓ 9 callers
Function
createEntityStore
(opts: EntityStoreOptions = {})
src/core/entity-store.ts:97
↓ 9 callers
Function
createHubFetcher
(cfg: HubConfig | undefined, opts?: { timeoutMs?: number; breakerMs?: number })
src/domain/market-data/reference/hub.ts:37
↓ 9 callers
Function
decimalMaxString
(val: Decimal)
packages/ibkr/src/common.ts:27
↓ 9 callers
Function
decodeContract
(contractProto: ContractProto)
packages/ibkr/ref/source/pythonclient/ibapi/decoder_utils.py:41
← previous
next →
301–400 of 9,054, ranked by callers