Fix minor issue where amount could be empty in rest calls
This commit is contained in:
parent
50d3b7bdef
commit
448505fbfb
@ -172,7 +172,7 @@ class Order(_DECL_BASE):
|
|||||||
|
|
||||||
def to_json(self, entry_side: str, minified: bool = False) -> Dict[str, Any]:
|
def to_json(self, entry_side: str, minified: bool = False) -> Dict[str, Any]:
|
||||||
resp = {
|
resp = {
|
||||||
'amount': self.amount,
|
'amount': self.safe_amount,
|
||||||
'safe_price': self.safe_price,
|
'safe_price': self.safe_price,
|
||||||
'ft_order_side': self.ft_order_side,
|
'ft_order_side': self.ft_order_side,
|
||||||
'order_filled_timestamp': int(self.order_filled_date.replace(
|
'order_filled_timestamp': int(self.order_filled_date.replace(
|
||||||
|
Loading…
Reference in New Issue
Block a user