Skip to content
Tim Olson edited this page Jun 24, 2014 · 6 revisions

Run Modes are command-line arguments which determine what the Coin Trader executable should do. You can easily create a new Run Mode by attaching module classes to a Context. See How to Create a Run Mode.

Usage Help

./cointrader.sh help

Drop and Rebuild Database

./cointrader.sh reset-database

Interactive Console

./cointrader.sh console
See Console Commands

Save Market Data to Database

./cointrader.sh save-data

Report Data Summary

./cointrader.sh report-data

Generate CSV file of 1-minute ticks

./cointrader.sh dump-ticks <filename>

Ad-Hoc JPA Queries

./cointrader.sh report-jpa 'select t from Trade t'