Mark _DRY_RUN_OPEN_ORDERS global in get_order.

This commit is contained in:
Pan Long 2018-06-06 21:52:11 +08:00
parent fb49d706d0
commit 16cf7e10bd

View File

@ -346,6 +346,7 @@ def cancel_order(order_id: str, pair: str) -> None:
@retrier
def get_order(order_id: str, pair: str) -> Dict:
if _CONF['dry_run']:
global _DRY_RUN_OPEN_ORDERS
order = _DRY_RUN_OPEN_ORDERS[order_id]
order.update({
'id': order_id