mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-05 20:11:13 +08:00
fix(stats): fixed the PNL calculation (#963)
This commit is contained in:
@@ -16,11 +16,10 @@ export interface SystemStatus {
|
||||
export interface AccountInfo {
|
||||
total_equity: number
|
||||
wallet_balance: number
|
||||
unrealized_profit: number
|
||||
unrealized_profit: number // 未实现盈亏(交易所API官方值)
|
||||
available_balance: number
|
||||
total_pnl: number
|
||||
total_pnl_pct: number
|
||||
total_unrealized_pnl: number
|
||||
initial_balance: number
|
||||
daily_pnl: number
|
||||
position_count: number
|
||||
@@ -127,7 +126,7 @@ export interface CreateTraderRequest {
|
||||
name: string
|
||||
ai_model_id: string
|
||||
exchange_id: string
|
||||
initial_balance: number
|
||||
initial_balance?: number // 可选:创建时由后端自动获取,编辑时可手动更新
|
||||
scan_interval_minutes?: number
|
||||
btc_eth_leverage?: number
|
||||
altcoin_leverage?: number
|
||||
|
||||
Reference in New Issue
Block a user