Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrRequireConfigParameters = "not correct input parameters"
)
Variables ¶
This section is empty.
Functions ¶
func NewCoinbaseClient ¶
NewCoinbaseClient init client for Coinbase
Types ¶
type Response ¶
type Response struct { Type ResponseType `json:"type,string"` Message string `json:"message,omitempty"` Reason string `json:"reason,omitempty"` ProductID string `json:"product_id"` BestBid float64 `json:"best_bid,string"` BestAsk float64 `json:"best_ask,string"` }
func ParseResponse ¶
type ResponseType ¶
type ResponseType int
const ( Error ResponseType = iota Subscriptions Unsubscribe Heartbeat Ticker Level2 )
func (ResponseType) String ¶
func (r ResponseType) String() string
func (*ResponseType) UnmarshalJSON ¶
func (r *ResponseType) UnmarshalJSON(v []byte) error
Click to show internal directories.
Click to hide internal directories.