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

Function closePosition

ui/src/api/trading.ts:151–153  ·  view source on GitHub ↗
(utaId: string, body: ClosePositionRequest)

Source from the content-addressed store, hash-verified

149 },
150
151 async closePosition(utaId: string, body: ClosePositionRequest): Promise<WalletPushResult> {
152 return postOrder(`/api/trading/uta/${utaId}/wallet/close-position`, body)
153 },
154
155 async cancelOrder(utaId: string, body: CancelOrderRequest): Promise<WalletPushResult> {
156 return postOrder(`/api/trading/uta/${utaId}/wallet/cancel-order`, body)

Callers

nothing calls this directly

Calls 1

postOrderFunction · 0.85

Tested by

no test coverage detected