Documentation ¶
Index ¶
- type Client
- func (c Client) Delete(path string, params interface{}, holder interface{}) error
- func (c Client) Get(path string, params interface{}, holder interface{}) error
- func (c Client) GetAccountByID(accountID string) (*models.Accounts, error)
- func (c Client) GetAccounts() (*models.Accounts, error)
- func (c Client) GetNewAccountAddress(accountID string) (*models.Addresses, error)
- func (c Client) GetSpotPrice(base, quote string) (*models.SpotPrice, error)
- func (c Client) GetTransactionsByAccountID(accountID string) (*models.Transactions, error)
- func (c Client) Post(path string, params interface{}, holder interface{}) error
- func (c Client) Put(path string, params interface{}, holder interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the struct from which all API requests are made
var CoinbaseClient *Client
CoinbaseClient is the global blablabla
func (Client) GetAccountByID ¶
GetAccountByID returns a coinbase account by its ID
func (Client) GetAccounts ¶
GetAccounts returns a list of all coinbase accounts
func (Client) GetNewAccountAddress ¶ added in v0.4.1
GetNewAccountAddress return a new address for an account id (one time deposit)
func (Client) GetSpotPrice ¶ added in v0.3.1
GetSpotPrice returns the last sport price for a currency pair
func (Client) GetTransactionsByAccountID ¶ added in v0.2.1
func (c Client) GetTransactionsByAccountID(accountID string) (*models.Transactions, error)
GetTransactionsByAccountID lists account’s transactions
Click to show internal directories.
Click to hide internal directories.