diff --git a/schwab/client/asynchronous.py b/schwab/client/asynchronous.py index 6575ff2..c432b08 100644 --- a/schwab/client/asynchronous.py +++ b/schwab/client/asynchronous.py @@ -1,5 +1,5 @@ from .base import BaseClient -#from ..debug import register_redactions_from_response +from ..debug import register_redactions_from_response from ..utils import LazyLog def register_redactions_from_response(x): @@ -16,7 +16,7 @@ async def close_async_session(self): async def _get_request(self, path, params): self.ensure_updated_refresh_token() - dest = 'https://api.tdameritrade.com' + path + dest = 'https://api.schwabapi.com' + path req_num = self._req_num() self.logger.debug('Req %s: GET to %s, params=%s', @@ -30,7 +30,7 @@ async def _get_request(self, path, params): async def _post_request(self, path, data): self.ensure_updated_refresh_token() - dest = 'https://api.tdameritrade.com' + path + dest = 'https://api.schwabapi.com' + path req_num = self._req_num() self.logger.debug('Req %s: POST to %s, json=%s', @@ -44,7 +44,7 @@ async def _post_request(self, path, data): async def _put_request(self, path, data): self.ensure_updated_refresh_token() - dest = 'https://api.tdameritrade.com' + path + dest = 'https://api.schwabapi.com' + path req_num = self._req_num() self.logger.debug('Req %s: PUT to %s, json=%s', @@ -58,7 +58,7 @@ async def _put_request(self, path, data): async def _patch_request(self, path, data): self.ensure_updated_refresh_token() - dest = 'https://api.tdameritrade.com' + path + dest = 'https://api.schwabapi.com' + path req_num = self._req_num() self.logger.debug('Req %s: PATCH to %s, json=%s', @@ -72,7 +72,7 @@ async def _patch_request(self, path, data): async def _delete_request(self, path): self.ensure_updated_refresh_token() - dest = 'https://api.tdameritrade.com' + path + dest = 'https://api.schwabapi.com' + path req_num = self._req_num() self.logger.debug('Req %s: DELETE to %s', req_num, dest) diff --git a/schwab/client/synchronous.py b/schwab/client/synchronous.py index ba22b43..b1d05bf 100644 --- a/schwab/client/synchronous.py +++ b/schwab/client/synchronous.py @@ -1,6 +1,6 @@ from .base import BaseClient from ..utils import LazyLog -#from ..debug import register_redactions_from_response +from ..debug import register_redactions_from_response def register_redactions_from_response(x): pass