Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemChannel ¶
type ItemChannel struct { }
type StockBroker ¶
type StockBroker interface { // Initialize : will initialize the broker config and setup Initialize() RegisterWebsocketClient(url string) // Listen : will listen the market data changes for the selected symbol Listen(symbol string, itemChan *chan *common.Item) }
StockBroker enforces standard functions for all exchanges supported in kayo
func NewBroker ¶
func NewBroker(brokerName string) *StockBroker
NewBroker will create the broker instance based on the broker type that you are trying to work on this function follows the factory pattern to get the Broker object based on the args
params : brokerName will string value that will be name of the broker will be used for trading
Click to show internal directories.
Click to hide internal directories.