feat: Leader列表优化
- 后端过滤价值为0的仓位 - 持仓列表显示市场名称而非ID - 列表移除分类和创建时间列 - 文案'跟单关系数'改为'跟单数' - 持仓DTO添加title字段
This commit is contained in:
@@ -79,6 +79,53 @@ export interface LeaderListResponse {
|
||||
total: number
|
||||
}
|
||||
|
||||
/**
|
||||
* 持仓信息
|
||||
*/
|
||||
export interface PositionDto {
|
||||
marketId: string
|
||||
title: string // 市场名称
|
||||
side: string // YES 或 NO
|
||||
quantity: string
|
||||
avgPrice: string
|
||||
currentValue: string
|
||||
pnl?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 钱包余额响应(通用类,用于 Account 和 Leader)
|
||||
*/
|
||||
export interface WalletBalanceResponse {
|
||||
availableBalance: string // 可用余额(RPC 查询的 USDC 余额)
|
||||
positionBalance: string // 仓位余额(持仓总价值)
|
||||
totalBalance: string // 总余额 = 可用余额 + 仓位余额
|
||||
positions?: PositionDto[]
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户余额响应
|
||||
*/
|
||||
export interface AccountBalanceResponse {
|
||||
availableBalance: string // 可用余额(RPC 查询的 USDC 余额)
|
||||
positionBalance: string // 仓位余额(持仓总价值)
|
||||
totalBalance: string // 总余额 = 可用余额 + 仓位余额
|
||||
positions?: PositionDto[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Leader 余额响应
|
||||
*/
|
||||
export interface LeaderBalanceResponse {
|
||||
leaderId: number
|
||||
leaderAddress: string
|
||||
leaderName?: string
|
||||
availableBalance: string // 可用余额(RPC 查询的 USDC 余额)
|
||||
positionBalance: string // 仓位余额(持仓总价值)
|
||||
totalBalance: string // 总余额 = 可用余额 + 仓位余额
|
||||
positions?: PositionDto[]
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Leader 添加请求
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user