persistence all to one test file, use more regular values like 2.0 for persistence tests

This commit is contained in:
Sam Germain
2021-07-20 17:56:57 -06:00
parent a900570f1a
commit 6ad9b535a9
7 changed files with 963 additions and 1692 deletions

View File

@@ -151,8 +151,6 @@ 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')
# sqlite does not support literals for booleans
is_short = get_column_def(cols, 'is_short', '0')
# 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,