Versions in this module Expand all Collapse all v3 v3.1.5 Sep 5, 2021 v3.1.4 Aug 24, 2021 Changes in this version + type Balance struct + Available string + Total string + type Client struct + func New(opts ...ClientOpt) *Client + func (c *Client) ListOrders(ctx context.Context, base string, quote string, opts ...ListOrdersOption) ([]Order, error) + func (c Client) Coins(ctx context.Context) ([]string, error) + func (c Client) GetBalances(ctx context.Context) (map[string]Balance, error) + func (c Client) GetWithdrawalLimits(ctx context.Context) (map[string]WithdrawalLimit, error) + func (c Client) Orderbook(ctx context.Context, base string, quote string, opts ...OrderbookOption) (Orderbook, error) + func (c Client) Ticker(ctx context.Context, base string, quote string) (Ticker, error) + func (c Client) Trades(ctx context.Context, base string, quote string, opts ...TradesOption) ([]Trade, error) + type ClientOpt func(client *Client) + func WithIdSecret(id, secret string) ClientOpt + type ListOrdersOption func(values url.Values) + func FromID(id string) ListOrdersOption + func FromTimestamp(ts int64) ListOrdersOption + func HasFills(has bool) ListOrdersOption + func ToID(id string) ListOrdersOption + func ToTimestamp(ts int64) ListOrdersOption + func WithOrderTypes(t OrderType) ListOrdersOption + func WithStatuses(statuses ...OrderStatus) ListOrdersOption + type Operation struct + ExecutedTimestamp string + FeeRate string + ID int + Price string + Qty string + type Order struct + CreatedAt string + ExecutedPriceAvg string + ExecutedQuantity string + Fee string + HasFills bool + ID int + LimitPrice string + Operations []Operation + OrderType OrderType + Pair string + Qty string + Status int + UpdatedAt string + type OrderStatus int + var Cancelled OrderStatus = 3 + var Filled OrderStatus = 4 + var Open OrderStatus = 2 + var Pending OrderStatus = 1 + type OrderType int + var Buy OrderType = 1 + var Sell OrderType = 2 + type Orderbook struct + Asks [][]float64 + Bids [][]float64 + Timestamp int64 + type OrderbookOption func(values url.Values) + func WithLimit(limit int) OrderbookOption + type StatusCode int + const ErrorCode + const SuccessCode + type Ticker struct + Buy string + Date int64 + High string + Last string + Low string + Open string + Sell string + Vol string + type Trade struct + Amount float64 + Date int64 + Price float64 + Tid int64 + Type string + type TradesOption func(values url.Values) + func FromTid(tid int64) TradesOption + type WithdrawalLimit struct + Available string + Total string v3.1.3 Aug 24, 2021 v3.1.2 Aug 24, 2021 v3.1.1 Aug 24, 2021 v3.1.0 Aug 24, 2021 v3.0.1 Aug 12, 2021 v3.0.0 Aug 12, 2021 Other modules containing this package github.com/lucaskatayama/mbc/v4