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
↓ 742 callers
Method
error
( reqId: number, errorTime: number, errorCode: number, errorString: string, advancedOrderR
packages/ibkr/src/wrapper.ts:51
↓ 685 callers
Function
decode
(the_type, fields, show_unset=False, use_unicode=False)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:87
↓ 637 callers
Method
push
(value: T)
src/core/async-channel.ts:10
↓ 615 callers
Function
describe
(t: TokenType, value?: string)
src/domain/analysis/calc-v2/parser.ts:217
↓ 587 callers
Function
makeField
(val: unknown)
packages/ibkr/src/comm.ts:56
↓ 560 callers
Function
currentTimeMillis
()
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:213
↓ 557 callers
Function
make_field
adds the NULL string terminator
packages/ibkr/ref/source/pythonclient/ibapi/comm.py:41
↓ 502 callers
Method
parse
(formula: string)
src/domain/analysis/indicator/calculator.ts:81
↓ 468 callers
Method
code
(self)
packages/ibkr/ref/source/pythonclient/ibapi/errors.py:15
↓ 468 callers
Method
msg
(self)
packages/ibkr/ref/source/pythonclient/ibapi/errors.py:18
↓ 380 callers
Method
append
Append a typed event (registered in AgentEventMap). Validates payload at runtime.
src/core/event-log.ts:52
↓ 378 callers
Method
log
(options?: { limit?: number; symbol?: string })
services/uta/src/domain/trading/git/interfaces.ts:48
↓ 344 callers
Function
current_fn_name
(parent_idx=0)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:73
↓ 338 callers
Function
decodeInt
(fields: Iterator<string>, showUnset = false)
packages/ibkr/src/utils.ts:52
↓ 312 callers
Method
get
(name: string)
src/core/entity-store.ts:51
↓ 307 callers
Function
decodeStr
(fields: Iterator<string>)
packages/ibkr/src/utils.ts:46
↓ 295 callers
Method
fromPartial
(object: DeepPartial<T>)
packages/ibkr/src/protobuf/CurrentTime.ts:103
↓ 282 callers
Method
toString
()
packages/ibkr/src/order.ts:246
↓ 249 callers
Method
set
(wsId: string, taskId: string, ts: number)
src/workspaces/schedule/scanner.ts:51
↓ 238 callers
Method
serverVersion
Returns the version of the TWS instance to which the API application is connected.
packages/ibkr/ref/source/pythonclient/ibapi/client.py:673
↓ 221 callers
Method
get
(wsId: string, taskId: string)
src/workspaces/schedule/scanner.ts:50
↓ 218 callers
Method
request
(method: string, path: string, opts?: RequestOpts)
packages/uta-protocol/src/client/UTAClient.ts:24
↓ 210 callers
Method
decode
(input: BinaryReader | Uint8Array, length?: number)
packages/ibkr/src/protobuf/CurrentTime.ts:99
↓ 202 callers
Method
has
(id: string)
src/domain/market-data/bars/types.ts:142
↓ 194 callers
Method
serverVersion
()
packages/ibkr/src/client/base.ts:92
↓ 188 callers
Method
add
(operation: Operation)
services/uta/src/domain/trading/git/interfaces.ts:31
↓ 185 callers
Method
push
()
services/uta/src/domain/trading/git/interfaces.ts:33
↓ 177 callers
Method
msg
()
packages/ibkr/src/errors.ts:16
↓ 176 callers
Method
code
()
packages/ibkr/src/errors.ts:12
↓ 173 callers
Function
currentTimeMillis
()
packages/ibkr/src/utils.ts:173
↓ 173 callers
Function
logAnswer
(fnName, fnParams)
packages/ibkr/ref/source/pythonclient/ibapi/wrapper.py:138
↓ 172 callers
Method
isConnected
Call this function to check if there is a connection with TWS
packages/ibkr/ref/source/pythonclient/ibapi/client.py:542
↓ 164 callers
Method
logRequest
(self, fnName, fnParams)
packages/ibkr/ref/source/pythonclient/ibapi/client.py:343
↓ 155 callers
Method
warn
(msg: string, fields?: Record<string, unknown>)
src/workspaces/logger.ts:80
↓ 149 callers
Method
execute
* Execute the query and return an OBBject. * Maps to: Query.execute() in query.py + OBBject.from_query()
packages/opentypebb/src/core/app/query.ts:53
↓ 145 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/Order.ts:3113
↓ 143 callers
Method
command
* Register a command. * Maps to: @router.command(model="...", ...) in router.py
packages/opentypebb/src/core/app/router.ts:96
↓ 129 callers
Method
commit
(message: string)
services/uta/src/domain/trading/git/interfaces.ts:32
↓ 126 callers
Function
isValidIntValue
(val: int)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:160
↓ 120 callers
Method
from
Wrap any error as a BrokerError, classifying by message patterns.
packages/uta-protocol/src/types/broker.ts:41
↓ 113 callers
Function
decodeFloat
(fields: Iterator<string>, showUnset = false)
packages/ibkr/src/utils.ts:63
↓ 106 callers
Method
encode
(message: T, writer?: BinaryWriter)
packages/ibkr/src/protobuf/CurrentTime.ts:98
↓ 103 callers
Method
delete
Hard-delete an entry by id. Returns true if removed, false if no * entry matched. JSONL rewrites are atomic (tmp + rename).
src/core/inbox-store.ts:117
↓ 103 callers
Function
fetch
()
ui/src/components/market/QuoteHeader.tsx:17
↓ 102 callers
Method
post
(path: string, body?: unknown)
packages/uta-protocol/src/client/UTAClient.ts:26
↓ 101 callers
Method
getPositions
* Positions / holdings. `subAccountId` OPTIONAL: omitted ⇒ ALL sub-accounts; * a specific id ⇒ just that wallet's positions. Single-sub-account bro
packages/uta-protocol/src/types/broker.ts:531
↓ 90 callers
Function
floatMaxString
(val: float)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:169
↓ 86 callers
Method
sendMsg
(msgId: number, msg: string)
packages/ibkr/src/client/base.ts:66
↓ 84 callers
Method
registerText
Register a text-protocol handler for a given IN message id.
packages/ibkr/src/decoder/base.ts:29
↓ 83 callers
Method
requireConnected
Check that the connection is live; if not, report error and return false.
packages/ibkr/src/client/base.ts:210
↓ 83 callers
Method
sendMsg
(self, msgId:int, msg: str)
packages/ibkr/ref/source/pythonclient/ibapi/client.py:337
↓ 83 callers
Method
sendMsgProtoBuf
(self, msgId: int, msg: bytes)
packages/ibkr/ref/source/pythonclient/ibapi/client.py:332
↓ 82 callers
Method
getState
()
src/services/uta-client/UTAAccountSDK.ts:257
↓ 81 callers
Method
stagePlaceOrder
(params: StagePlaceOrderParams)
services/uta/src/domain/trading/UnifiedTradingAccount.ts:609
↓ 80 callers
Method
error
(msg: string, fields?: Record<string, unknown>)
src/workspaces/logger.ts:81
↓ 80 callers
Method
registerProto
Register a protobuf handler for a given IN message id.
packages/ibkr/src/decoder/base.ts:34
↓ 79 callers
Function
makeAccount
(overrides?: Partial<{ exchange: string; apiKey: string; secret: string }>)
services/uta/src/domain/trading/brokers/ccxt/CcxtBroker.spec.ts:80
↓ 79 callers
Method
useProtoBuf
(self, msgId: int)
packages/ibkr/ref/source/pythonclient/ibapi/client.py:376
↓ 78 callers
Method
placeOrder
Place an order via ccxt.createOrder. Override when an exchange needs custom prep * (e.g. hyperliquid market orders require a reference price for s
services/uta/src/domain/trading/brokers/ccxt/overrides.ts:54
↓ 76 callers
Method
close
Close the log (clear listeners and buffer).
src/core/event-log.ts:94
↓ 76 callers
Method
fromJSON
(object: any)
packages/ibkr/src/protobuf/CurrentTime.ts:100
↓ 76 callers
Method
getAccount
* Account equity. `subAccountId` OPTIONAL: omitted ⇒ AGGREGATE across every * sub-account (the rolled-up netLiquidation); a specific id ⇒ just that
packages/uta-protocol/src/types/broker.ts:525
↓ 76 callers
Method
toJSON
(message: T)
packages/ibkr/src/protobuf/CurrentTime.ts:101
↓ 74 callers
Method
placeOrder
(orderId: number, contract: Contract, order: Order)
packages/ibkr/src/client/orders.ts:20
↓ 71 callers
Method
register
Register a listener. Throws if the name collides with any listener or producer.
src/core/listener-registry.ts:47
↓ 70 callers
Method
nextOrderId
(self)
packages/ibkr/ref/samples/Python/Testbed/Program.py:409
↓ 68 callers
Function
applyAliases
( data: Record<string, unknown>, aliasDict: Record<string, string>, )
packages/opentypebb/src/core/provider/utils/helpers.ts:141
↓ 66 callers
Function
makeFieldHandleEmpty
(val: unknown)
packages/ibkr/src/comm.ts:87
↓ 65 callers
Function
setInitialized
(acc: CcxtBroker, markets: Record<string, any>)
services/uta/src/domain/trading/brokers/ccxt/CcxtBroker.spec.ts:89
↓ 64 callers
Function
isSet
(value: any)
packages/ibkr/src/protobuf/ContractDetails.ts:1361
↓ 64 callers
Method
query
* Paginated query from DISK. Returns entries newest-first (descending seq). * - page: 1-indexed page number (default: 1) * - pageSize: entries p
src/core/event-log.ts:70
↓ 62 callers
Function
createUTA
(broker?: MockBroker, options?: UnifiedTradingAccountOptions)
services/uta/src/domain/trading/UnifiedTradingAccount.spec.ts:10
↓ 60 callers
Method
debug
(msg: string, fields?: Record<string, unknown>)
src/workspaces/logger.ts:78
↓ 60 callers
Function
decodeDecimal
(fields: Iterator<string>)
packages/ibkr/src/utils.ts:82
↓ 59 callers
Method
info
(msg: string, fields?: Record<string, unknown>)
src/workspaces/logger.ts:79
↓ 58 callers
Function
openOrFocus
(spec)
ui/src/tabs/store.ts:107
↓ 56 callers
Function
calc
(formula: string, precision?: number)
src/domain/analysis/indicator/calculator.spec.ts:34
↓ 56 callers
Function
getDataMany
(url: string, subDict?: string)
packages/opentypebb/src/providers/fmp/utils/helpers.ts:77
↓ 55 callers
Method
start
Arm the timer if enabled. Idempotent — calling twice is a no-op.
src/core/pump.ts:63
↓ 54 callers
Function
make_field_handle_empty
(val)
packages/ibkr/ref/source/pythonclient/ibapi/comm.py:64
↓ 53 callers
Function
fetchJson
(url: string, init?: RequestInit)
ui/src/api/client.ts:5
↓ 50 callers
Function
decimalMaxString
(val: Decimal)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:189
↓ 50 callers
Function
exec
(model: string, params: Record<string, unknown> = {})
src/domain/market-data/__tests__/bbProviders/yfinance.bbProvider.spec.ts:15
↓ 48 callers
Function
decodeBool
(fields: Iterator<string>)
packages/ibkr/src/utils.ts:75
↓ 46 callers
Function
dec
(s: string)
services/uta/src/domain/trading/brokers/longbridge/LongbridgeBroker.spec.ts:828
↓ 46 callers
Method
searchContracts
Flat contract-search hits across all accounts (for searchBarSources).
src/domain/market-data/bars/types.ts:145
↓ 45 callers
Method
list
All entities, most-recently-created first.
src/core/entity-store.ts:50
↓ 44 callers
Function
intMaxString
(val)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:181
↓ 44 callers
Method
status
()
services/uta/src/domain/trading/git/interfaces.ts:50
↓ 44 callers
Function
val
(v: unknown)
src/tool/trading-compact.ts:29
↓ 43 callers
Function
isValidFloatValue
(val: float)
packages/ibkr/ref/source/pythonclient/ibapi/utils.py:157
↓ 42 callers
Function
exec
(model: string, params: Record<string, unknown> = {})
src/domain/market-data/__tests__/bbProviders/fmp.bbProvider.spec.ts:15
↓ 42 callers
Method
getOrder
* Look up a single order. `symbolHint` is the broker-native localSymbol * recorded with the order's git operation — brokers whose order-lookup *
packages/uta-protocol/src/types/broker.ts:540
↓ 42 callers
Method
read
* Read events from the DISK log file. * - afterSeq: only return entries with seq > afterSeq (default: 0 = all) * - type: only return entries mat
src/core/event-log.ts:62
↓ 40 callers
Function
makeSwapMarket
(base: string, quote: string, symbol?: string)
services/uta/src/domain/trading/brokers/ccxt/CcxtBroker.spec.ts:66
↓ 40 callers
Method
recent
* Query the in-memory buffer (fast, no disk I/O). * - afterSeq: only return entries with seq > afterSeq * - type: only return entries matching t
src/core/event-log.ts:80
↓ 39 callers
Method
build
Build a concrete Tool with workspaceId baked in. Called per MCP * request, so closure capture is the right pattern (no shared mutable * state
src/core/workspace-tool-center.ts:88
↓ 39 callers
Function
roundTrip
Helper: complete a tool call round-trip and return the record.
src/core/tool-call-log.spec.ts:22
↓ 38 callers
Function
buyOp
(symbol = 'AAPL')
services/uta/src/domain/trading/git/TradingGit.spec.ts:45
↓ 38 callers
Function
dataPath
(...parts: string[])
src/core/paths.ts:43
next →
1–100 of 9,054, ranked by callers