Trigger order allocation at stage/creation time

fsp_feeds
Tyler Goodlet 2021-08-26 10:34:59 -04:00
parent d9d65bd71a
commit 5103204853
1 changed files with 4 additions and 1 deletions

View File

@ -115,12 +115,13 @@ class OrderMode:
) -> LevelLine:
level = order.price
line = order_line(
self.chart,
# TODO: convert these values into human-readable form
# (i.e. with k, m, M, B) type embedded suffixes
level=order.price,
level=level,
action=order.action,
size=order.size,
@ -152,6 +153,8 @@ class OrderMode:
line._on_level_change = update_order_price
line.set_level(level)
return line
def stage_order(