Documentation
¶
Index ¶
- Constants
- func ConnectMongo(ctx context.Context, conf MongoConf) (*mongo.Database, error)
- func IsDuplicateError(err error) bool
- func ParseJsonConfig(filename string, config interface{}) error
- type BroadcastConf
- type Candle
- type Exchange
- type ExchangeConf
- type Grid
- type GridStrategyConf
- type HistoryConf
- type MongoConf
- type MySQLConf
- type RestAPI
- type RestGridStrategyConf
- type SQLiteConf
- type Ticker
- type WsAPI
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 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
}
type WsAPI ¶ added in v0.7.4
type WsAPI interface {
SubscribeCandlestick(ctx context.Context, symbol, clientId string, responseHandler websocketclientbase.ResponseHandler)
}
Click to show internal directories.
Click to hide internal directories.