Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountTypeSelection []AccountType = []AccountType{
{ID: 1, Name: "Real"},
{ID: 4, Name: "Demo"},
}
AccountTypeSelection -
View Source
var MartingaleActionSelection []MartingaleAct = []MartingaleAct{ {ID: MartingaleActionReset, Name: "Reset to stake value"}, {ID: MartingaleActionStop, Name: "Stop trading"}, }
MartingaleActionSelection -
View Source
var TradingAssetsTaskSelection []TradingAssetsTaskSelectionType = []TradingAssetsTaskSelectionType{ {ID: AssetsSelectionRoundRobin, Name: "Round-robin"}, {ID: AssetsSelectionRandom, Name: "Random"}, }
TradingAssetsTaskSelection -
View Source
var TradingTime []TradingTimeStruct = []TradingTimeStruct{
{
ID: 1,
Name: "1 Minute",
},
{
ID: 2,
Name: "2 Minute",
},
{
ID: 3,
Name: "3 Minute",
},
{
ID: 4,
Name: "4 Minute",
},
{
ID: 5,
Name: "5 Minute",
},
}
TradingTime -
View Source
var TradingType []TradingTypeStruct = []TradingTypeStruct{ { ID: InstrumentTypeBinary, Name: "Binary Option", }, { ID: InstrumentTypeDigital, Name: "Digital Option", }, { ID: InstrumentTypeOption, Name: "All Option (Binary and Digital)", }, }
TradingType -
Functions ¶
func GetInstrumentTypeName ¶
func GetInstrumentTypeName(tp InstrumentType) (cs string)
GetInstrumentTypeName -
Types ¶
type AccountType ¶
AccountType -
type AssetsSelection ¶
type AssetsSelection int
AssetsSelection -
const ( //AssetsSelectionRoundRobin - AssetsSelectionRoundRobin AssetsSelection = iota + 1 //AssetsSelectionRandom - AssetsSelectionRandom )
type InstrumentType ¶
type InstrumentType int
InstrumentType -
const ( //InstrumentTypeBinary - InstrumentTypeBinary InstrumentType = iota + 1 //InstrumentTypeDigital - InstrumentTypeDigital //InstrumentTypeOption - InstrumentTypeOption )
type MartingaleAct ¶
type MartingaleAct struct {
ID MartingaleAction `json:"id"`
Name string `json:"name"`
}
MartingaleAct -
type MartingaleAction ¶
type MartingaleAction int
MartingaleAction -
const ( //MartingaleActionReset - MartingaleActionReset MartingaleAction = iota + 1 //MartingaleActionStop - MartingaleActionStop )
type Options ¶
type Options struct {
AssetSelection int `` /* 151-byte string literal not displayed */
Commission int `` /* 139-byte string literal not displayed */
Duration int `` /* 127-byte string literal not displayed */
SendSignalToOtherTask bool
AllowSignalFromOtherTask bool
SendSignalIfWin int `` /* 157-byte string literal not displayed */
Martingale bool
MgLevel int `json:"mgLevel" required:"mgLevel is required" min:"min mgLevel is 1" max:"max mgLevel is 10" validate:"required,min=1,max=10"`
MgMultiple float64 `` /* 135-byte string literal not displayed */
ParallelBuy int `` /* 141-byte string literal not displayed */
DelayTransaction int `` /* 161-byte string literal not displayed */
Stake float64 `json:"stake" required:"stake is required" min:"min stake is 1" max:"max stake is 20000" validate:"required,min=1,max=20000"`
StopLoss float64 `json:"stopLoss" required:"stopLoss is required" min:"min stopLoss is 1" validate:"required,min=1"`
TakeProfit float64 `json:"takeProfit" required:"takeProfit is required" min:"min takeProfit is 1" validate:"required,min=1"`
TradingType int `` /* 139-byte string literal not displayed */
AccountType int `` /* 139-byte string literal not displayed */
MartingaleAction int `` /* 159-byte string literal not displayed */
}
Options -
type ProviderInstrumentType ¶
type ProviderInstrumentType int
ProviderInstrumentType -
const ( //ProviderInstrumentTypeBinary - ProviderInstrumentTypeBinary ProviderInstrumentType = iota + 1 //ProviderInstrumentTypeAnother - ProviderInstrumentTypeAnother //ProviderInstrumentTypeTurbo - ProviderInstrumentTypeTurbo )
type TradingAssetsTaskSelectionType ¶
type TradingAssetsTaskSelectionType struct {
ID AssetsSelection `json:"id"`
Name string `json:"name"`
}
TradingAssetsTaskSelectionType -
type TradingTimeStruct ¶
TradingTimeStruct -
type TradingTypeStruct ¶
type TradingTypeStruct struct {
ID InstrumentType `json:"id"`
Name string `json:"name"`
}
TradingTypeStruct -
Source Files
¶
- options.go
- types.go
Click to show internal directories.
Click to hide internal directories.