exg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetAlignOff

func GetAlignOff(exgName string, tfSecs int) int

GetAlignOff Obtain the time offset of the aggregation for the specified period, in seconds 获取指定周期聚合的时间偏移,单位:秒

func GetLeverage

func GetLeverage(symbol string, notional float64, account string) (float64, float64)

func GetOdBook

func GetOdBook(pair string) (*banexg.OrderBook, *errs.Error)

func GetTickers

func GetTickers() (map[string]*banexg.Ticker, *errs.Error)

func GetWith

func GetWith(name, market, contractType string) (banexg.BanExchange, *errs.Error)

func PrecAmount

func PrecAmount(exchange banexg.BanExchange, symbol string, amount float64) (float64, *errs.Error)

func PrecCost

func PrecCost(exchange banexg.BanExchange, symbol string, cost float64) (float64, *errs.Error)

func PrecPrice

func PrecPrice(exchange banexg.BanExchange, symbol string, price float64) (float64, *errs.Error)

func Setup

func Setup() *errs.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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