binance

package
v0.0.0-...-ab7db8c Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binance

type Binance struct {
	// contains filtered or unexported fields
}

Binance is the binance implementation for cxtgo interface

func New

func New(opts ...cxtgo.BaseOpt) *Binance

New returns an instance of the binance exchange, with some defaults set.

func (*Binance) Balance

func (b *Binance) Balance(ctx context.Context) error

func (*Binance) CancelAllOrders

func (b *Binance) CancelAllOrders(ctx context.Context) error

func (*Binance) CancelOrder

func (b *Binance) CancelOrder(ctx context.Context) error

func (*Binance) ClosedOrders

func (b *Binance) ClosedOrders(ctx context.Context) error

func (*Binance) Deposit

func (b *Binance) Deposit(ctx context.Context) error

func (*Binance) Info

func (b *Binance) Info() cxtgo.Base

Info returns the base info for the binance exchange

func (*Binance) LimitOrder

func (b *Binance) LimitOrder(ctx context.Context, symbol cxtgo.Symbol, side cxtgo.Side, offer cxtgo.Offer, params ...cxtgo.Params) (cxtgo.Order, error)

func (*Binance) MarketOrder

func (b *Binance) MarketOrder(ctx context.Context) error

func (*Binance) Markets

func (b *Binance) Markets(ctx context.Context, params ...cxtgo.Params) (cxtgo.MarketInfos, error)

Markets loads all the markets from binance

func (*Binance) MyTrades

func (b *Binance) MyTrades(ctx context.Context) error

func (*Binance) OHLCV

func (b *Binance) OHLCV(ctx context.Context) error

func (*Binance) OpenOrders

func (b *Binance) OpenOrders(ctx context.Context) error

func (*Binance) Order

func (b *Binance) Order(ctx context.Context) error

func (*Binance) OrderBook

func (b *Binance) OrderBook(ctx context.Context) error

func (*Binance) Orders

func (b *Binance) Orders(ctx context.Context) error

func (*Binance) StreamOrderbook

func (b *Binance) StreamOrderbook(onUpdate func(s cxtgo.Summary), onError func(err error), opts ...cxtgo.StreamOpt) error

func (*Binance) StreamTicker

func (b *Binance) StreamTicker(onUpdate func(t cxtgo.Ticker), onError func(err error), opts ...cxtgo.StreamOpt) error

func (*Binance) StreamTrades

func (b *Binance) StreamTrades(onUpdate func(t cxtgo.Trade), onError func(err error), opts ...cxtgo.StreamOpt) error

func (*Binance) Ticker

func (b *Binance) Ticker(ctx context.Context, s cxtgo.Symbol) (cxtgo.Ticker, error)

Ticker loads a single ticker for the symbol `s` from binance.

func (*Binance) Tickers

func (b *Binance) Tickers(ctx context.Context) error

Tickers loads all the tickers from binance.

func (*Binance) Trades

func (b *Binance) Trades(ctx context.Context) error

func (*Binance) Withdraw

func (b *Binance) Withdraw(ctx context.Context) error

Jump to

Keyboard shortcuts

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