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.
26 lines
527 B
26 lines
527 B
package market
|
|
|
|
import (
|
|
"github.com/shopspring/decimal"
|
|
"wss-pool/pkg/model/base"
|
|
)
|
|
|
|
type SubscribeTradeResponse struct {
|
|
base.WebSocketResponseBase
|
|
Data []Trade
|
|
Tick *TickTrade
|
|
}
|
|
|
|
type TickTrade struct {
|
|
Id int64 `json:"id"`
|
|
Timestamp int64 `json:"ts"`
|
|
Data []Trade
|
|
}
|
|
|
|
type Trade struct {
|
|
TradeId int64 `json:"tradeId"`
|
|
Amount decimal.Decimal `json:"amount"`
|
|
Price decimal.Decimal `json:"price"`
|
|
Timestamp int64 `json:"ts"`
|
|
Direction string `json:"direction"`
|
|
}
|
|
|