MCPcopy Create free account

hub / github.com/TraderAlice/OpenAlice / functions

Functions9,054 in github.com/TraderAlice/OpenAlice

↓ 38 callersMethodgetHealthInfo
()
services/uta/src/domain/trading/UnifiedTradingAccount.ts:260
↓ 37 callersMethodUSStockAtSmart
()
packages/ibkr/ref/samples/Python/Testbed/ContractSamples.py:157
↓ 37 callersFunctioncommit
(...fills: Array<{ op: Operation; result: OperationResult }>)
services/uta/src/domain/trading/cost-basis.spec.ts:68
↓ 37 callersFunctionisSet
(value: any)
packages/ibkr/src/protobuf/ApiSettingsConfig.ts:776
↓ 37 callersFunctionmakeContract
(aliceId: string)
services/uta/src/domain/trading/cost-basis.spec.ts:10
↓ 37 callersFunctionmakeContract
(overrides: Partial<Contract> & { aliceId?: string } = {})
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:112
↓ 36 callersFunctionadd
(deltaMs: number, text: string)
ui/src/demo/fixtures/transcripts/welcome.ts:18
↓ 36 callersFunctioncreateTradingTools
( manager: UTAManagerSDK, allowAiTrading: () => boolean = () => false, )
src/tool/trading.ts:193
↓ 36 callersFunctionmakeBroker
(overrides: Partial<{ paper: boolean; id?: string }> = {})
services/uta/src/domain/trading/brokers/longbridge/LongbridgeBroker.spec.ts:74
↓ 36 callersMethodsync
(updates: OrderStatusUpdate[], currentState: GitState)
services/uta/src/domain/trading/git/interfaces.ts:54
↓ 35 callersMethodget
(path: string, params?: Record<string, string | number | undefined>)
packages/uta-protocol/src/client/UTAClient.ts:25
↓ 35 callersMethodnext
()
src/domain/analysis/calc-v2/parser.ts:29
↓ 33 callersMethodaddEventListener
(type: 'open', cb: () => void)
ui/src/components/workspace/Terminal.tsx:53
↓ 33 callersFunctioncreateContext
(news: NewsItem[] = mockNews)
src/domain/news/query/archive.spec.ts:44
↓ 33 callersFunctiontoValues
(input: number[] | TrackedValues)
src/domain/analysis/indicator/types.ts:53
↓ 33 callersMethodupsert
Create or update by `name` (case-insensitive). An update keeps the * original `createdAt` and overwrites description/type.
src/core/entity-store.ts:48
↓ 32 callersFunctioncol
(a: V | undefined, fn: string, i: number, line: number)
src/domain/analysis/calc-v2/evaluator.ts:248
↓ 32 callersFunctionreadWorkspaceIssues
(wsDir: string)
src/workspaces/issues/declaration.ts:140
↓ 32 callersMethodresolve
(source?: string)
services/uta/src/domain/trading/uta-manager.ts:180
↓ 32 callersMethodsend
(data: string | Uint8Array)
ui/src/components/workspace/Terminal.tsx:51
↓ 31 callersMethodcreate
(options: Record<string, unknown>)
services/uta/src/domain/trading/guards/types.ts:20
↓ 31 callersFunctionset
(field: K, value: InstrumentDraft[K])
ui/src/pages/simulator/InstrumentInput.tsx:23
↓ 30 callersFunctionattachMockContexts
(broker: LongbridgeBroker)
services/uta/src/domain/trading/brokers/longbridge/LongbridgeBroker.spec.ts:49
↓ 30 callersMethodclosePosition
(contract: Contract, quantity?: Decimal)
packages/uta-protocol/src/types/broker.ts:494
↓ 30 callersFunctioncreateIssue
(wsDir: string, input: CreateIssueInput)
src/workspaces/issues/mutate.ts:216
↓ 30 callersMethodload
* One-shot factory. Creates the sessions directory and runs `bootFixup` * across every existing session file so orphaned 'running' records flip
src/workspaces/session-registry.ts:81
↓ 29 callersFunctionisSet
(value: any)
packages/ibkr/src/protobuf/OrderState.ts:641
↓ 29 callersFunctionpick
(out: AnyRec, key: string, value: unknown)
src/tool/trading-compact.ts:66
↓ 29 callersMethodroute
Get route metadata.
packages/opentypebb/src/core/app/model/obbject.ts:68
↓ 29 callersMethodsubscribe
Subscribe to new events (real-time, on append). Returns unsubscribe fn.
src/core/event-log.ts:86
↓ 28 callersFunctiongetFocusedGroup
(state: WorkspaceState)
ui/src/tabs/types.ts:112
↓ 28 callersFunctiongetIntlLocale
()
ui/src/lib/intl.ts:41
↓ 27 callersFunctionb
Narrow broker type — beforeEach guarantees non-null via skip().
services/uta/src/domain/trading/__test__/e2e/ccxt-bybit.e2e.spec.ts:34
↓ 27 callersFunctionhoursAgo
(h: number)
ui/src/demo/fixtures/trading.ts:284
↓ 27 callersFunctionmakePosition
(overrides: Partial<Position> = {})
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:122
↓ 27 callersMethodreqMktData
(reqId: number, contract: Contract, genericTickList: string, snapshot: boolean, regulatorySnapshot: boolean, m
packages/ibkr/src/client/market-data.ts:22
↓ 27 callersFunctionrun
(script: string, svc: BarService)
src/domain/analysis/calc-v2/evaluator.spec.ts:28
↓ 26 callersMethodUSStock
()
packages/ibkr/ref/samples/Python/Testbed/ContractSamples.py:132
↓ 26 callersFunctioncreatePump
(opts: PumpOpts)
src/core/pump.ts:78
↓ 26 callersFunctionenvWithIp
(ip: string | undefined)
src/webui/middleware/auth.spec.ts:52
↓ 26 callersMethodgetBars
(ref: BarSourceRef, opts: GetBarsOpts)
src/domain/market-data/bars/types.ts:130
↓ 26 callersFunctionmakeContract
(overrides: { aliceId?: string; symbol?: string } = {})
services/uta/src/domain/trading/git/TradingGit.spec.ts:11
↓ 26 callersMethodresolve
Returns the registered adapter for `id`, falling back to the default.
src/workspaces/cli-adapter.ts:266
↓ 26 callersFunctionrun
(tool: Tool, args: Record<string, unknown>)
src/tool/issue-tools.spec.ts:43
↓ 25 callersMethodcancelOrder
(orderId: number, orderCancel: OrderCancel)
packages/ibkr/src/client/orders.ts:21
↓ 25 callersMethodcomposeCommand
* Translate the base command (from `WEB_TERMINAL_COMMAND` / template) + * resume intent into the final argv. For claude: * base + 'last' →
src/workspaces/cli-adapter.ts:166
↓ 25 callersFunctionisSet
(value: any)
packages/ibkr/src/protobuf/ScannerSubscription.ts:737
↓ 25 callersFunctionmakeApp
(opts: Parameters<typeof createAuthMiddleware>[0])
src/webui/middleware/auth.spec.ts:42
↓ 24 callersFunctionbuy
(aliceId: string, qty: number, price: number)
services/uta/src/domain/trading/cost-basis.spec.ts:17
↓ 24 callersFunctionexec
(t: any, args: unknown)
src/tool/economy.spec.ts:49
↓ 24 callersMethodgetRate
* Get the USD exchange rate for a given currency. * * Priority: fresh cache → hub table → vendor client → stale cache → * default table → 1:1
services/uta/src/domain/trading/fx-service.ts:146
↓ 24 callersFunctionmakeUta
(broker: MockBroker)
services/uta/src/domain/trading/uta-manager.spec.ts:13
↓ 24 callersMethodput
(path: string, body?: unknown)
packages/uta-protocol/src/client/UTAClient.ts:27
↓ 24 callersFunctionrecomputeCostBasisFromCommits
( commits: GitCommit[], aliceId: string, )
services/uta/src/domain/trading/cost-basis.ts:44
↓ 24 callersMethodsetFailMode
Make the next N broker calls throw. Used to test health transitions.
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:890
↓ 24 callersFunctionvalidId
(id: string | undefined)
src/webui/routes/workspaces.ts:1456
↓ 23 callersMethodat
(t: TokenType)
src/domain/analysis/calc-v2/parser.ts:30
↓ 23 callersMethodgetPendingOrderIds
`localSymbol` is the broker-native symbol from the order's operation * contract — passed to IBroker.getOrder as the symbolHint so lookups * su
services/uta/src/domain/trading/git/interfaces.ts:58
↓ 23 callersFunctionmakeTool
(description = 'A test tool')
src/core/tool-center.spec.ts:14
↓ 23 callersMethodsetMarkPrice
* Set the markPrice for a native key (= localSymbol or symbol). Auto-matches * any pending limit/stop orders触达 the new price; fills happen at the
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:558
↓ 23 callersMethodsetPositions
Override positions directly (for legacy test compatibility).
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:858
↓ 22 callersFunctionarity
(args: V[], min: number, max: number, fn: string, line: number)
src/domain/analysis/calc-v2/evaluator.ts:256
↓ 22 callersMethodcancelMktData
(reqId: number)
packages/ibkr/src/client/market-data.ts:23
↓ 22 callersMethodcwd
()
src/workspaces/persistent-session.ts:240
↓ 22 callersFunctionentry
( symbol: string, opts: { base?: string; quote?: string; name?: string; localSymbol?: string; secType?: Se
services/uta/src/domain/trading/brokers/fuzzy-rank.spec.ts:5
↓ 22 callersFunctionfakeAccount
(id: string, o: AccOpts)
src/tool/trading.spec.ts:27
↓ 22 callersFunctionflush
()
src/core/listener-registry.spec.ts:15
↓ 22 callersMethodincludeRouter
* Include a sub-router. * Maps to: router.include_router(sub_router, prefix="/price") in router.py
packages/opentypebb/src/core/app/router.ts:104
↓ 22 callersFunctionmakeContract
(lbSymbol: string)
services/uta/src/domain/trading/brokers/longbridge/longbridge-contracts.ts:33
↓ 22 callersFunctionrgbToHex
(rgb: TerminalThemeRgb)
ui/src/components/workspace/terminalThemeProfile.ts:157
↓ 22 callersFunctiontab
(symbol: string)
ui/src/tabs/__tests__/store.spec.ts:25
↓ 21 callersMethodappendUser
(content: string | ContentBlock[], provider?: SessionEntry['provider'])
src/core/session.ts:74
↓ 21 callersFunctioncalculate
(expression: string)
src/domain/thinking/tools/calculate.tool.ts:6
↓ 21 callersFunctioncleanStr
(v: unknown)
packages/opentypebb/src/providers/twse/common.ts:30
↓ 21 callersFunctioncreateBarService
(deps: BarServiceDeps)
src/domain/market-data/bars/bar-service.ts:184
↓ 21 callersFunctionctx
Context whose `resolveWorkspace(self)` points at the temp checkout dir.
src/tool/issue-tools.spec.ts:32
↓ 21 callersFunctionformatRelativeTime
( input: Date | string | number | null | undefined, opts: RelativeTimeOptions = {}, )
ui/src/lib/intl.ts:97
↓ 21 callersMethodgetQuote
(contract: Contract)
packages/uta-protocol/src/types/broker.ts:550
↓ 21 callersMethodinit
()
packages/uta-protocol/src/types/broker.ts:462
↓ 21 callersFunctionisSet
(value: any)
packages/ibkr/src/protobuf/Execution.ts:461
↓ 21 callersFunctionmakeConfig
(overrides: Partial<TradingGitConfig> = {})
services/uta/src/domain/trading/git/TradingGit.spec.ts:33
↓ 21 callersFunctionmockBars
Mock bar service: close = the given series, OHLCV derived.
src/domain/analysis/calc-v2/evaluator.spec.ts:6
↓ 21 callersMethodreqContractDetails
(reqId: number, contract: Contract)
packages/ibkr/src/client/account.ts:32
↓ 20 callersMethodcomplete
Complete a pending tool call. Called when tool_result event arrives.
src/core/tool-call-log.ts:57
↓ 20 callersFunctionderiveUtaId
(preset: BrokerPresetDef, presetConfig: Record<string, unknown>)
packages/uta-protocol/src/brokers/preset-catalog.ts:572
↓ 20 callersFunctionisPaperPreset
(presetId: string, presetConfig: Record<string, unknown>)
packages/uta-protocol/src/brokers/preset-catalog.ts:534
↓ 20 callersFunctionisSet
(value: any)
packages/ibkr/src/protobuf/Contract.ts:456
↓ 20 callersFunctionn
(x: number)
src/domain/analysis/calc-v2/evaluator.ts:262
↓ 20 callersFunctionreq
(routes: ReturnType<typeof createTradingConfigRoutes>, method: 'GET' | 'POST' | 'PUT' | 'DELETE', path: string
src/webui/routes/trading-config.spec.ts:41
↓ 20 callersFunctionsourceDesc
(required: boolean, extra?: string)
src/tool/trading.ts:107
↓ 19 callersFunctionfmt
(input: number | string | undefined | null, currency?: string)
ui/src/lib/format.ts:47
↓ 19 callersMethodsetQuote
Legacy alias for setMarkPrice — number-typed price, no auto-match return.
services/uta/src/domain/trading/brokers/mock/MockBroker.ts:848
↓ 19 callersFunctionvalidateEventPayload
(type: string, payload: unknown)
src/core/agent-event.ts:260
↓ 18 callersMethodLimitOrder
(action:str, quantity:Decimal, limitPrice:float)
packages/ibkr/ref/samples/Python/Testbed/OrderSamples.py:384
↓ 18 callersMethodappend
(snapshot: UTASnapshot)
services/uta/src/domain/trading/snapshot/store.ts:31
↓ 18 callersFunctionb
Narrow broker type — beforeEach guarantees non-null via skip().
services/uta/src/domain/trading/__test__/e2e/ccxt-okx.e2e.spec.ts:58
↓ 18 callersFunctionbuildContract
(input: BuildContractInput)
services/uta/src/domain/trading/brokers/contract-builder.ts:57
↓ 18 callersFunctionfmtNumber
(n: unknown, digits = 2)
ui/src/components/market/format.ts:6
↓ 18 callersMethodlastSeq
Current highest seq number (0 if empty).
src/core/event-log.ts:83
↓ 18 callersFunctionmacroCard
(id: string, label: string, unit: MacroSeriesCard['unit'], base: number, drift: number)
ui/src/demo/handlers/market.ts:159
← previousnext →101–200 of 9,054, ranked by callers