trademodel/orderbook.go
2024-06-25 21:52:58 +08:00

17 lines
212 B
Go

package trademodel
import "time"
type DepthInfo struct {
Price float64
Amount float64
}
type Depth OrderBook
type OrderBook struct {
Sells []DepthInfo
Buys []DepthInfo
UpdateTime time.Time
}