Documentation ¶ Index ¶ Constants func DecodeResponse(resp *resty.Response) ([]byte, error) func New() exchange.Interface func Request(ctx context.Context) *resty.Request func UnmarshalResponse(resp *resty.Response, v interface{}) error type Error func (err *Error) Error() string type Ticker Constants ¶ View Source const ( Endpoint = "https://api.pro.coinbase.com" WebsocketEndpoint = "wss://ws-feed.pro.coinbase.com" ) Variables ¶ This section is empty. Functions ¶ func DecodeResponse ¶ func DecodeResponse(resp *resty.Response) ([]byte, error) func New ¶ func New() exchange.Interface func Request ¶ func Request(ctx context.Context) *resty.Request func UnmarshalResponse ¶ func UnmarshalResponse(resp *resty.Response, v interface{}) error Types ¶ type Error ¶ type Error struct { Code int `json:"code,omitempty"` Msg string `json:"message,omitempty"` } func (*Error) Error ¶ func (err *Error) Error() string type Ticker ¶ type Ticker struct { TradeID int64 `json:"trade_id"` Time time.Time `json:"time"` Price decimal.Decimal `json:"price"` Bid decimal.Decimal `json:"bid"` Ask decimal.Decimal `json:"ask"` Volume decimal.Decimal `json:"volume"` } Source Files ¶ View all Source files coinbase.gorequest.goticker.go Click to show internal directories. Click to hide internal directories.