-
Notifications
You must be signed in to change notification settings - Fork 166
Setup
Mac Robeson edited this page Jul 5, 2022
·
16 revisions
- Install Java 1.8
- Install Maven
- Install MySql
- Create a database using
mysql -u root -e `create database cointrader;`
This is mysql root not system root git clone https://github.com/timolson/cointrader.git
cd cointrader
- Install JEP lib to local maven repo
mvn install:install-file -Dfile=repo/org/python/pypi/jep/3.6.1/jep-3.6.1.jar -DgroupId=org.python.pypi -DartifactId=jep -Dversion=3.6.1 -Dpackaging=jar
or if on windows
created repo\org\python\pypi\jep\3.6.4
copied JAR from Python site-packages (...Python36\Lib\site-packages\jep\jep-3.6.4.jar) to this directory
created repo\org\python\pypi\jep\3.6.4\jep-3.6.4.pom based on repo\org\python\pypi\jep\3.6.1\jep-3.6.1.pom - just replaced 3.6.1 with 3.6.4
changed dependency in main pom.xml:
<dependency>
<groupId>org.python.pypi</groupId>
<artifactId>jep</artifactId>
<version>3.6.4</version>
</dependency>
- Build with Maven
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. - Initialize the database with:
./cointrader.sh reset-database
You're done! Now you might want to:
- Start a process to save market data in the db:
./cointrader.sh save-data &
- Run the Console
./cointrader.sh console
Continue to Run Modes