Skip to content
Tim Olson edited this page Jun 23, 2014 · 16 revisions

Setup

  1. Install Java
  2. Install Maven
  3. Install MySql
  4. Create a database
  5. mysql -u root -e `create database cointrader;` this is mysql root not system root
  6. git clone https://github.com/timolson/cointrader.git
  7. cd cointrader
  8. Build with maven (the default goal is package):
  9. mvn
  10. OPTIONAL: Create a file cointrader.properties in the current directory. You may configure additional settings here, like a database username and password. See cointrader-default.properties for information.
  11. Initialize the database with:
  12. ./cointrader.sh reset-database
  13. Start a process to save market data in the db:
  14. ./cointrader.sh save-data &
  15. for example, to run the data collector, invoke
  16. java -jar code/target/cointrader-0.2-SNAPSHOT-jar-with-dependencies.jar save-data
  17. If you get errors about "sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", it is because BTC-e uses an SSL cert whose root CA is not recognized by Java 7. To fix this problem, run installCert.sh
Clone this wiki locally