Skip to content
Mac Robeson edited this page Jul 5, 2022 · 16 revisions
  1. Install Java 1.8
  2. Install Maven
  3. Install MySql
  4. Create a database using
    mysql -u root -e `create database cointrader;`
    This is mysql root not system root
  5. git clone https://github.com/timolson/cointrader.git
  6. cd cointrader
  7. 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>
  1. Build with Maven
    mvn
  2. 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.
  3. 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

Clone this wiki locally