Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AvailableSymbols() (*t.AvailableSymbolsResult, error)
- func (c *Client) GetOrders() (*t.GetOrdersResult, error)
- func (c *Client) GetSystemMaintenanceStatus() (*t.SystemMaintenanceStatusResult, error)
- func (c *Client) SendOrder(o t.Order) (*t.SendOrderResult, error)
- func (c *Client) SendRequest(req *http.Request, data any, requiresAuth bool) ([]byte, error)
- type ClientOption
Constants ¶
View Source
const BaseURL = "https://api.woo.org/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options ...ClientOption) *Client
func (*Client) AvailableSymbols ¶
func (c *Client) AvailableSymbols() (*t.AvailableSymbolsResult, error)
func (*Client) GetSystemMaintenanceStatus ¶
func (c *Client) GetSystemMaintenanceStatus() (*t.SystemMaintenanceStatusResult, error)
type ClientOption ¶
type ClientOption func(c *Client)
func WithAuth ¶
func WithAuth(apiKey string, apiSecret string) ClientOption
func WithCustomHttpClient ¶
func WithCustomHttpClient(client *http.Client) ClientOption
Click to show internal directories.
Click to hide internal directories.