Documentation ¶
Index ¶
- func BuyDecisionTree(configData *types.Config, marketData *types.Market, sessionData *types.Session) (is bool, buyQuantityFiat float64)
- func ParseSymbolFiat(sessionData *types.Session) (symbolFiat string, err error)
- func SellDecisionTree(configData *types.Config, marketData *types.Market, sessionData *types.Session) (is bool, order types.Order)
- func UpdatePendingOrders(configData *types.Config, sessionData *types.Session)
- func WsBookTicker(viperData *types.ViperData, configData *types.Config, marketData *types.Market, ...)
- func WsKline(configData *types.Config, marketData *types.Market, sessionData *types.Session, ...)
- func WsUserDataServe(configData *types.Config, sessionData *types.Session, wg *sync.WaitGroup)
- type Channel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuyDecisionTree ¶
func BuyDecisionTree( configData *types.Config, marketData *types.Market, sessionData *types.Session) (is bool, buyQuantityFiat float64)
BuyDecisionTree BUY decision routine
func ParseSymbolFiat ¶ added in v1.6.4
ParseSymbolFiat parse and selects the symbol fiat coin to be used from sessionData.Symbol
func SellDecisionTree ¶
func SellDecisionTree( configData *types.Config, marketData *types.Market, sessionData *types.Session) (is bool, order types.Order)
SellDecisionTree SELL decision routine
func UpdatePendingOrders ¶
UpdatePendingOrders Routine to fill rogue and not up-to-date orders in the db and update
func WsBookTicker ¶
func WsBookTicker( viperData *types.ViperData, configData *types.Config, marketData *types.Market, sessionData *types.Session, wg *sync.WaitGroup)
WsBookTicker Pushes any update to the best bid or asks price or quantity in real-time for a specified symbol
Types ¶
Click to show internal directories.
Click to hide internal directories.