Skip to content

Commit

Permalink
Remove wallet_exposure_limit was unused causing confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
donewiththedollar committed Jul 3, 2023
1 parent 83fd8b5 commit 494c6dd
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class Bot(BaseModel):
symbol: str
violent_multiplier: float = 2.00
wallet_exposure: float = 1.00
wallet_exposure_limit: float = 0.01

@validator("min_volume")
def minimum_min_volume(cls, v):
Expand Down
3 changes: 1 addition & 2 deletions configs/config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"min_volume": 15000,
"symbol": "BTCUSDT",
"violent_multiplier": 2.00,
"wallet_exposure": 1.00,
"wallet_exposure_limit": 0.10
"wallet_exposure": 1.00
},
"exchanges": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False
self.checked_amount_validity = False
Expand Down
3 changes: 0 additions & 3 deletions directionalscalper/core/strategies/bybit/bybit_hedge.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from decimal import Decimal, InvalidOperation, ROUND_HALF_UP, ROUND_DOWN
from ..strategy import Strategy
from typing import Tuple
#from ...tables import create_strategy_table, start_live_table
#from directionalscalper.core.tables import create_strategy_table, start_live_table
import threading
import os

Expand All @@ -13,7 +11,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False
self.checked_amount_validity = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False
self.checked_amount_validity = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
1 change: 0 additions & 1 deletion directionalscalper/core/strategies/bybit/bybit_longonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False
self.checked_amount_validity = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False
self.checked_amount_validity = False
Expand Down
1 change: 0 additions & 1 deletion directionalscalper/core/strategies/bybit/bybit_violent.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def __init__(self, exchange, manager, config):
super().__init__(exchange, config, manager)
self.manager = manager
self.last_cancel_time = 0
self.wallet_exposure_limit = self.config.wallet_exposure_limit
self.current_wallet_exposure = 1.0
self.printed_trade_quantities = False

Expand Down

0 comments on commit 494c6dd

Please sign in to comment.