Documentation
¶
Index ¶
Constants ¶
View Source
const ( TradingStatusEnabled = "Enabled" TradingStatusDisabled = "Disabled" )
View Source
const (
Endpoint = "https://www.bitstamp.net/api/v2/"
)
View Source
const (
QuoteSymbol = "USD"
)
Variables ¶
This section is empty.
Functions ¶
func UnmarshalResponse ¶
Types ¶
type Pair ¶ added in v0.0.6
type Pair struct {
Name string `json:"name,omitempty"`
UrlSymbol string `json:"url_symbol,omitempty"`
Trading TradingStatus `json:"trading,omitempty"`
BaseCurrency string `json:"base_currency,omitempty"`
QuoteCurrency string `json:"quote_currency,omitempty"`
}
type Ticker ¶
type Ticker struct {
Timestamp string `json:"timestamp"`
High decimal.Decimal `json:"high"`
Low decimal.Decimal `json:"low"`
Last decimal.Decimal `json:"last"`
Open decimal.Decimal `json:"open"`
VWAP decimal.Decimal `json:"vwap"`
Bid decimal.Decimal `json:"bid"`
Ask decimal.Decimal `json:"ask"`
Volume decimal.Decimal `json:"volume"`
}
type TradingStatus ¶ added in v0.0.6
type TradingStatus string
Click to show internal directories.
Click to hide internal directories.