tracking

package
v0.0.0-...-ce8eda3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IndicatorsStatusBuy - статус "необходимо покупать"
	IndicatorsStatusBuy IndicatorsStatus = 1
	// IndicatorsStatusNeutral - статус "нет рекомендаций"
	IndicatorsStatusNeutral IndicatorsStatus = 0
	// IndicatorsStatusSell - статус "необходимо продавать"
	IndicatorsStatusSell IndicatorsStatus = -1

	// BotStatusWaitPurchase - статус "ожидает покупки"
	BotStatusWaitPurchase BotStatus = iota
	// BotStatusActivePurchase - статус "происходит покупка"
	BotStatusActivePurchase BotStatus = iota
	// BotStatusWaitSell - статус "ожидает продажи"
	BotStatusWaitSell BotStatus = iota
	// BotStatusActiveSell - статус "происходит продажа"
	BotStatusActiveSell BotStatus = iota
)

Variables

This section is empty.

Functions

func DirectionTracking

func DirectionTracking(pair string, interval string, priceForOneTransaction float64, fee float64, client *bnc.API,

	waitGroupDirectionTracking *sync.WaitGroup)

DirectionTracking - поток отслеживания направления

Types

type Bot

type Bot struct {
	// BuyOrderID - идентификатор ордера покупки
	BuyOrderID uint64
	// SellOrderID - идентификатор ордера продажи
	SellOrderID uint64
	// StopLossOrderID - идентификатор ордера STOP-LOSS
	StopLossOrderID uint64

	Status BotStatus
}

Bot - хранилище показателей бота

type BotStatus

type BotStatus uint8

BotStatus - статус бота

type IndicatorsStatus

type IndicatorsStatus int8

IndicatorsStatus - статус индикатора

Jump to

Keyboard shortcuts

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