//保证金信息 message MarginInfoStruct{ optional uint64 AccountID = 1; // 资金账号 optional uint32 GoodsID = 2; // 商品id optional uint32 MarginAlgorithm = 3; // 保证金计算方式 optional double MarketMarginValue = 4; // 即市保证金值 optional double ReckonMarginValue = 5; // 结算保证金值 optional double LockMarginValue = 6; // 锁仓保证金 optional double RealMarginValue = 7; // 实付比例 optional uint32 RealMarginAlgorithm = 8; // 实付保证金计算方式 } //交易规则信息子集 message TradeRule{ optional uint32 RuleID = 1; // 交易规则ID optional double ParamValue = 2; // 参数值 } //交易规则信息 message TradeRuleInfoStruct{ optional uint64 AccountID = 1; // 资金账号 optional uint32 GoodsID = 2; // 商品id repeated TradeRule TradeRules = 3; // 交易规则 } //交易费用信息子集 message TradeFee{ optional uint32 FeeID = 1; // 交易规则ID optional uint32 FeeAlgorithm = 2; // 费用算法 optional double ExchangeValue = 3; // 交易所费用值 optional double MemberDefaultValue = 4; // 会员费用默认值 } //交易费用信息 message TradeFeeInfoStruct{ optional uint64 AccountID = 1; // 资金账号 optional uint32 GoodsID = 2; // 商品id repeated TradeFee TradeFees = 3; // 交易费用 }