mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
commit
1b063739c0
|
@ -567,8 +567,7 @@ class LocalTrade():
|
|||
elif order_type in ('market', 'limit') and self.exit_side == order['side']:
|
||||
if self.is_open:
|
||||
payment = "BUY" if self.is_short else "SELL"
|
||||
# TODO-lev: On shorts, you buy a little bit more than the amount (amount + interest)
|
||||
# TODO-lev: This wll only print the original amount
|
||||
# * On margin shorts, you buy a little bit more than the amount (amount + interest)
|
||||
logger.info(f'{order_type.upper()}_{payment} has been fulfilled for {self}.')
|
||||
# TODO-lev: Double check this
|
||||
self.close(safe_value_fallback(order, 'average', 'price'))
|
||||
|
|
|
@ -1014,8 +1014,7 @@ def get_markets():
|
|||
'percentage': True,
|
||||
'taker': 0.0006,
|
||||
'maker': 0.0002,
|
||||
# TODO-lev: `contractSize` should be numeric - this is an open bug in ccxt.
|
||||
'contractSize': '10',
|
||||
'contractSize': 10,
|
||||
'active': True,
|
||||
'expiry': None,
|
||||
'expiryDatetime': None,
|
||||
|
|
Loading…
Reference in New Issue
Block a user