-
Notifications
You must be signed in to change notification settings - Fork 166
Setup
Tim Olson edited this page Jun 23, 2014
·
16 revisions
- Install Java
- Install Maven
- Install MySql
- Create a database
-
mysql -u root -e `create database cointrader;`
this is mysql root not system root git clone https://github.com/timolson/cointrader.git
cd cointrader
- Build with maven (the default goal is
package
): mvn
- 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. - Initialize the database with:
./cointrader.sh reset-database
- Start a process to save market data in the db:
./cointrader.sh save-data &
- for example, to run the data collector, invoke
java -jar code/target/cointrader-0.2-SNAPSHOT-jar-with-dependencies.jar save-data
- 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