Documentation ¶
Index ¶
- Constants
- func ConnectMongo(ctx context.Context, conf MongoConf) (*mongo.Database, error)
- func DeleteInt64(ctx context.Context, coll *mongo.Collection, key string) error
- func DeleteKey(ctx context.Context, coll *mongo.Collection, key string) error
- func IsDuplicateError(err error) bool
- func LoadInt64(ctx context.Context, coll *mongo.Collection, key string) (int64, error)
- func LoadKey(ctx context.Context, coll *mongo.Collection, key string, value interface{}) error
- func MergeTick(o1, h1, l1, c1, v1, o2, h2, l2, c2, v2 float64) (open, high, low, close, volume float64)
- func NewZapLogger(conf LogConf) (*zap.Logger, error)
- func ParseJsonConfig(filename string, config interface{}) error
- func SaveInt64(ctx context.Context, coll *mongo.Collection, key string, value int64) error
- func SaveKey(ctx context.Context, coll *mongo.Collection, key string, value interface{}) error
- type BroadcastConf
- type Candle
- type ExchangeConf
- type FloatTuple
- type GinConf
- type Grid
- type GridStrategyConf
- type HistoryConf
- type KVSlice
- type LogConf
- type MongoConf
- type MySQLConf
- type QueueConf
- type RestGridStrategyConf
- type SQLiteConf
- type TelegramBotConf
- type Ticker
Constants ¶
View Source
const ( GateIO = "gate" MXC = "mxc" OKEx = "okex" Huobi = "huobi" Binance = "binance" )
Variables ¶
This section is empty.
Functions ¶
func ConnectMongo ¶ added in v0.6.0
func DeleteInt64 ¶ added in v0.18.0
func IsDuplicateError ¶ added in v0.6.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 FloatTuple ¶ added in v0.26.1
type FloatTuple struct { Key interface{} Value float64 }
type GridStrategyConf ¶ added in v0.5.8
type HistoryConf ¶ added in v0.6.1
type KVSlice ¶ added in v0.26.0
type KVSlice []FloatTuple
type RestGridStrategyConf ¶ added in v0.5.8
type SQLiteConf ¶ added in v0.5.8
type SQLiteConf struct {
Location string
}
type TelegramBotConf ¶ added in v0.30.1
Click to show internal directories.
Click to hide internal directories.