-
Notifications
You must be signed in to change notification settings - Fork 168
Console Commands
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 by itself lists the available commands, while help _command_ gives you more detailed information about a specific command.
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 {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.
Saves a file of 1-minute Tick data including each side of the Book to depth 100.
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
Shows a list of the available Exchange symbols
Shows a list of the available Listing symbols
Shows a list of the available Market symbols
Performs the specified JPQL query and prints the results in an ASCII table on the console.
Terminates the console process.