v1

package
v0.0.0-...-d201879 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) GetOrders

func (c *Client) GetOrders() (*t.GetOrdersResult, error)

func (*Client) GetSystemMaintenanceStatus

func (c *Client) GetSystemMaintenanceStatus() (*t.SystemMaintenanceStatusResult, error)

func (*Client) SendOrder

func (c *Client) SendOrder(o t.Order) (*t.SendOrderResult, error)

func (*Client) SendRequest

func (c *Client) SendRequest(req *http.Request, data any, requiresAuth bool) ([]byte, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL