This repository has been archived on 2022-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
tacitus/gdax/message.go

27 lines
875 B
Go
Raw Normal View History

package gdax
2017-09-20 23:20:20 -07:00
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"`
}