Added docstrings to methods

This commit is contained in:
Sam Germain
2021-07-08 00:33:40 -06:00
parent b0476ebd3e
commit 006a60e5a4
2 changed files with 23 additions and 7 deletions

View File

@@ -150,6 +150,7 @@ def migrate_orders_table(decl_base, inspector, engine, table_back_name: str, col
decl_base.metadata.create_all(engine)
leverage = get_column_def(cols, 'leverage', '1.0')
is_short = get_column_def(cols, 'is_short', 'False')
# TODO-mg: Should liquidation price go in here?
with engine.begin() as connection:
connection.execute(text(f"""
insert into orders ( id, ft_trade_id, ft_order_side, ft_pair, ft_is_open, order_id,