Skip to content

Instantly share code, notes, and snippets.

@AntonioJuliano
Created January 17, 2020 01:38
Show Gist options
  • Save AntonioJuliano/3b5367263372bac089c6ffeeb6583d78 to your computer and use it in GitHub Desktop.
Save AntonioJuliano/3b5367263372bac089c6ffeeb6583d78 to your computer and use it in GitHub Desktop.
# Create order to SELL 10 ETH for 2000 DAI (a price of 200 DAI/ETH)
created_order = client.create_order(
makerMarket=consts.MARKET_DAI,
takerMarket=consts.MARKET_WETH,
makerAmount=utils.token_to_wei(2000, consts.MARKET_DAI),
takerAmount=utils.token_to_wei(10, consts.MARKET_WETH)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment