Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
Id int64 `yaml:"Id"`
RpcUrl string `yaml:"RpcUrl"`
NativeCurrency struct {
Symbol string `yaml:"Symbol"`
Decimals uint8 `yaml:"Decimals"`
} `yaml:"NativeCurrency"`
StablecoinCA string `yaml:"StablecoinCA"`
StablecoinSymbol string `yaml:"-"`
StablecoinDecimals uint8 `yaml:"-"`
SlippageBps int `yaml:"SlippageBps"`
DexAggregator string `yaml:"DexAggregator"`
}
type Config ¶
type Config struct {
Chain Chain `yaml:"Chain"`
Datapi string `yaml:"Datapi"`
OkxWeb3 OkxWeb3 `yaml:"OkxWeb3"`
ZenRows ZenRows `yaml:"ZenRows"`
DeepSeek DeepSeek `yaml:"DeepSeek"`
Sock5Proxy Sock5Proxy `yaml:"Sock5Proxy"`
LoreFilter LoreFilter `yaml:"LoreFilter"`
TelegramBot TelegramBot `yaml:"TelegramBot"`
DefaultGridSettings DefaultGridSettings `yaml:"DefaultGridSettings"`
QuickStartSettings QuickStartSettings `yaml:"QuickStartSettings"`
TokenRequirements TokenRequirements `yaml:"TokenRequirements"`
}
func LoadFromFile ¶
type DefaultGridSettings ¶
type DefaultGridSettings struct {
OrderSize decimal.Decimal `yaml:"OrderSize"`
MaxGridLimit int `yaml:"MaxGridLimit"`
StopLossExit decimal.Decimal `yaml:"StopLossExit"`
TakeProfitExit decimal.Decimal `yaml:"TakeProfitExit"`
TakeProfitRatio decimal.Decimal `yaml:"TakeProfitRatio"`
EnableAutoExit bool `yaml:"EnableAutoExit"`
LastKlineVolume decimal.Decimal `yaml:"LastKlineVolume"`
FiveKlineVolume decimal.Decimal `yaml:"FiveKlineVolume"`
GlobalTakeProfitRatio decimal.Decimal `yaml:"GlobalTakeProfitRatio"`
DropOn bool `yaml:"DropOn"`
CandlesToCheck int `yaml:"CandlesToCheck"`
DropThreshold decimal.Decimal `yaml:"DropThreshold"`
}
func (*DefaultGridSettings) Validate ¶
func (c *DefaultGridSettings) Validate() error
type LoreFilter ¶
type LoreFilter struct {
MinHolder int `yaml:"MinHolder"`
}
type QuickStartSettings ¶
type QuickStartSettings struct {
OrderSize decimal.Decimal `yaml:"OrderSize"`
MaxGridLimit int `yaml:"MaxGridLimit"`
StopLossExit decimal.Decimal `yaml:"StopLossExit"`
TakeProfitExit decimal.Decimal `yaml:"TakeProfitExit"`
TakeProfitRatio decimal.Decimal `yaml:"TakeProfitRatio"`
EnableAutoExit bool `yaml:"EnableAutoExit"`
LastKlineVolume decimal.Decimal `yaml:"LastKlineVolume"`
FiveKlineVolume decimal.Decimal `yaml:"FiveKlineVolume"`
UpperPriceBound decimal.Decimal `yaml:"UpperPriceBound"`
LowerPriceBound decimal.Decimal `yaml:"LowerPriceBound"`
GlobalTakeProfitRatio decimal.Decimal `yaml:"GlobalTakeProfitRatio"`
DropOn bool `yaml:"DropOn"`
CandlesToCheck int `yaml:"CandlesToCheck"`
DropThreshold decimal.Decimal `yaml:"DropThreshold"`
}
type Sock5Proxy ¶
type TelegramBot ¶
type TelegramBot struct {
Debug bool `yaml:"Debug"`
ApiToken string `yaml:"ApiToken"`
WhiteList []int64 `yaml:"WhiteList"`
}
func (*TelegramBot) IsWhiteListUser ¶
func (c *TelegramBot) IsWhiteListUser(userId int64) bool
type TokenRequirements ¶
Click to show internal directories.
Click to hide internal directories.