From c892e3aaa7e4887cc5f718326209f215413a01f4 Mon Sep 17 00:00:00 2001 From: om-khade-algobulls Date: Sat, 19 Aug 2023 17:16:38 +0530 Subject: [PATCH] Add GenAI Strategy save method --- pyalgotrading/algobulls/api.py | 44 +++++++++++++++++++++------ pyalgotrading/algobulls/connection.py | 39 ++++++++++++++++++++++-- pyalgotrading/algobulls/exceptions.py | 9 ++++++ 3 files changed, 80 insertions(+), 12 deletions(-) diff --git a/pyalgotrading/algobulls/api.py b/pyalgotrading/algobulls/api.py index b0c405dd..3ee76883 100644 --- a/pyalgotrading/algobulls/api.py +++ b/pyalgotrading/algobulls/api.py @@ -9,7 +9,7 @@ import requests from .exceptions import AlgoBullsAPIBaseException, AlgoBullsAPIUnauthorizedErrorException, AlgoBullsAPIInsufficientBalanceErrorException, AlgoBullsAPIResourceNotFoundErrorException, AlgoBullsAPIBadRequestException, \ - AlgoBullsAPIInternalServerErrorException, AlgoBullsAPIForbiddenErrorException, AlgoBullsAPIGatewayTimeoutErrorException + AlgoBullsAPIInternalServerErrorException, AlgoBullsAPIForbiddenErrorException, AlgoBullsAPIGatewayTimeoutErrorException, AlgoBullsAPITooManyRequestsException from ..constants import TradingType, TradingReportType from ..utils.func import get_raw_response @@ -34,7 +34,6 @@ def __init__(self, connection): self.__key_papertrading = {} # strategy-cstc_id mapping self.__key_realtrading = {} # strategy-cstc_id mapping self.pattern = re.compile(r'(?