ScalABM / auctions

A functional API for auction simulations
Apache License 2.0
13 stars 1 forks source link

Generalized the type of orders that can be accepted by the order book. #57

Closed davidrpugh closed 7 years ago

davidrpugh commented 7 years ago

PR generalizes the type parameter bounds for the FourHeapOrderBook class. Now one can add MarketAskOrder and MarketBidOrder instances into a FourHeapOrderBook. For version 0.2.0 I think we should consider exposing the type parameter as part of the API. This would allow users to restrict the type bounds as necessary for a particular use case.

davidrpugh commented 7 years ago

@bherd-rb I would like to get this merged soonest as I need these changes for another PR.