Documentation
¶
Index ¶
- Constants
- Variables
- func Cron() *cron.Cron
- func DelPairCopieds(keys ...string)
- func GetPairCopieds() map[string][2]int64
- func GetPrice(symbol string, side string) float64
- func GetPriceExp(symbol string, side string, expMS int64) float64
- func GetPriceSafe(symbol string, side string) float64
- func GetPriceSafeExp(symbol string, side string, expMS int64) float64
- func IsMaker(pair, side string, price float64) bool
- func IsPriceEmpty() bool
- func SetBarPrice(pair string, price float64)
- func SetPairCopieds(items map[string][2]int64)
- func SetPairMs(pair string, barMS, waitMS int64)
- func SetPrice(pair string, ask, bid float64)
- func SetPrices(data map[string]float64, side string)
Constants ¶
View Source
const (
Day10MSecs = int64(864000000)
)
Variables ¶
View Source
var (
PriceExpireMS = int64(60000)
)
Functions ¶
func DelPairCopieds ¶
func DelPairCopieds(keys ...string)
func GetPairCopieds ¶
func GetPriceExp ¶
GetPriceExp panic if price expired before expMS or not found
func GetPriceSafe ¶
GetPriceSafe return -1 if price expired or not found
func IsPriceEmpty ¶
func IsPriceEmpty() bool
func SetBarPrice ¶
func SetPairCopieds ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.