You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
851 B

package types
import "sig-pub/api/pb"
// TradeInstance 交易产品
type TradeInstance struct {
InstId string // 交易产品系统id
PriceSz int32 // 价格精度
QuantitySz int32 // 交易量精度
Status int32 // 交易所交易产品状态
ExchangeInstId string // 交易所交易产品id
Leverages []int32 // 交易产品支持杠杆
Exchange pb.ExchangeType // 当前处理交易产品交易所
}
// MeticMatrix 指标向量矩阵
type MeticMatrix struct {
Name string `json:"name"` // 指标名称
Exchange string `json:"exchange"`
Interval string `json:"interval"`
Kind string `json:"kind"`
Timestamps []int64 `json:"timestamps"` // len(timestamps) == len(values)
Values []float64 `json:"values"`
}