Documentation ¶
Overview ¶
Package manager defines the interfaces for managing Banks, Tickers, Markets, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface { RegisterBroker(string, BrokerMaker) // Add a broker Brokers() []broker.Broker RegisterTrader(string, TraderMaker) Traders() []trader.Trader Licensee(exchange.LicenseID) trader.Trader SetCount(...TraderCfg) // Configure the Market's trader generators CreateTrader(string, exchange.LicenseID) // Add a trader with the specified LicenseID SpawnTraders() // Create the trader goroutines Retire(exchange.LicenseID) // Revoke a LicenseID }
type BrokerMaker ¶
type BrokerMaker func(MiniMarket) broker.Broker
type MiniMarket ¶
type TraderMaker ¶
type TraderMaker func(MiniMarket) trader.Trader
Click to show internal directories.
Click to hide internal directories.