mattpearson / gdax-fix-example

Simple example application for GDAX FIX API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GDAX FIX Example

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

Building and running this application requires Java Development Kit (JDK) 8 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.gdax.com:4198 < /dev/null | \
        openssl x509 -outform PEM > fix.gdax.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 gdax-fix-example.jar etc/example.conf

The application logs onto GDAX and immediately logs out.

License

Copyright 2017 Jussi Virtanen.

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

About

Simple example application for GDAX FIX API

License:Apache License 2.0


Languages

Language:Java 100.0%