import { PageQueryParam, PageResult } from '../base';

/**
 * 请求参数
 */
export interface AccountQueryParam extends PageQueryParam {
  account?: string;
  property?: string | null;
  direction?: string | null;
}

/**
 * 账户监控列表分页列表项
 */
export interface AccountItem {
  id: number;
  availableBalance: number;
  availableBalanceForOpen: number;
  balance: number;
  buyLeverage: string | null;
  currentBalance: number;
  currentCapital: number;
  currentMargin: number;
  currentPositionList: [];
  currentRevenue: number;
  currentTodayRevenue: number;
  estimatedBlastRate: number;
  eusdtAddress: string | null;
  frozenBalance: number;
  frozenMargin: number;
  isSupervised: number;
  leverage: number;
  maketValue: number[];
  moneyType: number;
  positionType: number;
  sellLeverage: string | null;
  staticBalance: number;
  todayRevenue: string | null;
  tusdtAddress: string | null;
  walletList: [];
}

/**
 * 账户监控分页项类型
 */
export type AccountPageResult = PageResult<AccountItem[]>;

/**
 * 设置交易账户是否被监控
 */
export interface SetSupervisedForm {
  id: number | string;
  isSupervised: number | string;
}

/**
 * id参数
 */
export interface IdQueryParam {
  id: number | string;
}

