Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TauricResearch/TradingAgents
/ functions
Functions
1,242 in github.com/TauricResearch/TradingAgents
⨍
Functions
1,242
◇
Types & classes
88
↓ 2 callers
Function
allSessions
( dir: string, remote: Pick<RemoteSessions, "list"> | undefined, { limit = SESSIONS.listed as number, si
src/engine/restore.ts:33
↓ 2 callers
Function
answerRows
( text: string, { columns, unicode = true, lead, style = chalk, }: { columns: number; un
src/cli/markdown.ts:69
↓ 2 callers
Function
append
Append a finished block after whatever text came before it.
src/cli/transcript-state.ts:551
↓ 2 callers
Function
at
(tau: number)
src/compute/optimize.ts:80
↓ 2 callers
Function
attempt
(source: string)
src/agents/skill-file.ts:110
↓ 2 callers
Function
b64url
(bytes: Buffer)
src/models/chatgpt-auth.ts:75
↓ 2 callers
Function
bare
(key: string)
src/tools/macro.ts:29
↓ 2 callers
Function
baseIndex
The last date on or before `start`; none when the series starts after it.
src/compute/risk.ts:300
↓ 2 callers
Function
between
The point between two solutions on one line: weights and return at the fraction `t` from `a` to `b`.
src/compute/optimize.ts:283
↓ 2 callers
Function
body
An https answer's body, refused past `limit` bytes or when a redirect left https.
src/cli/self-update.ts:189
↓ 2 callers
Function
bounded
(response: Response, maxBytes: number, overrun: () => Error)
src/data/bounded.ts:9
↓ 2 callers
Function
build
(init)
src/cli/main.tsx:255
↓ 2 callers
Function
burstKeys
( input: string, key: K, )
src/cli/line-editor.ts:35
↓ 2 callers
Function
cacheKeyOf
(session: string, subAgent?: string)
src/agents/loop.ts:121
↓ 2 callers
Function
called
A yahoo-finance2 failure as a DataError: unknown symbols are no data; anything else is the source's.
src/data/yahoo/provider.ts:229
↓ 2 callers
Function
capped
( response: Response, limit: number, tooLarge: string, )
src/cli/updates.ts:102
↓ 2 callers
Method
catchUp
* Catch up on what an earlier run of the session did not send. A crash can leave a turn's rows after * its last commit that were never made durable
src/engine/session.ts:434
↓ 2 callers
Function
chatgptReplayKey
(model: string)
src/models/chatgpt.ts:18
↓ 2 callers
Function
citedIds
(text: string, exists: (id: string) => boolean)
src/contracts/citations.ts:64
↓ 2 callers
Method
claims
The id token's claims after checking its RS256 signature, issuer, audience, expiry and nonce.
src/models/chatgpt-auth.ts:453
↓ 2 callers
Function
classify
Dark or light: 7 and 9-15 are light among the 16 (the convention terminals follow), else by brightness.
src/cli/theme.ts:81
↓ 2 callers
Function
clock
()
src/engine/factory.ts:160
↓ 2 callers
Method
close
()
src/engine/engine.ts:583
↓ 2 callers
Function
closeAgents
* Write the group of sub-agents: each as it ended, in the order they started; one still running when the turn * ended (`ts`) was stopped with it.
src/cli/transcript-state.ts:587
↓ 2 callers
Function
closeThought
* End the main agent's thinking, if it was thinking: its first and last lines go to the scrollback, then one * line saying how long it took (from the
src/cli/transcript-state.ts:478
↓ 2 callers
Function
closes
Whether `fence` closes a code block opened by `opener`: the same character, as many or more, nothing else.
src/cli/stream-split.ts:26
↓ 2 callers
Function
columnsOf
Bars as columns, oldest first: each field a list, and each bar's state (not final, a field's note).
src/tools/price-history.ts:302
↓ 2 callers
Function
complete
( client: ModelClient, request: ModelRequest, signal: AbortSignal, sleep: (ms: number, signal: AbortSi
src/agents/recovery.ts:123
↓ 2 callers
Function
contentRows
(line: LineState, columns: number, rows: number)
src/cli/Composer.tsx:28
↓ 2 callers
Function
control
A control character: C0, DEL, C1, or a Unicode line or paragraph separator.
src/tools/tool-text.ts:15
↓ 2 callers
Function
covariance
(columns: readonly (readonly number[])[])
src/compute/portfolio.ts:61
↓ 2 callers
Function
days
(from: string, to: string)
src/compute/screen.ts:184
↓ 2 callers
Function
daysBetween
(from: string, to: string)
src/contracts/dates.ts:44
↓ 2 callers
Function
defaultOf
(provider: ProviderId)
src/models/model-default.ts:18
↓ 2 callers
Function
defaultPath
Where an export goes when no path is given: the working directory, named after the session.
src/cli/commands.ts:245
↓ 2 callers
Function
deleteSession
( dir: string, id: string, remote?: Pick<RemoteSessions, "deleteSession" | "describe">, )
src/engine/session.ts:570
↓ 2 callers
Function
deviation
(values: readonly number[])
src/compute/risk.ts:332
↓ 2 callers
Function
downloadOf
(dir: string, id: string)
src/engine/session.ts:645
↓ 2 callers
Function
drain
()
src/cli/setup/SetupSteps.tsx:69
↓ 2 callers
Function
editLine
(state: LineState, input: string, key: EditKey)
src/cli/line-editor.ts:70
↓ 2 callers
Function
elsewhere
(symbol: string, venue: string | undefined)
src/data/yahoo/provider.ts:222
↓ 2 callers
Function
ema
* The exponential moving average with alpha 2 / (n + 1), seeded with the simple mean of the n values * ending at `seedEnd` (the n-th value by default
src/compute/indicators.ts:70
↓ 2 callers
Function
expandHome
A path as typed, `~` taken as the home folder.
src/cli/commands.ts:250
↓ 2 callers
Method
expect
(op: string)
src/compute/expression.ts:270
↓ 2 callers
Function
exportTo
* Write each of `files`, the report (`pdf`) or the transcript (`md`), then say where in one block; a file that * could not be written is an error not
src/cli/commands.ts:258
↓ 2 callers
Function
fail
(why: string)
src/tools/references.ts:142
↓ 2 callers
Function
failureKind
(status: number, code?: string, retry?: string)
src/data/tauric/transport.ts:235
↓ 2 callers
Function
fieldBuffer
(kind: FieldState["kind"], value = "")
src/cli/form/field-state.ts:51
↓ 2 callers
Function
fieldKey
(state: FieldState, { input, key }: { input: string; key: FieldKey })
src/cli/form/field-state.ts:26
↓ 2 callers
Function
fieldPaste
(state: FieldState, text: string)
src/cli/form/field-state.ts:35
↓ 2 callers
Function
fieldResult
(ended: Ended, buffer: FieldBuffer)
src/cli/form/form-step.ts:130
↓ 2 callers
Function
fitted
(text: string, columns: number | undefined, hang = 0)
src/cli/output.ts:44
↓ 2 callers
Method
flush
()
src/engine/session.ts:821
↓ 2 callers
Function
fold
Decisions with their first outcome and first lesson.
src/engine/memory.ts:456
↓ 2 callers
Function
found
(query: string, skip: number)
src/cli/ChatApp.tsx:778
↓ 2 callers
Function
fromBars
(bars: z.output<typeof BARS>)
src/tools/series.ts:92
↓ 2 callers
Function
fromEnv
(name: string)
src/config/settings.ts:124
↓ 2 callers
Function
frontierOf
( sigma: readonly (readonly number[])[], mu: readonly number[], cap: number, signal?: AbortSignal, )
src/compute/optimize.ts:256
↓ 2 callers
Function
gapBefore
( previous: Block | undefined, block: BlockBody | { kind: "message" | "thought" }, )
src/cli/transcript-state.ts:360
↓ 2 callers
Function
groupSources
(calls: readonly GroupedCall[])
src/cli/transcript-state.ts:118
↓ 2 callers
Function
hiddenLines
( prompt: string, input: NodeJS.ReadStream, output: NodeJS.WriteStream, cancelled: () => void, )
src/cli/secret.ts:87
↓ 2 callers
Method
history
(symbol: string, query: Query<"get_security_history"> = {}, call: Call = {})
src/data/tauric/client.ts:61
↓ 2 callers
Function
holdsReference
(args: unknown)
src/tools/references.ts:129
↓ 2 callers
Function
idsOf
* A bracket's ids in the order written: each id as given, and a range's ids from one end to the other, * the ends as given and those between only whe
src/contracts/citations.ts:46
↓ 2 callers
Function
incomplete
That the source marks a series' history incomplete, and why when it says.
src/tools/series.ts:111
↓ 2 callers
Function
inline
(tokens: Token[] | undefined, style: ChalkInstance)
src/cli/markdown.ts:406
↓ 2 callers
Function
inputSchema
(tool: Pick<Tool, "input">)
src/tools/tool.ts:170
↓ 2 callers
Function
instrumentKey
({ kind, id }: ParsedInstrument)
src/data/instrument-key.ts:49
↓ 2 callers
Function
instrumentOf
(raw: { symbol: string; longName?: string | undefined; shortName?: string | undefined; fullExchangeNam
src/data/yahoo/provider.ts:256
↓ 2 callers
Function
isPredecessor
Whether a filing's filer is one of the company's predecessors rather than its current registrant.
src/data/tauric/provider.ts:616
↓ 2 callers
Function
isReady
Whether `provider` can be used now: the session's, signed in, a key found, or a server with its model.
src/cli/setup/setup-flows.ts:88
↓ 2 callers
Function
isStale
(holder: Holder)
src/store/lock.ts:141
↓ 2 callers
Function
iso
(date: Date)
src/compute/risk.ts:341
↓ 2 callers
Function
issue
What a settings schema says first about a value it refuses.
src/config/limits.ts:165
↓ 2 callers
Function
item
A call or agent as a list item: its mark, what it was, then what came of it.
src/cli/transcript-export.ts:29
↓ 2 callers
Method
kindOf
What the named tool is (data, compute, agent or control), if it is registered.
src/tools/registry.ts:72
↓ 2 callers
Function
label
(route: { provider: string; model: string })
src/cli/startup.ts:36
↓ 2 callers
Method
label
* A call's arguments in a few words for people, at most `LABEL_CHARS` long: the tool's own label when * it has one, else the values the model gave
src/tools/registry.ts:95
↓ 2 callers
Function
labelText
* The label of a call of `tool` with `args` (references put in place) read as `input`, and its `result` * once it has answered.
src/tools/registry.ts:384
↓ 2 callers
Method
latest
Indicators of an instrument with daily bars at its latest session.
src/data/capabilities.ts:705
↓ 2 callers
Function
latestRelease
( url: string, asset: string, fetchImpl: typeof globalThis.fetch, signal: AbortSignal, )
src/cli/updates.ts:64
↓ 2 callers
Function
lexAnswer
(source: string)
src/cli/lex.ts:9
↓ 2 callers
Function
lineStart
Where the line holding `cursor` starts.
src/cli/line-editor.ts:138
↓ 2 callers
Function
lines
()
src/cli/secret.ts:94
↓ 2 callers
Function
listSessions
( dir: string, { limit = SESSIONS.listed as number }: { limit?: number } = {}, )
src/engine/session.ts:473
↓ 2 callers
Function
listingOf
How Yahoo spells `symbol`, and the venues its listing may be on.
src/data/yahoo/provider.ts:207
↓ 2 callers
Function
liveLines
( state: TranscriptState, columns: number, rows: number, now = Date.now(), unicode = true, )
src/cli/Transcript.tsx:448
↓ 2 callers
Function
loadHistory
(paths: Paths)
src/config/history.ts:14
↓ 2 callers
Function
localDate
The date of `instant` at the exchange (UTC when the zone is unknown).
src/data/yahoo/provider.ts:346
↓ 2 callers
Function
looksLikeKey
Text that looks like an API key (OpenAI's, Anthropic's, OpenRouter's, Google's, Tauric's): not an address or a model.
src/cli/setup/setup-flows.ts:270
↓ 2 callers
Function
matchTools
( patterns: readonly string[], names: readonly string[], )
src/agents/catalog.ts:92
↓ 2 callers
Function
meanVariance
( sigma: readonly (readonly number[])[], mu: readonly number[], lambda: number, cap: number, start?:
src/compute/optimize.ts:106
↓ 2 callers
Function
menuNow
()
src/cli/ChatApp.tsx:768
↓ 2 callers
Function
modelSteps
* `provider`'s models to choose from, then how hard the one chosen reasons; the choice is saved, and * `then` comes next. Steps with nothing to choos
src/cli/setup/setup-flows.ts:211
↓ 2 callers
Function
modelsOf
(provider: ProviderId)
src/models/model-default.ts:54
↓ 2 callers
Function
named
(day: Date)
src/engine/calendar.ts:11
↓ 2 callers
Function
needsRenewal
Renew when due, or when the API refused the token still on file.
src/models/chatgpt-auth.ts:598
↓ 2 callers
Function
newSessionId
()
src/engine/engine.ts:561
↓ 2 callers
Function
number
A number as people write it: binary rounding noise (4.0000000000000036) left out of the text only.
src/tools/render.ts:70
↓ 2 callers
Function
oauthError
(body: Record<string, unknown> | undefined)
src/models/chatgpt-auth.ts:641
← previous
next →
201–300 of 1,242, ranked by callers