Documentation ¶
Index ¶
- Constants
- type ApiClient
- func (apiClient *ApiClient) GetAllOHLCVMarketData(symbol models.Symbol, interval time.Duration, startTime time.Time, ...) ([]*models.OHLCVMarketData, error)
- func (apiClient *ApiClient) GetExchangeIdentifier() string
- func (apiClient *ApiClient) GetOHLCVMarketData(symbol models.Symbol, durationInterval time.Duration, startTime time.Time, ...) ([]*models.OHLCVMarketData, error)
- func (apiClient *ApiClient) GetRawMarketData() ([]*models.RawMarketData, error)
- func (apiClient *ApiClient) GetSupportedPairs() ([]*models.Symbol, error)
- type CandleStickData
- type Interval
- type ProductsResponse
Constants ¶
View Source
const (
COINBASEPRO = "COINBASEPRO"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
func NewCoinbaseProAPIClient ¶
func NewCoinbaseProAPIClient() *ApiClient
func (*ApiClient) GetAllOHLCVMarketData ¶
func (apiClient *ApiClient) GetAllOHLCVMarketData( symbol models.Symbol, interval time.Duration, startTime time.Time, endTime time.Time, ) ([]*models.OHLCVMarketData, error)
GetAllOHLCVMarketData get CandleStick data from [startTime, endTime) with pagination
func (*ApiClient) GetExchangeIdentifier ¶
func (*ApiClient) GetOHLCVMarketData ¶
func (apiClient *ApiClient) GetOHLCVMarketData( symbol models.Symbol, durationInterval time.Duration, startTime time.Time, endTime time.Time, ) ([]*models.OHLCVMarketData, error)
GetOHLCVMarketData get CandleStick data from [startTime, endTime]
func (*ApiClient) GetRawMarketData ¶
func (apiClient *ApiClient) GetRawMarketData() ([]*models.RawMarketData, error)
type CandleStickData ¶
type CandleStickData struct { CloseTime float64 LowPrice float64 HighPrice float64 OpenPrice float64 ClosePrice float64 Volume float64 }
CandleStickData https://docs.pro.coinbase.com/?python#get-historic-rates
func (*CandleStickData) UnmarshalJSON ¶
func (candleStickResponse *CandleStickData) UnmarshalJSON( data []byte, ) (err error)
type ProductsResponse ¶
type ProductsResponse []struct { ID string `json:"id"` Message string `json:"message"` // ERROR MESSAGE DisplayName string `json:"display_name"` BaseCurrency string `json:"base_currency"` QuoteCurrency string `json:"quote_currency"` BaseIncrement string `json:"base_increment"` QuoteIncrement string `json:"quote_increment"` BaseMinSize string `json:"base_min_size"` BaseMaxSize string `json:"base_max_size"` MinMarketFunds string `json:"min_market_funds"` MaxMarketFunds string `json:"max_market_funds"` Status string `json:"status"` StatusMessage string `json:"status_message"` CancelOnly bool `json:"cancel_only"` LimitOnly bool `json:"limit_only"` PostOnly bool `json:"post_only"` TradingDisabled bool `json:"trading_disabled"` }
ProductsResponse https://docs.pro.coinbase.com/?python#get-products
Click to show internal directories.
Click to hide internal directories.