./gradlew clean build
Following environment variables are necessary:
APP_COINBASE_AUTH_API_KEY
APP_COINBASE_AUTH_PASSPHRASE
APP_COINBASE_AUTH_SECRET
SPRING_PROFILES_ACTIVE
set todev
The API key needs to be created manually on https://public.sandbox.pro.coinbase.com/ with View and Trade permissions. Furthermore, there need to be some amount of USD. Can be easily transferred only via the web UI.
cd gdax-java
./gradlew clean build shadowJar
cp build/libs/coinbase-pro-java-0.11.0-all.jar ../libs
Note: Run with java 11
Following environment variables are necessary:
APP_COINBASE_AUTH_API_KEY
APP_COINBASE_AUTH_PASSPHRASE
APP_COINBASE_AUTH_SECRET
APP_MAIL_HOST
APP_MAIL_PASSWORD
APP_MAIL_SENDER
(sender mail address)APP_MAIL_USERNAME
SPRING_PROFILES_ACTIVE
set toprod
The API key needs to be created manually on https://pro.coinbase.com/ with View and Trade permissions. The mail service needs to be available for SMTPS with TLS.
Or mount YAML config file in /config/application-prod.yml
.