MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / utaPositions

Function utaPositions

ui/src/api/trading.ts:73–76  ·  view source on GitHub ↗
(utaId: string, subAccountId?: string)

Source from the content-addressed store, hash-verified

71 },
72
73 async utaPositions(utaId: string, subAccountId?: string): Promise<{ positions: Position[] }> {
74 const qs = subAccountId ? `?subAccountId=${encodeURIComponent(subAccountId)}` : ''
75 return fetchJson(`/api/trading/uta/${utaId}/positions${qs}`)
76 },
77
78 /** Sub-accounts (wallets) a UTA spans — one for ordinary brokers,
79 * >1 for separate-wallet venues (Binance: spot / derivatives). */

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected