config.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //保证金信息
  2. message MarginInfoStruct{
  3. optional uint64 AccountID = 1; // 资金账号
  4. optional uint32 GoodsID = 2; // 商品id
  5. optional uint32 MarginAlgorithm = 3; // 保证金计算方式
  6. optional double MarketMarginValue = 4; // 即市保证金值
  7. optional double ReckonMarginValue = 5; // 结算保证金值
  8. optional double LockMarginValue = 6; // 锁仓保证金
  9. optional double RealMarginValue = 7; // 实付比例
  10. optional uint32 RealMarginAlgorithm = 8; // 实付保证金计算方式
  11. }
  12. //交易规则信息子集
  13. message TradeRule{
  14. optional uint32 RuleID = 1; // 交易规则ID
  15. optional double ParamValue = 2; // 参数值
  16. }
  17. //交易规则信息
  18. message TradeRuleInfoStruct{
  19. optional uint64 AccountID = 1; // 资金账号
  20. optional uint32 GoodsID = 2; // 商品id
  21. repeated TradeRule TradeRules = 3; // 交易规则
  22. }
  23. //交易费用信息子集
  24. message TradeFee{
  25. optional uint32 FeeID = 1; // 交易规则ID
  26. optional uint32 FeeAlgorithm = 2; // 费用算法
  27. optional double ExchangeValue = 3; // 交易所费用值
  28. optional double MemberDefaultValue = 4; // 会员费用默认值
  29. }
  30. //交易费用信息
  31. message TradeFeeInfoStruct{
  32. optional uint64 AccountID = 1; // 资金账号
  33. optional uint32 GoodsID = 2; // 商品id
  34. repeated TradeFee TradeFees = 3; // 交易费用
  35. }