tasks

package
v0.0.0-...-9e6d8ee Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsTask

type StatsTask struct {
	Profit            float64 `json:"profit"`
	Win               int     `json:"win"`
	Lose              int     `json:"lose"`
	Draw              int     `json:"draw"`
	Open              int     `json:"open"`
	Close             int     `json:"close"`
	CurrentStrakeLose int     `json:"currentStrakeLose"`
	CurrentStrakeWin  int     `json:"currentStrakeWin"`
}

StatsTask -

type Tasks

type Tasks struct {
	ID           string                 `json:"id"`
	UserID       string                 `json:"userID"`
	ProviderID   string                 `json:"providerId"`
	StrategyID   string                 `json:"strategyId"`
	AccountID    string                 `json:"accountId"`
	Options      map[string]interface{} `json:"options"`
	Assets       map[string]bool        `json:"assets"`
	Active       bool                   `json:"active"`
	Enable       bool                   `json:"enable"`
	CreatedAt    int64                  `json:"createdAt"`
	UpdatedAt    int64                  `json:"updatedAt"`
	ReadlAccount bool                   `json:"readlAccount"`
	CanTrade     bool                   `json:"canTrade"`
}

Tasks -

type TestTasks

type TestTasks struct {
	ID               string    `json:"id"`
	TasksID          string    `json:"tasksId" required:"id is required" min:"min id is 4 char" validate:"required,min=4"`
	ProviderID       string    `json:"providerId" required:"ProviderID is required" min:"min id is 4 char" validate:"required,min=4"`
	AccountID        string    `json:"accountId"`
	UserID           string    `json:"userId"`
	AutoRun          bool      `json:"autoRun"`
	IsRunning        bool      `json:"isRunning"`
	CountOfTest      int       `json:"countOfTest"`
	CurrentCountTest int       `json:"currentCountTest"`
	IsDone           bool      `json:"isDone"`
	Assets           []string  `json:"assets"`
	CreatedAt        int64     `json:"createdAt"`
	UpdatedAt        int64     `json:"updatedAt"`
	StartDate        time.Time `json:"startDate"`
	EndDate          time.Time `json:"endDate"`
	StartTime        time.Time `json:"startTime"`
	EndTime          time.Time `json:"endTime"`
}

TestTasks -

Jump to

Keyboard shortcuts

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