Skip to content

Instantly share code, notes, and snippets.

@jmmshn
Last active October 17, 2022 06:17
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/88d2fe94af4239a5ce277ff99faf1d42 to your computer and use it in GitHub Desktop.
Save jmmshn/88d2fe94af4239a5ce277ff99faf1d42 to your computer and use it in GitHub Desktop.
DEXTRA_2node_orderbook
order1 = LimitBuyOrder(2, 1, 1, 1328.0)
order2 = LimitSellOrder(1, 2, 0.5, 0.00075)
orderbook = OrderBook([order1, order2], ["DAI", "ETH"])
approx_prices = [1.0, 1328.0]
get_graph(
orderbook,
approx_prices;
min_val=1000,
max_val=2000,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment