Files
OpenBB/openbb_terminal/miscellaneous/gpt_index/data/stocks_backtesting_load.txt
minhhoang1023 c34d703786 Large Language Model - Text to command (#4695)
* POC for text-to-command

* POC

* gimme -> askobb (#4740)

* Add file to generate index data

* Add generate index file

* Remove data file

* Modified data generator

* Update .gitignore

* linting

* run all cmds with root access. new!

* output msg

* modify model name

* weird logging issue

* refactor for new llama index version

* black

* in case model doesnt know

* black linting

* linting

* more ruff

* imports

* nicer messages

* removing function from economy

* poetry

* prompt refinement

* Update spec to bring in new files

* fix llama import

* help command

* missed trailing ]

* -q parameter

* remove experimental

* switching gpt model functionality

* update prompt

* tik tok on the clock

* fixed print statements

* user run commands

* add return

* fix

* fix

* removing a few depr functions

* Add filter for slashes in askobb query

* force -q command

* removing returns

* Add edge case for custom filter

* add back -q if its not in other args

* minor checks

* new prompt - a little better

* more cases for not finding answer

* return clause

* new txt with summaries

* update index ver

* new index

* Add a log_askobb

* revision on prompt

* black

* poetry lock

* req files

* Codespell

* ruff

* Linting some stuff.  Change OpenAI from local to HUB

* Update api-keys.md

* openai key

* remove this. bye bye mypy

* mypy

* mypy...

* mypy2

* fix test

---------

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: martinb-bb <martin.bufi@openbb.finance>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-09 16:00:47 +00:00

32 lines
2.0 KiB
Plaintext
Vendored

parent_command:stocks/backtesting
usage: load [-t TICKER] [-s START] [-e END] [-i {1,5,15,30,60}] [-p] [-f FILEPATH] [-m] [-w] [--performance]
Load stock ticker to perform analysis on. When the data source is yf, an Indian ticker can be loaded by using '.NS' at the end, e.g. 'SBIN.NS'. See available market in https://help.yahoo.com/kb/exchanges-data-providers-yahoo-
finance-sln2310.html.
optional arguments:
-t TICKER, --ticker TICKER
Stock ticker (default: None)
-s START, --start START
The starting date (format YYYY-MM-DD) of the stock (default: 2020-05-28)
-e END, --end END The ending date (format YYYY-MM-DD) of the stock (default: 2023-06-02)
-i {1,5,15,30,60}, --interval {1,5,15,30,60}
Intraday stock minutes (default: 1440)
-p, --prepost Pre/After market hours. Only reflected in 'YahooFinance' intraday data. (default: False)
-f FILEPATH, --file FILEPATH
Path to load custom file. (default: None)
-m, --monthly Load monthly data (default: False)
-w, --weekly Load weekly data (default: False)
--performance Show performance information. (default: False)
Examples:
- To load a stock with the default values: stocks/backtesting/load -t <SYMBOL>
- Load a stock with a specific start and end date: stocks/backtesting/load -t <SYMBOL> -s 2020-01-01 -e 2021-12-31
- Load a stock with intraday data at 15-minute intervals: stocks/backtesting/load -t <SYMBOL> -i 15
- Load a stock including pre and post-market hours: stocks/backtesting/load -t <SYMBOL> -p
- Load a stock from a custom file: stocks/backtesting/load -t <SYMBOL> -f /path/to/your/file.csv
- Load a stock with monthly data: stocks/backtesting/load -t <SYMBOL> -m
- Load a stock with weekly data: stocks/backtesting/load -t <SYMBOL> -w
- Load an Indian stock by using '.NS' at the end: stocks/backtesting/load -t <SYMBOL>.NS
- Load a stock and show performance information: stocks/backtesting/load -t <SYMBOL> --performance