27 lines
875 B
Go
27 lines
875 B
Go
package gdax
|
|
|
|
import (
|
|
"github.com/shopspring/decimal"
|
|
|
|
"time"
|
|
)
|
|
|
|
type Message struct {
|
|
Sequence int `json:"sequence"`
|
|
Type string `json:"type"`
|
|
TradeId int `json:"trade_id"`
|
|
OrderId string `json:"order_id"`
|
|
MakerOrderId string `json:"maker_order_id"`
|
|
TakerOrderId string `json:"taker_order_id"`
|
|
Time time.Time `json:"time"`
|
|
ProductId string `json:"product_id"`
|
|
Price decimal.Decimal `json:"price"`
|
|
Side string `json:"side"`
|
|
Size decimal.Decimal `json:"size"`
|
|
Reason string `json:"reason"`
|
|
RemainingSize decimal.Decimal `json:"remaining_size"`
|
|
LastSize decimal.Decimal `json:"last_size"`
|
|
Funds decimal.Decimal `json:"funds"`
|
|
OrderType string `json:"order_type"`
|
|
}
|