future

package
v0.0.0-...-089aa6e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 12 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 {
	exchange.BaseApi
}

func (*Api) AccountInfo

func (api *Api) AccountInfo() ([]exchange.Balance, error)

func (*Api) AddOrder

func (api *Api) AddOrder(params map[string]interface{}) (map[string]interface{}, error)

func (*Api) CancelOrder

func (api *Api) CancelOrder(params map[string]interface{}) (map[string]interface{}, error)

func (*Api) CreateSpotListenKey

func (api *Api) CreateSpotListenKey() (string, bool)

func (*Api) KLines

func (api *Api) KLines(params map[string]interface{}) ([][]interface{}, error)

type CancelOrderService

type CancelOrderService struct {
	binance.CancelOrderService
}

func (*CancelOrderService) Collect

func (service *CancelOrderService) Collect() map[string]interface{}

type CreateOrderService

type CreateOrderService struct {
	binance.CreateOrderService
	PositionSide string
}

func (*CreateOrderService) Collect

func (service *CreateOrderService) Collect() map[string]interface{}

type Future

type Future struct {
	Api Api
	binance.Exchange
	// contains filtered or unexported fields
}

func (*Future) AddOrder

func (future *Future) AddOrder(order db.Order) (map[string]interface{}, error)

func (*Future) CancelOrder

func (future *Future) CancelOrder(symbol string, orderId string) (map[string]interface{}, error)

func (*Future) NewExchange

func (future *Future) NewExchange(apiKey string, apiSecret string) exchange.IExchange

func (*Future) NewKLineService

func (future *Future) NewKLineService() exchange.IKLineService

func (*Future) RefreshAccount

func (future *Future) RefreshAccount()

func (*Future) SubscribeAccount

func (future *Future) SubscribeAccount(callback func(map[string]interface{})) error

func (*Future) SubscribeMarketData

func (future *Future) SubscribeMarketData(symbols []string, callback func(map[string]interface{})) error

Jump to

Keyboard shortcuts

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