fetchers

package module
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

Traders

Let it trade for you

Connect to your exchange/broker or create your own papertrade mechanism.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binance

type Binance struct {
	Symbol   string
	Interval core.Interval
	Market   core.Market
	// contains filtered or unexported fields
}

func NewBinance

func NewBinance(apiKey, secretKey string, symbol string, interval core.Interval, market core.Market) Binance

func (Binance) FetchCandles

func (b Binance) FetchCandles() (candles *core.Candles, err error)

func (Binance) FetchDeliveryCandles

func (b Binance) FetchDeliveryCandles() (*core.Candles, error)

func (Binance) FetchFuturesCandles

func (b Binance) FetchFuturesCandles() (*core.Candles, error)

func (Binance) FetchSpotCandles

func (b Binance) FetchSpotCandles() (*core.Candles, error)

func (Binance) SyncCandles

func (b Binance) SyncCandles(cs *core.Candles, update chan *core.Candle) (doneC chan struct{}, err error)

Jump to

Keyboard shortcuts

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