Documentation
¶
Index ¶
- Constants
- func ConnectMongo(ctx context.Context, conf MongoConf) (*mongo.Database, error)
- func IsDuplicateError(err error) bool
- func MergeTick(o1, h1, l1, c1, v1, o2, h2, l2, c2, v2 float64) (open, high, low, close, volume float64)
- func NewZapLogger(level string, outputPaths, errorPaths []string) (*zap.Logger, error)
- func ParseJsonConfig(filename string, config interface{}) error
- type BroadcastConf
- type Candle
- type ExchangeConf
- type Grid
- type GridStrategyConf
- type HistoryConf
- type LogConf
- type MongoConf
- type MySQLConf
- type RestGridStrategyConf
- type SQLiteConf
- type Ticker
Constants ¶
View Source
const ( GateIO = "gate" MXC = "mxc" OKEx = "okex" Huobi = "huobi" )
Variables ¶
This section is empty.
Functions ¶
func ConnectMongo ¶ added in v0.6.0
func IsDuplicateError ¶ added in v0.6.0
func NewZapLogger ¶ added in v0.12.0
func ParseJsonConfig ¶
Types ¶
type BroadcastConf ¶ added in v0.7.7
type Candle ¶ added in v0.7.5
type ExchangeConf ¶ added in v0.5.1
type GridStrategyConf ¶ added in v0.5.8
type HistoryConf ¶ added in v0.6.1
type RestGridStrategyConf ¶ added in v0.5.8
type SQLiteConf ¶ added in v0.5.8
type SQLiteConf struct {
Location string
}
Click to show internal directories.
Click to hide internal directories.