Skip to content

Instantly share code, notes, and snippets.

@jmmshn
Last active October 17, 2022 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmmshn/c34a085191f93b2190d092515273c85d to your computer and use it in GitHub Desktop.
Save jmmshn/c34a085191f93b2190d092515273c85d to your computer and use it in GitHub Desktop.
o1 = LimitBuyOrder(1, 2, 1000, 1/1328)
o2 = LimitBuyOrder(3, 1, 0.1, 19400)
o3 = LimitBuyOrder(2, 3, 2, 1328/19400)
orderbook = OrderBook([o1, o2, o3], ["DAI", "ETH", "BTC"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment