Documentation ¶
Index ¶
- func CheckResponseStatus(statusCode int) error
- func InitAppE(app **Application) func(cmd *cobra.Command, args []string) error
- func RequestAndDeserialize(httpMethod string, path string, body io.Reader, into interface{}) (*http.Response, error)
- func SprintResponse(res *http.Response) string
- type Application
- func (a *Application) GetCryptoAccounts() (accounts []*model.Account, res *http.Response, err error)
- func (a *Application) GetFiatAccounts() (accounts []*model.Account, res *http.Response, err error)
- func (a *Application) GetProduct(idOrPairCode string) (product *model.Product, res *http.Response, err error)
- func (a *Application) GetProducts(perpetual bool) (products []*model.Product, res *http.Response, err error)
- func (a *Application) Request(httpMethod string, path string, body io.Reader) (*http.Response, error)
- type Config
- type Credentials
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponseStatus ¶
func RequestAndDeserialize ¶
func SprintResponse ¶
Types ¶
type Application ¶
var App *Application
App stores an instance
func NewApp ¶
func NewApp(creds Credentials, client *http.Client) *Application
func (*Application) GetCryptoAccounts ¶
func (*Application) GetFiatAccounts ¶
func (*Application) GetProduct ¶
func (*Application) GetProducts ¶
type Config ¶
type Config struct {
Credentials
}
type Credentials ¶
type Provider ¶
type Provider interface { GetFiatAccounts() (accounts []*model.Account, res *http.Response, err error) GetCryptoAccounts() (accounts []*model.Account, res *http.Response, err error) GetProducts(perpetual bool) (products []*model.Product, res *http.Response, err error) GetProduct(idOrpairCode string) (product *model.Product, res *http.Response, err error) }
Click to show internal directories.
Click to hide internal directories.