broker

package
v0.0.0-...-0c57d95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL