Documentation ¶
Overview ¶
Coinbase-go is a convenient Go wrapper for the Coinbase API
Index ¶
- type AccountParams
- 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) GetAccount(accountId string) (*account, error)
- func (c Client) GetAccounts(params map[string]string) (*[]account, *pagination, error)
- func (c Client) GetAddressTransactions(accountId string, addressId string, params map[string]string) (*[]transaction, *pagination, error)
- func (c Client) GetAddresses(accountId string, params map[string]string) (*[]address, *pagination, error)
- func (c Client) GetBuy(accountId string, buyId string, params map[string]string) (*buy, error)
- func (c Client) GetBuys(accountId string, params map[string]string) (*[]buy, *pagination, error)
- func (c Client) GetDeposit(accountId string, depositId string, params map[string]string) (*deposit, error)
- func (c Client) GetDeposits(accountId string, params map[string]string) (*[]deposit, *pagination, error)
- func (c Client) GetPaymentMethod(paymentMethodId string, params map[string]string) (*paymentMethod, error)
- func (c Client) GetPaymentMethods(params map[string]string) (*[]paymentMethod, *pagination, error)
- func (c Client) GetSell(accountId string, sellId string, params map[string]string) (*sell, error)
- func (c Client) GetSells(accountId string, params map[string]string) (*[]sell, *pagination, error)
- func (c Client) GetTransaction(accountId string, transactionId string, params map[string]string) (*transaction, error)
- func (c Client) GetTransactions(accountId string, params map[string]string) (*[]transaction, *pagination, error)
- func (c Client) GetUser() (*user, error)
- func (c Client) GetUserAuth() (*userAuth, error)
- func (c Client) GetUsers(userId string) (*user, error)
- func (c Client) GetWithdrawal(accountId string, withdrawalId string, params map[string]string) (*withdrawal, error)
- func (c Client) GetWithdrawals(accountId string, params map[string]string) (*[]withdrawal, *pagination, error)
- func (c Client) Post(path string, params interface{}, holder interface{}) error
- func (c Client) Put(path string, params interface{}, holder interface{}) error
- func (c Client) UpdateAccount(accountId string, params *AccountParams) (*account, error)
- func (c Client) UpdateUser(params *UserParams) (*user, error)
- type UserParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountParams ¶
type AccountParams struct {
Name string `json:"name,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the struct from which all API requests are made
func ApiKeyClient ¶
ApiKeyClient instantiates the client with ApiKey Authentication
func (Client) GetAccount ¶
GetAccount gets an account assosciated to a account_id
func (Client) GetAccounts ¶
GetAccounts gets the accounts associated with the authentication
func (Client) GetAddressTransactions ¶
func (c Client) GetAddressTransactions(accountId string, addressId string, params map[string]string) (*[]transaction, *pagination, error)
GetAddressTransactions gets the address transactions associated with the authentication
func (Client) GetAddresses ¶
func (c Client) GetAddresses(accountId string, params map[string]string) (*[]address, *pagination, error)
GetAddresses gets the addresses associated with the authentication
func (Client) GetDeposit ¶
func (c Client) GetDeposit(accountId string, depositId string, params map[string]string) (*deposit, error)
GetDeposit get a deposit by id of a deposit associated with the authentication
func (Client) GetDeposits ¶
func (c Client) GetDeposits(accountId string, params map[string]string) (*[]deposit, *pagination, error)
GetDeposits gets the deposits associated with the authentication
func (Client) GetPaymentMethod ¶
func (c Client) GetPaymentMethod(paymentMethodId string, params map[string]string) (*paymentMethod, error)
GetPaymentMethod get a payment method by id
func (Client) GetPaymentMethods ¶
GetPaymentMethods gets the payment methods
func (Client) GetTransaction ¶
func (c Client) GetTransaction(accountId string, transactionId string, params map[string]string) (*transaction, error)
GetTransaction get a transaction by id of a transaction associated with the authentication
func (Client) GetTransactions ¶
func (c Client) GetTransactions(accountId string, params map[string]string) (*[]transaction, *pagination, error)
GetTransactions gets the transactions associated with the authentication
func (Client) GetUserAuth ¶
GetUserAuth gets the user auth associated with the authentication
func (Client) GetWithdrawal ¶
func (c Client) GetWithdrawal(accountId string, withdrawalId string, params map[string]string) (*withdrawal, error)
GetWithdrawal get a withdrawal by id of a withdrawal associated with the authentication
func (Client) GetWithdrawals ¶
func (c Client) GetWithdrawals(accountId string, params map[string]string) (*[]withdrawal, *pagination, error)
GetWithdrawals gets the withdrawals associated with the authentication
func (Client) UpdateAccount ¶
func (c Client) UpdateAccount(accountId string, params *AccountParams) (*account, error)
UpdateAccount updates the account associated with the authentication
func (Client) UpdateUser ¶
func (c Client) UpdateUser(params *UserParams) (*user, error)
UpdateUser updates the user associated with the authentication