Synthetixio / simulation

Agent-based model of the proposed stablecoin.
24 stars 18 forks source link

Orderbook bid ask handler #30

Closed 0xdomrom closed 6 years ago

0xdomrom commented 6 years ago

Added a SortedDict to the orderbook to hold a cumulative quantity for each price. Changed the bids/asks to only accept the order when the player has enough to settle the order (added a property that is the marketplayer.available_currency)

Have to change the visualization of the orderbook to use the new datastructure

zyzek commented 6 years ago

Been investigating more closely. This can't be merged. There's a bunch of strange stuff going on underneath which I am making some progress towards remedying locally.