iqoption

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: 2 Imported by: 1

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

type AccountType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

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 -

func ParsingOption

func ParsingOption(op map[string]interface{}) (opt Options, err error)

ParsingOption -

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

type TradingTimeStruct struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

TradingTimeStruct -

type TradingTypeStruct

type TradingTypeStruct struct {
	ID   InstrumentType `json:"id"`
	Name string         `json:"name"`
}

TradingTypeStruct -

Jump to

Keyboard shortcuts

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