Most example here are made for Coinbase market.
Why ?
Because it is the simplest one to setup and it has a sandbox to play with.
- Install
stunnel
. - Run it with
stunnel ./examples/stunnel.conf
. - Create a API token to Coinbase sandbox API with:
- Trade permission
- Your IP
- Setup following env variables:
COINBASE_API_KEY
COINBASE_API_PASSPHRASE
COINBASE_API_SECRET
- Check the code and update to your need.
- Add some fund to your sandbox portfolio.
- Launch the
coinbase-example
app 🚀 !!!
That is so simple. Just add following lines to your Cargo.toml
file:
coinbase-fix42-order-entry = { git = "https://github.com/arthurlm/quickfix-rs.git" }
coinbase-fix50-market-data = { git = "https://github.com/arthurlm/quickfix-rs.git" }
coinbase-fix-utils = { git = "https://github.com/arthurlm/quickfix-rs.git" }
quickfix = { git = "https://github.com/arthurlm/quickfix-rs.git" }
NOTE: Make sure to clean FIX file message store before running examples.
Running executor (simple app that execute every order you sent to it):
cargo r --bin=executor examples/configs/server.ini
Running single order sender:
cargo r --bin=single-order-sender examples/configs/client.ini