Documentation ¶
Overview ¶
Package bigone bigone rest api package
Index ¶
- Constants
- type Client
- func (c *Client) CancelOrder(ctx context.Context, quote string, base string, orderID string) error
- func (c *Client) GetAccount(ctx context.Context) ([]model.Balance, error)
- func (c *Client) GetDepth(ctx context.Context, quote string, base string) (*model.OrderBook, error)
- func (c *Client) GetOrder(ctx context.Context, quote string, base string, orderID string) (*model.BigONEOrder, error)
- func (c *Client) GetOrders(ctx context.Context, quote string, base string, limit int64) ([]model.BigONEOrder, error)
- func (c *Client) GetTicker(ctx context.Context, quote string, base string) (*model.BigONETicker, error)
- func (c *Client) GetTrades(ctx context.Context, quote string, base string) ([]model.BigONETrade, error)
- func (c *Client) Trade(ctx context.Context, quote string, base string, side string, quantity float64, ...) (string, error)
Constants ¶
View Source
const (
RestHost = "api.big.one"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client BigONE client
func (*Client) CancelOrder ¶
CancelOrder Cancel an Order for DELETE https://api.big.one/orders/{id}
func (*Client) GetAccount ¶
GetAccount List Accounts of Current User, for GET https://api.big.one/accounts
func (*Client) GetDepth ¶
GetDepth Order book, for GET https://api.big.one/markets/{symbol}/book
func (*Client) GetOrder ¶
func (c *Client) GetOrder(ctx context.Context, quote string, base string, orderID string) (*model.BigONEOrder, error)
GetOrder Check an order's status, for GET /api/v3/order
func (*Client) GetOrders ¶
func (c *Client) GetOrders(ctx context.Context, quote string, base string, limit int64) ([]model.BigONEOrder, error)
GetOrders Get all open orders on a symbol, for GET /orders{?market,limit}
func (*Client) GetTicker ¶
func (c *Client) GetTicker(ctx context.Context, quote string, base string) (*model.BigONETicker, error)
GetTicker Get a Market, for GET https://api.big.one/markets/{symbol}
Click to show internal directories.
Click to hide internal directories.