We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66811a4 commit ba7bf8cCopy full SHA for ba7bf8c
investing_algorithm_framework/domain/models/market/market_credential.py
@@ -52,6 +52,12 @@ def initialize(self):
52
environment_variable = f"{self.market.upper()}_SECRET_KEY"
53
self._secret_key = os.getenv(environment_variable)
54
55
+ if self.api_key is not None:
56
+ self._api_key = self.api_key.strip()
57
+
58
+ if self.secret_key is not None:
59
+ self._secret_key = self.secret_key.strip()
60
61
def get_api_key(self):
62
return self.api_key
63
0 commit comments