import 'package:equatable/equatable.dart';

/// 交易账户信息
class TradingAccount extends Equatable {
  /// 账户序号
  final String accountSequence;
  /// 积分股余额
  final String shareBalance;
  /// 现金余额(积分值)
  final String cashBalance;
  /// 可用积分股
  final String availableShares;
  /// 可用现金
  final String availableCash;
  /// 冻结积分股
  final String frozenShares;
  /// 冻结现金
  final String frozenCash;
  /// 累计买入
  final String totalBought;
  /// 累计卖出
  final String totalSold;

  const TradingAccount({
    required this.accountSequence,
    required this.shareBalance,
    required this.cashBalance,
    required this.availableShares,
    required this.availableCash,
    required this.frozenShares,
    required this.frozenCash,
    required this.totalBought,
    required this.totalSold,
  });

  @override
  List<Object?> get props => [
        accountSequence,
        shareBalance,
        cashBalance,
        availableShares,
        availableCash,
        frozenShares,
        frozenCash,
        totalBought,
        totalSold,
      ];
}
