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

Launch Console

To run the interactive console, type ./cointrader.sh console. The console will collect MarketData from the Exchanges, but it will not save to the database. Use the save-data run mode to persist data. When running the console, the MockOrderService will be attached to provide fake executions of any orders placed with the buy/sell command. The market data will be live, but your order executions will be simulated.

help [command]

help by itself lists the available commands, while help _command_ gives you more detailed information about a specific command.

watch/unwatch {listing}

When a watch is set, all Book and Trade data for the given Listing is echoed to the console as soon as it arrives.

buy/sell

buy/sell {volume} {market} [limit {limitPrice}] [stop {stopPrice}]

Use this command to place an order. Currently you must specify the exact Market (including the Exchange) where the Order should be placed. Stops are not yet supported. ONLY MOCK EXECUTIONS ARE CURRENTLY PROVIDED. You can play with this all day long: Coin Trader will not trade live money yet.

csv {filename}

Saves a file of 1-minute Tick data including each side of the Book to depth 100.

data [summary]

Prints a summary table of how much MarketData (Trades and Books) has been saved to the database for each Market. Note that the console does NOT save data to the database. Use the save-data run mode from the command line to persist MarketData

exchanges

Shows a list of the available Exchange symbols

listings

Shows a list of the available Listing symbols

markets

Shows a list of the available Market symbols

jpa {query}

Performs the specified JPQL query and prints the results in an ASCII table on the console.

exit

Terminates the console process.