How to submit orders via the API
In case you would like to submit orders programmatically instead of via a UI, this tutorial will show you how to do that. There are a couple of use cases why you might want to do that
  1. 1.
    Submitting “take profit” limit orders, where the current market price would not allow execution (not yet supported by the CowSwap interface)
  2. 2.
    Actively listen for user orders and programmatically submitting matching orders them via a trading bot (active market making without order cost)
  3. 3.
    Other more automated trading strategies
The general API documentation can be found here: https://protocol-mainnet.gnosis.io/api/ We have also written a small trading bot script which can serve as inspiration.
Last modified 23d ago
Copy link