binance

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(cfg config.DataSource) API

func (API) OHLC

func (api API) OHLC(ctx context.Context, symbol, interval string, arguments *OHLCArgs) (candles []OHLC, err error)

type IApi

type IApi interface {
	OHLC(ctx context.Context, symbol, interval string, arguments *OHLCArgs) (candles []OHLC, err error)
}

type OHLC

type OHLC struct {
	Time  time.Time
	Open  decimal.Decimal
	High  decimal.Decimal
	Low   decimal.Decimal
	Close decimal.Decimal
}

func (*OHLC) UnmarshalJSON

func (ohlc *OHLC) UnmarshalJSON(data []byte) error

type OHLCArgs

type OHLCArgs struct {
	Start    int64
	End      int64
	Limit    int64
	TimeZone string
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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