Documentation ¶
Index ¶
Constants ¶
View Source
const (
Endpoint = "https://api.pro.coinbase.com"
)
View Source
const (
PairStatusOnline = "online"
)
View Source
const (
QuoteSymbol = "USD"
)
Variables ¶
This section is empty.
Functions ¶
func DecodeResponse ¶
func UnmarshalResponse ¶
func UnmarshalResponse(resp *resty.Response, v interface{}) error
Types ¶
type Pair ¶ added in v0.0.6
type Pair struct { ID string `json:"id,omitempty"` DisplayName string `json:"display_name,omitempty"` BaseCurrency string `json:"base_currency,omitempty"` QuoteCurrency string `json:"quote_currency,omitempty"` Status PairStatus `json:"status,omitempty"` StatusMessage string `json:"status_message,omitempty"` CancelOnly bool `json:"cancel_only"` LimitOnly bool `json:"limit_only"` PostOnly bool `json:"post_only"` TradingDisabled bool `json:"trading_disabled"` }
type PairStatus ¶ added in v0.0.6
type PairStatus string
Click to show internal directories.
Click to hide internal directories.