mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-15 04:33:57 +00:00
fix: improve resiliance of order parsing
Some checks are pending
Build Documentation / Deploy Docs through mike (push) Waiting to run
Some checks are pending
Build Documentation / Deploy Docs through mike (push) Waiting to run
closes #10676
This commit is contained in:
parent
2bbec9f9b1
commit
d377d8462f
|
@ -341,8 +341,8 @@ class Order(ModelBase):
|
|||
order_id=str(order["id"]),
|
||||
ft_order_side=side,
|
||||
ft_pair=pair,
|
||||
ft_amount=amount if amount else order["amount"],
|
||||
ft_price=price if price else order["price"],
|
||||
ft_amount=amount or order.get("amount", None) or 0.0,
|
||||
ft_price=price or order.get("price", None),
|
||||
)
|
||||
|
||||
o.update_from_ccxt_object(order)
|
||||
|
|
Loading…
Reference in New Issue
Block a user