Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { APIKey string `json:"api_key" required:"true"` APIKeyPass string `json:"api_key_pass" required:"true"` DefaultAddr string `json:"default_addr" default:"demo.gate.kickex.com"` Scheme string `json:"scheme" default:"wss"` Spread struct { Pair string `json:"pair" required:"true"` SpreadForStartBuy string `json:"spread_for_start_buy" required:"true"` SpreadForStartSell string `json:"spread_for_start_sell" required:"true"` SpreadForStopBuyTrade string `json:"spread_for_stop_buy_trade" required:"true"` SpreadForStopSellTrade string `json:"spread_for_stop_sell_trade" required:"true"` TotalBuyInUSDT string `json:"total_buy_in_usdt" required:"true"` } `json:"spread"` Arbitrage struct { Pair string `json:"pair" required:"true"` TotalBuyInUSDT string `json:"total_buy_in_usdt" required:"true"` PercentForStart float64 `json:"percent_for_start"` } `json:"arbitrage"` Buy struct { Pair string `json:"pair" required:"true"` SpreadForStartBuy string `json:"spread_for_start_buy" required:"true"` SpreadForStopBuyTrade string `json:"spread_for_stop_buy_trade" required:"true"` TotalBuyInUSDT string `json:"total_buy_in_usdt" required:"true"` } `json:"buy"` Telegram struct { Token string `json:"token"` ChatID int64 `json:"chat_id"` } `json:"telegram"` Env string `json:"env"` StorageDumpPath string `json:"storage_dump_path" default:"./storage/%s.spread.state.json"` Debug bool `json:"debug"` }
Click to show internal directories.
Click to hide internal directories.