Skip to content

Commit ebda6aa

Browse files
Ameclaude
authored andcommitted
fix: align equity() API return type with Decimal string fields
The Decimal migration changed AggregatedEquity fields to string but missed the inline return type in api/trading.ts, causing CI build failure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7a7f586 commit ebda6aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/api/trading.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const tradingApi = {
1414
return fetchJson('/api/trading/accounts')
1515
},
1616

17-
async equity(): Promise<{ totalEquity: number; totalCash: number; totalUnrealizedPnL: number; totalRealizedPnL: number; accounts: Array<{ id: string; label: string; equity: number; cash: number }> }> {
17+
async equity(): Promise<{ totalEquity: string; totalCash: string; totalUnrealizedPnL: string; totalRealizedPnL: string; accounts: Array<{ id: string; label: string; equity: string; cash: string }> }> {
1818
return fetchJson('/api/trading/equity')
1919
},
2020

0 commit comments

Comments
 (0)