Last active
October 17, 2022 06:17
-
-
Save jmmshn/88d2fe94af4239a5ce277ff99faf1d42 to your computer and use it in GitHub Desktop.
DEXTRA_2node_orderbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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