xarical commited on
Commit
5cfaafd
·
1 Parent(s): 8aac38c

Add FMP API key

Browse files
Files changed (1) hide show
  1. config.py +4 -0
config.py CHANGED
@@ -1,4 +1,5 @@
1
  import json
 
2
 
3
  from openbb import obb
4
  import openbb
@@ -11,6 +12,9 @@ obb.user.preferences.output_type="llm"
11
  obb.system.python_settings.docstring_sections=['description', 'examples']
12
  obb.system.python_settings.docstring_max_length=1024
13
 
 
 
 
14
  # Configure default provider for OpenBB
15
  OPENBB_CONF_PATH = "~/.openbb_platform/user_settings.json"
16
  with open(OPENBB_CONF_PATH) as file:
 
1
  import json
2
+ import os
3
 
4
  from openbb import obb
5
  import openbb
 
12
  obb.system.python_settings.docstring_sections=['description', 'examples']
13
  obb.system.python_settings.docstring_max_length=1024
14
 
15
+ # Set API keys
16
+ obb.user.credentials.fmp_api_key = os.environ["FMP_API_KEY"]
17
+
18
  # Configure default provider for OpenBB
19
  OPENBB_CONF_PATH = "~/.openbb_platform/user_settings.json"
20
  with open(OPENBB_CONF_PATH) as file: