tailwind #9

Manually merged
peperunas merged 157 commits from tailwind into master 2020-12-28 18:38:52 +00:00
Showing only changes of commit 912c4db2e2 - Show all commits

View File

@ -87,6 +87,11 @@ def on_connect():
# Bot callbacks
###################################
@btc_eh.on_event(EventKind.CLOSE_POSITION)
def on_close_position(event: Event, _):
loop.run_until_complete(bot.close_position(event.metadata.position_id))
@btc_eh.on_event(EventKind.NEW_TICK)
def on_new_tick(event: Event, status: SymbolStatus):
tick = event.tick