Skip to content

arthurlm/quickfix-rs-examples

Repository files navigation

QuickFIX-rs examples

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.

Getting started

  1. Create a API token to Coinbase sandbox API with:
    • Trade permission
    • Your IP
  2. Setup following env variables:
    • COINBASE_API_KEY
    • COINBASE_API_PASSPHRASE
    • COINBASE_API_SECRET
  3. Check the code and update to your need.
  4. Add some fund to your sandbox portfolio.
  5. Launch the coinbase-example app 🚀 !!!

Including code from github instead of crates.io

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" }

Other examples

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 configs/server.ini

Running single order sender:

cargo r --bin=single-order-sender  configs/client.ini

About

Examples for quickfix-rs library

Topics

Resources

License

Stars

Watchers

Forks

Languages