Start a "real" alert looking msg

basic_alerts
Tyler Goodlet 2021-01-03 17:23:45 -05:00
parent 616a74865b
commit 7b5a72909e
1 changed files with 6 additions and 1 deletions

View File

@ -407,7 +407,12 @@ class ChartView(ViewBox):
# XXX: should make this an explicit attr
# it's assigned inside ``.add_plot()``
self.linked_charts._to_router.send_nowait({'alert': y})
self.linked_charts._to_router.send_nowait({
'symbol': chart.name,
'brokers': ['kraken'],
'type': 'alert',
'price': y,
})
line = level_line(
chart,