trade_analysis_table.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package trade_analysis
  2. // TableExtraConfig 表格配置
  3. type TableExtraConfig struct {
  4. CompanyName string `description:"期货公司"`
  5. ClassifyList []TableExtraConfigClassify `description:"交易所品种信息"`
  6. ContractType int `description:"合约类型: 1-主力合约; 2-成交量前2; 3-成交量前3; 4-所有合约(多个); 5-合约加总(1个)"`
  7. DateType int `description:"0-最新日期(默认); 1-固定日期"`
  8. IntervalMove int `description:"前移期数"`
  9. FixedDate string `description:"固定日期"`
  10. PredictRatio float64 `description:"预估参数, 0-1之间"`
  11. }
  12. // TableExtraConfigClassify 表格配置品种
  13. type TableExtraConfigClassify struct {
  14. Exchange string `description:"交易所"`
  15. ClassifyNames []string `description:"品种"`
  16. }
  17. // TableRowData 表格行数据
  18. type TableRowData struct {
  19. Exchange string `description:"交易所"`
  20. ClassifyName string `description:"品种"`
  21. ClassifyType string `description:"合约"`
  22. BuyValue int `description:"多单持仓量"`
  23. BuyChange int `description:"多单变化"`
  24. SoldValue int `description:"空单持仓量"`
  25. SoldChange int `description:"空单变化"`
  26. PureBuyVal int `description:"净多单持仓量"`
  27. PureBuyChange int `description:"净多单持仓增减"`
  28. BuySoldRatio float64 `description:"多空比"`
  29. BuyTopRatio float64 `description:"多单占前20比例"`
  30. SoldTopRatio float64 `description:"空单占前20比例"`
  31. TopBuyValue int `description:"前20多单"`
  32. TopSoldValue int `description:"前20空单"`
  33. TopBuyChange int `description:"前20多单变动"`
  34. TopSoldChange int `description:"前20空单变动"`
  35. TopPureBuy int `description:"前20净多单"`
  36. TopPureBuyChange int `description:"前20净多单变动"`
  37. TopBuySoldRatio float64 `description:"前20多空比"`
  38. }