Documentation ¶
Index ¶
- Constants
- Variables
- func GetCurrencyPair() string
- func GetEventsRaiseInterval() time.Duration
- func GetExchange() string
- func GetGCEBucket() string
- func GetGCEServiceKeyFilepath() string
- func GetOrderSize() float64
- func Init(configPath string) error
- func IsDebugEnabled() bool
- type Configuration
- type Currency
- type DataCollector
- type Event
- type OrderBookLog
Constants ¶
View Source
const ( // BuyEvent ... BuyEvent = "BUY" // SellEvent ... SellEvent = "SELL" )
Variables ¶
View Source
var BTC = Currency("BTC")
BTC ...
View Source
var EnabledEvents = []Event{BuyEvent, SellEvent}
EnabledEvents ...
View Source
var USD = Currency("USD")
USD ...
Functions ¶
func GetEventsRaiseInterval ¶
GetEventsRaiseInterval ...
Types ¶
type Configuration ¶
type Configuration struct { EnableDebug bool TestBrokerMode bool EventRaiseInterval int LogsRoot string ConfigsRoot string Exchange string CurrencyPair string OrderSize float64 MinimumOrderSize float64 DataCollector DataCollector GCEBucket string ServiceKeyFilename string }
Configuration ...
type OrderBookLog ¶
OrderBookLog ...
func (OrderBookLog) GetRotateInterval ¶
func (m OrderBookLog) GetRotateInterval() time.Duration
GetRotateInterval ...
Click to show internal directories.
Click to hide internal directories.