Documentation ¶
Index ¶
- Constants
- type AccountReceiveAddress
- type Address
- type Addresses
- type Amount
- type Button
- type Buys
- type CentsAmount
- type Client
- func (c *Client) GenerateAccountReceiveAddress(callbackURL string) (AccountReceiveAddress, error)
- func (c *Client) Get(api_method string, params url.Values) ([]byte, error)
- func (c *Client) GetAccountBalance() (Amount, error)
- func (c *Client) GetAccountReceiveAddress() (AccountReceiveAddress, error)
- func (c *Client) GetAddresses(page int, limit int, query string) (Addresses, error)
- func (c *Client) GetBuys(quantity float32, agree_btc_amount_varies bool) (Buys, error)
- func (c *Client) GetContacts() (Contacts, error)
- func (c *Client) GetCurrencies() (Currencies, error)
- func (c *Client) GetExchangeRates() (ExchangeRates, error)
- func (c *Client) GetHistoricalPrices(page int) (string, error)
- func (c *Client) GetOrders() (Orders, error)
- func (c *Client) GetPricesBuy() (PricesBuy, error)
- func (c *Client) GetPricesSell() (PricesSell, error)
- func (c *Client) GetSells(quantity float32) (Sells, error)
- func (c *Client) GetSpotRate() (Amount, error)
- func (c *Client) GetTransfers(page int, limit int) (Transfers, error)
- func (c *Client) GetUsers() (Users, error)
- func (c *Client) PostForm(api_method string, params url.Values) ([]byte, error)
- func (c *Client) PostJSON(api_method string, params map[string]interface{}) ([]byte, error)
- type Contact
- type Contacts
- type Currencies
- type ExchangeRates
- type Order
- type Orders
- type PricesBuy
- type PricesSell
- type Sells
- type TotalCurrency
- type Transaction
- type Transfer
- type Transfers
- type User
- type Users
Constants ¶
View Source
const (
COINBASE_API_ENDPOINT = "https://coinbase.com/api/v1/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountReceiveAddress ¶
type CentsAmount ¶
type Client ¶
type Client struct { APIKey string // contains filtered or unexported fields }
The client holds the necessary keys and our HTTP client for making requests
func (*Client) GenerateAccountReceiveAddress ¶
func (c *Client) GenerateAccountReceiveAddress(callbackURL string) (AccountReceiveAddress, error)
func (*Client) GetAccountBalance ¶
func (*Client) GetAccountReceiveAddress ¶
func (c *Client) GetAccountReceiveAddress() (AccountReceiveAddress, error)
func (*Client) GetAddresses ¶
func (*Client) GetContacts ¶
func (*Client) GetCurrencies ¶
func (c *Client) GetCurrencies() (Currencies, error)
func (*Client) GetExchangeRates ¶
func (c *Client) GetExchangeRates() (ExchangeRates, error)
func (*Client) GetPricesBuy ¶
func (*Client) GetPricesSell ¶
func (c *Client) GetPricesSell() (PricesSell, error)
func (*Client) GetSpotRate ¶
type Currencies ¶
type Currencies [][]string
type ExchangeRates ¶
type Order ¶
type Order struct { ID string CreatedAt string Status string TotalBTC TotalCurrency TotalNative TotalCurrency Custom string Button Button Transaction Transaction }
type PricesSell ¶
type TotalCurrency ¶
type Transaction ¶
type User ¶
type User struct { User struct { ID string Name string Email string TimeZone string `json:"time_zone"` NativeCurrency string `json:"native_currency"` Balance Amount BuyLevel int `json:"buy_level"` SellLevel int `json:"sell_level"` BuyLimit Amount `json:"buy_limit"` SellLimit Amount `json:"sell_limit"` } }
Click to show internal directories.
Click to hide internal directories.