Skip to content

Commit

Permalink
secrets and api keys for all
Browse files Browse the repository at this point in the history
  • Loading branch information
r0fls committed Nov 11, 2024
1 parent 2005ab8 commit 48e1b69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brokers/base_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def __init__(
broker_name,
engine,
prevent_day_trading=False):
# TODO: remove api_key and secret_key from base broker
self.api_key = api_key
self.secret_key = secret_key
self.broker_name = broker_name.lower()
self.db_manager = DBManager(engine)
# Use AsyncSession
Expand Down
2 changes: 2 additions & 0 deletions brokers/kraken_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
class KrakenBroker(BaseBroker):
def __init__(self, api_key, secret_key, engine, base_url="https://api.kraken.com", base_currency="ZUSD", **kwargs):
super().__init__(api_key, secret_key, 'Kraken', engine=engine, **kwargs)
self.api_key = api_key
self.secret_key = secret_key
self.base_currency = base_currency
self.secret_key = secret_key
self.base_url = base_url
Expand Down

0 comments on commit 48e1b69

Please sign in to comment.