Skip to content

Commit

Permalink
Added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gab0 committed Jul 22, 2018
1 parent 4300a10 commit 791f0be
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion jlivetrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
parser.add_option('--param <parameters>', dest='alternativeParameters',
type='str', default=None)

parser.add_option('-k', dest='killGekkoBots', action='store_true',
default=False,
help='Destroy all running gekko bot instances.')

parser.add_option('-s', dest='viewLastTrades', action='store_true',
default=False,
help='Show last trades done by bots.')

options, args = parser.parse_args()


Expand Down Expand Up @@ -78,4 +86,13 @@
information = json.dumps(marketOrderHistory, indent=2)
print(information)

livetrader.gekkoChecker.checkGekkoRunningBots(exchange, ranker)
livetrader.gekkoChecker.checkGekkoRunningBots(exchange,
ranker, options)
if options.killGekkoBots:
livetrader.gekkoChecker.stopGekkoBots()

if options.viewLastTrades:
Orders = exchange.getRecentOrders()
print(json.dumps(Orders, indent=2))


0 comments on commit 791f0be

Please sign in to comment.