/coinbase-fix-example

Simple example application for Coinbase Pro FIX API

Primary LanguageJavaApache License 2.0Apache-2.0

Coinbase Pro FIX Example

This is a simple example application that demonstrates how to connect to Coinbase Pro using the FIX API and Philadelphia, an open source FIX engine for the JVM.

Building and running this application requires Java Development Kit (JDK) 11 or newer and Maven.

Usage

To build and run the application, follow these steps:

  1. Install stunnel, for example, using Homebrew:

    brew install stunnel
  2. Download the TLS certificate:

    openssl s_client -showcerts -connect fix.pro.coinbase.com:4198 < /dev/null | \
        openssl x509 -outform PEM > fix.pro.coinbase.com.pem
  3. Build the application:

    mvn package
  4. Create a configuration file, etc/example.conf:

    cp etc/example.conf.template etc/example.conf
  5. Fill in the API passphrase, key, and secret in the configuration file, etc/example.conf.

  6. Start stunnel:

    stunnel etc/stunnel.conf
  7. Run the application:

    java -jar coinbase-fix-example.jar etc/example.conf

The application logs onto Coinbase Pro and immediately logs out.

License

Copyright 2017 Jussi Virtanen.

Released under the Apache License, Version 2.0. See LICENSE.txt for details.