1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-04 11:30:57 +08:00

Initial interface for discussion

This commit is contained in:
Young
2023-05-24 12:18:31 +08:00
parent 94268619c4
commit 7c4f3b8a7d
10 changed files with 263 additions and 0 deletions

14
scripts/finco/README.md Normal file
View File

@@ -0,0 +1,14 @@
# Requirements
```
pydantic
openai
```
# TODOs
- [ ] Select the appropriate LLM API
- Which API is more suitable for meeting our requirements - the original API or an alternative like LangChain?

15
scripts/finco/cmd.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -x # show command
set -e # Error on exception
DIR="$(
cd "$(dirname "$(readlink -f "$0")")" || exit
pwd -P
)"
# --load the cridentials
if [ -e $DIR/cridential.sh ]; then
source $DIR/cridential.sh
fi
# run the command
python -m qlib.finco.cli "please help me build a low turnover strategy that focus more on longterm return"

View File

@@ -0,0 +1,3 @@
export OPENAI_API_TYPE=azure # This only necessary for Azure OpenAI
export OPENAI_API_KEY=
export OPENAI_API_BASE=