Documentation ¶
Index ¶
Constants ¶
View Source
const ( TradingStrategyInvalid = iota TradingStrategyInstantNoodles TradingStrategyDollarCostAveraging // recommended within 1h interval )
Variables ¶
View Source
var (
DefaultSettings = NewDefaultSettings()
)
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { SignalDisabled bool `json:"signal_disabled,omitempty"` TradingEnabled bool `json:"trading_enabled,omitempty"` TradingCost float64 `json:"trading_cost,omitempty"` TradingInterval string `json:"trading_interval,omitempty"` TradingStrategy TradingStrategy `json:"trading_strategy,omitempty"` MaxPositionsDaily int32 `json:"max_positions_daily,omitempty"` MaxPositionsPerTime int32 `json:"max_positions_per_time,omitempty"` PreferLeverageBrackets []int `json:"prefer_leverage_brackets,omitempty"` LongPNL *PNL `json:"long_pnl,omitempty"` ShortPNL *PNL `json:"short_pnl,omitempty"` }
func NewDefaultSettings ¶
func NewDefaultSettings() *Settings
func (*Settings) GetPreferLeverage ¶
func (s *Settings) GetPreferLeverage(leverageBrackets []*binance.LeverageBracket) int
type TradingStrategy ¶
type TradingStrategy byte
Click to show internal directories.
Click to hide internal directories.