Versions in this module Expand all Collapse all v1 v1.0.2 Jul 20, 2023 v1.0.1 Jul 20, 2023 Changes in this version + type Cancel Order + func CancelFromRaw(raw []interface{}) (Cancel, error) + type CancelRequest struct + CID int64 + CIDDate string + ID int64 + func (cr *CancelRequest) MarshalJSON() ([]byte, error) + func (cr *CancelRequest) ToJSON() ([]byte, error) + type New Order + func NewFromRaw(raw []interface{}) (New, error) + type NewRequest struct + AffiliateCode string + Amount float64 + CID int64 + Close bool + GID int64 + Hidden bool + Leverage int64 + Meta map[string]interface{} + OcoOrder bool + PostOnly bool + Price float64 + PriceAuxLimit float64 + PriceOcoStop float64 + PriceTrailing float64 + Symbol string + TimeInForce string + Type string + func (nr *NewRequest) EnrichedPayload() interface{} + func (nr *NewRequest) MarshalJSON() ([]byte, error) + func (nr *NewRequest) ToJSON() ([]byte, error) + type Order struct + Amount float64 + AmountOrig float64 + CID int64 + Flags int64 + GID int64 + Hidden bool + ID int64 + MTSCreated int64 + MTSTif int64 + MTSUpdated int64 + Meta map[string]interface{} + Notify bool + PlacedID int64 + Price float64 + PriceAuxLimit float64 + PriceAvg float64 + PriceTrailing float64 + Routing string + Status string + Symbol string + Type string + TypePrev string + func FromRaw(raw []interface{}) (o *Order, err error) + type Snapshot struct + Snapshot []*Order + func SnapshotFromRaw(raw []interface{}) (s *Snapshot, err error) + type Update Order + func UpdateFromRaw(raw []interface{}) (Update, error) + type UpdateRequest struct + Amount float64 + Delta float64 + GID int64 + Hidden bool + ID int64 + Leverage int64 + Meta map[string]interface{} + PostOnly bool + Price float64 + PriceAuxLimit float64 + PriceTrailing float64 + TimeInForce string + func (ur *UpdateRequest) EnrichedPayload() interface{} + func (ur *UpdateRequest) MarshalJSON() ([]byte, error) + func (ur *UpdateRequest) ToJSON() ([]byte, error)