Merge branch 'margin-db' into margin-commands
This commit is contained in:
commit
95e52a3cee
@ -651,7 +651,6 @@ class LocalTrade():
|
||||
return self.interest_mode(borrowed=borrowed, rate=rate, hours=hours)
|
||||
|
||||
def calc_close_trade_value(self, rate: Optional[float] = None,
|
||||
|
||||
fee: Optional[float] = None,
|
||||
interest_rate: Optional[float] = None) -> float:
|
||||
"""
|
||||
@ -719,7 +718,6 @@ class LocalTrade():
|
||||
If interest_rate is not set self.interest_rate will be used
|
||||
:return: profit ratio as float
|
||||
"""
|
||||
|
||||
close_trade_value = self.calc_close_trade_value(
|
||||
rate=(rate or self.close_rate),
|
||||
fee=(fee or self.fee_close),
|
||||
|
17
mkdocs.yml
17
mkdocs.yml
@ -20,6 +20,7 @@ nav:
|
||||
- Web Hook: webhook-config.md
|
||||
- Data Downloading: data-download.md
|
||||
- Backtesting: backtesting.md
|
||||
- Leverage: leverage.md
|
||||
- Hyperopt: hyperopt.md
|
||||
- Utility Sub-commands: utils.md
|
||||
- Plotting: plotting.md
|
||||
@ -40,24 +41,24 @@ nav:
|
||||
- Contributors Guide: developer.md
|
||||
theme:
|
||||
name: material
|
||||
logo: 'images/logo.png'
|
||||
favicon: 'images/logo.png'
|
||||
custom_dir: 'docs/overrides'
|
||||
logo: "images/logo.png"
|
||||
favicon: "images/logo.png"
|
||||
custom_dir: "docs/overrides"
|
||||
palette:
|
||||
- scheme: default
|
||||
primary: 'blue grey'
|
||||
accent: 'tear'
|
||||
primary: "blue grey"
|
||||
accent: "tear"
|
||||
toggle:
|
||||
icon: material/toggle-switch-off-outline
|
||||
name: Switch to dark mode
|
||||
- scheme: slate
|
||||
primary: 'blue grey'
|
||||
accent: 'tear'
|
||||
primary: "blue grey"
|
||||
accent: "tear"
|
||||
toggle:
|
||||
icon: material/toggle-switch-off-outline
|
||||
name: Switch to dark mode
|
||||
extra_css:
|
||||
- 'stylesheets/ft.extra.css'
|
||||
- "stylesheets/ft.extra.css"
|
||||
extra_javascript:
|
||||
- javascripts/config.js
|
||||
- https://polyfill.io/v3/polyfill.min.js?features=es6
|
||||
|
@ -238,7 +238,6 @@ def test_calc_open_close_trade_price(limit_buy_order, limit_sell_order, fee):
|
||||
|
||||
@pytest.mark.usefixtures("init_persistence")
|
||||
def test_trade_close(limit_buy_order, limit_sell_order, fee):
|
||||
# TODO: limit_buy_order and limit_sell_order aren't used, remove them probably
|
||||
trade = Trade(
|
||||
pair='ETH/BTC',
|
||||
stake_amount=0.001,
|
||||
|
Loading…
Reference in New Issue
Block a user