From 57d5248a265b6f9301b53fbb9b103f0f47ef64e5 Mon Sep 17 00:00:00 2001 From: Juan Antonio Cabrera Date: Wed, 1 May 2024 12:25:10 -0600 Subject: [PATCH 1/2] extract_order_id fixes --- schwab/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schwab/utils.py b/schwab/utils.py index dfe0d61..488e857 100644 --- a/schwab/utils.py +++ b/schwab/utils.py @@ -136,7 +136,7 @@ def extract_order_id(self, place_order_response): return None m = re.match( - r'https://api.schwabapi.com/trader/v1/accounts/([/w]+)/orders/(/d+)', + r'https://api.schwabapi.com/trader/v1/accounts/(\w+)/orders/(\d+)', location) if m is None: @@ -144,7 +144,7 @@ def extract_order_id(self, place_order_response): account_hash, order_id = m.group(1), int(m.group(2)) if str(account_hash) != str(self.account_hash): - raise AccountIdMismatchException( + raise AccountHashMismatchException( 'order request account hash != Utils.account_hash') return order_id From 60e24c55d5201479e2fff439b002a7e3097ae301 Mon Sep 17 00:00:00 2001 From: Alex Golec Date: Wed, 1 May 2024 11:44:37 -0700 Subject: [PATCH 2/2] Bump version --- schwab/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schwab/version.py b/schwab/version.py index 9bce7f8..548ab0f 100644 --- a/schwab/version.py +++ b/schwab/version.py @@ -1 +1 @@ -version = '0.0.0a24' +version = '0.0.0a25'