bbstrader 0.1.1__tar.gz → 0.1.3__tar.gz

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.

Potentially problematic release.


This version of bbstrader might be problematic. Click here for more details.

Files changed (33) hide show
  1. {bbstrader-0.1.1 → bbstrader-0.1.3}/PKG-INFO +2 -1
  2. {bbstrader-0.1.1 → bbstrader-0.1.3}/README.md +1 -0
  3. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/metatrader/account.py +16 -13
  4. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader.egg-info/PKG-INFO +2 -1
  5. {bbstrader-0.1.1 → bbstrader-0.1.3}/setup.py +1 -1
  6. {bbstrader-0.1.1 → bbstrader-0.1.3}/LICENSE +0 -0
  7. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/__ini__.py +0 -0
  8. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/__init__.py +0 -0
  9. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/backtest.py +0 -0
  10. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/data.py +0 -0
  11. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/event.py +0 -0
  12. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/execution.py +0 -0
  13. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/performance.py +0 -0
  14. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/portfolio.py +0 -0
  15. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/btengine/strategy.py +0 -0
  16. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/metatrader/__init__.py +0 -0
  17. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/metatrader/rates.py +0 -0
  18. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/metatrader/risk.py +0 -0
  19. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/metatrader/trade.py +0 -0
  20. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/metatrader/utils.py +0 -0
  21. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/models/__init__.py +0 -0
  22. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/models/risk.py +0 -0
  23. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/strategies.py +0 -0
  24. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/trading/__init__.py +0 -0
  25. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/trading/execution.py +0 -0
  26. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/trading/run.py +0 -0
  27. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/trading/utils.py +0 -0
  28. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader/tseries.py +0 -0
  29. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader.egg-info/SOURCES.txt +0 -0
  30. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader.egg-info/dependency_links.txt +0 -0
  31. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader.egg-info/requires.txt +0 -0
  32. {bbstrader-0.1.1 → bbstrader-0.1.3}/bbstrader.egg-info/top_level.txt +0 -0
  33. {bbstrader-0.1.1 → bbstrader-0.1.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bbstrader
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Simplified Investment & Trading Toolkit
5
5
  Home-page: https://github.com/bbalouki/bbstrader
6
6
  Author: Bertin Balouki SIMYELI
@@ -38,6 +38,7 @@ Requires-Dist: Metatrader5
38
38
  # Simplified Investment & Trading Toolkit
39
39
  ![bbstrader](https://github.com/bbalouki/bbstrader/blob/main/assets/bbstrader_logo.png?raw=true)
40
40
 
41
+ [![Documentation Status](https://readthedocs.org/projects/bbstrader/badge/?version=latest)](https://bbstrader.readthedocs.io/en/latest/?badge=latest)
41
42
 
42
43
  ## Overview
43
44
 
@@ -1,6 +1,7 @@
1
1
  # Simplified Investment & Trading Toolkit
2
2
  ![bbstrader](https://github.com/bbalouki/bbstrader/blob/main/assets/bbstrader_logo.png?raw=true)
3
3
 
4
+ [![Documentation Status](https://readthedocs.org/projects/bbstrader/badge/?version=latest)](https://bbstrader.readthedocs.io/en/latest/?badge=latest)
4
5
 
5
6
  ## Overview
6
7
 
@@ -28,10 +28,10 @@ _FTMO_URL_ = "https://trader.ftmo.com/?affiliates=JGmeuQqepAZLMcdOEQRp"
28
28
  INIT_MSG = (
29
29
  f"\n* Ensure you have a good and stable internet connexion\n"
30
30
  f"* Ensure you have an activete MT5 terminal install on your machine\n"
31
- f"* Ensure you have an active MT5 Account with {'or '.join(__BROKERS__.values())}\n"
32
- f"* If you want to trade {', '.join(_ADMIRAL_MARKETS_PRODUCTS_)}, See {_ADMIRAL_MARKETS_URL_}\n"
33
- f"* If you want to trade {', '.join(_JUST_MARKETS_PRODUCTS_)}, See {_JUST_MARKETS_URL_}\n"
34
- f"* If you are looking for a prop firm, See {_FTMO_URL_}\n"
31
+ f"* Ensure you have an active MT5 Account with {' or '.join(__BROKERS__.values())}\n"
32
+ f"* If you want to trade {', '.join(_ADMIRAL_MARKETS_PRODUCTS_)}, See [{_ADMIRAL_MARKETS_URL_}]\n"
33
+ f"* If you want to trade {', '.join(_JUST_MARKETS_PRODUCTS_)}, See [{_JUST_MARKETS_URL_}]\n"
34
+ f"* If you are looking for a prop firm, See [{_FTMO_URL_}]\n"
35
35
  )
36
36
 
37
37
  amg_url = _ADMIRAL_MARKETS_URL_
@@ -96,9 +96,9 @@ class Account(object):
96
96
  raise ValueError(
97
97
  f"{broker} is not currently supported broker for the Account() class\n"
98
98
  f"Currently Supported brokers are: {', '.join(supported.values())}\n"
99
- f"For {supported['AMG']}, See {amg_url}\n"
100
- f"For {supported['JGM']}, See {jgm_url}\n"
101
- f"For {supported['FTMO']}, See {ftmo_url}\n"
99
+ f"For {supported['AMG']}, See [{amg_url}]\n"
100
+ f"For {supported['JGM']}, See [{jgm_url}]\n"
101
+ f"For {supported['FTMO']}, See [{ftmo_url}]\n"
102
102
  )
103
103
 
104
104
  def get_account_info(
@@ -189,8 +189,11 @@ class Account(object):
189
189
 
190
190
  # Construct the print message based on whether a symbol is provided
191
191
  if symbol:
192
- print(
193
- f"\n{info_name.upper()} INFO FOR {symbol} ({info.description})")
192
+ if hasattr(info, 'description'):
193
+ print(
194
+ f"\n{info_name.upper()} INFO FOR {symbol} ({info.description})")
195
+ else:
196
+ print(f"\n{info_name.upper()} INFO FOR {symbol}")
194
197
  else:
195
198
  print(f"\n{info_name.upper()} INFORMATIONS:")
196
199
 
@@ -735,7 +738,7 @@ class Account(object):
735
738
  else:
736
739
  positions = mt5.positions_get()
737
740
 
738
- if len(positions) == 0:
741
+ if positions is None:
739
742
  return None
740
743
  if to_df:
741
744
  df = pd.DataFrame(list(positions), columns=positions[0]._asdict())
@@ -838,7 +841,7 @@ class Account(object):
838
841
  else:
839
842
  position_deals = mt5.history_deals_get(date_from, date_to)
840
843
 
841
- if len(position_deals) == 0:
844
+ if position_deals is None:
842
845
  return None
843
846
 
844
847
  df = pd.DataFrame(list(position_deals),
@@ -914,7 +917,7 @@ class Account(object):
914
917
  else:
915
918
  orders = mt5.orders_get()
916
919
 
917
- if len(orders) == 0:
920
+ if orders is None:
918
921
  return None
919
922
 
920
923
  if to_df:
@@ -1017,7 +1020,7 @@ class Account(object):
1017
1020
  else:
1018
1021
  history_orders = mt5.history_orders_get(date_from, date_to)
1019
1022
 
1020
- if len(history_orders) == 0:
1023
+ if history_orders is None:
1021
1024
  return None
1022
1025
 
1023
1026
  df = pd.DataFrame(list(history_orders),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bbstrader
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Simplified Investment & Trading Toolkit
5
5
  Home-page: https://github.com/bbalouki/bbstrader
6
6
  Author: Bertin Balouki SIMYELI
@@ -38,6 +38,7 @@ Requires-Dist: Metatrader5
38
38
  # Simplified Investment & Trading Toolkit
39
39
  ![bbstrader](https://github.com/bbalouki/bbstrader/blob/main/assets/bbstrader_logo.png?raw=true)
40
40
 
41
+ [![Documentation Status](https://readthedocs.org/projects/bbstrader/badge/?version=latest)](https://bbstrader.readthedocs.io/en/latest/?badge=latest)
41
42
 
42
43
  ## Overview
43
44
 
@@ -7,7 +7,7 @@ if sys.version_info < (3, 10):
7
7
  with open("README.md", encoding="utf-8") as fh:
8
8
  long_description = fh.read()
9
9
 
10
- VERSION = '0.1.1'
10
+ VERSION = '0.1.3'
11
11
  DESCRIPTION = 'Simplified Investment & Trading Toolkit'
12
12
 
13
13
  KEYWORDS = [
File without changes
File without changes