Documentation ¶
Index ¶
- Variables
- func NewMarket1() market.Exchange
- type Auctioner
- func (m *Auctioner) Ask(a x.Auction) (x.AuctionID, error)
- func (m *Auctioner) Auction(a x.AuctionID) (x.Auction, error)
- func (m *Auctioner) Auctions() (a []x.Auction)
- func (m *Auctioner) Bid(b x.Bid) (x.BidID, error)
- func (m *Auctioner) Cancel(a x.AuctionID) error
- func (m *Auctioner) Finish(a x.AuctionID) error
- type Dealer
- type Market1
- func (m *Market1) AddBroker(b broker.Broker)
- func (m *Market1) AddStock(s x.Stock)
- func (m Market1) Bank() bank.Bank
- func (m *Market1) Brokers() []broker.Broker
- func (m *Market1) Close(normal bool) x.Summary
- func (m *Market1) CreateTrader(ty string, lid x.LicenseID)
- func (m *Market1) IPO(x.Stock, float32, []x.LicenseID)
- func (m *Market1) Init()
- func (m *Market1) Licensee(lid x.LicenseID) trader.Trader
- func (m *Market1) List() (ret []x.Stock)
- func (m *Market1) Open()
- func (m *Market1) Pause()
- func (m *Market1) RegisterBank(_ string, b bank.Bank)
- func (m *Market1) RegisterBroker(string, manager.BrokerMaker)
- func (m *Market1) RegisterTrader(s string, t manager.TraderMaker)
- func (m *Market1) Resume()
- func (m *Market1) Retire(x.LicenseID)
- func (m *Market1) RunID() (uuid.UUID, uint64, x.Mode)
- func (m *Market1) SetCount(tc ...manager.TraderCfg)
- func (m *Market1) SpawnTraders()
- func (m *Market1) Start(daylen, pauselen time.Duration, weeklen uint)
- func (m *Market1) Status() bool
- func (m *Market1) Traders() (t []trader.Trader)
- type Ticker
Constants ¶
This section is empty.
Variables ¶
View Source
var MkLog = log15.New("module", "market", "version", "v1")
Functions ¶
func NewMarket1 ¶
Types ¶
type Market1 ¶
func (*Market1) RegisterBroker ¶
func (*Market1) RegisterTrader ¶
func (*Market1) SpawnTraders ¶
func (m *Market1) SpawnTraders()
Click to show internal directories.
Click to hide internal directories.