Merge d71c51fd65 into a438acdbbd
This commit is contained in:
commit
2e7806b263
|
|
@ -0,0 +1,3 @@
|
||||||
|
OPENAI_API_KEY=sk-123
|
||||||
|
FINNHUB_API_KEY=
|
||||||
|
GOOGLE_API_KEY=
|
||||||
|
|
@ -124,6 +124,11 @@ You will need the OpenAI API for all the agents.
|
||||||
export OPENAI_API_KEY=$YOUR_OPENAI_API_KEY
|
export OPENAI_API_KEY=$YOUR_OPENAI_API_KEY
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To help consolidate the variables in an .env file, you can copy the .env.example. The main.py script will pick up from there.
|
||||||
|
```bash
|
||||||
|
cp .env.example .env
|
||||||
|
```
|
||||||
|
|
||||||
### CLI Usage
|
### CLI Usage
|
||||||
|
|
||||||
You can also try out the CLI directly by running:
|
You can also try out the CLI directly by running:
|
||||||
|
|
|
||||||
3
main.py
3
main.py
|
|
@ -1,5 +1,8 @@
|
||||||
from tradingagents.graph.trading_graph import TradingAgentsGraph
|
from tradingagents.graph.trading_graph import TradingAgentsGraph
|
||||||
from tradingagents.default_config import DEFAULT_CONFIG
|
from tradingagents.default_config import DEFAULT_CONFIG
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
# Create a custom config
|
# Create a custom config
|
||||||
config = DEFAULT_CONFIG.copy()
|
config = DEFAULT_CONFIG.copy()
|
||||||
|
|
|
||||||
|
|
@ -24,3 +24,4 @@ rich
|
||||||
questionary
|
questionary
|
||||||
langchain_anthropic
|
langchain_anthropic
|
||||||
langchain-google-genai
|
langchain-google-genai
|
||||||
|
python-dotenv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue