pyalgotrading 2025.9.1__py3-none-any.whl → 2026.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,7 @@ class AlgoBullsAPI:
26
26
  """
27
27
  self.connection = connection
28
28
  self.headers = None
29
+ self.cookies = None
29
30
  self.page_size = 1000
30
31
  self.__key_backtesting = {} # strategy-cstc_id mapping
31
32
  self.__key_papertrading = {} # strategy-cstc_id mapping
@@ -45,8 +46,8 @@ class AlgoBullsAPI:
45
46
  access_token: Access token generated by logging to the URL given by the `get_authorization_url()` method
46
47
  """
47
48
 
48
- self.headers = {
49
- 'Authorization': f'{access_token}'
49
+ self.cookies = {
50
+ 'auth_token': f'{access_token}',
50
51
  }
51
52
 
52
53
  def _send_request(self, method: str = 'get', endpoint: str = '', base_url: str = SERVER_ENDPOINT, params: [str, dict] = None, json_data: [str, dict] = None, requires_authorization: bool = True,
@@ -67,8 +68,8 @@ class AlgoBullsAPI:
67
68
  """
68
69
 
69
70
  url = f'{base_url}{endpoint}'
70
- headers = self.headers if requires_authorization else None
71
- r = requests.request(method=method, headers=headers, url=url, params=params, json=json_data)
71
+ cookies = self.cookies if requires_authorization else None
72
+ r = requests.request(method=method, headers=self.headers, cookies=cookies, url=url, params=params, json=json_data)
72
73
 
73
74
  if r.status_code == 200:
74
75
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyalgotrading
3
- Version: 2025.9.1
3
+ Version: 2026.2.2
4
4
  Summary: Official Python Package for Algorithmic Trading APIs powered by AlgoBulls
5
5
  Home-page: https://github.com/algobulls/pyalgotrading
6
6
  Author: Pushpak Dagade
@@ -1,7 +1,7 @@
1
1
  pyalgotrading/__init__.py,sha256=UzrsH5H2VlSxwdH8z0MnFqQoj_ggI6nEcVr4dLVFEeI,213
2
2
  pyalgotrading/constants.py,sha256=bLSLD8oWMviPRXbytxjuNq7m6_VMJft5jvlxCTusGac,8054
3
3
  pyalgotrading/algobulls/__init__.py,sha256=IRkbWtJfgQnPH7gikjqpa6QsYnmk_NQ1lwtx7LPIC6c,133
4
- pyalgotrading/algobulls/api.py,sha256=0xqmqbtGbWOhrDBhONUjmxEYtw1UW5o37kACC6YuHwQ,19727
4
+ pyalgotrading/algobulls/api.py,sha256=tetKc9hdqywxSWRxuG4WM_GGmr4xpYpHLSzXWNLSfys,19775
5
5
  pyalgotrading/algobulls/connection.py,sha256=1QtrlLriI1267PVZJrMGEhAMsL79Dq_2cshB_CigdCs,59996
6
6
  pyalgotrading/algobulls/exceptions.py,sha256=B96On8cN8tgtX7i4shKOlYfvjSjvspIRPbOpyF-jn0I,2187
7
7
  pyalgotrading/broker/__init__.py,sha256=jXVWBVRlqzevKxNDqrPANJz9WubROBes8gaKcxcYz58,66
@@ -29,8 +29,8 @@ pyalgotrading/utils/candlesticks/__init__.py,sha256=maIn__tvTvJDjldPhU9agBcNNuRO
29
29
  pyalgotrading/utils/candlesticks/heikinashi.py,sha256=SpcuK7AYV0sgzcw-DMfLNtTDn2RfWqGvWBt4no7yKD4,2003
30
30
  pyalgotrading/utils/candlesticks/linebreak.py,sha256=cYwoETMrenWOa06d03xASZoiou-qRz7n2mZYCi5ilEs,1434
31
31
  pyalgotrading/utils/candlesticks/renko.py,sha256=zovQ6D658pBLas86FuTu9fU3-Kkv2hM-4h7OQJjdxng,2089
32
- pyalgotrading-2025.9.1.dist-info/LICENSE,sha256=-LLEprvixKS-LwHef99YQSOFon_tWeTwJRAWuUwwr1g,1066
33
- pyalgotrading-2025.9.1.dist-info/METADATA,sha256=QOs_2aMeTBCjewe4mwSRQOPjQlrYRnQv5TwK_Pe_8T8,5829
34
- pyalgotrading-2025.9.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
35
- pyalgotrading-2025.9.1.dist-info/top_level.txt,sha256=A12PTnbXqO3gsZ0D0Gkyzf_OYRQxjJvtg3MqN-Ur2zY,14
36
- pyalgotrading-2025.9.1.dist-info/RECORD,,
32
+ pyalgotrading-2026.2.2.dist-info/LICENSE,sha256=-LLEprvixKS-LwHef99YQSOFon_tWeTwJRAWuUwwr1g,1066
33
+ pyalgotrading-2026.2.2.dist-info/METADATA,sha256=JPORX5s9v6EwiZUg9ndeu7T72b729C6lRtH4_TIu7xQ,5829
34
+ pyalgotrading-2026.2.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
35
+ pyalgotrading-2026.2.2.dist-info/top_level.txt,sha256=A12PTnbXqO3gsZ0D0Gkyzf_OYRQxjJvtg3MqN-Ur2zY,14
36
+ pyalgotrading-2026.2.2.dist-info/RECORD,,