diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index b02fef4d707..edd0ca908d7 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,34 +1,85 @@ -name: github pages +name: Deploy to GitHub Pages + on: push: branches: - main + jobs: - deploy: + generate: + name: Generate documentation runs-on: ubuntu-latest steps: - name: Git checkout uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # actions/checkout v3.0.2 - - name: Setup hugo - uses: peaceiris/actions-hugo@v2 + - name: Setup Python 3.10 + uses: actions/setup-python@v4 with: - hugo-version: "0.87.0" - extended: true + python-version: "3.10" + architecture: x64 - - name: Build - # remove --minify tag if you do not need it - # docs: https://gohugo.io/hugo-pipes/minification/ - working-directory: ./website - env: - BEACON_TOKEN: ${{ secrets.HUGO_ANALYTICS }} - run: | - sed -i -e "s/{%BEACON%}/$BEACON_TOKEN/g" themes/hugo-geekdoc/layouts/partials/foot.html - hugo + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + version: 1.1.13 + virtualenvs-create: true + virtualenvs-in-project: true - - name: Deploy + - name: Load cached venv + id: cached-poetry-dependencies + uses: actions/cache@v3 + with: + path: .venv + key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }} + + - name: Install dependencies + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + run: poetry install --no-interaction --no-root + + - name: Install packages + run: poetry install --no-interaction -E prediction -E docs + + - run: | + source $VENV + pip install "u8darts[torch]" + python website/generate_sdk_markdown.py && python website/generate_terminal_markdown.py + + - name: Commit Documentation + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Automated Change + + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + cache-dependency-path: website/yarn.lock + + - name: Install dependencies + run: yarn install --frozen-lockfile + working-directory: website + + - name: Build website + run: yarn build + working-directory: website + + # Popular action to deploy to GitHub Pages: + # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' with: - personal_token: ${{ secrets.DEPLOY_TOKEN }} - publish_dir: ./website/public + github_token: ${{ secrets.DEPLOY_TOKEN }} + publish_dir: ./website/build + # The following lines assign commit authorship to the official + # GH-Actions bot for deploys to `gh-pages` branch: + # https://github.com/actions/checkout/issues/13#issuecomment-724415212 + # The GH actions bot is used by default if you didn't specify the two fields. + # You can swap them out with your own user credentials. + user_name: github-actions[bot] + user_email: 41898282+github-actions[bot]@users.noreply.github.com diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04dfded7379..56962ea86d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,4 @@ repos: - - repo: local - hooks: - - id: check-docs - name: Check Command Documentation - description: Ensures that all of the commands in the terminal are included in Hugo. - language: python - pass_filenames: false - args: - [ - "--ignore-files=settings_controller.py,featflags_controller.py,keys_controller.py,degiro_controller.py,", - "--ignore-commands=login,alswe,infoswe,goodness,resources,yf,yolo,from,to,featflags,guess,settings,survey,intro" - ] - entry: python custom_pre_commit/check_doc.py - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: @@ -44,14 +31,14 @@ repos: ] - repo: local hooks: - - id: mypy - name: mypy - description: '' - entry: mypy - language: python - 'types_or': [python, pyi] - args: ["--ignore-missing-imports", "--scripts-are-modules"] - require_serial: true + - id: mypy + name: mypy + description: "" + entry: mypy + language: python + "types_or": [python, pyi] + args: ["--ignore-missing-imports", "--scripts-are-modules"] + require_serial: true - repo: https://github.com/kynan/nbstripout rev: 0.6.1 hooks: @@ -69,7 +56,14 @@ repos: hooks: - id: detect-secrets args: - ["--baseline", ".secrets.baseline", "--exclude-files", "cassettes/*", "--exclude-files", "website/content/api/*"] + [ + "--baseline", + ".secrets.baseline", + "--exclude-files", + "cassettes/*", + "--exclude-files", + "website/content/api/*", + ] exclude: package.lock.json - repo: https://github.com/asottile/pyupgrade rev: v3.2.2 diff --git a/website/.gitignore b/website/.gitignore index e701191d387..b2d6de30624 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -1,2 +1,20 @@ -.hugo_build.lock -functions \ No newline at end of file +# Dependencies +/node_modules + +# Production +/build + +# Generated files +.docusaurus +.cache-loader + +# Misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/website/CNAME b/website/CNAME new file mode 100644 index 00000000000..4886e48b1c1 --- /dev/null +++ b/website/CNAME @@ -0,0 +1 @@ +docs.openbb.co \ No newline at end of file diff --git a/website/README.md b/website/README.md index ebe7ce8a769..fffe137ec2c 100644 --- a/website/README.md +++ b/website/README.md @@ -1,3 +1,6 @@ +
DEPRECATED - OLD README +

+ # Hugo Server The current features can be found in [OpenBB Terminal Features](https://openbb-finance.github.io/OpenBBTerminal). @@ -144,3 +147,6 @@ main: - name: map ref: "/stocks/discovery/map" ``` + +

+
diff --git a/website/archetypes/default.md b/website/archetypes/default.md deleted file mode 100644 index 26f317f303e..00000000000 --- a/website/archetypes/default.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- diff --git a/website/assets/sprites/scale.svg b/website/assets/sprites/scale.svg deleted file mode 100644 index b56a4f787e8..00000000000 --- a/website/assets/sprites/scale.svg +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/website/babel.config.js b/website/babel.config.js new file mode 100644 index 00000000000..e00595dae7d --- /dev/null +++ b/website/babel.config.js @@ -0,0 +1,3 @@ +module.exports = { + presets: [require.resolve('@docusaurus/core/lib/babel/preset')], +}; diff --git a/website/config.toml b/website/config.toml deleted file mode 100644 index 7cfdda3a59f..00000000000 --- a/website/config.toml +++ /dev/null @@ -1,95 +0,0 @@ -baseURL = "https://openbb-finance.github.io/OpenBBTerminal" -theme = "hugo-geekdoc" -title = "OpenBB Terminal Documentation" - -# Required to get well formatted code blocks -pygmentsUseClasses = true -pygmentsCodeFences = true -disablePathToLower = true -enableGitInfo = true - -[markup] - [markup.goldmark.renderer] - # Needed for mermaid shortcode - unsafe = true - [markup.tableOfContents] - startLevel = 1 - endLevel = 9 - -[params] - # (Optional, default 6) Set how many table of contents levels to be showed on page. - # Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/) - # You can also specify this parameter per page in front matter. - geekdocToC = 1 - - # (Optional, default static/brand.svg) Set the path to a logo for the Geekdoc - # relative to your 'static/' folder. - geekdocLogo = "openbb_logo.svg" - - # (Optional, default false) Render menu from data file in 'data/menu/main.yaml'. - geekdocMenuBundle = true - - # (Optional, default true) Show page navigation links at the bottom of each - # docs page (bundle menu only). - geekdocNextPrev = true - - # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page. - # You can also specify this parameter per page in front matter. - geekdocBreadcrumb = true - - # (Optional, default none) Set source repository location. Used for 'Edit this page' links. - # You can also specify this parameter per page in front matter. - geekdocRepo = "https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/website" - - # (Optional, default none) Enable 'Edit this page' links. Requires 'GeekdocRepo' param - # and path must point to 'content' directory of repo. - # You can also specify this parameter per page in front matter. - geekdocEditPath = "/content" - - # (Optional, default true) Enables search function with flexsearch. - # Index is built on the fly and might slowdown your website. - geekdocSearch = true - - # (Optional, default false) Display search results with the parent folder as prefix. This - # option allows you to distinguish between files with the same name in different folders. - # NOTE: This parameter only applies when 'geekdocSearch = true'. - geekdocSearchShowParent = true - - # (Optional, default none) Add a link to your Legal Notice page to the site footer. - # It can be either a remote url or a local file path relative to your content directory. - #geekdocLegalNotice = "https://blog.example.com/legal" - - # (Optional, default none) Add a link to your Privacy Policy page to the site footer. - # It can be either a remote url or a local file path relative to your content directory. - #geekdocPrivacyPolicy = "/privacy" - - # (Optional, default true) Add an anchor link to headlines. - geekdocAnchor = true - - # (Optional, default true) Copy anchor url to clipboard on click. - geekdocAnchorCopy = true - - # (Optional, default true) Enable or disable image lazy loading for images rendered - # by the 'img' shortcode. - geekdocImageLazyLoading = true - - # (Optional, default false) Set HTMl to .Site.BaseURL if enabled. It might be required - # if a subdirectory is used within Hugos BaseURL. - # See https://developer.mozilla.org/de/docs/Web/HTML/Element/base. - geekdocOverwriteHTMLBase = false - - # (Optional, default false) Auto-decrease brightness of images and add a slightly grayscale to avoid - # bright spots while using the dark mode. - geekdocDarkModeDim = false - - -[security] - enableInlineShortcodes = false - [security.exec] - allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', "rst2html.py", "rst2html"] - osEnv = ['(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM)$'] - [security.funcs] - getenv = ['^HUGO_'] - [security.http] - methods = ['(?i)GET|POST'] - urls = ['.*'] diff --git a/website/content/SDK/_index.md b/website/content/SDK/_index.md deleted file mode 100644 index 168b54c097f..00000000000 --- a/website/content/SDK/_index.md +++ /dev/null @@ -1,340 +0,0 @@ ---- -title: OpenBB Python SDK -geekdocCollapseSection: true ---- - -OpenBB SDK gives you direct and programmatic access to all capabilities from OpenBB Terminal. -You will have the necessary building blocks to create your own financial tools and applications, -whether that be a visualization dashboard or a custom report on Jupyter Notebook. - -With OpenBB SDK, you can access to normalized financial data from dozens of data providers, -without having to develop your own integrations from scratch. -On top of financial data feeds, OpenBB SDK also provides you with a toolbox to perform financial analysis -on a variety of asset classes, including stocks, crypto, ETFs, funds; the economy as well as your portfolios. - -OpenBB SDK is created and maintained by OpenBB team together with the contributions from hundreds of community members. -This gives us an unrivaled speed of development and the ability to maintain stable integrations with numerous third-party data providers. -Developing and maintaining an full-blown investment research infrastructure from the ground up takes a lot of time and effort. -However, it does not have to be. Take advantage of OpenBB SDK with its out-of-the-box data connectors and financial analysis toolkit. -So that you can focus on designing and building your financial reports and applications. - ---- - -## Setup - -### 1. Import OpenBB SDK - -First off, import OpenBB SDK into your python script or Jupyter Notebook with: - -```python -from openbb_terminal.sdk import openbb -``` - -This imports all Terminal commands at once. To see all the available commands, you can press `tab` in jupyter notebook. -Another approach is to check out [OpenBB SDK Documentation](https://openbb-finance.github.io/OpenBBTerminal/sdk/), where you can explore its capabilities - -### 2. Customize chart style - -With OpenBB SDK, you can customize your chart style. You can switch between `dark` and `light` easily using this block of code: - -```python -from openbb_terminal.sdk import TerminalStyle -theme = TerminalStyle("light", "light", "light") -``` - -Screenshot 2022-10-03 at 23 56 52 - -OR - -```python -from openbb_terminal.sdk import TerminalStyle -theme = TerminalStyle("dark", "dark", "dark") -``` - -Screenshot 2022-10-03 at 23 46 33 - -### 3. Access Documentation - -Each and every command of OpenBB SDK has detailed documentation about input parameters and returned outputs. You can access them in multiple ways: - -**Approach 1: Press `shift + tab`** -This will work out of the box if you're using Jupyter Notebook. In case your IDE is VSCode, you will need to install the [Jupyter PowerToys -extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-jupyter-powertoys). - -Screenshot 2022-10-03 at 23 31 55 - -**Approach 2: Type `help(command)`** - -You can also type `help(command)`, see example below, to see the command' docstring. - -Screenshot 2022-10-03 at 23 33 05 - -**Approach 3: Use OpenBB SDK Documentation page** - -Finally, if you prefer to check documentation on a web browser, [OpenBB SDK Documentation](https://openbb-finance.github.io/OpenBBTerminal/api/) will be your best friend. You can browse available commands and search for any specific one that you need. - -Screenshot 2022-10-03 at 18 41 48 - -### 4. Set API Keys - -You can set your external API keys through OpenBB SDK. - -* Single API setup - -```python -openbb.keys.fmp(key="example") - -openbb.keys.reddit( - client_id="example", - client_secret="example", - password="example", - username="example", - useragent="example") -``` - -![image](https://user-images.githubusercontent.com/79287829/194706829-dd720d06-9027-4da6-87f1-f39c7d2d725a.png) - -* API key setup with persistence: `persist=True` means that your key will be saved and can be reused after, otherwise it will be lost when you restart the kernel. - -```python -openbb.keys.fmp(key="example", persist=True) -``` - -![image](https://user-images.githubusercontent.com/79287829/194706848-80302ffa-6e75-4f7a-b8ce-788e083977d4.png) - -* Set multiple keys from dictionary - -```python -d = { - "fed": { - "key":"XXXXX" - }, - "binance": { - "key":"YYYYY", - "secret":"ZZZZZ" - }, -} - -openbb.keys.set_keys(d) -``` - -![image](https://user-images.githubusercontent.com/79287829/194706945-f1e6937f-74e2-4702-9e5e-c463287d61bd.png) - -* Get info about API setup arguments - -```python -openbb.keys.get_keys_info() -``` - -![image](https://user-images.githubusercontent.com/79287829/194706740-54bcc166-460a-410d-b34d-23e8b6c7aaf2.png) - -* Get your defined keys - -```python -openbb.keys.mykeys() -openbb.keys.mykeys(show=True) -``` - -![image](https://user-images.githubusercontent.com/79287829/194706907-239fe861-31c3-47c0-9051-7717cd026b76.png) - -## Usage - -Now, let's explore what OpenBB SDK can do. At a high level, you can break down OpenBB SDK's functionalities into two main buckets: (1) Data layer and (2) Toolbox layer. - -### 1. Data Layer - -### **Getting financial data from multiple data sources using one single SDK** - -OpenBB SDK provides you access to normalized financial data from dozens of data sources, without having to built your own integration or relying on multiple third-party packages. Let's explore how we can do that. - -First, you will need to load in the desired ticker. If it's not on the top of your mind, make use of our search functionality. - -```python -openbb.stocks.search("apple") -``` - -Screenshot 2022-10-04 at 00 00 14 - -We want to load `Apple Inc.` listed on US exchange, so our ticker should be `AAPL`. If you want to load `Apple Inc.` from Brazilian exchange, you should load in `AAPL34.SA`. - -```python -df = openbb.stocks.load("AAPL") -``` - -What's extremely powerful about OpenBB SDK is that you can specify the data source. Depending on the asset class, we have a list of available data sources and it's only getting bigger with contributions from our open-source community. - -```python -## From YahooFinance -df_yf = openbb.stocks.load("AAPL", source='YahooFinance') - -## From AlphaVantage -df_av = openbb.stocks.load("AAPL", source='AlphaVantage') - -## From IEXCloud -df_iex = openbb.stocks.load("AAPL", source='IEXCloud') - -## From Polygon -df_pol = openbb.stocks.load("AAPL", source='Polygon') -``` - -### **Easy option to switch between obtaining underlying data and charts** - -Depending on your needs, you can get the outputs in form of data (e.g. `pandas dataframe`) or charts. If the latter is what you want, simple add `chart=True` as the last parameter. - -### 1. Getting underlying data - -```python -openbb.economy.index(indices = ['sp500', 'nyse_ny', 'russell1000'], start_date = '2010-01-01') -``` - -Screenshot 2022-10-04 at 00 02 23 - -You might be wondering how to find all the available indices. This type of information should be available in the docstring. Let's give it a try. - -Screenshot 2022-10-04 at 13 20 58 - -As mentioned in the docstring, you can access it with the following helper function. - -```python -openbb.economy.available_indices() -``` - -Screenshot 2022-10-04 at 00 16 36 - -### 2. Getting charts - -```python -openbb.economy.index(indices = ['sp500', 'nyse_ny', 'russell1000'], start_date = '2010-01-01', chart=True) -``` - -Screenshot 2022-10-04 at 00 03 57 - -## 2. Toolbox Layer - -In addition to financial data, you can also get access to a robust and powerful toolbox to perform analysis on different asset classes and on your portfolio. - -Imagine that you would like to leverage existing financial calculations from OpenBB and apply them on your own data. This can be done easily - OpenBB SDK's commands usually accept a `dataframe` as an input. Here you can load it your data, either via a `csv`, `excel` file, or connecting directly with an `API` or a `database`. The possibilities are endless. - -Let's go through an example to see how we can do it in a few simple steps. Here we shall see how to use `portfolio optimization` functionalities from OpenBB SDK. - -### Step 1. Loading order book - -Here we will use an example orderbook for illustration purposes. You can choose to upload your own orderbook instead. - -```python -order_book_path = "portfolio/allocation/60_40_Portfolio.xlsx" -tickers, categories = openbb.portfolio.po.load(excel_file = order_book_path) -``` - -### Step 2. Optimizing portfolio - -We provide multiple portfolio optimization techniques. You can utilize basic mean-variance techniques, such as optimizing for the maximum Sharpe ratio, or minimum variance, as well as advanced optimization techniques including Hierarchical Risk Parity and Nested Clustered Optimization. - -```python -## Max Sharpe optimization -weights_max_sharpe, data_returns_max_sharpe = openbb.portfolio.po.maxsharpe(tickers) - -print("Max Sharpe") -weights_max_sharpe -``` - -Screenshot 2022-10-04 at 13 23 45 - -```python -## Minimum risk optimization -weights_min_risk, data_returns_min_risk = openbb.portfolio.po.minrisk(tickers) - -print("Min Risk") -weights_min_risk -``` - -Screenshot 2022-10-04 at 13 24 45 - -```python -## Hierarchical Risk Parity optimization - -weights_hrp, data_returns_hrp = openbb.portfolio.po.hrp(tickers) - -print("Hierarchical Risk Parity") -weights_hrp -``` - -Screenshot 2022-10-04 at 13 34 39 - -After having obtained the asset allocation outcomes, you can plot a correlation heatmap across tickers, as well as their individual risk contributition. - -```python -openbb.portfolio.po.plot(data=data_returns_hrp,weights=weights_hrp,heat=True) -``` - -Screenshot 2022-10-04 at 13 35 14 - -```python -openbb.portfolio.po.plot(data=data_returns_hrp,weights=weights_hrp,rc_chart=True) -``` - -Screenshot 2022-10-04 at 13 36 10 - -These techniques have an extensive list of parameters and thus the optimization outcome is highly dependent on the chosen parameters. For instance, you can refer to the documentation below. -Screenshot 2022-10-04 at 00 35 00 - -This allows us to alter certain assumption which also modify the asset allocation. - -```python -weights_hrp_2, data_returns_hrp_2 = openbb.portfolio.po.hrp( - tickers, - interval="5y", - risk_measure="cVaR", - risk_aversion=0.8 -) - -pd.DataFrame([weights_hrp, weights_hrp_2], index=["Basic", "Extended"]).T -``` - -Screenshot 2022-10-04 at 00 37 18 - -The basic method was optimized for *variance*. The extended method increases the period of historical data, optimizes for conditional Value at Risk and has a lower risk aversion. - -```python -openbb.portfolio.po.plot(data=data_returns_hrp,weights=weights_hrp,pie=True) -``` - -Screenshot 2022-10-04 at 13 38 12 - -```python -openbb.portfolio.po.plot(data=data_returns_hrp_2,weights=weights_hrp_2,pie=True) -``` - -Screenshot 2022-10-04 at 13 38 30 - -## Useful tips - -### 1. Display matplotlib charts in Jupyter Notebook - -To display matplotlib charts inside the Jupyter notebook output cells, you can use the block of code below, and initialize it at the top of the Notebook. - -```python -import matplotlib.pyplot as plt -import matplotlib_inline.backend_inline -from openbb_terminal.sdk import openbb -%matplotlib inline -matplotlib_inline.backend_inline.set_matplotlib_formats("svg") -``` - -### 2. Take advantage of `external_axes` - -The code below utilizes the `external_axes` parameter to get two axis in one chart. - -```python -import matplotlib.pyplot as plt -from openbb_terminal.sdk import openbb -fig, (ax1, ax2) = plt.subplots(nrows=2, ncols=1, figsize=(11, 5), dpi=150) -openbb.stocks.dps.dpotc( - "aapl", - external_axes=[ax1, ax2], - chart=True, -) -fig.tight_layout() -``` - -You can also do this to save output charts in a variable for later uses. For more examples, we'd recommend checking out our [curated Jupyter Notebook reports](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/reports). They are excellent demonstration on how to use the SDK to its fullest extent diff --git a/website/content/SDK/alt/_index.md b/website/content/SDK/alt/_index.md deleted file mode 100644 index 8e80b4d71f3..00000000000 --- a/website/content/SDK/alt/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: alt -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/alt/covid/_index.md b/website/content/SDK/alt/covid/_index.md deleted file mode 100644 index 9e2899c0b92..00000000000 --- a/website/content/SDK/alt/covid/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: covid -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/alt/covid/global_cases/_index.rst b/website/content/SDK/alt/covid/global_cases/_index.rst deleted file mode 100644 index 343165e652a..00000000000 --- a/website/content/SDK/alt/covid/global_cases/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.covid.global_cases( - country: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical cases for given country -

- -* **Parameters** - - country: str - Country to search for - -* **Returns** - - pd.DataFrame - Dataframe of historical cases diff --git a/website/content/SDK/alt/covid/global_deaths/_index.rst b/website/content/SDK/alt/covid/global_deaths/_index.rst deleted file mode 100644 index 7337cdca6b6..00000000000 --- a/website/content/SDK/alt/covid/global_deaths/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.covid.global_deaths( - country: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical deaths for given country -

- -* **Parameters** - - country: str - Country to search for - -* **Returns** - - pd.DataFrame - Dataframe of historical deaths diff --git a/website/content/SDK/alt/covid/ov/_index.rst b/website/content/SDK/alt/covid/ov/_index.rst deleted file mode 100644 index 28da943e716..00000000000 --- a/website/content/SDK/alt/covid/ov/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.covid.ov( - country, limit: int = 100, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical cases and deaths by country -

- -* **Parameters** - - country: str - Country to get data for - limit: int - Number of raw data to show - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.covid.ov( - country, raw: bool = False, - limit: int = 10, - export: str = '', - plot: bool = True, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Show historical cases and deaths by country -

- -* **Parameters** - - country: str - Country to get data for - raw: bool - Flag to display raw data - limit: int - Number of raw data to show - export: str - Format to export data - plot: bool - Flag to display historical plot - chart: bool - Flag to display chart - diff --git a/website/content/SDK/alt/covid/slopes/_index.rst b/website/content/SDK/alt/covid/slopes/_index.rst deleted file mode 100644 index 31c8db5f297..00000000000 --- a/website/content/SDK/alt/covid/slopes/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.covid.slopes( - days_back: int = 30, - limit: int = 50, - threshold: int = 10000, - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Load cases and find slope over period -

- -* **Parameters** - - days_back: int - Number of historical days to consider - limit: int - Number of rows to show - threshold: int - Threshold for total number of cases - ascend: bool - Flag to sort in ascending order - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing slopes - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.covid.slopes( - days_back: int = 30, - limit: int = 10, - threshold: int = 10000, - ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- -

- -* **Parameters** - - days_back: int - Number of historical days to get slope for - limit: int - Number to show in table - ascend: bool - Flag to sort in ascending order - threshold: int - Threshold for total cases over period - export : str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/alt/covid/stat/_index.rst b/website/content/SDK/alt/covid/stat/_index.rst deleted file mode 100644 index e29c3c0075e..00000000000 --- a/website/content/SDK/alt/covid/stat/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.covid.stat( - country, stat: str = 'cases', - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Show historical cases and deaths by country -

- -* **Parameters** - - country: str - Country to get data for - stat: str - Statistic to get. Either "cases", "deaths" or "rates" - limit: int - Number of raw data to show - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.covid.stat( - country, stat: str = 'cases', - raw: bool = False, - limit: int = 10, - export: str = '', - plot: bool = True, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Show historical cases and deaths by country -

- -* **Parameters** - - country: str - Country to get data for - stat: str - Statistic to get. Either "cases", "deaths" or "rates" - raw: bool - Flag to display raw data - limit: int - Number of raw data to show - export: str - Format to export data - plot : bool - Flag to plot data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/alt/oss/_index.md b/website/content/SDK/alt/oss/_index.md deleted file mode 100644 index b9c9a6ca83b..00000000000 --- a/website/content/SDK/alt/oss/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: oss -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/alt/oss/_make_request/_index.rst b/website/content/SDK/alt/oss/_make_request/_index.rst deleted file mode 100644 index f7952f25785..00000000000 --- a/website/content/SDK/alt/oss/_make_request/_index.rst +++ /dev/null @@ -1,33 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss._make_request( - url: str, - chart: bool = False, -) -> Optional[bs4.BeautifulSoup] -{{< /highlight >}} - -.. raw:: html - -

- Helper method to scrap -

- -* **Parameters** - - url : str - url to scrape - -* **Returns** - - BeautifulSoup object diff --git a/website/content/SDK/alt/oss/_retry_session/_index.rst b/website/content/SDK/alt/oss/_retry_session/_index.rst deleted file mode 100644 index 56e09b996cf..00000000000 --- a/website/content/SDK/alt/oss/_retry_session/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss._retry_session( - url: str, - retries: int = 3, - backoff_factor: float = 1.0, - chart: bool = False, -) -> requests.sessions.Session -{{< /highlight >}} - -.. raw:: html - -

- Helper methods that retries to make request -

- -* **Parameters** - - url: str - Url to mount a session - retries: int - How many retries - backoff_factor: float - Backoff schema - time periods between retry - -* **Returns** - - requests.Session - Mounted session diff --git a/website/content/SDK/alt/oss/github_data/_index.rst b/website/content/SDK/alt/oss/github_data/_index.rst deleted file mode 100644 index 8f9ee9f756f..00000000000 --- a/website/content/SDK/alt/oss/github_data/_index.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss.github_data( - url: str, - **kwargs, chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get repository stats -

- -* **Parameters** - - url: str - github api endpoint - params: dict - params to pass to api endpoint - -* **Returns** - - dict with data diff --git a/website/content/SDK/alt/oss/history/_index.rst b/website/content/SDK/alt/oss/history/_index.rst deleted file mode 100644 index b7d5db23eec..00000000000 --- a/website/content/SDK/alt/oss/history/_index.rst +++ /dev/null @@ -1,73 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss.history( - repo: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get repository star history -

- -* **Parameters** - - repo : str - Repo to search for Format: org/repo, e.g., openbb-finance/openbbterminal - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Columns: Date, Stars - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.oss.history( - repo: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display repo summary [Source: https://api.github.com] -

- -* **Parameters** - - repo : str - Repository to display star history. Format: org/repo, e.g., openbb-finance/openbbterminal - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/alt/oss/ross/_index.rst b/website/content/SDK/alt/oss/ross/_index.rst deleted file mode 100644 index 9a0da5db484..00000000000 --- a/website/content/SDK/alt/oss/ross/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss.ross() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get startups from ROSS index [Source: https://runacap.com/] -

- -* **Returns** - - pandas.DataFrame: - list of startups - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.oss.ross( - limit: int = 10, - sortby: str = 'Stars AGR [%]', ascend: bool = False, - show_chart: bool = False, - show_growth: bool = True, - chart_type: str = 'stars', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display list of startups from ross index [Source: https://runacap.com/] -

- -* **Parameters** - - limit: int - Number of startups to search - sortby: str - Key by which to sort data. Default: Stars AGR [%] - ascend: bool - Flag to sort data descending - show_chart: bool - Flag to show chart with startups - show_growth: bool - Flag to show growth line chart - chart_type: str - Chart type {stars,forks} - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/alt/oss/search/_index.rst b/website/content/SDK/alt/oss/search/_index.rst deleted file mode 100644 index e636e63c71b..00000000000 --- a/website/content/SDK/alt/oss/search/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss.search( - sortby: str = 'stars', - page: int = 1, - categories: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get repos sorted by stars or forks. Can be filtered by categories -

- -* **Parameters** - - sortby : str - Sort repos by {stars, forks} - categories : str - Check for repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None - page : int - Page number to get repos - -* **Returns** - - pd.DataFrame with list of repos diff --git a/website/content/SDK/alt/oss/summary/_index.rst b/website/content/SDK/alt/oss/summary/_index.rst deleted file mode 100644 index 0619d358c78..00000000000 --- a/website/content/SDK/alt/oss/summary/_index.rst +++ /dev/null @@ -1,70 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss.summary( - repo: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get repository summary -

- -* **Parameters** - - repo : str - Repo to search for Format: org/repo, e.g., openbb-finance/openbbterminal - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Columns: Metric, Value - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.oss.summary( - repo: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display repo summary [Source: https://api.github.com] -

- -* **Parameters** - - repo : str - Repository to display summary. Format: org/repo, e.g., openbb-finance/openbbterminal - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/alt/oss/top/_index.rst b/website/content/SDK/alt/oss/top/_index.rst deleted file mode 100644 index b69598a3084..00000000000 --- a/website/content/SDK/alt/oss/top/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -alt.oss.top( - sortby: str, - limit: int = 50, - categories: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get repos sorted by stars or forks. Can be filtered by categories -

- -* **Parameters** - - sortby : str - Sort repos by {stars, forks} - categories : str - Check for repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None - limit : int - Number of repos to search for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame with list of repos - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -alt.oss.top( - sortby: str, - categories: str = '', - limit: int = 10, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display repo summary [Source: https://api.github.com] -

- -* **Parameters** - - sortby : str - Sort repos by {stars, forks} - categories : str - Check for repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None - limit : int - Number of repos to look at - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/_index.md b/website/content/SDK/common/_index.md deleted file mode 100644 index 52690ca1639..00000000000 --- a/website/content/SDK/common/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Common Modules -keywords: "QA, TA, quantitative, technical, analysis" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/common/news/_index.rst b/website/content/SDK/common/news/_index.rst deleted file mode 100644 index 7e542412545..00000000000 --- a/website/content/SDK/common/news/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.news( - term: str = '', - sources: str = '', - sort: str = 'published', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get news for a given term and source. [Source: Feedparser] -

- -* **Parameters** - - term : str - term to search on the news articles - sources: str - sources to exclusively show news from (separated by commas) - sort: str - the column to sort by - -* **Returns** - - articles : dict - term to search on the news articles diff --git a/website/content/SDK/common/qa/_index.md b/website/content/SDK/common/qa/_index.md deleted file mode 100644 index 48126202fc1..00000000000 --- a/website/content/SDK/common/qa/_index.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: Introduction to Quantitative Analysis -keywords: "qa, quant, quantitative, bw, var, es, kurtosis, normality, omega, quantile, rolling, sharpe, skew, spread, summary, unitroot, var, math" -excerpt: "This guide introduces the Quantitative Analysis module, and provides some examples." -geekdocCollapseSection: true ---- -The `qa` module replicates the features of the Quantitative Analysis menu, within the OpenBB Terminal, for the SDK environment. It provides users with more ways to interact with the library of functions, and provides cross-disciplinary utility. To activate the code completion for the menu, enter `.` after, `openbb.common.qa`. - -![The QA Module](https://user-images.githubusercontent.com/85772166/200109595-dbfde965-72b4-40fc-88bf-95f34a30f5d9.png "The QA Module") - -## How to Use - -With the modules imported, the next step would be to collect data for analysis. In this example, the Quandl API will be used. To pass the key to the URL string, import: - -```python - -import openbb_terminal.config_terminal as cfg - -``` -The credentials can then be passed with: - -```python -f"{cfg.API_KEY_QUANDL}" -``` - -As a functional code block, this looks like: - -```python - -from openbb_terminal.sdk import openbb -import openbb_terminal.config_terminal as cfg -import pandas as pd -import matplotlib.pyplot as plt - -%matplotlib widget -``` - -```python -payload = pd.read_json('https://data.nasdaq.com/api/v3/datasets/MULTPL/SHILLER_PE_RATIO_MONTH.json?api_key='f"{cfg.API_KEY_QUANDL}") -payload = pd.DataFrame(payload).transpose() -shiller_pe = payload.data.dataset -``` - -![Loading Data](https://user-images.githubusercontent.com/85772166/200109605-4cdd01b2-2974-4222-bb6c-0bf14c593cb5.png "Loading Data") - -Now, with the data loaded, the next block will utilize the `skew` function, to target the monthly Shiller P/E Ratio of the S&P 500 from inception. - -```python -shiller_df = pd.DataFrame(columns = ['Date', 'Shiller P/E Ratio', 'Skew']) -shiller_pe = pd.DataFrame(shiller_pe) -shiller_skew = openbb.common.qa.skew(data = shiller_pe[1], window = 3) - -shiller_df['Date'] = shiller_pe[0].values -shiller_df['Shiller P/E Ratio'] = shiller_pe[1].values -shiller_df['Skew'] = shiller_skew -shiller_df.set_index(keys = ['Date'], inplace = True) - -shiller_df.tail() -``` - -![Skew of Monthly S&P 500 Shiller P/E Ratio](https://user-images.githubusercontent.com/85772166/200109627-0e532041-dd6a-41ef-ad17-41acd1b58caf.png "Skew of Monthly S&P 500 Shiller P/E Ratio") - -Get a summary of the DataFrame: - -```python -openbb.common.qa.summary(shiller_df) -``` - -![openbb.common.qa.summary](https://user-images.githubusercontent.com/85772166/200109649-fdf9b1f8-6e7e-47df-8baa-b1e265872b12.png "openbb.common.qa.summary") - -Insert the rolling mean and standard deviation of a target column with, `openbb.common.qa.rolling`: - -```python -mean,std = openbb.common.qa.rolling(shiller_df['Shiller P/E Ratio']) -mean.rename(columns = {'Shiller P/E Ratio': 'Mean'}, inplace = True) -std.rename(columns = {'Shiller P/E Ratio': 'Std'}, inplace = True) -rolling = mean.join(std) -shiller_df = shiller_df.join(rolling) - -shiller_df -``` - -![openbb.common.qa.rolling](https://user-images.githubusercontent.com/85772166/200109671-ec0d62ac-fedc-4690-a972-b326a1f05da3.png "openbb.common.qa.rolling") - -Calculate and join the Sharpe Ratio of, for example, the rolling mean average of the Shiller P/E ratio: - -```python -sharpe = pd.DataFrame(openbb.common.qa.sharpe(data = shiller_df['Mean'], window = 12, rfr = 3)) -sharpe.rename(columns = {'Mean': 'Sharpe'}, inplace = True) -shiller_df = shiller_df.join(sharpe) -``` - -![openbb.common.qa.sharpe](https://user-images.githubusercontent.com/85772166/200109727-85736e12-85c2-43d6-97e0-4a95cf40bd6f.png "openbb.common.qa.sharpe") diff --git a/website/content/SDK/common/qa/bw/_index.rst b/website/content/SDK/common/qa/bw/_index.rst deleted file mode 100644 index 505c9ad920e..00000000000 --- a/website/content/SDK/common/qa/bw/_index.rst +++ /dev/null @@ -1,87 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.bw( - data: pandas.core.frame.DataFrame, - target: str, - symbol: str = '', - yearly: bool = True, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Show box and whisker plots -

- -* **Parameters** - - symbol : str - Name of dataset - data : pd.DataFrame - Dataframe to look at - target : str - Data column to look at - yearly : bool - Flag to indicate yearly accumulation - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.bw( - data: pandas.core.frame.DataFrame, - target: str, - symbol: str = '', - yearly: bool = True, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Show box and whisker plots -

- -* **Parameters** - - symbol : str - Name of dataset - data : pd.DataFrame - Dataframe to look at - target : str - Data column to look at - yearly : bool - Flag to indicate yearly accumulation - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/calculate_adjusted_var/_index.rst b/website/content/SDK/common/qa/calculate_adjusted_var/_index.rst deleted file mode 100644 index b4124a0390f..00000000000 --- a/website/content/SDK/common/qa/calculate_adjusted_var/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.calculate_adjusted_var( - kurtosis: float, - skew: float, - ndp: float, - std: float, - mean: float, - chart: bool = False, -) -> float -{{< /highlight >}} - -.. raw:: html - -

- Calculates VaR, which is adjusted for skew and kurtosis (Cornish-Fischer-Expansion) -

- -* **Parameters** - - kurtosis: float - kurtosis of data - skew: float - skew of data - ndp: float - normal distribution percentage number (99% -> -2.326) - std: float - standard deviation of data - mean: float - mean of data - -* **Returns** - - float - Real adjusted VaR diff --git a/website/content/SDK/common/qa/decompose/_index.rst b/website/content/SDK/common/qa/decompose/_index.rst deleted file mode 100644 index 31a5a9af626..00000000000 --- a/website/content/SDK/common/qa/decompose/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.decompose( - data: pandas.core.frame.DataFrame, - multiplicative: bool = False, - chart: bool = False, -) -> Tuple[Any, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Perform seasonal decomposition -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of targeted data - multiplicative : bool - Boolean to indicate multiplication instead of addition - -* **Returns** - - result: Any - Result of statsmodels seasonal_decompose - cycle: pd.DataFrame - Filtered cycle - trend: pd.DataFrame - Filtered Trend diff --git a/website/content/SDK/common/qa/es/_index.rst b/website/content/SDK/common/qa/es/_index.rst deleted file mode 100644 index a5ec9a7431c..00000000000 --- a/website/content/SDK/common/qa/es/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.es( - data: pandas.core.frame.DataFrame, - use_mean: bool = False, - distribution: str = 'normal', - percentile: Union[float, int] = 99.9, - portfolio: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets Expected Shortfall for specified stock dataframe. -

- -* **Parameters** - - data: pd.DataFrame - Data dataframe - use_mean: bool - If one should use the data mean for calculation - distribution: str - Type of distribution, options: laplace, student_t, normal - percentile: Union[float,int] - VaR percentile - portfolio: bool - If the data is a portfolio - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with Expected Shortfall per percentile - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.es( - data: pandas.core.frame.DataFrame, - symbol: str = '', - use_mean: bool = False, - distribution: str = 'normal', - percentile: float = 99.9, - portfolio: bool = False, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays expected shortfall. -

- -* **Parameters** - - data: pd.DataFrame - Data dataframe - use_mean: - if one should use the data mean return - symbol: str - name of the data - distribution: str - choose distribution to use: logistic, laplace, normal - percentile: int - es percentile - portfolio: bool - If the data is a portfolio - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/kurtosis/_index.rst b/website/content/SDK/common/qa/kurtosis/_index.rst deleted file mode 100644 index 5ff2f899417..00000000000 --- a/website/content/SDK/common/qa/kurtosis/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.kurtosis( - data: pandas.core.frame.DataFrame, - window: int = 14, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Kurtosis Indicator -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of targeted data - window: int - Length of window - chart: bool - Flag to display chart - - -* **Returns** - - df_kurt : pd.DataFrame - Dataframe of rolling kurtosis - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.kurtosis( - symbol: str, - data: pandas.core.frame.DataFrame, - target: str, - window: int = 14, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View rolling kurtosis -

- -* **Parameters** - - symbol: str - Ticker - data: pd.DataFrame - Dataframe of stock prices - target: str - Column in data to look at - window: int - Length of window - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/normality/_index.rst b/website/content/SDK/common/qa/normality/_index.rst deleted file mode 100644 index 2e5e6d5b5f6..00000000000 --- a/website/content/SDK/common/qa/normality/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.normality( - data: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Look at the distribution of returns and generate statistics on the relation to the normal curve. - This function calculates skew and kurtosis (the third and fourth moments) and performs both - a Jarque-Bera and Shapiro Wilk test to determine if data is normally distributed. -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of targeted data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing statistics of normality - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.normality( - data: pandas.core.frame.DataFrame, - target: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- View normality statistics -

- -* **Parameters** - - data : pd.DataFrame - DataFrame - target : str - Column in data to look at - export : str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/omega/_index.rst b/website/content/SDK/common/qa/omega/_index.rst deleted file mode 100644 index a3f2adbaa0b..00000000000 --- a/website/content/SDK/common/qa/omega/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.omega( - data: pandas.core.frame.DataFrame, - threshold_start: float = 0, - threshold_end: float = 1.5, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get the omega series -

- -* **Parameters** - - data: pd.DataFrame - stock dataframe - threshold_start: float - annualized target return threshold start of plotted threshold range - threshold_end: float - annualized target return threshold end of plotted threshold range - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.omega( - data: pandas.core.frame.DataFrame, - threshold_start: float = 0, - threshold_end: float = 1.5, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays the omega ratio -

- -* **Parameters** - - data: pd.DataFrame - stock dataframe - threshold_start: float - annualized target return threshold start of plotted threshold range - threshold_end: float - annualized target return threshold end of plotted threshold range - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/quantile/_index.rst b/website/content/SDK/common/qa/quantile/_index.rst deleted file mode 100644 index b49089bfb59..00000000000 --- a/website/content/SDK/common/qa/quantile/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.quantile( - data: pandas.core.frame.DataFrame, - window: int = 14, - quantile_pct: float = 0.5, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Overlay Median & Quantile -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of targeted data - window : int - Length of window - quantile_pct: float - Quantile to display - chart: bool - Flag to display chart - - -* **Returns** - - df_med : pd.DataFrame - Dataframe of median prices over window - df_quantile : pd.DataFrame - Dataframe of gievn quantile prices over window - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.quantile( - data: pandas.core.frame.DataFrame, - target: str, - symbol: str = '', - window: int = 14, - quantile: float = 0.5, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- View rolling quantile -

- -* **Parameters** - - data: pd.DataFrame - Dataframe - target: str - Column in data to look at - symbol : str - Stock ticker - window : int - Length of window - quantile: float - Quantile to get - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/rolling/_index.rst b/website/content/SDK/common/qa/rolling/_index.rst deleted file mode 100644 index a55f8de3b43..00000000000 --- a/website/content/SDK/common/qa/rolling/_index.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.rolling( - data: pandas.core.frame.DataFrame, - window: int = 14, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Return rolling mean and standard deviation -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of target data - window: int - Length of rolling window - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - Dataframe of rolling mean - pd.DataFrame: - Dataframe of rolling standard deviation - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.rolling( - data: pandas.core.frame.DataFrame, - target: str, - symbol: str = '', - window: int = 14, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- View mean std deviation -

- -* **Parameters** - - data: pd.DataFrame - Dataframe - target: str - Column in data to look at - symbol : str - Stock ticker - window : int - Length of window - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/sharpe/_index.rst b/website/content/SDK/common/qa/sharpe/_index.rst deleted file mode 100644 index 5faeb27bffc..00000000000 --- a/website/content/SDK/common/qa/sharpe/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.sharpe( - data: pandas.core.frame.DataFrame, - rfr: float = 0, - window: float = 252, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculates the sharpe ratio -

- -* **Parameters** - - data: pd.DataFrame - selected dataframe column - rfr: float - risk free rate - window: float - length of the rolling window - chart: bool - Flag to display chart - - -* **Returns** - - sharpe: pd.DataFrame - sharpe ratio - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.sharpe( - data: pandas.core.frame.DataFrame, - rfr: float = 0, - window: float = 252, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Calculates the sharpe ratio -

- -* **Parameters** - - data: pd.DataFrame - selected dataframe column - rfr: float - risk free rate - window: float - length of the rolling window - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/skew/_index.rst b/website/content/SDK/common/qa/skew/_index.rst deleted file mode 100644 index ad9b449487b..00000000000 --- a/website/content/SDK/common/qa/skew/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.skew( - data: pandas.core.frame.DataFrame, - window: int = 14, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Skewness Indicator -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of targeted data - window : int - Length of window - chart: bool - Flag to display chart - - -* **Returns** - - data_skew : pd.DataFrame - Dataframe of rolling skew - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.skew( - symbol: str, - data: pandas.core.frame.DataFrame, - target: str, - window: int = 14, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- View rolling skew -

- -* **Parameters** - - symbol: str - Stock ticker - data: pd.DataFrame - Dataframe - target: str - Column in data to look at - window: int - Length of window - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/sortino/_index.rst b/website/content/SDK/common/qa/sortino/_index.rst deleted file mode 100644 index 2c136090246..00000000000 --- a/website/content/SDK/common/qa/sortino/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.sortino( - data: pandas.core.frame.DataFrame, - target_return: float = 0, - window: float = 252, - adjusted: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculates the sortino ratio -

- -* **Parameters** - - data: pd.DataFrame - selected dataframe - target_return: float - target return of the asset - window: float - length of the rolling window - adjusted: bool - adjust the sortino ratio - chart: bool - Flag to display chart - - -* **Returns** - - sortino: pd.DataFrame - sortino ratio - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.sortino( - data: pandas.core.frame.DataFrame, - target_return: float, - window: float, - adjusted: bool, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays the sortino ratio -

- -* **Parameters** - - data: pd.DataFrame - selected dataframe - target_return: float - target return of the asset - window: float - length of the rolling window - adjusted: bool - adjust the sortino ratio - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/spread/_index.rst b/website/content/SDK/common/qa/spread/_index.rst deleted file mode 100644 index 812c9fd6559..00000000000 --- a/website/content/SDK/common/qa/spread/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.spread( - data: pandas.core.frame.DataFrame, - window: int = 14, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Standard Deviation and Variance -

- -* **Parameters** - - data: pd.DataFrame - DataFrame of targeted data - window: int - Length of window - chart: bool - Flag to display chart - - -* **Returns** - - df_sd: pd.DataFrame - Dataframe of rolling standard deviation - df_var: pd.DataFrame - Dataframe of rolling standard deviation - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.spread( - data: pandas.core.frame.DataFrame, - target: str, - symbol: str = '', - window: int = 14, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View rolling spread -

- -* **Parameters** - - data: pd.DataFrame - Dataframe - target: str - Column in data to look at - target: str - Column in data to look at - symbol : str - Stock ticker - window : int - Length of window - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/summary/_index.rst b/website/content/SDK/common/qa/summary/_index.rst deleted file mode 100644 index 2f6c2599cbc..00000000000 --- a/website/content/SDK/common/qa/summary/_index.rst +++ /dev/null @@ -1,71 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.summary( - data: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Print summary statistics -

- -* **Parameters** - - data : pd.DataFrame - Dataframe to get summary statistics for - chart: bool - Flag to display chart - - -* **Returns** - - summary : pd.DataFrame - Summary statistics - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.summary( - data: pandas.core.frame.DataFrame, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Show summary statistics -

- -* **Parameters** - - data : pd.DataFrame - DataFrame to get statistics of - export : str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/unitroot/_index.rst b/website/content/SDK/common/qa/unitroot/_index.rst deleted file mode 100644 index 496a0dd40b3..00000000000 --- a/website/content/SDK/common/qa/unitroot/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.unitroot( - data: pandas.core.frame.DataFrame, - fuller_reg: str = 'c', - kpss_reg: str = 'c', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate test statistics for unit roots -

- -* **Parameters** - - data : pd.DataFrame - DataFrame of target variable - fuller_reg : str - Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order - kpss_reg : str - Type of regression for KPSS test. Can be ‘c’,’ct' - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with results of ADF test and KPSS test - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.unitroot( - data: pandas.core.frame.DataFrame, - target: str, - fuller_reg: str = 'c', - kpss_reg: str = 'c', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show unit root test calculations -

- -* **Parameters** - - data : pd.DataFrame - DataFrame - target : str - Column of data to look at - fuller_reg : str - Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order - kpss_reg : str - Type of regression for KPSS test. Can be ‘c’,’ct' - export : str - Format for exporting data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/qa/var/_index.rst b/website/content/SDK/common/qa/var/_index.rst deleted file mode 100644 index e206ecb883a..00000000000 --- a/website/content/SDK/common/qa/var/_index.rst +++ /dev/null @@ -1,104 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.qa.var( - data: pandas.core.frame.DataFrame, - use_mean: bool = False, - adjusted_var: bool = False, - student_t: bool = False, - percentile: Union[int, float] = 99.9, - portfolio: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets value at risk for specified stock dataframe. -

- -* **Parameters** - - data: pd.DataFrame - Data dataframe - use_mean: bool - If one should use the data mean for calculation - adjusted_var: bool - If one should return VaR adjusted for skew and kurtosis - student_t: bool - If one should use the student-t distribution - percentile: Union[int,float] - VaR percentile - portfolio: bool - If the data is a portfolio - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with Value at Risk per percentile - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.qa.var( - data: pandas.core.frame.DataFrame, - symbol: str = '', - use_mean: bool = False, - adjusted_var: bool = False, - student_t: bool = False, - percentile: float = 99.9, - data_range: int = 0, - portfolio: bool = False, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays VaR of dataframe. -

- -* **Parameters** - - data: pd.Dataframe - Data dataframe - use_mean: bool - if one should use the data mean return - symbol: str - name of the data - adjusted_var: bool - if one should have VaR adjusted for skew and kurtosis (Cornish-Fisher-Expansion) - student_t: bool - If one should use the student-t distribution - percentile: int - var percentile - data_range: int - Number of rows you want to use VaR over - portfolio: bool - If the data is a portfolio - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/_index.md b/website/content/SDK/common/ta/_index.md deleted file mode 100644 index ae3fbc8c6d3..00000000000 --- a/website/content/SDK/common/ta/_index.md +++ /dev/null @@ -1,112 +0,0 @@ ---- -title: Introduction to Technical Analysis -keywords: "ta, technical, analysis, ad, adosc, adx, aroon, bbands, cci, cg, donchian, ema, fib, fisher, hma, kc, ma, macd, obv, rsi, sma, stoch, vwap, wma, zlma" -excerpt: "This guide introduces the common Technical Analysis functions, between all asset classes, available through the OpenBB SDK" -geekdocCollapseSection: true ---- -The Technical Analysis module, of the OpenBB SDK, provides programmatic access to the same functions available within the OpenBB Terminal. This allows the user to feed alternative data and sources to the inputs of functions, to customize the workflow, and to create custom processes with unique analysis. Import the OpenBB SDK in a new Jupyter Notebook file, or Python script, to begin exploring this module. Entering the `.` after `openbb.common.ta` will activate the code completion, which is scrollable with up and down arrow keys. - -![openbb.common.ta](https://user-images.githubusercontent.com/85772166/200148349-9d538b3d-28a1-4aaf-8991-ba2cf7b2c35b.png "openbb.common.ta") - -Where charts are the output of the OpenBB Terminal, add `%matplotlib widget` to the first cell, and then append the function's syntax with `chart=True`. Importing the Pandas module will allows users to easily work with raw data outputs from the OpenBB SDK. Now, with all three dependencies, the first cell looks like this: - -```python -from openbb_terminal.sdk import openbb -import pandas as pd -%matplotlib widget -``` - -## How to Use - -The first step is to load some data as a DataFrame. This can be accomplished through a number of methods, such as: - -```python -data = pd.read_csv('file_to_load.csv') -data = openbb.stocks.load(symbol = 'ticker') -data = openbb.crypto.load(symbol = 'ticker') -data = openbb.forex.load(from_symbol = 'currency 1', to_symbol = 'currency 2') -data = openbb.etf.load(symbol = 'ticker') -``` - -Here is an example, using weekly Microsoft OHLC+V data from 1986: - -```python -msft_ohlc = openbb.stocks.load('MSFT', start_date = '1986-06-30', weekly = True) -``` - -Some Technical Analysis functions will require OHLC data, while others will use only one column from the OHLC+V DataFrame. In the case of the latter, a target column must be defined by the user. For example, `openbb.common.ta.ma`, is a function requiring only one column: - -```python -openbb.common.ta.ma( - data = msft_ohlc['Adj Close'], - window = [3,27,52], - ma_type = 'EMA', - symbol = 'Microsoft - Weekly', - chart = True, - ) -``` - -![openbb.common.ta.ma](https://user-images.githubusercontent.com/85772166/200148379-474c8179-4197-4814-97fa-1c544d1124fb.png "openbb.common.ta.ma") - -The `rsi` function has different variable input parameters: - -```python -openbb.common.ta.rsi( - data = msft_ohlc['Adj Close'], - window = 4, - symbol = 'Microsoft - Weekly', - chart = True, - ) -``` - -![openbb.common.ta.rsi](https://user-images.githubusercontent.com/85772166/200148387-72cbcd71-e38d-4611-8512-94e8031e74c2.png "openbb.common.ta.rsi") - -To return the values as a DataFrame, remove `chart = True` and the `symbol` argument: - -```python -msft_rsi = openbb.common.ta.rsi( - data = msft_ohlc['Adj Close'], - window = 4, - ) -msft_ohlc.join(msft_rsi) -``` - -![RSI as Raw Data](https://user-images.githubusercontent.com/85772166/200148404-b9d7907d-a489-4a4f-8236-f2dca176da7d.png "RSI as Raw Data") - -Other functions, like `obv`, require OHLC data. The code block below adds a new column to the OHLC DataFrame, on-balance volume: - -```python -msft_obv = openbb.common.ta.obv(data = msft_ohlc).convert_dtypes() -msft_ohlc = msft_ohlc.join(msft_obv) -``` - -![openbb.common.ta.obv](https://user-images.githubusercontent.com/85772166/200148418-4215776d-cb40-4b47-a107-42bbaa3d9136.png) - -The average true range (ATR) is a measurement of volatility. By adjusting the value for `window`, to 2, the specified period for measuring the volatility is now set for two-weeks. - -```python -msft_atr = openbb.common.ta.atr( - data = msft_ohlc, - window = 2, - mamode = 'ema', - ) -msft_ohlc = msft_ohlc.join(msft_atr) -``` - -![openbb.common.ta.atr](https://user-images.githubusercontent.com/85772166/200148441-d95b60c0-92a5-41d1-9ca2-aa8724a95366.png "openbb.common.ta.atr") - -Adding Ketler Channels to the DataFrame, or any other function's output, follows a similar syntax: - -```python -msft_kc = openbb.common.ta.kc( - data = msft_ohlc, - window = 16, - scalar = 2, - mamode = 'ema', - ) -msft_ohlc = msft_ohlc.join(msft_kc) -``` - -![openbb.common.ta.kc](https://user-images.githubusercontent.com/85772166/200148474-a3b6868c-7525-45bc-9ee4-1a86df933f71.png "openbb.common.ta.kc") - -Compiling a DataFrame in this manner is useful for creating technical analysis overlays of price charts. diff --git a/website/content/SDK/common/ta/ad/_index.rst b/website/content/SDK/common/ta/ad/_index.rst deleted file mode 100644 index 05bfa6eea5d..00000000000 --- a/website/content/SDK/common/ta/ad/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.ad( - data: pandas.core.frame.DataFrame, - use_open: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate AD technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of prices with OHLC and Volume - use_open : bool - Whether to use open prices - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.ad( - data: pandas.core.frame.DataFrame, - use_open: bool = False, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot AD technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - use_open : bool - Whether to use open prices in calculation - symbol : str - Ticker symbol - export: str - Format to export data as - external_axes : Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/adosc/_index.rst b/website/content/SDK/common/ta/adosc/_index.rst deleted file mode 100644 index f56f080cffe..00000000000 --- a/website/content/SDK/common/ta/adosc/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.adosc( - data: pandas.core.frame.DataFrame, - use_open: bool = False, - fast: int = 3, - slow: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate AD oscillator technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC prices - use_open : bool - Whether to use open prices - fast: int - Fast value - slow: int - Slow value - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.adosc( - data: pandas.core.frame.DataFrame, - fast: int = 3, - slow: int = 10, - use_open: bool = False, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display AD Osc Indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - use_open : bool - Whether to use open prices in calculation - fast: int - Length of fast window - slow : int - Length of slow window - symbol : str - Stock ticker - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/adx/_index.rst b/website/content/SDK/common/ta/adx/_index.rst deleted file mode 100644 index 283642d1fc2..00000000000 --- a/website/content/SDK/common/ta/adx/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.adx( - data: pandas.core.frame.DataFrame, - window: int = 14, - scalar: int = 100, - drift: int = 1, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- ADX technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe with OHLC price data - window: int - Length of window - scalar: int - Scalar variable - drift: int - Drift variable - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with adx indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.adx( - data: pandas.core.frame.DataFrame, - window: int = 14, - scalar: int = 100, - drift: int = 1, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot ADX indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe with OHLC price data - window : int - Length of window - scalar : int - Scalar variable - drift : int - Drift variable - symbol : str - Ticker - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/aroon/_index.rst b/website/content/SDK/common/ta/aroon/_index.rst deleted file mode 100644 index 5f88fa8df12..00000000000 --- a/website/content/SDK/common/ta/aroon/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.aroon( - data: pandas.core.frame.DataFrame, - window: int = 25, - scalar: int = 100, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Aroon technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe with OHLC price data - window : int - Length of window - scalar : int - Scalar variable - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with aroon indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.aroon( - data: pandas.core.frame.DataFrame, - window: int = 25, - scalar: int = 100, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot Aroon indicator -

- -* **Parameters** - - data: pd.DataFrame - Dataframe with OHLC price data - window: int - Length of window - symbol: str - Ticker - scalar: int - Scalar variable - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/atr/_index.rst b/website/content/SDK/common/ta/atr/_index.rst deleted file mode 100644 index baaf06d38f3..00000000000 --- a/website/content/SDK/common/ta/atr/_index.rst +++ /dev/null @@ -1,91 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.atr( - data: pandas.core.frame.DataFrame, - window: int = 14, - mamode: str = 'ema', - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Average True Range -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - window : int - Length of window - mamode: str - Type of filter - offset : int - Offset value - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of atr - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.atr( - data: pandas.core.frame.DataFrame, - symbol: str = '', - window: int = 14, - mamode: str = 'sma', - offset: int = 0, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show ATR -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - symbol : str - Ticker symbol - window : int - Length of window to calculate upper channel - export : str - Format of export file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/bbands/_index.rst b/website/content/SDK/common/ta/bbands/_index.rst deleted file mode 100644 index 0a2a81bd1ea..00000000000 --- a/website/content/SDK/common/ta/bbands/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.bbands( - data: pandas.core.frame.DataFrame, - window: int = 15, - n_std: float = 2, - mamode: str = 'ema', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate Bollinger Bands -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - window : int - Length of window to calculate BB - n_std : float - Number of standard deviations to show - mamode : str - Method of calculating average - chart: bool - Flag to display chart - - -* **Returns** - - df_ta: pd.DataFrame - Dataframe of bollinger band data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.bbands( - data: pandas.core.frame.DataFrame, - symbol: str = '', - window: int = 15, - n_std: float = 2, - mamode: str = 'sma', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show bollinger bands -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - symbol : str - Ticker symbol - window : int - Length of window to calculate BB - n_std : float - Number of standard deviations to show - mamode : str - Method of calculating average - export : str - Format of export file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/cci/_index.rst b/website/content/SDK/common/ta/cci/_index.rst deleted file mode 100644 index 8d0c8173310..00000000000 --- a/website/content/SDK/common/ta/cci/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.cci( - data: pandas.core.frame.DataFrame, - window: int = 14, - scalar: float = 0.0015, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Commodity channel index -

- -* **Parameters** - - high_vals: pd.Series - High values - low_values: pd.Series - Low values - close-values: pd.Series - Close values - window: int - Length of window - scalar: float - Scalar variable - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.cci( - data: pandas.core.frame.DataFrame, - window: int = 14, - scalar: float = 0.0015, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display CCI Indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC - window : int - Length of window - scalar : float - Scalar variable - symbol : str - Stock ticker - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/cg/_index.rst b/website/content/SDK/common/ta/cg/_index.rst deleted file mode 100644 index 873b7bc697b..00000000000 --- a/website/content/SDK/common/ta/cg/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.cg( - values: pandas.core.series.Series, - window: int, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Center of gravity -

- -* **Parameters** - - values: pd.DataFrame - Data to use with close being titled values - window: int - Length for indicator window - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.cg( - data: pandas.core.series.Series, - window: int = 14, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display center of gravity Indicator -

- -* **Parameters** - - data : pd.Series - Series of values - window : int - Length of window - symbol : str - Stock ticker - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/donchian/_index.rst b/website/content/SDK/common/ta/donchian/_index.rst deleted file mode 100644 index 4f4961a9099..00000000000 --- a/website/content/SDK/common/ta/donchian/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.donchian( - data: pandas.core.frame.DataFrame, - upper_length: int = 20, - lower_length: int = 20, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate Donchian Channels -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - upper_length : int - Length of window to calculate upper channel - lower_length : int - Length of window to calculate lower channel - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of upper and lower channels - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.donchian( - data: pandas.core.frame.DataFrame, - symbol: str = '', - upper_length: int = 20, - lower_length: int = 20, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show donchian channels -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - symbol : str - Ticker symbol - upper_length : int - Length of window to calculate upper channel - lower_length : int - Length of window to calculate lower channel - export : str - Format of export file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/ema/_index.rst b/website/content/SDK/common/ta/ema/_index.rst deleted file mode 100644 index 538e49410a8..00000000000 --- a/website/content/SDK/common/ta/ema/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.ema( - data: pandas.core.series.Series, - length: int = 50, - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets exponential moving average (EMA) for stock -

- -* **Parameters** - - data: pd.Series - Dataframe of dates and prices - length: int - Length of EMA window - offset: int - Length of offset - -* **Returns** - - pd.DataFrame - Dataframe containing prices and EMA diff --git a/website/content/SDK/common/ta/fib/_index.rst b/website/content/SDK/common/ta/fib/_index.rst deleted file mode 100644 index 4feb085dc18..00000000000 --- a/website/content/SDK/common/ta/fib/_index.rst +++ /dev/null @@ -1,103 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.fib( - data: pandas.core.frame.DataFrame, - limit: int = 120, - start_date: Any = None, - end_date: Any = None, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas._libs.tslibs.timestamps.Timestamp, pandas._libs.tslibs.timestamps.Timestamp, float, float] -{{< /highlight >}} - -.. raw:: html - -

- Calculate Fibonacci levels -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of prices - limit : int - Days to look back for retracement - start_date : Any - Custom start date for retracement - end_date : Any - Custom end date for retracement - chart: bool - Flag to display chart - - -* **Returns** - - df : pd.DataFrame - Dataframe of fib levels - min_date: pd.Timestamp - Date of min point - max_date: pd.Timestamp: - Date of max point - min_pr: float - Price at min point - max_pr: float - Price at max point - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.fib( - data: pandas.core.frame.DataFrame, - limit: int = 120, - start_date: Optional[str] = None, - end_date: Optional[str] = None, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Calculate fibonacci retracement levels -

- -* **Parameters** - - data: pd.DataFrame - OHLC data - limit: int - Days to lookback - start_date: Optional[str, None] - User picked date for starting retracement - end_date: Optional[str, None] - User picked date for ending retracement - symbol: str - Ticker symbol - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/fisher/_index.rst b/website/content/SDK/common/ta/fisher/_index.rst deleted file mode 100644 index 43c07d2bf29..00000000000 --- a/website/content/SDK/common/ta/fisher/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.fisher( - data: pandas.core.frame.DataFrame, - window: int = 14, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Fisher Transform -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC prices - window: int - Length for indicator window - chart: bool - Flag to display chart - - -* **Returns** - - df_ta: pd.DataFrame - Dataframe of technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.fisher( - data: pandas.core.frame.DataFrame, - window: int = 14, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Fisher Indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC prices - window : int - Length of window - symbol : str - Ticker string - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/hma/_index.rst b/website/content/SDK/common/ta/hma/_index.rst deleted file mode 100644 index 63a6356c8f7..00000000000 --- a/website/content/SDK/common/ta/hma/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.hma( - data: pandas.core.series.Series, - length: int = 50, - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets hull moving average (HMA) for stock -

- -* **Parameters** - - data: pd.Series - Dataframe of dates and prices - length: int - Length of SMA window - offset: int - Length of offset - -* **Returns** - - df_ta: pd.DataFrame - Dataframe containing prices and HMA diff --git a/website/content/SDK/common/ta/kc/_index.rst b/website/content/SDK/common/ta/kc/_index.rst deleted file mode 100644 index 29bbb562f20..00000000000 --- a/website/content/SDK/common/ta/kc/_index.rst +++ /dev/null @@ -1,101 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.kc( - data: pandas.core.frame.DataFrame, - window: int = 20, - scalar: float = 2, - mamode: str = 'ema', - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Keltner Channels -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of ohlc prices - window : int - Length of window - scalar: float - Scalar value - mamode: str - Type of filter - offset : int - Offset value - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of rolling kc - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.kc( - data: pandas.core.frame.DataFrame, - window: int = 20, - scalar: float = 2, - mamode: str = 'ema', - offset: int = 0, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View Keltner Channels Indicator -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of ohlc prices - window: int - Length of window - scalar: float - Scalar value - mamode: str - Type of filter - offset: int - Offset value - symbol: str - Ticker symbol - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/ma/_index.rst b/website/content/SDK/common/ta/ma/_index.rst deleted file mode 100644 index 22dd01a18ce..00000000000 --- a/website/content/SDK/common/ta/ma/_index.rst +++ /dev/null @@ -1,99 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.ma( - data: pandas.core.series.Series, - window: List[int] = None, - offset: int = 0, - ma_type: str = 'EMA', - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Plots MA technical indicator -

- -* **Parameters** - - data: pd.Series - Series of prices - window: List[int] - Length of EMA window - offset: int - Offset variable - ma_type: str - Type of moving average. Either "EMA" "ZLMA" or "SMA" - symbol: str - Ticker - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.ma( - data: pandas.core.series.Series, - window: List[int] = None, - offset: int = 0, - ma_type: str = 'EMA', - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Plots MA technical indicator -

- -* **Parameters** - - data: pd.Series - Series of prices - window: List[int] - Length of EMA window - offset: int - Offset variable - ma_type: str - Type of moving average. Either "EMA" "ZLMA" or "SMA" - symbol: str - Ticker - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/macd/_index.rst b/website/content/SDK/common/ta/macd/_index.rst deleted file mode 100644 index 31b334a9ab2..00000000000 --- a/website/content/SDK/common/ta/macd/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.macd( - data: pandas.core.series.Series, - n_fast: int = 12, - n_slow: int = 26, - n_signal: int = 9, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Moving average convergence divergence -

- -* **Parameters** - - data: pd.Series - Values for calculation - n_fast : int - Fast period - n_slow : int - Slow period - n_signal : int - Signal period - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.macd( - data: pandas.core.series.Series, - n_fast: int = 12, - n_slow: int = 26, - n_signal: int = 9, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot MACD signal -

- -* **Parameters** - - data : pd.Series - Values to input - n_fast : int - Fast period - n_slow : int - Slow period - n_signal : int - Signal period - symbol : str - Stock ticker - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/obv/_index.rst b/website/content/SDK/common/ta/obv/_index.rst deleted file mode 100644 index 3a794a1a72a..00000000000 --- a/website/content/SDK/common/ta/obv/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.obv( - data: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- On Balance Volume -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of OHLC prices - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.obv( - data: pandas.core.frame.DataFrame, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot OBV technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of ohlc prices - symbol : str - Ticker - export: str - Format to export data as - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/rsi/_index.rst b/website/content/SDK/common/ta/rsi/_index.rst deleted file mode 100644 index e43eeec1d8a..00000000000 --- a/website/content/SDK/common/ta/rsi/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.rsi( - data: pandas.core.series.Series, - window: int = 14, - scalar: float = 100, - drift: int = 1, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Relative strength index -

- -* **Parameters** - - data: pd.Series - Dataframe of prices - window: int - Length of window - scalar: float - Scalar variable - drift: int - Drift variable - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.rsi( - data: pandas.core.series.Series, - window: int = 14, - scalar: float = 100.0, - drift: int = 1, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display RSI Indicator -

- -* **Parameters** - - data : pd.Series - Values to input - window : int - Length of window - scalar : float - Scalar variable - drift : int - Drift variable - symbol : str - Stock ticker - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/sma/_index.rst b/website/content/SDK/common/ta/sma/_index.rst deleted file mode 100644 index df30881d3eb..00000000000 --- a/website/content/SDK/common/ta/sma/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.sma( - data: pandas.core.series.Series, - length: int = 50, - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets simple moving average (EMA) for stock -

- -* **Parameters** - - data: pd.Series - Dataframe of dates and prices - length: int - Length of SMA window - offset: int - Length of offset - -* **Returns** - - pd.DataFrame - Dataframe containing prices and SMA diff --git a/website/content/SDK/common/ta/stoch/_index.rst b/website/content/SDK/common/ta/stoch/_index.rst deleted file mode 100644 index 85d6999f7d7..00000000000 --- a/website/content/SDK/common/ta/stoch/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.stoch( - data: pandas.core.frame.DataFrame, - fastkperiod: int = 14, - slowdperiod: int = 3, - slowkperiod: int = 3, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Stochastic oscillator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC prices - fastkperiod : int - Fast k period - slowdperiod : int - Slow d period - slowkperiod : int - Slow k period - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of technical indicator - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.stoch( - data: pandas.core.frame.DataFrame, - fastkperiod: int = 14, - slowdperiod: int = 3, - slowkperiod: int = 3, - symbol: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Plot stochastic oscillator signal -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC prices - fastkperiod : int - Fast k period - slowdperiod : int - Slow d period - slowkperiod : int - Slow k period - symbol : str - Stock ticker symbol - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/vwap/_index.rst b/website/content/SDK/common/ta/vwap/_index.rst deleted file mode 100644 index bf07df3d4b9..00000000000 --- a/website/content/SDK/common/ta/vwap/_index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.vwap( - data: pandas.core.series.Series, - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets volume weighted average price (VWAP) -

- -* **Parameters** - - data: pd.DataFrame - Dataframe of dates and prices - offset: int - Length of offset - chart: bool - Flag to display chart - - -* **Returns** - - df_vwap: pd.DataFrame - Dataframe with VWAP data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -common.ta.vwap( - data: pandas.core.frame.DataFrame, - symbol: str = '', - start_date: str = None, - end_date: str = None, - offset: int = 0, - interval: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plots VWMA technical indicator -

- -* **Parameters** - - data : pd.DataFrame - Dataframe of OHLC prices - symbol : str - Ticker - offset : int - Offset variable - start_date: datetime - Start date to get data from with - end_date: datetime - End date to get data from with - interval : str - Interval of data - export : str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/common/ta/wma/_index.rst b/website/content/SDK/common/ta/wma/_index.rst deleted file mode 100644 index 4a4f83578cf..00000000000 --- a/website/content/SDK/common/ta/wma/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.wma( - data: pandas.core.series.Series, - length: int = 50, - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets weighted moving average (WMA) for stock -

- -* **Parameters** - - data: pd.Series - Dataframe of dates and prices - length: int - Length of SMA window - offset: int - Length of offset - -* **Returns** - - df_ta: pd.DataFrame - Dataframe containing prices and WMA diff --git a/website/content/SDK/common/ta/zlma/_index.rst b/website/content/SDK/common/ta/zlma/_index.rst deleted file mode 100644 index db2e85fa827..00000000000 --- a/website/content/SDK/common/ta/zlma/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -common.ta.zlma( - data: pandas.core.series.Series, - length: int = 50, - offset: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets zero-lagged exponential moving average (ZLEMA) for stock -

- -* **Parameters** - - data: pd.Series - Dataframe of dates and prices - length: int - Length of EMA window - offset: int - Length of offset - -* **Returns** - - df_ta: pd.DataFrame - Dataframe containing prices and EMA diff --git a/website/content/SDK/crypto/_index.md b/website/content/SDK/crypto/_index.md deleted file mode 100644 index 7016632555c..00000000000 --- a/website/content/SDK/crypto/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: crypto -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/candles/_index.rst b/website/content/SDK/crypto/candles/_index.rst deleted file mode 100644 index 6c1b7db2e80..00000000000 --- a/website/content/SDK/crypto/candles/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.candles( - candles_df: 'pd.DataFrame', - volume: 'bool' = True, - ylabel: 'str' = '', - title: 'str' = '', - external_axes: 'list[plt.Axes] | None' = None, yscale: 'str' = 'linear', - chart: bool = False, -) -> 'None' -{{< /highlight >}} - -.. raw:: html - -

- Plot candle chart from dataframe. [Source: Binance] -

- -* **Parameters** - - candles_df: pd.DataFrame - Dataframe containing time and OHLCV - volume: bool - If volume data shall be plotted, by default True - ylabel: str - Y-label of the graph, by default "" - title: str - Title of graph, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - yscale : str - Scaling for y axis. Either linear or log diff --git a/website/content/SDK/crypto/chart/_index.rst b/website/content/SDK/crypto/chart/_index.rst deleted file mode 100644 index b332cd1d51c..00000000000 --- a/website/content/SDK/crypto/chart/_index.rst +++ /dev/null @@ -1,87 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.chart( - prices_df: 'pd.DataFrame', - to_symbol: 'str' = '', - from_symbol: 'str' = '', - source: 'str' = '', - exchange: 'str' = '', - interval: 'str' = '', - external_axes: 'list[plt.Axes] | None' = None, yscale: 'str' = 'linear', - chart: bool = False, -) -> 'None' -{{< /highlight >}} - -.. raw:: html - -

- Load data for Technical Analysis -

- -* **Parameters** - - prices_df: pd.DataFrame - Cryptocurrency - to_symbol: str - Coin (only used for chart title), by default "" - from_symbol: str - Currency (only used for chart title), by default "" - yscale: str - Scale for y axis of plot Either linear or log - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.chart( - prices_df: 'pd.DataFrame', - to_symbol: 'str' = '', - from_symbol: 'str' = '', - source: 'str' = '', - exchange: 'str' = '', - interval: 'str' = '', - external_axes: 'list[plt.Axes] | None' = None, yscale: 'str' = 'linear', - chart: bool = False, -) -> 'None' -{{< /highlight >}} - -.. raw:: html - -

- Load data for Technical Analysis -

- -* **Parameters** - - prices_df: pd.DataFrame - Cryptocurrency - to_symbol: str - Coin (only used for chart title), by default "" - from_symbol: str - Currency (only used for chart title), by default "" - yscale: str - Scale for y axis of plot Either linear or log - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/_index.md b/website/content/SDK/crypto/dd/_index.md deleted file mode 100644 index ed1d5e259d6..00000000000 --- a/website/content/SDK/crypto/dd/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: dd -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/dd/active/_index.rst b/website/content/SDK/crypto/dd/active/_index.rst deleted file mode 100644 index 7f1140c1d17..00000000000 --- a/website/content/SDK/crypto/dd/active/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.active( - symbol: str, - interval: str = '24h', - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns active addresses of a certain symbol - [Source: https://glassnode.com] -

- -* **Parameters** - - symbol : str - Asset to search active addresses (e.g., BTC) - interval : str - Interval frequency (e.g., 24h) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - active addresses over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.active( - symbol: str, - start_date: str = '2010-01-01', - end_date: str = None, - interval: str = '24h', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display active addresses of a certain symbol over time - [Source: https://glassnode.org] -

- -* **Parameters** - - symbol : str - Asset to search active addresses (e.g., BTC) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - interval : str - Interval frequency (possible values are: 24h, 1w, 1month) - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/all_binance_trading_pairs/_index.rst b/website/content/SDK/crypto/dd/all_binance_trading_pairs/_index.rst deleted file mode 100644 index 52bd1ab9041..00000000000 --- a/website/content/SDK/crypto/dd/all_binance_trading_pairs/_index.rst +++ /dev/null @@ -1,29 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.all_binance_trading_pairs() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns all available pairs on Binance in DataFrame format. DataFrame has 3 columns symbol, baseAsset, quoteAsset - example row: ETHBTC | ETH | BTC - [Source: Binance] -

- -* **Returns** - - pd.DataFrame - All available pairs on Binance - Columns: symbol, baseAsset, quoteAsset diff --git a/website/content/SDK/crypto/dd/balance/_index.rst b/website/content/SDK/crypto/dd/balance/_index.rst deleted file mode 100644 index b198efa2d20..00000000000 --- a/website/content/SDK/crypto/dd/balance/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.balance( - from_symbol: str, - to_symbol: str = 'USDT', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get account holdings for asset. [Source: Binance] -

- -* **Parameters** - - from_symbol: str - Cryptocurrency - to_symbol: str - Cryptocurrency - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with account holdings for an asset - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.balance( - from_symbol: str, - to_symbol: str = 'USDT', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get account holdings for asset. [Source: Binance] -

- -* **Parameters** - - from_symbol: str - Cryptocurrency - to_symbol: str - Cryptocurrency - export: str - Export dataframe data to csv,json,xlsx - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/basic/_index.rst b/website/content/SDK/crypto/dd/basic/_index.rst deleted file mode 100644 index 64d78fe24f6..00000000000 --- a/website/content/SDK/crypto/dd/basic/_index.rst +++ /dev/null @@ -1,73 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.basic( - symbol: str = 'btc-bitcoin', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Basic coin information [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Coin id - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Metric, Value - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.basic( - symbol: str = 'BTC', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get basic information for coin. Like: - name, symbol, rank, type, description, platform, proof_type, contract, tags, parent. - [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Cryptocurrency symbol (e.g. BTC) - export: str - Export dataframe data to csv,json,xlsx - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/binance_available_quotes_for_each_coin/_index.rst b/website/content/SDK/crypto/dd/binance_available_quotes_for_each_coin/_index.rst deleted file mode 100644 index 8e243deb563..00000000000 --- a/website/content/SDK/crypto/dd/binance_available_quotes_for_each_coin/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.binance_available_quotes_for_each_coin() -> dict -{{< /highlight >}} - -.. raw:: html - -

- Helper methods that for every coin available on Binance add all quote assets. [Source: Binance] -

- -* **Returns** - - dict: - All quote assets for given coin - {'ETH' : ['BTC', 'USDT' ...], 'UNI' : ['ETH', 'BTC','BUSD', ...] diff --git a/website/content/SDK/crypto/dd/book/_index.rst b/website/content/SDK/crypto/dd/book/_index.rst deleted file mode 100644 index 173adb9ebea..00000000000 --- a/website/content/SDK/crypto/dd/book/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.book( - from_symbol: str, - limit: int = 100, - to_symbol: str = 'USDT', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get order book for currency. [Source: Binance] -

- -* **Parameters** - - from_symbol: *str* - Cryptocurrency symbol - limit: *int* - Limit parameter. Adjusts the weight - to_symbol: *str* - Quote currency (what to view coin vs) - chart: *bool* - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing orderbook - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.book( - from_symbol: str, - limit: int = 100, - to_symbol: str = 'USDT', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get order book for currency. [Source: Binance] -

- -* **Parameters** - - from_symbol: *str* - Cryptocurrency symbol - limit: *int* - Limit parameter. Adjusts the weight - to_symbol: *str* - Quote currency (what to view coin vs) - export: *str* - Export dataframe data to csv,json,xlsx - external_axes : Optional[List[plt.Axes]] - External axes (1 axis is expected in the list), by default None - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/btcrb/_index.rst b/website/content/SDK/crypto/dd/btcrb/_index.rst deleted file mode 100644 index 9d9b857d82f..00000000000 --- a/website/content/SDK/crypto/dd/btcrb/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.btcrb( - start_date: str = '2010-01-01', - end_date: str = '2022-11-07', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get bitcoin price data - [Price data from source: https://glassnode.com] - [Inspired by: https://blockchaincenter.net] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: *bool* - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.btcrb( - start_date: str = '2010-01-01', - end_date: str = '2022-11-07', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays bitcoin rainbow chart - [Price data from source: https://glassnode.com] - [Inspired by: https://blockchaincenter.net] -

- -* **Parameters** - - start_date : int - Initial date, format YYYY-MM-DD - end_date : int - Final date, format YYYY-MM-DD - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/candles/_index.rst b/website/content/SDK/crypto/dd/candles/_index.rst deleted file mode 100644 index e8097564168..00000000000 --- a/website/content/SDK/crypto/dd/candles/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.candles( - symbol: str, - interval: str = '24h', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get candles for chosen trading pair and time interval. [Source: Coinbase] -

- -* **Parameters** - - symbol: str - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - interval: str - Time interval. One from 1min, 5min ,15min, 1hour, 6hour, 24hour - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Candles for chosen trading pair. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.candles( - symbol: str, - interval: str = '24h', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get candles for chosen trading pair and time interval. [Source: Coinbase] -

- -* **Parameters** - - symbol: str - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - interval: str - Time interval. One from 1m, 5m ,15m, 1h, 6h, 24h - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/cbbook/_index.rst b/website/content/SDK/crypto/dd/cbbook/_index.rst deleted file mode 100644 index 108392776bd..00000000000 --- a/website/content/SDK/crypto/dd/cbbook/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.cbbook( - symbol: str, - chart: bool = False, -) -> Tuple[numpy.ndarray, numpy.ndarray, str, dict] -{{< /highlight >}} - -.. raw:: html - -

- Get orders book for chosen trading pair. [Source: Coinbase] -

- -* **Parameters** - - symbol: *str* - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - chart: *bool* - Flag to display chart - - -* **Returns** - - Tuple[np.array, np.array, str, dict] - array with bid prices, order sizes and cumulative order sizes - array with ask prices, order sizes and cumulative order sizes - trading pair - dict with raw data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.cbbook( - symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays a list of available currency pairs for trading. [Source: Coinbase] -

- -* **Parameters** - - symbol: *str* - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - export : *str* - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/change/_index.rst b/website/content/SDK/crypto/dd/change/_index.rst deleted file mode 100644 index 449e0d15534..00000000000 --- a/website/content/SDK/crypto/dd/change/_index.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.change( - symbol: str, - exchange: str = 'binance', - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns 30d change of the supply held in exchange wallets of a certain symbol. - [Source: https://glassnode.com] -

- -* **Parameters** - - symbol : str - Asset symbol to search supply (e.g., BTC) - exchange : str - Exchange to check net position change (e.g., binance) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - supply change in exchange wallets of a certain symbol over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.change( - symbol: str, - exchange: str = 'binance', - start_date: str = '2010-01-01', - end_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display 30d change of the supply held in exchange wallets. - [Source: https://glassnode.org] -

- -* **Parameters** - - symbol : str - Asset to search active addresses (e.g., BTC) - exchange : str - Exchange to check net position change (possible values are: aggregated, binance, - bittrex, coinex, gate.io, gemini, huobi, kucoin, poloniex, bibox, bigone, bitfinex, - hitbtc, kraken, okex, bithumb, zb.com, cobinhood, bitmex, bitstamp, coinbase, coincheck, luno) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/check_valid_binance_str/_index.rst b/website/content/SDK/crypto/dd/check_valid_binance_str/_index.rst deleted file mode 100644 index 6d368ebfabe..00000000000 --- a/website/content/SDK/crypto/dd/check_valid_binance_str/_index.rst +++ /dev/null @@ -1,24 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.check_valid_binance_str( - symbol: str, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Check if symbol is in defined binance. [Source: Binance -

diff --git a/website/content/SDK/crypto/dd/close/_index.rst b/website/content/SDK/crypto/dd/close/_index.rst deleted file mode 100644 index 24b6ead97e1..00000000000 --- a/website/content/SDK/crypto/dd/close/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.close( - symbol: str, - start_date: str = '2010-01-01', - end_date: str = None, - print_errors: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns the price of a cryptocurrency - [Source: https://glassnode.com] -

- -* **Parameters** - - symbol : str - Crypto to check close price (BTC or ETH) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - print_errors: bool - Flag to print errors. Default: True - -* **Returns** - - pd.DataFrame - price over time diff --git a/website/content/SDK/crypto/dd/coin/_index.rst b/website/content/SDK/crypto/dd/coin/_index.rst deleted file mode 100644 index ecbe88000a5..00000000000 --- a/website/content/SDK/crypto/dd/coin/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.coin( - symbol: str = 'eth-ethereum', - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Get coin by id [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - id of coin from coinpaprika e.g. Ethereum - > 'eth-ethereum' - -* **Returns** - - dict - Coin response diff --git a/website/content/SDK/crypto/dd/coin_market_chart/_index.rst b/website/content/SDK/crypto/dd/coin_market_chart/_index.rst deleted file mode 100644 index 91c3daaa19a..00000000000 --- a/website/content/SDK/crypto/dd/coin_market_chart/_index.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.coin_market_chart( - symbol: str = '', - vs_currency: str = 'usd', - days: int = 30, - **kwargs: Any, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get prices for given coin. [Source: CoinGecko] -

- -* **Parameters** - - vs_currency: str - currency vs which display data - days: int - number of days to display the data - kwargs - unspecified keyword arguments - -* **Returns** - - pandas.DataFrame - Prices for given coin - Columns: time, price, currency diff --git a/website/content/SDK/crypto/dd/eb/_index.rst b/website/content/SDK/crypto/dd/eb/_index.rst deleted file mode 100644 index aa27b86252c..00000000000 --- a/website/content/SDK/crypto/dd/eb/_index.rst +++ /dev/null @@ -1,99 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.eb( - symbol: str, - exchange: str = 'binance', - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns the total amount of coins held on exchange addresses in units and percentage. - [Source: https://glassnode.com] -

- -* **Parameters** - - symbol : str - Asset to search active addresses (e.g., BTC) - exchange : str - Exchange to check net position change (e.g., binance) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - total amount of coins in units/percentage and symbol price over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.eb( - symbol: str, - exchange: str = 'binance', - start_date: str = '2010-01-01', - end_date: str = None, - percentage: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display total amount of coins held on exchange addresses in units and percentage. - [Source: https://glassnode.org] -

- -* **Parameters** - - symbol : str - Asset to search active addresses (e.g., BTC) - exchange : str - Exchange to check net position change (possible values are: aggregated, binance, bittrex, - coinex, gate.io, gemini, huobi, kucoin, poloniex, bibox, bigone, bitfinex, hitbtc, kraken, - okex, bithumb, zb.com, cobinhood, bitmex, bitstamp, coinbase, coincheck, luno) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - percentage : bool - Show percentage instead of stacked value. - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/events/_index.rst b/website/content/SDK/crypto/dd/events/_index.rst deleted file mode 100644 index f3fd454f0c0..00000000000 --- a/website/content/SDK/crypto/dd/events/_index.rst +++ /dev/null @@ -1,109 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.events( - symbol: str = 'eth-ethereum', sortby='date', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get all events related to given coin like conferences, start date of futures trading etc. - [Source: CoinPaprika] - - Example of response from API: - - .. code-block:: json - - { - "id": "17398-cme-april-first-trade", - "date": "2018-04-02T00:00:00Z", - "date_to": "string", - "name": "CME: April First Trade", - "description": "First trade of Bitcoin futures contract for April 2018.", - "is_conference": false, - "link": "http://www.cmegroup.com/trading/equity-index/us-index/bitcoin_product_calendar_futures.html", - "proof_image_link": "https://static.coinpaprika.com/storage/cdn/event_images/16635.jpg" - } -

- -* **Parameters** - - symbol: str - id of coin from coinpaprika e.g. Ethereum - > 'eth-ethereum' - sortby: str - Key by which to sort data. Every column name is valid - (see for possible values: - https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1events/get). - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Events found for given coin - Columns: id, date , date_to, name, description, is_conference, link, proof_image_link - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.events( - symbol: str = 'BTC', - limit: int = 10, - sortby: str = 'date', - ascend: bool = False, - links: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get all events for given coin id. [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Cryptocurrency symbol (e.g. BTC) - limit: int - Number of records to display - sortby: str - Key by which to sort data. Every column name is valid - (see for possible values: - https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1events/get). - ascend: bool - Flag to sort data ascending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/ex/_index.rst b/website/content/SDK/crypto/dd/ex/_index.rst deleted file mode 100644 index 6c1e8442bcd..00000000000 --- a/website/content/SDK/crypto/dd/ex/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.ex( - symbol: str = 'eth-ethereum', - sortby: str = 'adjusted_volume_24h_share', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get all exchanges for given coin id. [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Identifier of Coin from CoinPaprika - sortby: str - Key by which to sort data. Every column name is valid (see for possible values: - https://api.coinpaprika.com/v1). - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - All exchanges for given coin - Columns: id, name, adjusted_volume_24h_share, fiats - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.ex( - symbol: str = 'btc', - limit: int = 10, - sortby: str = 'adjusted_volume_24h_share', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get all exchanges for given coin id. [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Cryptocurrency symbol (e.g. BTC) - limit: int - Number of records to display - sortby: str - Key by which to sort data. Every column name is valid (see for possible values: - https://api.coinpaprika.com/v1). - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/exchanges/_index.rst b/website/content/SDK/crypto/dd/exchanges/_index.rst deleted file mode 100644 index c638e1b101c..00000000000 --- a/website/content/SDK/crypto/dd/exchanges/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.exchanges() -{{< /highlight >}} - -.. raw:: html - -

- Helper method to get all the exchanges supported by ccxt - [Source: https://docs.ccxt.com/en/latest/manual.html] - - Parameters - ---------- -

- -* **Parameters** - - - -* **Returns** - - List[str] - list of all the exchanges supported by ccxt diff --git a/website/content/SDK/crypto/dd/fr/_index.rst b/website/content/SDK/crypto/dd/fr/_index.rst deleted file mode 100644 index c05c91d5d45..00000000000 --- a/website/content/SDK/crypto/dd/fr/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.fr( - symbol: str, - chart: bool = False, -) -> Tuple[str, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Returns coin fundraising - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check fundraising - chart: bool - Flag to display chart - - -* **Returns** - - str - launch summary - pd.DataFrame - Sales rounds - pd.DataFrame - Treasury Accounts - pd.DataFrame - Metric Value launch details - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.fr( - symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin fundraising - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check coin fundraising - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/get_mt/_index.rst b/website/content/SDK/crypto/dd/get_mt/_index.rst deleted file mode 100644 index 54c18ea0342..00000000000 --- a/website/content/SDK/crypto/dd/get_mt/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.get_mt( - only_free: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns available messari timeseries - [Source: https://messari.io/] -

- -* **Parameters** - - only_free : bool - Display only timeseries available for free - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - available timeseries - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.get_mt( - limit: int = 10, - query: str = '', - only_free: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display messari timeseries list - [Source: https://messari.io/] -

- -* **Parameters** - - limit : int - number to show - query : str - Query to search across all messari timeseries - only_free : bool - Display only timeseries available for free - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/gh/_index.rst b/website/content/SDK/crypto/dd/gh/_index.rst deleted file mode 100644 index e24535d20f1..00000000000 --- a/website/content/SDK/crypto/dd/gh/_index.rst +++ /dev/null @@ -1,102 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.gh( - symbol: str, - dev_activity: bool = False, - interval: str = '1d', - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns a list of developer activity for a given coin and time interval. - - [Source: https://santiment.net/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check github activity - dev_activity: bool - Whether to filter only for development activity - interval : str - Interval frequency (e.g., 1d) - start_date : int - Initial date like string (e.g., 2021-10-01) - end_date : int - End date like string (e.g., 2021-10-01) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - developer activity over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.gh( - symbol: str, - start_date: str = None, - dev_activity: bool = False, - end_date: str = None, - interval: str = '1d', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Returns a list of github activity for a given coin and time interval. - - [Source: https://santiment.net/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check github activity - dev_activity: bool - Whether to filter only for development activity - start_date : int - Initial date like string (e.g., 2021-10-01) - end_date : int - End date like string (e.g., 2021-10-01) - interval : str - Interval frequency (some possible values are: 1h, 1d, 1w) - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/gov/_index.rst b/website/content/SDK/crypto/dd/gov/_index.rst deleted file mode 100644 index d1a1916ba70..00000000000 --- a/website/content/SDK/crypto/dd/gov/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.gov( - symbol: str, - chart: bool = False, -) -> Tuple[str, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Returns coin governance - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check governance - chart: bool - Flag to display chart - - -* **Returns** - - str - governance summary - pd.DataFrame - Metric Value with governance details - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.gov( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin governance - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check coin governance - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/headlines/_index.rst b/website/content/SDK/crypto/dd/headlines/_index.rst deleted file mode 100644 index 6101bc42fd2..00000000000 --- a/website/content/SDK/crypto/dd/headlines/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.headlines( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets Sentiment analysis provided by FinBrain's API [Source: finbrain] -

- -* **Parameters** - - symbol : str - Ticker symbol to get the sentiment analysis from - chart: bool - Flag to display chart - - -* **Returns** - - DataFrame() - Empty if there was an issue with data retrieval - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.headlines( - symbol: str, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Sentiment analysis from FinBrain for Cryptocurrencies - - FinBrain collects the news headlines from 15+ major financial news - sources on a daily basis and analyzes them to generate sentiment scores - for more than 4500 US stocks. FinBrain Technologies develops deep learning - algorithms for financial analysis and prediction, which currently serves - traders from more than 150 countries all around the world. - [Source: https://finbrain.tech] -

- -* **Parameters** - - symbol: str - Cryptocurrency - raw : False - Display raw table data - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/inv/_index.rst b/website/content/SDK/crypto/dd/inv/_index.rst deleted file mode 100644 index aa49d15e006..00000000000 --- a/website/content/SDK/crypto/dd/inv/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.inv( - symbol: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Returns coin investors - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check investors - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - individuals - pd.DataFrame - organizations - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.inv( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin investors - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check coin investors - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/links/_index.rst b/website/content/SDK/crypto/dd/links/_index.rst deleted file mode 100644 index a5c89b76d6d..00000000000 --- a/website/content/SDK/crypto/dd/links/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.links( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns asset's links - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check links - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - asset links - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.links( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin links - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check links - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/mcapdom/_index.rst b/website/content/SDK/crypto/dd/mcapdom/_index.rst deleted file mode 100644 index 254b8a4a0d1..00000000000 --- a/website/content/SDK/crypto/dd/mcapdom/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.mcapdom( - symbol: str, - interval: str = '1d', - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns market dominance of a coin over time - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check market cap dominance - interval : str - Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) - start_date : int - Initial date like string (e.g., 2021-10-01) - end_date : int - End date like string (e.g., 2021-10-01) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - market dominance percentage over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.mcapdom( - symbol: str, - start_date: str = None, - end_date: str = None, - interval: str = '1d', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display market dominance of a coin over time - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check market cap dominance - start_date : int - Initial date like string (e.g., 2021-10-01) - end_date : int - End date like string (e.g., 2021-10-01) - interval : str - Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/mkt/_index.rst b/website/content/SDK/crypto/dd/mkt/_index.rst deleted file mode 100644 index e949353911b..00000000000 --- a/website/content/SDK/crypto/dd/mkt/_index.rst +++ /dev/null @@ -1,102 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.mkt( - symbol: str = 'eth-ethereum', - quotes: str = 'USD', - sortby: str = 'pct_volume_share', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- All markets for given coin and currency [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Coin Parpika identifier of coin e.g. eth-ethereum - quotes: str - Comma separated list of quotes to return. - Example: quotes=USD,BTC - Allowed values: - BTC, ETH, USD, EUR, PLN, KRW, GBP, CAD, JPY, RUB, TRY, NZD, AUD, CHF, UAH, HKD, SGD, NGN, - PHP, MXN, BRL, THB, CLP, CNY, CZK, DKK, HUF, IDR, ILS, INR, MYR, NOK, PKR, SEK, TWD, ZAR, - VND, BOB, COP, PEN, ARS, ISK - sortby: str - Key by which to sort data. Every column name is valid (see for possible values: - https://api.coinpaprika.com/v1). - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - All markets for given coin and currency - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.mkt( - from_symbol: str = 'BTC', - to_symbol: str = 'USD', - limit: int = 20, - sortby: str = 'pct_volume_share', - ascend: bool = True, - links: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get all markets for given coin id. [Source: CoinPaprika] -

- -* **Parameters** - - from_symbol: str - Cryptocurrency symbol (e.g. BTC) - to_symbol: str - Quoted currency - limit: int - Number of records to display - sortby: str - Key by which to sort data. Every column name is valid (see for possible values: - https://api.coinpaprika.com/v1). - ascend: bool - Flag to sort data ascending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/mt/_index.rst b/website/content/SDK/crypto/dd/mt/_index.rst deleted file mode 100644 index 6a27628905c..00000000000 --- a/website/content/SDK/crypto/dd/mt/_index.rst +++ /dev/null @@ -1,102 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.mt( - symbol: str, - timeseries_id: str, - interval: str = '1d', - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, str] -{{< /highlight >}} - -.. raw:: html - -

- Returns messari timeseries - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check messari timeseries - timeseries_id : str - Messari timeserie id - interval : str - Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) - start : int - Initial date like string (e.g., 2021-10-01) - end : int - End date like string (e.g., 2021-10-01) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - messari timeserie over time - str - timeserie title - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.mt( - symbol: str, - timeseries_id: str, - start_date: str = None, - end_date: str = None, - interval: str = '1d', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display messari timeseries - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check market cap dominance - timeseries_id: str - Obtained by api.crypto.dd.get_mt command - start_date : int - Initial date like string (e.g., 2021-10-01) - end_date : int - End date like string (e.g., 2021-10-01) - interval : str - Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/news/_index.rst b/website/content/SDK/crypto/dd/news/_index.rst deleted file mode 100644 index 768b1635fee..00000000000 --- a/website/content/SDK/crypto/dd/news/_index.rst +++ /dev/null @@ -1,105 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.news( - limit: int = 60, - post_kind: str = 'news', - filter_: Optional[str] = None, - region: str = 'en', - source: Optional[str] = None, - symbol: Optional[str] = None, - sortby: str = 'published_at', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get recent posts from CryptoPanic news aggregator platform. [Source: https://cryptopanic.com/] -

- -* **Parameters** - - limit: int - number of news to fetch - post_kind: str - Filter by category of news. Available values: news or media. - filter\_: Optional[str] - Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol - region: str - Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch), - es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) - sortby: str - Key to sort by. - ascend: bool - Sort in ascend order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with recent news from different sources filtered by provided parameters. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.news( - post_kind: str = 'news', - region: str = 'en', - filter_: Optional[str] = None, - source: Optional[str] = None, - symbol: Optional[str] = None, - limit: int = 25, - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display recent posts from CryptoPanic news aggregator platform. - [Source: https://cryptopanic.com/] -

- -* **Parameters** - - limit: int - number of news to display - post_kind: str - Filter by category of news. Available values: news or media. - filter\_: Optional[str] - Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol - region: str - Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch), - es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) - ascend: bool - Sort in ascending order. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/nonzero/_index.rst b/website/content/SDK/crypto/dd/nonzero/_index.rst deleted file mode 100644 index 7022d6cf7dd..00000000000 --- a/website/content/SDK/crypto/dd/nonzero/_index.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.nonzero( - symbol: str, - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns addresses with non-zero balance of a certain symbol - [Source: https://glassnode.com] -

- -* **Parameters** - - symbol : str - Asset to search (e.g., BTC) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - addresses with non-zero balances - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.nonzero( - symbol: str, - start_date: str = '2010-01-01', - end_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display addresses with non-zero balance of a certain symbol - [Source: https://glassnode.org] -

- -* **Parameters** - - symbol : str - Asset to search (e.g., BTC) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/ob/_index.rst b/website/content/SDK/crypto/dd/ob/_index.rst deleted file mode 100644 index 52b2a371bb8..00000000000 --- a/website/content/SDK/crypto/dd/ob/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.ob( - exchange_id: str, - symbol: str, - to_symbol: str, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Returns orderbook for a coin in a given exchange - [Source: https://docs.ccxt.com/en/latest/manual.html] -

- -* **Parameters** - - exchange_id : str - exchange id - symbol : str - coin symbol - to_symbol : str - currency to compare coin against - chart: bool - Flag to display chart - - -* **Returns** - - Dict with bids and asks - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.ob( - exchange: str, - symbol: str, - to_symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays order book for a coin in a given exchange - [Source: https://docs.ccxt.com/en/latest/manual.html] -

- -* **Parameters** - - exchange : str - exchange id - symbol : str - coin symbol - vs : str - currency to compare coin against - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/ohlc_historical/_index.rst b/website/content/SDK/crypto/dd/ohlc_historical/_index.rst deleted file mode 100644 index b94d85d75e1..00000000000 --- a/website/content/SDK/crypto/dd/ohlc_historical/_index.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.ohlc_historical( - symbol: str = 'eth-ethereum', - quotes: str = 'USD', - days: int = 90, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Open/High/Low/Close values with volume and market_cap. [Source: CoinPaprika] - Request example: https://api.coinpaprika.com/v1/coins/btc-bitcoin/ohlcv/historical?start=2019-01-01&end=2019-01-20 - if the last day is current day it can an change with every request until actual close of the day at 23:59:59 -

- -* **Parameters** - - symbol: str - Paprika coin identifier e.g. eth-ethereum - quotes: str - returned data quote (available values: usd btc) - days: int - time range for chart in days. Maximum 365 - -* **Returns** - - pandas.DataFrame - Open/High/Low/Close values with volume and market_cap. diff --git a/website/content/SDK/crypto/dd/oi/_index.rst b/website/content/SDK/crypto/dd/oi/_index.rst deleted file mode 100644 index 1d0b0fdb8ba..00000000000 --- a/website/content/SDK/crypto/dd/oi/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.oi( - symbol: str, - interval: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns open interest by exchange for a certain symbol - [Source: https://coinglass.github.io/API-Reference/] -

- -* **Parameters** - - symbol : str - Crypto Symbol to search open interest futures (e.g., BTC) - interval : int - Frequency (possible values are: 0 for ALL, 2 for 1H, 1 for 4H, 4 for 12H), by default 0 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - open interest by exchange and price - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.oi( - symbol: str, - interval: int = 0, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays open interest by exchange for a certain cryptocurrency - [Source: https://coinglass.github.io/API-Reference/] -

- -* **Parameters** - - symbol : str - Crypto symbol to search open interest (e.g., BTC) - interval : int - Frequency (possible values are: 0 for ALL, 2 for 1H, 1 for 4H, 4 for 12H), by default 0 - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/pi/_index.rst b/website/content/SDK/crypto/dd/pi/_index.rst deleted file mode 100644 index 25f6f91716b..00000000000 --- a/website/content/SDK/crypto/dd/pi/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.pi( - symbol: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Returns coin product info - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check product info - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Metric, Value with project and technology details - pd.DataFrame - coin public repos - pd.DataFrame - coin audits - pd.DataFrame - coin known exploits/vulns - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.pi( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display project info - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check project info - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/pr/_index.rst b/website/content/SDK/crypto/dd/pr/_index.rst deleted file mode 100644 index cb31a0c02dc..00000000000 --- a/website/content/SDK/crypto/dd/pr/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.pr( - main_coin: str, - to_symbol: Optional[str] = None, - limit: Optional[int] = None, - price: Optional[int] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Fetch data to calculate potential returns of a certain coin. [Source: CoinGecko] -

- -* **Parameters** - - main_coin : str - Coin loaded to check potential returns for (e.g., algorand) - to_symbol : str | None - Coin to compare main_coin with (e.g., bitcoin) - limit : int | None - Number of coins with highest market cap to compare main_coin with (e.g., 5) - price - Target price of main_coin to check potential returns (e.g., 5) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Potential returns data - Columns: Coin, Current Price, Target Coin, Potential Price, Potential Market Cap ($), Change (%) - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.pr( - to_symbol: str, - from_symbol: Optional[str] = None, - limit: Optional[int] = None, - price: Optional[int] = None, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays potential returns of a certain coin. [Source: CoinGecko] -

- -* **Parameters** - - to_symbol : str - Coin loaded to check potential returns for (e.g., algorand) - from_symbol : str | None - Coin to compare main_coin with (e.g., bitcoin) - limit : int | None - Number of coins with highest market cap to compare main_coin with (e.g., 5) - price - Target price of main_coin to check potential returns (e.g., 5) - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/ps/_index.rst b/website/content/SDK/crypto/dd/ps/_index.rst deleted file mode 100644 index 9c7c56e2fb3..00000000000 --- a/website/content/SDK/crypto/dd/ps/_index.rst +++ /dev/null @@ -1,114 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.ps( - symbol: str = 'btc-bitcoin', - quotes: str = 'USD', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get all most important ticker related information for given coin id [Source: CoinPaprika] - - .. code-block:: json - - { - "id": "btc-bitcoin", - "name": "Bitcoin", - "symbol": "BTC", - "rank": 1, - "circulating_supply": 17007062, - "total_supply": 17007062, - "max_supply": 21000000, - "beta_value": 0.735327, - "first_data_at": "2010-11-14T07:20:41Z", - "last_updated": "2018-11-14T07:20:41Z", - "quotes": { - "USD": { - "price": 5162.15941296, - "volume_24h": 7304207651.1585, - "volume_24h_change_24h": -2.5, - "market_cap": 91094433242, - "market_cap_change_24h": 1.6, - "percent_change_15m": 0, - "percent_change_30m": 0, - "percent_change_1h": 0, - "percent_change_6h": 0, - "percent_change_12h": -0.09, - "percent_change_24h": 1.59, - "percent_change_7d": 0.28, - "percent_change_30d": 27.39, - "percent_change_1y": -37.99, - "ath_price": 20089, - "ath_date": "2017-12-17T12:19:00Z", - "percent_from_price_ath": -74.3 - } - } - } -

- -* **Parameters** - - symbol: str - Id of coin from CoinPaprika - quotes: str - Comma separated quotes to return e.g quotes = USD, BTC - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Most important ticker related information - Columns: Metric, Value - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.ps( - from_symbol: str = 'BTC', - to_symbol: str = 'USD', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get ticker information for single coin [Source: CoinPaprika] -

- -* **Parameters** - - from_symbol: str - Cryptocurrency symbol (e.g. BTC) - to_symbol: str - Quoted currency - export: str - Export dataframe data to csv,json,xlsx - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/rm/_index.rst b/website/content/SDK/crypto/dd/rm/_index.rst deleted file mode 100644 index fc71a075447..00000000000 --- a/website/content/SDK/crypto/dd/rm/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.rm( - symbol: str, - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns coin roadmap - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check roadmap - ascend: bool - reverse order - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - roadmap - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.rm( - symbol: str, - ascend: bool = True, - limit: int = 5, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin roadmap - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check roadmap - ascend: bool - reverse order - limit : int - number to show - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/show_available_pairs_for_given_symbol/_index.rst b/website/content/SDK/crypto/dd/show_available_pairs_for_given_symbol/_index.rst deleted file mode 100644 index c470ed52155..00000000000 --- a/website/content/SDK/crypto/dd/show_available_pairs_for_given_symbol/_index.rst +++ /dev/null @@ -1,12 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- diff --git a/website/content/SDK/crypto/dd/stats/_index.rst b/website/content/SDK/crypto/dd/stats/_index.rst deleted file mode 100644 index 71d5ef301ed..00000000000 --- a/website/content/SDK/crypto/dd/stats/_index.rst +++ /dev/null @@ -1,73 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.stats( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get 24 hr stats for the product. Volume is in base currency units. - Open, high and low are in quote currency units. [Source: Coinbase] -

- -* **Parameters** - - symbol: str - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - 24h stats for chosen trading pair - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.stats( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get 24 hr stats for the product. Volume is in base currency units. - Open, high and low are in quote currency units. [Source: Coinbase] -

- -* **Parameters** - - symbol: str - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/team/_index.rst b/website/content/SDK/crypto/dd/team/_index.rst deleted file mode 100644 index 2d083d51cc5..00000000000 --- a/website/content/SDK/crypto/dd/team/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.team( - symbol: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Returns coin team - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check team - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - individuals - pd.DataFrame - organizations - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.team( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin team - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check coin team - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/tk/_index.rst b/website/content/SDK/crypto/dd/tk/_index.rst deleted file mode 100644 index 0d7328145f5..00000000000 --- a/website/content/SDK/crypto/dd/tk/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.tk( - symbol: str, - coingecko_id: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Returns coin tokenomics - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check tokenomics - coingecko_id : str - ID from coingecko - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Metric Value tokenomics - pd.DataFrame - Circulating supply overtime - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.tk( - symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display coin tokenomics - [Source: https://messari.io/] -

- -* **Parameters** - - symbol : str - Crypto symbol to check tokenomics - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/tokenomics/_index.rst b/website/content/SDK/crypto/dd/tokenomics/_index.rst deleted file mode 100644 index d70e73b4495..00000000000 --- a/website/content/SDK/crypto/dd/tokenomics/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.tokenomics( - symbol: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get tokenomics for given coin. [Source: CoinGecko] -

- -* **Parameters** - - symbol: str - coin symbol to check tokenomics - -* **Returns** - - pandas.DataFrame - Metric, Value with tokenomics diff --git a/website/content/SDK/crypto/dd/trades/_index.rst b/website/content/SDK/crypto/dd/trades/_index.rst deleted file mode 100644 index 4baf3e1facc..00000000000 --- a/website/content/SDK/crypto/dd/trades/_index.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.trades( - exchange_id: str, - symbol: str, - to_symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns trades for a coin in a given exchange - [Source: https://docs.ccxt.com/en/latest/manual.html] -

- -* **Parameters** - - exchange_id : str - exchange id - symbol : str - coin symbol - to_symbol : str - currency to compare coin against - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - trades for a coin in a given exchange - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.trades( - exchange: str, - symbol: str, - to_symbol: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays trades for a coin in a given exchange - [Source: https://docs.ccxt.com/en/latest/manual.html] -

- -* **Parameters** - - exchange : str - exchange id - symbol : str - coin symbol - to_symbol : str - currency to compare coin against - limit : int - number of trades to display - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/dd/trading_pair_info/_index.rst b/website/content/SDK/crypto/dd/trading_pair_info/_index.rst deleted file mode 100644 index 1846656fb7d..00000000000 --- a/website/content/SDK/crypto/dd/trading_pair_info/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.trading_pair_info( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get information about chosen trading pair. [Source: Coinbase] -

- -* **Parameters** - - symbol: str - Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH - -* **Returns** - - pd.DataFrame - Basic information about given trading pair diff --git a/website/content/SDK/crypto/dd/trading_pairs/_index.rst b/website/content/SDK/crypto/dd/trading_pairs/_index.rst deleted file mode 100644 index 60599e3d28b..00000000000 --- a/website/content/SDK/crypto/dd/trading_pairs/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.trading_pairs() -> List[dict] -{{< /highlight >}} - -.. raw:: html - -

- Helper method that return all trading pairs on binance. Methods ause this data for input for e.g - building dataframe with all coins, or to build dict of all trading pairs. [Source: Binance] -

- -* **Returns** - - List[dict] - list of dictionaries in format: - [ - {'symbol': 'ETHBTC', 'status': 'TRADING', 'baseAsset': 'ETH', 'baseAssetPrecision': 8, - 'quoteAsset': 'BTC', 'quotePrecision': 8, 'quoteAssetPrecision': 8, - 'baseCommissionPrecision': 8, 'quoteCommissionPrecision': 8, - 'orderTypes': ['LIMIT', 'LIMIT_MAKER', 'MARKET', 'STOP_LOSS_LIMIT', 'TAKE_PROFIT_LIMIT'], - 'icebergAllowed': True, - 'ocoAllowed': True, - 'quoteOrderQtyMarketAllowed': True, - 'isSpotTradingAllowed': True, - 'isMarginTradingAllowed': True, - 'filters': [{'filterType': 'PRICE_FILTER', 'minPrice': '0.00000100', - 'maxPrice': '922327.00000000', 'tickSize': '0.00000100'}, - {'filterType': 'PERCENT_PRICE', 'multiplierUp': '5', 'multiplierDown': '0.2', 'avgPriceMins': 5}, - {'filterType': 'LOT_SIZE', 'minQty': '0.00100000', 'maxQty': '100000.00000000', 'stepSize': '0.00100000'}, - {'filterType': 'MIN_NOTIONAL', 'minNotional': '0.00010000', 'applyToMarket': True, 'avgPriceMins': 5}, - {'filterType': 'ICEBERG_PARTS', 'limit': 10}, {'filterType': 'MARKET_LOT_SIZE', 'minQty': '0.00000000', - 'maxQty': '930.49505347', 'stepSize': '0.00000000'}, {'filterType': 'MAX_NUM_ORDERS', 'maxNumOrders': 200}, - {'filterType': 'MAX_NUM_ALGO_ORDERS', 'maxNumAlgoOrders': 5}], 'permissions': ['SPOT', 'MARGIN']}, - ... - ] diff --git a/website/content/SDK/crypto/dd/twitter/_index.rst b/website/content/SDK/crypto/dd/twitter/_index.rst deleted file mode 100644 index 5a8011297c4..00000000000 --- a/website/content/SDK/crypto/dd/twitter/_index.rst +++ /dev/null @@ -1,91 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.dd.twitter( - symbol: str = 'eth-ethereum', - sortby: str = 'date', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get twitter timeline for given coin id. Not more than last 50 tweets [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - id of coin from coinpaprika e.g. Ethereum - > 'eth-ethereum' - sortby: str - Key by which to sort data. Every column name is valid - (see for possible values: - https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1twitter/get). - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Twitter timeline for given coin. - Columns: date, user_name, status, retweet_count, like_count - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.dd.twitter( - symbol: str = 'BTC', - limit: int = 10, - sortby: str = 'date', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get twitter timeline for given coin id. Not more than last 50 tweets [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Cryptocurrency symbol (e.g. BTC) - limit: int - Number of records to display - sortby: str - Key by which to sort data. Every column name is valid - (see for possible values: - https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1twitter/get). - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/_index.md b/website/content/SDK/crypto/defi/_index.md deleted file mode 100644 index 27850417b2d..00000000000 --- a/website/content/SDK/crypto/defi/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: defi -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/defi/anchor_data/_index.rst b/website/content/SDK/crypto/defi/anchor_data/_index.rst deleted file mode 100644 index 2de0dd19c48..00000000000 --- a/website/content/SDK/crypto/defi/anchor_data/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.anchor_data( - address: str = '', - chart: bool = False, -) -> Tuple[Any, Any, str] -{{< /highlight >}} - -.. raw:: html - -

- Returns anchor protocol earnings data of a certain terra address - [Source: https://cryptosaurio.com/] -

- -* **Parameters** - - address : str - Terra address. Valid terra addresses start with 'terra' - chart: bool - Flag to display chart - - -* **Returns** - - Tuple: - - pandas.DataFrame: Earnings over time in UST - - pandas.DataFrame: History of transactions - - str: Overall statistics - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.anchor_data( - address: str = '', - export: str = '', - show_transactions: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays anchor protocol earnings data of a certain terra address - [Source: https://cryptosaurio.com/] -

- -* **Parameters** - - asset : str - Terra asset {ust,luna,sdt} - address : str - Terra address. Valid terra addresses start with 'terra' - show_transactions : bool - Flag to show history of transactions in Anchor protocol for address. Default False - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/aterra/_index.rst b/website/content/SDK/crypto/defi/aterra/_index.rst deleted file mode 100644 index 4c9ecc132a8..00000000000 --- a/website/content/SDK/crypto/defi/aterra/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.aterra( - asset: str = 'ust', - address: str = 'terra1tmnqgvg567ypvsvk6rwsga3srp7e3lg6u0elp8', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns historical data of an asset in a certain terra address - [Source: https://terra.engineer/] -

- -* **Parameters** - - asset : str - Terra asset {ust,luna,sdt} - address : str - Terra address. Valid terra addresses start with 'terra' - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - historical data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.aterra( - asset: str = '', - address: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays the 30-day history of specified asset in terra address - [Source: https://terra.engineer/] -

- -* **Parameters** - - asset : str - Terra asset {ust,luna,sdt} - address : str - Terra address. Valid terra addresses start with 'terra' - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/ayr/_index.rst b/website/content/SDK/crypto/defi/ayr/_index.rst deleted file mode 100644 index 593424af880..00000000000 --- a/website/content/SDK/crypto/defi/ayr/_index.rst +++ /dev/null @@ -1,62 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.ayr() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Displays the 30-day history of the Anchor Yield Reserve. - [Source: https://terra.engineer/] -

- -* **Returns** - - pd.DataFrame - Dataframe containing historical data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.ayr( - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays the 30-day history of the Anchor Yield Reserve. - [Source: https://terra.engineer/] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file, by default False - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/dpi/_index.rst b/website/content/SDK/crypto/defi/dpi/_index.rst deleted file mode 100644 index b3d9d636244..00000000000 --- a/website/content/SDK/crypto/defi/dpi/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.dpi( - sortby: str = 'TVL_$', ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrapes data from DeFi Pulse with all DeFi Pulse crypto protocols. - [Source: https://defipulse.com/] - - Returns - ------- - pd.DataFrame - List of DeFi Pulse protocols. -

- -* **Returns** - - pd.DataFrame - List of DeFi Pulse protocols. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.dpi( - limit: int = 10, - sortby: str = 'TVL_$', ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays all DeFi Pulse crypto protocols. - [Source: https://defipulse.com/] -

- -* **Parameters** - - limit: *int* - Number of records to display - sortby: *str* - Key by which to sort data (Possible values are: "Rank", "Name", "Chain", "Sector", - "30D_Users", "TVL_$", "1_Day_%"), by default TVL - ascend: *bool* - Flag to sort data ascending, by default False - export : *str* - Export dataframe data to csv,json,xlsx file, by default False - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/dtvl/_index.rst b/website/content/SDK/crypto/defi/dtvl/_index.rst deleted file mode 100644 index e73d4c921d4..00000000000 --- a/website/content/SDK/crypto/defi/dtvl/_index.rst +++ /dev/null @@ -1,73 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.dtvl( - protocol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns information about historical tvl of a defi protocol. - [Source: https://docs.llama.fi/api] - - Returns - ------- - pd.DataFrame - Historical tvl -

- -* **Returns** - - pd.DataFrame - Historical tvl - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.dtvl( - dapps: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays historical TVL of different dApps - [Source: https://docs.llama.fi/api] -

- -* **Parameters** - - dapps: str - dApps to search historical TVL. Should be split by , e.g.: anchor,sushiswap,pancakeswap - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/gacc/_index.rst b/website/content/SDK/crypto/defi/gacc/_index.rst deleted file mode 100644 index e6525c637ce..00000000000 --- a/website/content/SDK/crypto/defi/gacc/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.gacc( - cumulative: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get terra blockchain account growth history [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - cumulative: bool - distinguish between periodical and cumulative account growth data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - historical data of accounts growth - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.gacc( - kind: str = 'total', - cumulative: bool = False, - limit: int = 90, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display terra blockchain account growth history [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - limit: int - Number of records to display - kind: str - display total account count or active account count. One from list [active, total] - cumulative: bool - Flag to show cumulative or discrete values. For active accounts only discrete value are available. - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/gdapps/_index.rst b/website/content/SDK/crypto/defi/gdapps/_index.rst deleted file mode 100644 index ad4055e748d..00000000000 --- a/website/content/SDK/crypto/defi/gdapps/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.gdapps( - limit: int = 50, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Display top dApps (in terms of TVL) grouped by chain. - [Source: https://docs.llama.fi/api] -

- -* **Parameters** - - limit: int - Number of top dApps to display - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Information about DeFi protocols grouped by chain - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.gdapps( - limit: int = 50, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display top dApps (in terms of TVL) grouped by chain. - [Source: https://docs.llama.fi/api] -

- -* **Parameters** - - num: int - Number of top dApps to display - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/gov_proposals/_index.rst b/website/content/SDK/crypto/defi/gov_proposals/_index.rst deleted file mode 100644 index 3d3c9a38e41..00000000000 --- a/website/content/SDK/crypto/defi/gov_proposals/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.gov_proposals( - status: str = '', - sortby: str = 'id', - ascend: bool = True, - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get terra blockchain governance proposals list [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - status: str - status of proposal, one from list: ['Voting','Deposit','Passed','Rejected'] - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - limit: int - Number of records to display - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Terra blockchain governance proposals list - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.gov_proposals( - limit: int = 10, - status: str = 'all', - sortby: str = 'id', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display terra blockchain governance proposals list [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - limit: int - Number of records to display - status: str - status of proposal, one from list: ['Voting','Deposit','Passed','Rejected'] - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascend - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/ldapps/_index.rst b/website/content/SDK/crypto/defi/ldapps/_index.rst deleted file mode 100644 index 408e6911b0f..00000000000 --- a/website/content/SDK/crypto/defi/ldapps/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.ldapps( - limit: int = 100, - sortby: str = '', - ascend: bool = False, - description: bool = False, - drop_chain: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns information about listed DeFi protocols, their current TVL and changes to it in the last hour/day/week. - [Source: https://docs.llama.fi/api] -

- -* **Parameters** - - limit: int - The number of dApps to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - description: bool - Flag to display description of protocol - drop_chain: bool - Whether to drop the chain column - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Information about DeFi protocols - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.ldapps( - sortby: str, - limit: int = 20, - ascend: bool = False, - description: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display information about listed DeFi protocols, their current TVL and changes to it in - the last hour/day/week. [Source: https://docs.llama.fi/api] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - description: bool - Flag to display description of protocol - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/luna_supply/_index.rst b/website/content/SDK/crypto/defi/luna_supply/_index.rst deleted file mode 100644 index b9272346e38..00000000000 --- a/website/content/SDK/crypto/defi/luna_supply/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.luna_supply( - supply_type: str = 'lunaSupplyChallengeStats', - days: int = 30, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get supply history of the Terra ecosystem - - Source: [Smartstake.io] -

- -* **Parameters** - - supply_type: str - Supply type to unpack json - days: int - Day count to fetch data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of supply history data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.luna_supply( - days: int = 30, - export: str = '', - supply_type: str = 'lunaSupplyChallengeStats', - limit: int = 5, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Luna circulating supply stats -

- -* **Parameters** - - days: int - Number of days - supply_type: str - Supply type to unpack json - export: str - Export type - limit: int - Number of results display on the terminal - Default: 5 - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/newsletters/_index.rst b/website/content/SDK/crypto/defi/newsletters/_index.rst deleted file mode 100644 index 530c4c2166c..00000000000 --- a/website/content/SDK/crypto/defi/newsletters/_index.rst +++ /dev/null @@ -1,62 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.newsletters() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape all substack newsletters from url list. - [Source: substack.com] -

- -* **Returns** - - pd.DataFrame - DataFrame with recent news from most popular DeFi related newsletters. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.newsletters( - limit: int = 10, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display DeFi related substack newsletters. - [Source: substack.com] -

- -* **Parameters** - - limit: int - Number of records to display - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/pairs/_index.rst b/website/content/SDK/crypto/defi/pairs/_index.rst deleted file mode 100644 index beb638329bf..00000000000 --- a/website/content/SDK/crypto/defi/pairs/_index.rst +++ /dev/null @@ -1,105 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.pairs( - last_days: int = 14, - min_volume: int = 100, - min_liquidity: int = 0, - min_tx: int = 100, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get lastly added trade-able pairs on Uniswap with parameters like: - * number of days the pair has been active, - * minimum trading volume, - * minimum liquidity, - * number of transactions. - - [Source: https://thegraph.com/en/] -

- -* **Parameters** - - last_days: int - How many days back to look for added pairs. - min_volume: int - Minimum volume - min_liquidity: int - Minimum liquidity - min_tx: int - Minimum number of transactions done in given pool. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Lastly added pairs on Uniswap DEX. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.pairs( - limit: int = 20, - days: int = 7, - min_volume: int = 20, - min_liquidity: int = 0, - min_tx: int = 100, - sortby: str = 'created', - ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays Lastly added pairs on Uniswap DEX. - [Source: https://thegraph.com/en/] -

- -* **Parameters** - - limit: int - Number of records to display - days: int - Number of days the pair has been active, - min_volume: int - Minimum trading volume, - min_liquidity: int - Minimum liquidity - min_tx: int - Minimum number of transactions - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/pools/_index.rst b/website/content/SDK/crypto/defi/pools/_index.rst deleted file mode 100644 index 15e0b0e1dd5..00000000000 --- a/website/content/SDK/crypto/defi/pools/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.pools() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get uniswap pools by volume. [Source: https://thegraph.com/en/] -

- -* **Returns** - - pd.DataFrame - Trade-able pairs listed on Uniswap by top volume. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.pools( - limit: int = 20, - sortby: str = 'volumeUSD', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays uniswap pools by volume. - [Source: https://thegraph.com/en/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data. The table can be sorted by every of its columns - (see https://bit.ly/3ORagr1 then press ctrl-enter or execute the query). - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/sinfo/_index.rst b/website/content/SDK/crypto/defi/sinfo/_index.rst deleted file mode 100644 index a082334aedb..00000000000 --- a/website/content/SDK/crypto/defi/sinfo/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.sinfo( - address: str = '', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, str] -{{< /highlight >}} - -.. raw:: html - -

- Get staking info for provided terra account [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - address: str - terra blockchain address e.g. terra1jvwelvs7rdk6j3mqdztq5tya99w8lxk6l9hcqg - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[pd.DataFrame, str]: - luna delegations and summary report for given address - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.sinfo( - address: str = '', - limit: int = 10, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display staking info for provided terra account address [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - address: str - terra blockchain address e.g. terra1jvwelvs7rdk6j3mqdztq5tya99w8lxk6l9hcqg - limit: int - Number of records to display - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/sratio/_index.rst b/website/content/SDK/crypto/defi/sratio/_index.rst deleted file mode 100644 index 54b47b95378..00000000000 --- a/website/content/SDK/crypto/defi/sratio/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.sratio( - limit: int = 200, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get terra blockchain staking ratio history [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - limit: int - The number of ratios to show - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - historical staking ratio - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.sratio( - limit: int = 90, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display terra blockchain staking ratio history [Source: https://fcd.terra.dev/v1] -

- -* **Parameters** - - limit: int - Number of records to display - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/sreturn/_index.rst b/website/content/SDK/crypto/defi/sreturn/_index.rst deleted file mode 100644 index e72b91af3a2..00000000000 --- a/website/content/SDK/crypto/defi/sreturn/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.sreturn( - limit: int = 200, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get terra blockchain staking returns history [Source: https://fcd.terra.dev/v1] -

- -* **Parameters** - - limit: int - The number of returns to show - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - historical staking returns - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.sreturn( - limit: int = 90, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display terra blockchain staking returns history [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - limit: int - Number of records to display - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/stats/_index.rst b/website/content/SDK/crypto/defi/stats/_index.rst deleted file mode 100644 index 2407174f8c8..00000000000 --- a/website/content/SDK/crypto/defi/stats/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.stats() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get base statistics about Uniswap DEX. [Source: https://thegraph.com/en/] - - uniswapFactory id: 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f - ethereum address on which Uniswap Factory - smart contract was deployed. The factory contract is deployed once from the off-chain source code, and it contains - functions that make it possible to create exchange contracts for any ERC20 token that does not already have one. - It also functions as a registry of ERC20 tokens that have been added to the system, and the exchange with which they - are associated. More: https://docs.uniswap.org/protocol/V1/guides/connect-to-uniswap - We use 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f address to fetch all smart contracts that were - created with usage of this factory. -

- -* **Returns** - - pd.DataFrame - Uniswap DEX statistics like liquidity, volume, number of pairs, number of transactions. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.stats( - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays base statistics about Uniswap DEX. [Source: https://thegraph.com/en/] - [Source: https://thegraph.com/en/] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/stvl/_index.rst b/website/content/SDK/crypto/defi/stvl/_index.rst deleted file mode 100644 index ce73cdd1eeb..00000000000 --- a/website/content/SDK/crypto/defi/stvl/_index.rst +++ /dev/null @@ -1,65 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.stvl() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns historical values of the total sum of TVLs from all listed protocols. - [Source: https://docs.llama.fi/api] -

- -* **Returns** - - pd.DataFrame - Historical values of total sum of Total Value Locked from all listed protocols. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.stvl( - limit: int = 5, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays historical values of the total sum of TVLs from all listed protocols. - [Source: https://docs.llama.fi/api] -

- -* **Parameters** - - limit: int - Number of records to display, by default 5 - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/swaps/_index.rst b/website/content/SDK/crypto/defi/swaps/_index.rst deleted file mode 100644 index 7a10d3d792d..00000000000 --- a/website/content/SDK/crypto/defi/swaps/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.swaps( - limit: int = 100, - sortby: str = 'timestamp', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get the last 100 swaps done on Uniswap [Source: https://thegraph.com/en/] -

- -* **Parameters** - - limit: int - Number of swaps to return. Maximum possible number: 1000. - sortby: str - Key by which to sort data. The table can be sorted by every of its columns - (see https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2). - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Last 100 swaps on Uniswap - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.swaps( - limit: int = 10, - sortby: str = 'timestamp', - ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays last swaps done on Uniswap - [Source: https://thegraph.com/en/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data. The table can be sorted by every of its columns - (see https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2). - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/tokens/_index.rst b/website/content/SDK/crypto/defi/tokens/_index.rst deleted file mode 100644 index 76621da30a6..00000000000 --- a/website/content/SDK/crypto/defi/tokens/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.tokens( - skip: int = 0, - limit: int = 100, - sortby: str = 'index', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of tokens trade-able on Uniswap DEX. [Source: https://thegraph.com/en/] -

- -* **Parameters** - - skip: int - Skip n number of records. - limit: int - Show n number of records. - sortby: str - The column to sort by - ascend: bool - Whether to sort in ascending order - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Uniswap tokens with trading volume, transaction count, liquidity. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.tokens( - skip: int = 0, - limit: int = 20, - sortby: str = 'index', - ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays tokens trade-able on Uniswap DEX. - [Source: https://thegraph.com/en/] -

- -* **Parameters** - - skip: int - Number of records to skip - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/validators/_index.rst b/website/content/SDK/crypto/defi/validators/_index.rst deleted file mode 100644 index 37957f8fce6..00000000000 --- a/website/content/SDK/crypto/defi/validators/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.validators( - sortby: str = 'votingPower', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get information about terra validators [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - sortby: str - Key by which to sort data. Choose from: - validatorName, tokensAmount, votingPower, commissionRate, status, uptime - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - terra validators details - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.validators( - limit: int = 10, - sortby: str = 'votingPower', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display information about terra validators [Source: https://fcd.terra.dev/swagger] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data. Choose from: - validatorName, tokensAmount, votingPower, commissionRate, status, uptime - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/defi/vaults/_index.rst b/website/content/SDK/crypto/defi/vaults/_index.rst deleted file mode 100644 index 5af0b0360fd..00000000000 --- a/website/content/SDK/crypto/defi/vaults/_index.rst +++ /dev/null @@ -1,117 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.defi.vaults( - chain: Optional[str] = None, - protocol: Optional[str] = None, - kind: Optional[str] = None, - ascend: bool = True, - sortby: str = 'apy', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get DeFi Vaults Information. DeFi Vaults are pools of funds with an assigned strategy which main goal is to - maximize returns of its crypto assets. [Source: https://coindix.com/] -

- -* **Parameters** - - chain: str - Blockchain - one from list [ - 'ethereum', 'polygon', 'avalanche', 'bsc', 'terra', 'fantom', - 'moonriver', 'celo', 'heco', 'okex', 'cronos', 'arbitrum', 'eth', - 'harmony', 'fuse', 'defichain', 'solana', 'optimism' - ] - protocol: str - DeFi protocol - one from list: [ - 'aave', 'acryptos', 'alpaca', 'anchor', 'autofarm', 'balancer', 'bancor', - 'beefy', 'belt', 'compound', 'convex', 'cream', 'curve', 'defichain', 'geist', - 'lido', 'liquity', 'mirror', 'pancakeswap', 'raydium', 'sushi', 'tarot', 'traderjoe', - 'tulip', 'ubeswap', 'uniswap', 'venus', 'yearn' - ] - kind: str - Kind/type of vault - one from list: ['lp','single','noimploss','stable'] - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top 100 DeFi Vaults for given chain/protocol sorted by APY. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.defi.vaults( - chain: Optional[str] = None, - protocol: Optional[str] = None, - kind: Optional[str] = None, - limit: int = 10, - sortby: str = 'apy', - ascend: bool = True, - link: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display Top DeFi Vaults - pools of funds with an assigned strategy which main goal is to - maximize returns of its crypto assets. [Source: https://coindix.com/] -

- -* **Parameters** - - chain: str - Blockchain - one from list [ - 'ethereum', 'polygon', 'avalanche', 'bsc', 'terra', 'fantom', - 'moonriver', 'celo', 'heco', 'okex', 'cronos', 'arbitrum', 'eth', - 'harmony', 'fuse', 'defichain', 'solana', 'optimism' - ] - protocol: str - DeFi protocol - one from list: [ - 'aave', 'acryptos', 'alpaca', 'anchor', 'autofarm', 'balancer', 'bancor', - 'beefy', 'belt', 'compound', 'convex', 'cream', 'curve', 'defichain', 'geist', - 'lido', 'liquity', 'mirror', 'pancakeswap', 'raydium', 'sushi', 'tarot', 'traderjoe', - 'tulip', 'ubeswap', 'uniswap', 'venus', 'yearn' - ] - kind: str - Kind/type of vault - one from list: ['lp','single','noimploss','stable'] - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - link: bool - Flag to show links - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/_index.md b/website/content/SDK/crypto/disc/_index.md deleted file mode 100644 index 670f51d025f..00000000000 --- a/website/content/SDK/crypto/disc/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: disc -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/disc/categories_keys/_index.rst b/website/content/SDK/crypto/disc/categories_keys/_index.rst deleted file mode 100644 index c470ed52155..00000000000 --- a/website/content/SDK/crypto/disc/categories_keys/_index.rst +++ /dev/null @@ -1,12 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- diff --git a/website/content/SDK/crypto/disc/cmctop/_index.rst b/website/content/SDK/crypto/disc/cmctop/_index.rst deleted file mode 100644 index 821aac07a0a..00000000000 --- a/website/content/SDK/crypto/disc/cmctop/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.cmctop( - sortby: str = 'CMC_Rank', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Shows top n coins. [Source: CoinMarketCap] -

- -* **Parameters** - - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - Coin Market Cap:s API documentation, see: - https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyListingsLatest - ascend: bool - Whether to sort ascending or descending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top coin on CoinMarketCap - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.cmctop( - limit: int = 15, - sortby: str = 'CMC_Rank', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows top n coins. [Source: CoinMarketCap] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - Coin Market Cap:s API documentation, see: - https://coinmarketcap.com/api/documentation/v1/#operation/getV1CryptocurrencyListingsLatest - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/coin_list/_index.rst b/website/content/SDK/crypto/disc/coin_list/_index.rst deleted file mode 100644 index 86d07128f2c..00000000000 --- a/website/content/SDK/crypto/disc/coin_list/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.coin_list() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of coins available on CoinGecko [Source: CoinGecko] -

- -* **Returns** - - pandas.DataFrame - Coins available on CoinGecko - Columns: id, symbol, name diff --git a/website/content/SDK/crypto/disc/coins/_index.rst b/website/content/SDK/crypto/disc/coins/_index.rst deleted file mode 100644 index 3046f59e6d0..00000000000 --- a/website/content/SDK/crypto/disc/coins/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.coins( - limit: int = 250, - category: str = '', - sortby: str = 'Symbol', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get N coins from CoinGecko [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of top coins to grab from CoinGecko - category: str - Category of the coins we want to retrieve - sortby: str - Key to sort data - ascend: bool - Sort data in ascending order - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - N coins - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.coins( - category: str, - limit: int = 250, - sortby: str = 'Symbol', - export: str = '', - ascend: bool = False, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display top coins [Source: CoinGecko] -

- -* **Parameters** - - category: str - If no category is passed it will search for all coins. (E.g., smart-contract-platform) - limit: int - Number of records to display - sortby: str - Key to sort data - export : str - Export dataframe data to csv,json,xlsx file - ascend: bool - Sort data in ascending order - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/coins_for_given_exchange/_index.rst b/website/content/SDK/crypto/disc/coins_for_given_exchange/_index.rst deleted file mode 100644 index bc60c7d3618..00000000000 --- a/website/content/SDK/crypto/disc/coins_for_given_exchange/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.coins_for_given_exchange( - exchange_id: str = 'binance', - page: int = 1, - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Helper method to get all coins available on binance exchange [Source: CoinGecko] -

- -* **Parameters** - - exchange_id: str - id of exchange - page: int - number of page. One page contains 100 records - -* **Returns** - - dict - dictionary with all trading pairs on binance diff --git a/website/content/SDK/crypto/disc/cpsearch/_index.rst b/website/content/SDK/crypto/disc/cpsearch/_index.rst deleted file mode 100644 index 2f5b2d3978f..00000000000 --- a/website/content/SDK/crypto/disc/cpsearch/_index.rst +++ /dev/null @@ -1,101 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.cpsearch( - query: str, - category: Optional[Any] = None, - modifier: Optional[Any] = None, - sortby: str = 'id', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Search CoinPaprika. [Source: CoinPaprika] -

- -* **Parameters** - - query: str - phrase for search - category: Optional[Any] - one or more categories (comma separated) to search. - Available options: currencies|exchanges|icos|people|tags - Default: currencies,exchanges,icos,people,tags - modifier: Optional[Any] - set modifier for search results. Available options: symbol_search - - search only by symbol (works for currencies only) - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see https://api.coinpaprika.com/docs#tag/Tools/paths/~1search/get) - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Search Results - Columns: Metric, Value - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.cpsearch( - query: str, - category: str = 'all', - limit: int = 10, - sortby: str = 'id', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Search over CoinPaprika. [Source: CoinPaprika] -

- -* **Parameters** - - query: str - Search query - category: str - Categories to search: currencies|exchanges|icos|people|tags|all. Default: all - limit: int - Number of records to display - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see https://api.coinpaprika.com/docs#tag/Tools/paths/~1search/get) - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/gainers/_index.rst b/website/content/SDK/crypto/disc/gainers/_index.rst deleted file mode 100644 index 0518571564a..00000000000 --- a/website/content/SDK/crypto/disc/gainers/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.gainers( - interval: str = '1h', - limit: int = 50, - sortby: str = 'market_cap_rank', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Shows Largest Gainers - coins which gain the most in given period. [Source: CoinGecko] -

- -* **Parameters** - - interval: str - Time interval by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] - limit: int - Number of records to display - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top Gainers - coins which gain most in price in given period of time. - Columns: Symbol, Name, Volume, Price, %Change_{interval}, Url - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.gainers( - interval: str = '1h', - limit: int = 20, - sortby: str = 'market_cap_rank', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows Largest Gainers - coins which gain the most in given period. [Source: CoinGecko] -

- -* **Parameters** - - interval: str - Time period by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] - limit: int - Number of records to display - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/gainers_or_losers/_index.rst b/website/content/SDK/crypto/disc/gainers_or_losers/_index.rst deleted file mode 100644 index dc07f6174ce..00000000000 --- a/website/content/SDK/crypto/disc/gainers_or_losers/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.gainers_or_losers( - limit: int = 20, - interval: str = '1h', - typ: str = 'gainers', - sortby: str = 'market_cap', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns data about top gainers - coins which gain the most in given period and - top losers - coins that lost the most in given period of time. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Num of coins to get - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) - interval: str - One from {14d,1h,1y,200d,24h,30d,7d} - typ: str - Either "gainers" or "losers" - -* **Returns** - - pandas.DataFrame - Top Gainers / Top Losers - coins which gain/lost most in price in given period of time. - Columns: Symbol, Name, Volume, Price, %Change_{interval}, Url diff --git a/website/content/SDK/crypto/disc/losers/_index.rst b/website/content/SDK/crypto/disc/losers/_index.rst deleted file mode 100644 index 462f66ec87b..00000000000 --- a/website/content/SDK/crypto/disc/losers/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.losers( - interval: str = '1h', - limit: int = 50, - sortby: str = 'market_cap_rank', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Shows Largest Losers - coins which lose the most in given period. [Source: CoinGecko] -

- -* **Parameters** - - interval: str - Time interval by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] - limit: int - Number of records to display - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top Losers - coins which lost most in price in given period of time. - Columns: Symbol, Name, Volume, Price, %Change_{interval}, Url - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.losers( - interval: str = '1h', - limit: int = 20, - export: str = '', - sortby: str = 'Market Cap Rank', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows Largest Losers - coins which lost the most in given period of time. [Source: CoinGecko] -

- -* **Parameters** - - interval: str - Time period by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] - limit: int - Number of records to display - sortby: str - Key to sort data. The table can be sorted by every of its columns. Refer to - API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/top_dapps/_index.rst b/website/content/SDK/crypto/disc/top_dapps/_index.rst deleted file mode 100644 index cc7a61d1fd2..00000000000 --- a/website/content/SDK/crypto/disc/top_dapps/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.top_dapps( - sortby: str = '', - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top decentralized applications by daily volume and users [Source: https://dappradar.com/] -

- -* **Parameters** - - sortby: str - Key by which to sort data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top decentralized exchanges. - Columns: Name, Category, Protocols, Daily Users, Daily Volume [$] - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.top_dapps( - limit: int = 10, - export: str = '', - sortby: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays top decentralized exchanges [Source: https://dappradar.com/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/top_dexes/_index.rst b/website/content/SDK/crypto/disc/top_dexes/_index.rst deleted file mode 100644 index 8270db52a93..00000000000 --- a/website/content/SDK/crypto/disc/top_dexes/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.top_dexes( - sortby: str = '', - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top dexes by daily volume and users [Source: https://dappradar.com/] -

- -* **Parameters** - - sortby: str - Key by which to sort data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top decentralized exchanges. Columns: Name, Daily Users, Daily Volume [$] - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.top_dexes( - limit: int = 10, - export: str = '', - sortby: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays top decentralized exchanges [Source: https://dappradar.com/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/top_games/_index.rst b/website/content/SDK/crypto/disc/top_games/_index.rst deleted file mode 100644 index 0132de15e37..00000000000 --- a/website/content/SDK/crypto/disc/top_games/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.top_games( - sortby: str = '', - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top blockchain games by daily volume and users [Source: https://dappradar.com/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Top blockchain games. Columns: Name, Daily Users, Daily Volume [$] - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.top_games( - limit: int = 10, - export: str = '', - sortby: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays top blockchain games [Source: https://dappradar.com/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/top_nfts/_index.rst b/website/content/SDK/crypto/disc/top_nfts/_index.rst deleted file mode 100644 index 2fe972482bc..00000000000 --- a/website/content/SDK/crypto/disc/top_nfts/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.top_nfts( - sortby: str = '', - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top nft collections [Source: https://dappradar.com/] -

- -* **Parameters** - - sortby: str - Key by which to sort data - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - NFTs Columns: Name, Protocols, Floor Price [$], Avg Price [$], Market Cap [$], Volume [$] - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.top_nfts( - limit: int = 10, - sortby: str = '', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays top nft collections [Source: https://dappradar.com/] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/disc/trending/_index.rst b/website/content/SDK/crypto/disc/trending/_index.rst deleted file mode 100644 index f19f2a5cb77..00000000000 --- a/website/content/SDK/crypto/disc/trending/_index.rst +++ /dev/null @@ -1,67 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.disc.trending() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns trending coins [Source: CoinGecko] - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame: - Trending Coins - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.disc.trending( - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display trending coins [Source: CoinGecko] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/find/_index.rst b/website/content/SDK/crypto/find/_index.rst deleted file mode 100644 index 252d53cdd13..00000000000 --- a/website/content/SDK/crypto/find/_index.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.find( - query: 'str', - source: 'str' = 'CoinGecko', - key: 'str' = 'symbol', - limit: 'int' = 10, - export: 'str' = '', - chart: bool = False, -) -> 'None' -{{< /highlight >}} - -.. raw:: html - -

- Find similar coin by coin name,symbol or id. - - If you don't know exact name or id of the Coin at CoinGecko CoinPaprika, Binance or Coinbase - you use this command to display coins with similar name, symbol or id to your search query. - Example: coin name is something like "polka". So I can try: find -c polka -k name -t 25 - It will search for coin that has similar name to polka and display top 25 matches. - - -c, --coin stands for coin - you provide here your search query - -k, --key it's a searching key. You can search by symbol, id or name of coin - -t, --top it displays top N number of records. -

- -* **Parameters** - - query: str - Cryptocurrency - source: str - Data source of coins. CoinGecko (cg) or CoinPaprika (cp) or Binance (bin), Coinbase (cb) - key: str - Searching key (symbol, id, name) - limit: int - Number of records to display - export : str - Export dataframe data to csv,json,xlsx file diff --git a/website/content/SDK/crypto/load/_index.rst b/website/content/SDK/crypto/load/_index.rst deleted file mode 100644 index be774c02535..00000000000 --- a/website/content/SDK/crypto/load/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.load( - symbol: 'str', - start_date: 'datetime | str | None' = None, interval: 'str' = '1440', - exchange: 'str' = 'binance', - vs_currency: 'str' = 'usdt', - end_date: 'datetime | str | None' = None, source: 'str' = 'CCXT', - chart: bool = False, -) -> 'pd.DataFrame' -{{< /highlight >}} - -.. raw:: html - -

- Load crypto currency to get data for -

- -* **Parameters** - - symbol: str - Coin to get - start_date: str or datetime, optional - Start date to get data from with. - datetime or string format (YYYY-MM-DD) - interval: str - The interval between data points in minutes. - Choose from: 1, 15, 30, 60, 240, 1440, 10080, 43200 - exchange: str: - The exchange to get data from. - vs_currency: str - Quote Currency (Defaults to usdt) - end_date: str or datetime, optional - End date to get data from with. - datetime or string format (YYYY-MM-DD) - source: str - The source of the data - Choose from: CCXT, CoinGecko, YahooFinance - -* **Returns** - - pd.DataFrame - Dataframe consisting of price and volume data diff --git a/website/content/SDK/crypto/nft/_index.md b/website/content/SDK/crypto/nft/_index.md deleted file mode 100644 index 5e68dc70aae..00000000000 --- a/website/content/SDK/crypto/nft/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: nft -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/nft/collections/_index.rst b/website/content/SDK/crypto/nft/collections/_index.rst deleted file mode 100644 index a4ca4a40960..00000000000 --- a/website/content/SDK/crypto/nft/collections/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.nft.collections() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get nft collections [Source: https://nftpricefloor.com/] - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - nft collections - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.nft.collections( - show_fp: bool = False, - show_sales: bool = False, - limit: int = 5, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display NFT collections. [Source: https://nftpricefloor.com/] -

- -* **Parameters** - - show_fp : bool - Show NFT Price Floor for top collections - limit: int - Number of NFT collections to display - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/nft/fp/_index.rst b/website/content/SDK/crypto/nft/fp/_index.rst deleted file mode 100644 index f74a063c584..00000000000 --- a/website/content/SDK/crypto/nft/fp/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.nft.fp( - slug, chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get nft collections [Source: https://nftpricefloor.com/] -

- -* **Parameters** - - slug: str - nft collection slug - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - nft collections - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.nft.fp( - slug: str, - limit: int = 10, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - raw: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display NFT collection floor price over time. [Source: https://nftpricefloor.com/] -

- -* **Parameters** - - slug: str - NFT collection slug - raw: bool - Flag to display raw data - limit: int - Number of raw data to show - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/nft/stats/_index.rst b/website/content/SDK/crypto/nft/stats/_index.rst deleted file mode 100644 index 74d3222e229..00000000000 --- a/website/content/SDK/crypto/nft/stats/_index.rst +++ /dev/null @@ -1,72 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.nft.stats( - slug: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get stats of a nft collection [Source: opensea.io] -

- -* **Parameters** - - slug : str - Opensea collection slug. If the name of the collection is Mutant Ape Yacht Club the slug is mutant-ape-yacht-club - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - collection stats - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.nft.stats( - slug: str, - export: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display collection stats. [Source: opensea.io] -

- -* **Parameters** - - slug: str - Opensea collection slug. - If the name of the collection is Mutant Ape Yacht Club the slug is mutant-ape-yacht-club - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/_index.md b/website/content/SDK/crypto/onchain/_index.md deleted file mode 100644 index 90f0ef88063..00000000000 --- a/website/content/SDK/crypto/onchain/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: onchain -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/onchain/baas/_index.rst b/website/content/SDK/crypto/onchain/baas/_index.rst deleted file mode 100644 index d168e5442fd..00000000000 --- a/website/content/SDK/crypto/onchain/baas/_index.rst +++ /dev/null @@ -1,100 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.baas( - symbol: str = 'WETH', - to_symbol: str = 'USDT', - limit: int = 30, - sortby: str = 'tradeAmount', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get an average bid and ask prices, average spread for given crypto pair for chosen time period. - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - limit: int - Last n days to query data - symbol: str - ERC20 token symbol - to_symbol: str - Quoted currency. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Average bid and ask prices, spread for given crypto pair for chosen time period - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.baas( - symbol='ETH', to_symbol='USDC', days: int = 10, - sortby: str = 'date', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display an average bid and ask prices, average spread for given crypto pair for chosen - time period. [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - days: int - Last n days to query data - symbol: str - ERC20 token symbol - to_symbol: str - Quoted currency. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Average bid and ask prices, spread for given crypto pair for chosen time period diff --git a/website/content/SDK/crypto/onchain/balance/_index.rst b/website/content/SDK/crypto/onchain/balance/_index.rst deleted file mode 100644 index 0015cfd7f8f..00000000000 --- a/website/content/SDK/crypto/onchain/balance/_index.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.balance( - address: str, - sortby: str = 'index', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get info about tokens on you ethereum blockchain balance. Eth balance, balance of all tokens which - have name and symbol. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Blockchain balance e.g. 0x3cD751E6b0078Be393132286c442345e5DC49699 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with list of tokens and their balances. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.balance( - address: str, - limit: int = 15, - sortby: str = 'index', - ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display info about tokens for given ethereum blockchain balance e.g. ETH balance, - balance of all tokens with name and symbol. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Ethereum balance. - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/btc_supply/_index.rst b/website/content/SDK/crypto/onchain/btc_supply/_index.rst deleted file mode 100644 index 62545d4a1c7..00000000000 --- a/website/content/SDK/crypto/onchain/btc_supply/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.btc_supply() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns BTC circulating supply [Source: https://api.blockchain.info/] -

- -* **Returns** - - pd.DataFrame - BTC circulating supply - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.btc_supply( - start_date: str = '2010-01-01', - end_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Returns BTC circulating supply [Source: https://api.blockchain.info/] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/btc_transac/_index.rst b/website/content/SDK/crypto/onchain/btc_transac/_index.rst deleted file mode 100644 index e7a8fb6db46..00000000000 --- a/website/content/SDK/crypto/onchain/btc_transac/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.btc_transac() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns BTC confirmed transactions [Source: https://api.blockchain.info/] -

- -* **Returns** - - pd.DataFrame - BTC confirmed transactions - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.btc_transac( - start_date: str = '2010-01-01', - end_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Returns BTC confirmed transactions [Source: https://api.blockchain.info/] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/dex_trades_monthly/_index.rst b/website/content/SDK/crypto/onchain/dex_trades_monthly/_index.rst deleted file mode 100644 index 71755383d99..00000000000 --- a/website/content/SDK/crypto/onchain/dex_trades_monthly/_index.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.dex_trades_monthly( - trade_amount_currency: str = 'USD', - limit: int = 90, - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of trades on Decentralized Exchanges monthly aggregated. - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - trade_amount_currency: str - Currency of displayed trade amount. Default: USD - limit: int - Last n days to query data. Maximum 365 (bigger numbers can cause timeouts - on server side) - ascend: bool - Flag to sort data ascending - -* **Returns** - - pd.DataFrame - Trades on Decentralized Exchanges monthly aggregated diff --git a/website/content/SDK/crypto/onchain/dvcp/_index.rst b/website/content/SDK/crypto/onchain/dvcp/_index.rst deleted file mode 100644 index 2afcd9f4023..00000000000 --- a/website/content/SDK/crypto/onchain/dvcp/_index.rst +++ /dev/null @@ -1,101 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.dvcp( - limit: int = 100, - symbol: str = 'UNI', - to_symbol: str = 'USDT', - sortby: str = 'date', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get daily volume for given pair [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - limit: int - Last n days to query data - symbol: str - ERC20 token symbol - to_symbol: str - Quote currency. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Daily volume for given pair - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.dvcp( - symbol: str = 'WBTC', - to_symbol: str = 'USDT', - limit: int = 20, - sortby: str = 'date', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display daily volume for given pair - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - symbol: str - ERC20 token symbol or address - to_symbol: str - Quote currency. - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Token volume on different decentralized exchanges diff --git a/website/content/SDK/crypto/onchain/erc20_tokens/_index.rst b/website/content/SDK/crypto/onchain/erc20_tokens/_index.rst deleted file mode 100644 index b1b1c18e4ca..00000000000 --- a/website/content/SDK/crypto/onchain/erc20_tokens/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.erc20_tokens() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Helper method that loads ~1500 most traded erc20 token. - [Source: json file] -

- -* **Returns** - - pd.DataFrame - ERC20 tokens with address, symbol and name diff --git a/website/content/SDK/crypto/onchain/gwei/_index.rst b/website/content/SDK/crypto/onchain/gwei/_index.rst deleted file mode 100644 index 8bd04158318..00000000000 --- a/website/content/SDK/crypto/onchain/gwei/_index.rst +++ /dev/null @@ -1,72 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.gwei() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns the most recent Ethereum gas fees in gwei - [Source: https://ethgasstation.info] - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - four gas fees and durations - (fees for slow, average, fast and - fastest transactions in gwei and - its average durations in seconds) - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.gwei( - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Current gwei fees - [Source: https://ethgasstation.info] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/hist/_index.rst b/website/content/SDK/crypto/onchain/hist/_index.rst deleted file mode 100644 index fdef2fd4ac2..00000000000 --- a/website/content/SDK/crypto/onchain/hist/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.hist( - address, sortby: str = 'timestamp', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get information about balance historical transactions. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Blockchain balance e.g. 0x3cD751E6b0078Be393132286c442345e5DC49699 - sortby: str - Key to sort by. - ascend: str - Sort in ascending order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with balance historical transactions (last 100) - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.hist( - address: str, - limit: int = 10, - sortby: str = 'timestamp', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display information about balance historical transactions. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Ethereum blockchain balance e.g. 0x3cD751E6b0078Be393132286c442345e5DC49699 - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in ascending order. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/holders/_index.rst b/website/content/SDK/crypto/onchain/holders/_index.rst deleted file mode 100644 index 18870b735a2..00000000000 --- a/website/content/SDK/crypto/onchain/holders/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.holders( - address, sortby: str = 'balance', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get info about top token holders. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with list of top token holders. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.holders( - address: str, - limit: int = 10, - sortby: str = 'balance', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display info about top ERC20 token holders. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/hr/_index.rst b/website/content/SDK/crypto/onchain/hr/_index.rst deleted file mode 100644 index 8af84519ea8..00000000000 --- a/website/content/SDK/crypto/onchain/hr/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.hr( - symbol: str, - interval: str = '24h', - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns dataframe with mean hashrate of btc or eth blockchain and symbol price - [Source: https://glassnode.com] -

- -* **Parameters** - - symbol : str - Blockchain to check hashrate (BTC or ETH) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - interval : str - Interval frequency (e.g., 24h) - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - mean hashrate and symbol price over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.hr( - symbol: str, - start_date: str = '2010-01-01', - end_date: str = None, - interval: str = '24h', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display dataframe with mean hashrate of btc or eth blockchain and symbol price. - [Source: https://glassnode.org] -

- -* **Parameters** - - symbol : str - Blockchain to check mean hashrate (BTC or ETH) - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - interval : str - Interval frequency (possible values are: 24, 1w, 1month) - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/info/_index.rst b/website/content/SDK/crypto/onchain/info/_index.rst deleted file mode 100644 index 9e2e72889d8..00000000000 --- a/website/content/SDK/crypto/onchain/info/_index.rst +++ /dev/null @@ -1,73 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.info( - address, chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get info about ERC20 token. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with information about provided ERC20 token. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.info( - address: str, - social: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display info about ERC20 token. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 - social: bool - Flag to display social media links - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/lt/_index.rst b/website/content/SDK/crypto/onchain/lt/_index.rst deleted file mode 100644 index 8c88379438b..00000000000 --- a/website/content/SDK/crypto/onchain/lt/_index.rst +++ /dev/null @@ -1,98 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.lt( - trade_amount_currency: str = 'USD', - limit: int = 90, - sortby: str = 'tradeAmount', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get trades on Decentralized Exchanges aggregated by DEX [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - trade_amount_currency: str - Currency of displayed trade amount. Default: USD - limit: int - Last n days to query data. Maximum 365 (bigger numbers can cause timeouts - on server side) - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Trades on Decentralized Exchanges aggregated by DEX - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.lt( - trade_amount_currency: str = 'USD', - kind: str = 'dex', - limit: int = 20, - days: int = 90, - sortby: str = 'tradeAmount', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Trades on Decentralized Exchanges aggregated by DEX or Month - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - kind: str - Aggregate trades by dex or time - trade_amount_currency: str - Currency of displayed trade amount. Default: USD - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - days: int - Last n days to query data. Maximum 365 (bigger numbers can cause timeouts - on server side) - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/prices/_index.rst b/website/content/SDK/crypto/onchain/prices/_index.rst deleted file mode 100644 index 04f91e3076f..00000000000 --- a/website/content/SDK/crypto/onchain/prices/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.prices( - address, sortby: str = 'date', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get token historical prices with volume and market cap, and average price. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token e.g. 0xf3db5fa2c66b7af3eb0c0b782510816cbe4813b8 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with token historical prices. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.prices( - address: str, - limit: int = 30, - sortby: str = 'date', - ascend: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display token historical prices with volume and market cap, and average price. - [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/query_graph/_index.rst b/website/content/SDK/crypto/onchain/query_graph/_index.rst deleted file mode 100644 index 734895c3bde..00000000000 --- a/website/content/SDK/crypto/onchain/query_graph/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.query_graph( - url: str, - query: str, - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Helper methods for querying graphql api. [Source: https://bitquery.io/] -

- -* **Parameters** - - url: str - Endpoint url - query: str - Graphql query - -* **Returns** - - dict: - Dictionary with response data diff --git a/website/content/SDK/crypto/onchain/th/_index.rst b/website/content/SDK/crypto/onchain/th/_index.rst deleted file mode 100644 index 9cdef7ccb38..00000000000 --- a/website/content/SDK/crypto/onchain/th/_index.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.th( - address, sortby: str = 'timestamp', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get info about token historical transactions. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token e.g. 0xf3db5fa2c66b7af3eb0c0b782510816cbe4813b8 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with token historical transactions. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.th( - address: str, - limit: int = 10, - sortby: str = 'timestamp', - ascend: bool = False, - hash_: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display info about token history. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - hash\_: bool, - Flag to show transaction hash. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/token_decimals/_index.rst b/website/content/SDK/crypto/onchain/token_decimals/_index.rst deleted file mode 100644 index bafe5cd06fb..00000000000 --- a/website/content/SDK/crypto/onchain/token_decimals/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.token_decimals( - address: str, - chart: bool = False, -) -> Optional[int] -{{< /highlight >}} - -.. raw:: html - -

- Helper methods that gets token decimals number. [Source: Ethplorer] -

- -* **Parameters** - - address: str - Blockchain balance e.g. 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 - -* **Returns** - - pd.DataFrame: - DataFrame with list of tokens and their balances. diff --git a/website/content/SDK/crypto/onchain/top/_index.rst b/website/content/SDK/crypto/onchain/top/_index.rst deleted file mode 100644 index a387d9e3153..00000000000 --- a/website/content/SDK/crypto/onchain/top/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.top( - sortby: str = 'rank', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top 50 tokens. [Source: Ethplorer] - - Returns - ------- - pd.DataFrame: - DataFrame with list of top 50 tokens. -

- -* **Returns** - - pd.DataFrame: - DataFrame with list of top 50 tokens. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.top( - limit: int = 15, - sortby: str = 'rank', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display top ERC20 tokens [Source: Ethplorer] -

- -* **Parameters** - - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in descending order. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/ttcp/_index.rst b/website/content/SDK/crypto/onchain/ttcp/_index.rst deleted file mode 100644 index 035afc15343..00000000000 --- a/website/content/SDK/crypto/onchain/ttcp/_index.rst +++ /dev/null @@ -1,98 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.ttcp( - network: str = 'ethereum', - exchange: str = 'Uniswap', - limit: int = 90, - sortby: str = 'tradeAmount', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get most traded crypto pairs on given decentralized exchange in chosen time period. - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - network: str - EVM network. One from list: bsc (binance smart chain), ethereum or matic - exchange: - Decentralized exchange name - limit: - Number of days taken into calculation account. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.ttcp( - exchange='Uniswap', days: int = 10, - limit: int = 10, - sortby: str = 'tradeAmount', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display most traded crypto pairs on given decentralized exchange in chosen time period. - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - exchange: - Decentralized exchange name - days: - Number of days taken into calculation account. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Most traded crypto pairs on given decentralized exchange in chosen time period. diff --git a/website/content/SDK/crypto/onchain/tv/_index.rst b/website/content/SDK/crypto/onchain/tv/_index.rst deleted file mode 100644 index 6b0ba1aedaa..00000000000 --- a/website/content/SDK/crypto/onchain/tv/_index.rst +++ /dev/null @@ -1,98 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.tv( - symbol: str = 'UNI', - trade_amount_currency: str = 'USD', - sortby: str = 'tradeAmount', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get token volume on different Decentralized Exchanges. [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - symbol: str - ERC20 token symbol. - trade_amount_currency: str - Currency to display trade amount in. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Token volume on Decentralized Exchanges - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.tv( - symbol: str = 'WBTC', - trade_amount_currency: str = 'USD', - limit: int = 10, - sortby: str = 'tradeAmount', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display token volume on different Decentralized Exchanges. - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - symbol: str - ERC20 token symbol or address - trade_amount_currency: str - Currency of displayed trade amount. Default: USD - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Token volume on different decentralized exchanges diff --git a/website/content/SDK/crypto/onchain/tx/_index.rst b/website/content/SDK/crypto/onchain/tx/_index.rst deleted file mode 100644 index 2571ad247b5..00000000000 --- a/website/content/SDK/crypto/onchain/tx/_index.rst +++ /dev/null @@ -1,70 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.tx( - tx_hash, chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get info about transaction. [Source: Ethplorer] -

- -* **Parameters** - - tx_hash: str - Transaction hash e.g. 0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with information about ERC20 token transaction. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.tx( - tx_hash: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display info about transaction. [Source: Ethplorer] -

- -* **Parameters** - - tx_hash: str - Transaction hash e.g. 0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6 - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/onchain/ueat/_index.rst b/website/content/SDK/crypto/onchain/ueat/_index.rst deleted file mode 100644 index c6bbd2ecf95..00000000000 --- a/website/content/SDK/crypto/onchain/ueat/_index.rst +++ /dev/null @@ -1,99 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.ueat( - interval: str = 'day', - limit: int = 90, - sortby: str = 'tradeAmount', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get number of unique ethereum addresses which made a transaction in given time interval. -

- -* **Parameters** - - interval: str - Time interval in which count unique ethereum addresses which made transaction. day, - month or week. - limit: int - Number of records for data query. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Unique ethereum addresses which made a transaction - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.ueat( - interval: str = 'days', - limit: int = 10, - sortby: str = 'date', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display number of unique ethereum addresses which made a transaction in given time interval - [Source: https://graphql.bitquery.io/] -

- -* **Parameters** - - interval: str - Time interval in which ethereum address made transaction. month, week or day - limit: int - Number of records to display. It's calculated base on provided interval. - If interval is month then calculation is made in the way: limit * 30 = time period, - in case if interval is set to week, then time period is calculated as limit * 7. - For better user experience maximum time period in days is equal to 90. - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Number of unique ethereum addresses which made a transaction in given time interval diff --git a/website/content/SDK/crypto/onchain/whales/_index.rst b/website/content/SDK/crypto/onchain/whales/_index.rst deleted file mode 100644 index 5bd761a9618..00000000000 --- a/website/content/SDK/crypto/onchain/whales/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.onchain.whales( - min_value: int = 800000, - limit: int = 100, - sortby: str = 'date', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Whale Alert's API allows you to retrieve live and historical transaction data from major blockchains. - Supported blockchain: Bitcoin, Ethereum, Ripple, NEO, EOS, Stellar and Tron. [Source: https://docs.whale-alert.io/] -

- -* **Parameters** - - min_value: int - Minimum value of trade to track. - limit: int - Limit of transactions. Max 100 - sortby: str - Key to sort by. - ascend: str - Sort in ascending order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Crypto wales transactions - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.onchain.whales( - min_value: int = 800000, - limit: int = 100, - sortby: str = 'date', - ascend: bool = False, - show_address: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display huge value transactions from major blockchains. [Source: https://docs.whale-alert.io/] -

- -* **Parameters** - - min_value: int - Minimum value of trade to track. - limit: int - Limit of transactions. Maximum 100 - sortby: str - Key to sort by. - ascend: str - Sort in ascending order. - show_address: bool - Flag to show addresses of transactions. - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/_index.md b/website/content/SDK/crypto/ov/_index.md deleted file mode 100644 index 06f7542f098..00000000000 --- a/website/content/SDK/crypto/ov/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: ov -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/ov/altindex/_index.rst b/website/content/SDK/crypto/ov/altindex/_index.rst deleted file mode 100644 index 79b43188718..00000000000 --- a/website/content/SDK/crypto/ov/altindex/_index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.altindex( - period: int = 30, - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get altcoin index overtime - [Source: https://blockchaincenter.net] -

- -* **Parameters** - - period: int - Number of days {30,90,365} to check performance of coins and calculate the altcoin index. - E.g., 365 checks yearly performance, 90 will check seasonal performance (90 days), - 30 will check monthly performance (30 days). - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame: - Date, Value (Altcoin Index) - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.altindex( - period: int = 365, - start_date: str = '2010-01-01', - end_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays altcoin index overtime - [Source: https://blockchaincenter.net] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - period: int - Number of days to check the performance of coins and calculate the altcoin index. - E.g., 365 will check yearly performance , 90 will check seasonal performance (90 days), - 30 will check monthly performance (30 days). - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/btcrb/_index.rst b/website/content/SDK/crypto/ov/btcrb/_index.rst deleted file mode 100644 index fb480cf5130..00000000000 --- a/website/content/SDK/crypto/ov/btcrb/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.btcrb( - start_date: str = '2010-01-01', - end_date: str = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get bitcoin price data - [Price data from source: https://glassnode.com] - [Inspired by: https://blockchaincenter.net] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.btcrb( - start_date: str = '2010-01-01', - end_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays bitcoin rainbow chart - [Price data from source: https://glassnode.com] - [Inspired by: https://blockchaincenter.net] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cbpairs/_index.rst b/website/content/SDK/crypto/ov/cbpairs/_index.rst deleted file mode 100644 index 849a038b637..00000000000 --- a/website/content/SDK/crypto/ov/cbpairs/_index.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cbpairs( - limit: int = 50, - sortby: str = 'quote_increment', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get a list of available currency pairs for trading. [Source: Coinbase] - - base_min_size - min order size - base_max_size - max order size - min_market_funds - min funds allowed in a market order. - max_market_funds - max funds allowed in a market order. -

- -* **Parameters** - - limit: int - Top n of pairs - sortby: str - Key to sortby data - ascend: bool - Sort descending flag - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Available trading pairs on Coinbase - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cbpairs( - limit: int = 20, - sortby: str = 'quote_increment', - ascend: bool = True, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays a list of available currency pairs for trading. [Source: Coinbase] -

- -* **Parameters** - - limit: int - Top n of pairs - sortby: str - Key to sortby data - ascend: bool - Sort ascending flag - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgcategories/_index.rst b/website/content/SDK/crypto/ov/cgcategories/_index.rst deleted file mode 100644 index 260f57f7ca4..00000000000 --- a/website/content/SDK/crypto/ov/cgcategories/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgcategories( - sort_filter: str = 'market_cap_desc', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns top crypto categories [Source: CoinGecko] - - Returns - ------- - pandas.DataFrame - Rank, Name, Change_1h, Change_7d, Market_Cap, Volume_24h,Coins, Url -

- -* **Returns** - - pandas.DataFrame - Rank, Name, Change_1h, Change_7d, Market_Cap, Volume_24h,Coins, Url - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgcategories( - sortby: str = 'market_cap_desc', - limit: int = 15, - export: str = '', - pie: bool = False, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows top cryptocurrency categories by market capitalization - - The cryptocurrency category ranking is based on market capitalization. [Source: CoinGecko] -

- -* **Parameters** - - sortby: str - Key by which to sort data - limit: int - Number of records to display - export: str - Export dataframe data to csv,json,xlsx file - pie: bool - Whether to show the pie chart - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgdefi/_index.rst b/website/content/SDK/crypto/ov/cgdefi/_index.rst deleted file mode 100644 index 720871a4458..00000000000 --- a/website/content/SDK/crypto/ov/cgdefi/_index.rst +++ /dev/null @@ -1,57 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgdefi() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get global statistics about Decentralized Finances [Source: CoinGecko] -

- -* **Returns** - - pandas.DataFrame - Metric, Value - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgdefi( - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows global statistics about Decentralized Finances. [Source: CoinGecko] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgderivatives/_index.rst b/website/content/SDK/crypto/ov/cgderivatives/_index.rst deleted file mode 100644 index bda098dfe1b..00000000000 --- a/website/content/SDK/crypto/ov/cgderivatives/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgderivatives( - sortby: str = 'Rank', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of crypto derivatives from CoinGecko API [Source: CoinGecko] -

- -* **Parameters** - - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Rank, Market, Symbol, Price, Pct_Change_24h, Contract_Type, Basis, Spread, - Funding_Rate, Volume_24h, - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgderivatives( - sortby: str = 'Rank', - ascend: bool = False, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows list of crypto derivatives. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgexrates/_index.rst b/website/content/SDK/crypto/ov/cgexrates/_index.rst deleted file mode 100644 index a534f80316e..00000000000 --- a/website/content/SDK/crypto/ov/cgexrates/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgexrates( - sortby: str = 'Name', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of crypto, fiats, commodity exchange rates from CoinGecko API [Source: CoinGecko] -

- -* **Parameters** - - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Index, Name, Unit, Value, Type - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgexrates( - sortby: str = 'Name', - ascend: bool = False, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows list of crypto, fiats, commodity exchange rates. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgglobal/_index.rst b/website/content/SDK/crypto/ov/cgglobal/_index.rst deleted file mode 100644 index 8854dfcdfc1..00000000000 --- a/website/content/SDK/crypto/ov/cgglobal/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgglobal() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get global statistics about crypto markets from CoinGecko API like: - Market_Cap, Volume, Market_Cap_Percentage - - [Source: CoinGecko] -

- -* **Returns** - - pandas.DataFrame - Market_Cap, Volume, Market_Cap_Percentage - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgglobal( - pie: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows global statistics about crypto. [Source: CoinGecko] - - market cap change - - number of markets - - icos - - number of active crypto - - market_cap_pct -

- -* **Parameters** - - pie: bool - Whether to show a pie chart - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cghm/_index.rst b/website/content/SDK/crypto/ov/cghm/_index.rst deleted file mode 100644 index 0e00888d840..00000000000 --- a/website/content/SDK/crypto/ov/cghm/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cghm( - limit: int = 250, - category: str = '', - sortby: str = 'Symbol', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get N coins from CoinGecko [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of top coins to grab from CoinGecko - category: str - Category of the coins we want to retrieve - sortby: str - Key to sort data - ascend: bool - Sort data in ascending order - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - N coins - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cghm( - category: str = '', - limit: int = 15, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows cryptocurrencies heatmap [Source: CoinGecko] -

- -* **Parameters** - - caterogy: str - Category (e.g., stablecoins). Empty for no category (default: ) - limit: int - Number of top cryptocurrencies to display - export: str - Export dataframe data to csv,json,xlsx - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cghold/_index.rst b/website/content/SDK/crypto/ov/cghold/_index.rst deleted file mode 100644 index 91a9da998bc..00000000000 --- a/website/content/SDK/crypto/ov/cghold/_index.rst +++ /dev/null @@ -1,78 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cghold( - endpoint: str = 'bitcoin', - chart: bool = False, -) -> List[Any] -{{< /highlight >}} - -.. raw:: html - -

- Returns public companies that holds ethereum or bitcoin [Source: CoinGecko] -

- -* **Parameters** - - endpoint : str - "bitcoin" or "ethereum" - chart: bool - Flag to display chart - - -* **Returns** - - List: - - str: Overall statistics - - pandas.DataFrame: Companies holding crypto - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cghold( - symbol: str, - show_bar: bool = False, - export: str = '', - limit: int = 15, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows overview of public companies that holds ethereum or bitcoin. [Source: CoinGecko] -

- -* **Parameters** - - symbol: str - Cryptocurrency: ethereum or bitcoin - show_bar : bool - Whether to show a bar graph for the data - export: str - Export dataframe data to csv,json,xlsx - limit: int - The number of rows to show - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgindexes/_index.rst b/website/content/SDK/crypto/ov/cgindexes/_index.rst deleted file mode 100644 index c761d5cb8ef..00000000000 --- a/website/content/SDK/crypto/ov/cgindexes/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgindexes( - sortby: str = 'Name', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of crypto indexes from CoinGecko API [Source: CoinGecko] - - Returns - ------- - pandas.DataFrame - Name, Id, Market, Last, MultiAsset - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending -

- -* **Returns** - - pandas.DataFrame - Name, Id, Market, Last, MultiAsset - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgindexes( - sortby: str = 'Name', - ascend: bool = True, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows list of crypto indexes. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgproducts/_index.rst b/website/content/SDK/crypto/ov/cgproducts/_index.rst deleted file mode 100644 index 2ed10692f49..00000000000 --- a/website/content/SDK/crypto/ov/cgproducts/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgproducts( - sortby: str = 'Name', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of financial products from CoinGecko API -

- -* **Parameters** - - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Rank, Platform, Identifier, Supply_Rate, Borrow_Rate - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgproducts( - sortby: str = 'Platform', - ascend: bool = False, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows list of financial products. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cgstables/_index.rst b/website/content/SDK/crypto/ov/cgstables/_index.rst deleted file mode 100644 index ac9ec9d27e7..00000000000 --- a/website/content/SDK/crypto/ov/cgstables/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cgstables( - limit: int = 20, - sortby: str = 'rank', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns top stable coins [Source: CoinGecko] -

- -* **Parameters** - - limit: int - How many rows to show - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Rank, Name, Symbol, Price, Change_24h, Exchanges, Market_Cap, Change_30d, Url - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cgstables( - limit: int = 15, - export: str = '', - sortby: str = 'rank', - ascend: bool = False, - pie: bool = False, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows stablecoins data [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - pie : bool - Whether to show a pie chart - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpcontracts/_index.rst b/website/content/SDK/crypto/ov/cpcontracts/_index.rst deleted file mode 100644 index 71c0e1e94f2..00000000000 --- a/website/content/SDK/crypto/ov/cpcontracts/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpcontracts( - platform_id: str = 'eth-ethereum', - sortby: str = 'active', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets all contract addresses for given platform [Source: CoinPaprika] -

- -* **Parameters** - - platform_id: str - Blockchain platform like eth-ethereum - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascend - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - id, type, active - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpcontracts( - symbol: str, - sortby: str = 'active', - ascend: bool = True, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Gets all contract addresses for given platform. [Source: CoinPaprika] -

- -* **Parameters** - - platform: str - Blockchain platform like eth-ethereum - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpexchanges/_index.rst b/website/content/SDK/crypto/ov/cpexchanges/_index.rst deleted file mode 100644 index d2e23e8b285..00000000000 --- a/website/content/SDK/crypto/ov/cpexchanges/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpexchanges( - symbols: str = 'USD', - sortby: str = 'rank', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- List exchanges from CoinPaprika API [Source: CoinPaprika] -

- -* **Parameters** - - symbols: str - Comma separated quotes to return e.g quotes=USD,BTC - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascend - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - rank, name, currencies, markets, fiats, confidence_score, reported_volume_24h, - reported_volume_7d ,reported_volume_30d, sessions_per_month, - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpexchanges( - symbol: str, - sortby: str = 'rank', - ascend: bool = True, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- List exchanges from CoinPaprika API. [Source: CoinPaprika] -

- -* **Parameters** - - currency: str - Quoted currency - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpexmarkets/_index.rst b/website/content/SDK/crypto/ov/cpexmarkets/_index.rst deleted file mode 100644 index 5448acac232..00000000000 --- a/website/content/SDK/crypto/ov/cpexmarkets/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpexmarkets( - exchange_id: str = 'binance', - symbols: str = 'USD', - sortby: str = 'pair', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- List markets by exchange ID [Source: CoinPaprika] -

- -* **Parameters** - - exchange_id: str - identifier of exchange e.g for Binance Exchange -> binance - symbols: str - Comma separated quotes to return e.g quotes=USD,BTC - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - pair, base_currency_name, quote_currency_name, market_url, - category, reported_volume_24h_share, trust_score, - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpexmarkets( - exchange: str = 'binance', - sortby: str = 'pair', - ascend: bool = True, - limit: int = 15, - links: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Get all markets for given exchange [Source: CoinPaprika] -

- -* **Parameters** - - exchange: str - Exchange identifier e.g Binance - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpglobal/_index.rst b/website/content/SDK/crypto/ov/cpglobal/_index.rst deleted file mode 100644 index bdcf0c747a0..00000000000 --- a/website/content/SDK/crypto/ov/cpglobal/_index.rst +++ /dev/null @@ -1,64 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpglobal() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Return data frame with most important global crypto statistics like: - market_cap_usd, volume_24h_usd, bitcoin_dominance_percentage, cryptocurrencies_number, - market_cap_ath_value, market_cap_ath_date, volume_24h_ath_value, volume_24h_ath_date, - market_cap_change_24h, volume_24h_change_24h, last_updated. [Source: CoinPaprika] -

- -* **Returns** - - pandas.DataFrame - Most important global crypto statistics - Metric, Value - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpglobal( - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Return data frame with most important global crypto statistics like: - market_cap_usd, volume_24h_usd, bitcoin_dominance_percentage, cryptocurrencies_number, - market_cap_ath_value, market_cap_ath_date, volume_24h_ath_value, volume_24h_ath_date, - market_cap_change_24h, volume_24h_change_24h, last_updated [Source: CoinPaprika] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpinfo/_index.rst b/website/content/SDK/crypto/ov/cpinfo/_index.rst deleted file mode 100644 index 4ae15ebc70c..00000000000 --- a/website/content/SDK/crypto/ov/cpinfo/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpinfo( - symbols: str = 'USD', - sortby: str = 'rank', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns basic coin information for all coins from CoinPaprika API [Source: CoinPaprika] -

- -* **Parameters** - - symbols: str - Comma separated quotes to return e.g quotes=USD,BTC - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - rank, name, symbol, price, volume_24h, circulating_supply, total_supply, - max_supply, market_cap, beta_value, ath_price, - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpinfo( - symbol: str, - sortby: str = 'rank', - ascend: bool = True, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays basic coin information for all coins from CoinPaprika API. [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Quoted currency - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpmarkets/_index.rst b/website/content/SDK/crypto/ov/cpmarkets/_index.rst deleted file mode 100644 index 99cf34c506e..00000000000 --- a/website/content/SDK/crypto/ov/cpmarkets/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpmarkets( - symbols: str = 'USD', - sortby: str = 'rank', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns basic coin information for all coins from CoinPaprika API [Source: CoinPaprika] -

- -* **Parameters** - - symbols: str - Comma separated quotes to return e.g quotes=USD,BTC - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascend - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - rank, name, symbol, price, volume_24h, mcap_change_24h, - pct_change_1h, pct_change_24h, ath_price, pct_from_ath, - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpmarkets( - symbol: str, - sortby: str = 'rank', - ascend: bool = True, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays basic market information for all coins from CoinPaprika API. [Source: CoinPaprika] -

- -* **Parameters** - - symbol: str - Quoted currency - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cpplatforms/_index.rst b/website/content/SDK/crypto/ov/cpplatforms/_index.rst deleted file mode 100644 index ecff56756f2..00000000000 --- a/website/content/SDK/crypto/ov/cpplatforms/_index.rst +++ /dev/null @@ -1,58 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cpplatforms() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- List all smart contract platforms like ethereum, solana, cosmos, polkadot, kusama ... [Source: CoinPaprika] -

- -* **Returns** - - pandas.DataFrame - index, platform_id - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cpplatforms( - export: str, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- List all smart contract platforms like ethereum, solana, cosmos, polkadot, kusama. - [Source: CoinPaprika] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/cr/_index.rst b/website/content/SDK/crypto/ov/cr/_index.rst deleted file mode 100644 index c3963cabe5d..00000000000 --- a/website/content/SDK/crypto/ov/cr/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.cr( - rate_type: str = 'borrow', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns crypto {borrow,supply} interest rates for cryptocurrencies across several platforms - [Source: https://loanscan.io/] -

- -* **Parameters** - - rate_type : str - Interest rate type: {borrow, supply}. Default: supply - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame: crypto interest rates per platform - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.cr( - symbols: str, - platforms: str, - rate_type: str = 'borrow', - limit: int = 10, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Displays crypto {borrow,supply} interest rates for cryptocurrencies across several platforms - [Source: https://loanscan.io/] -

- -* **Parameters** - - rate_type: str - Interest rate type: {borrow, supply}. Default: supply - symbols: str - Crypto separated by commas. Default: BTC,ETH,USDT,USDC - platforms: str - Platforms separated by commas. Default: BlockFi,Ledn,SwissBorg,Youhodler - limit: int - Number of records to show - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/crypto_hack/_index.rst b/website/content/SDK/crypto/ov/crypto_hack/_index.rst deleted file mode 100644 index 24c0cc55d35..00000000000 --- a/website/content/SDK/crypto/ov/crypto_hack/_index.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.crypto_hack( - slug: str, - chart: bool = False, -) -> Optional[str] -{{< /highlight >}} - -.. raw:: html - -

- Get crypto hack - [Source: https://rekt.news] -

- -* **Parameters** - - slug: str - slug of crypto hack - -* **Returns** - - pandas.DataFrame: - Hacks with columns {Platform,Date,Amount [$],Audited,URL} diff --git a/website/content/SDK/crypto/ov/crypto_hack_slugs/_index.rst b/website/content/SDK/crypto/ov/crypto_hack_slugs/_index.rst deleted file mode 100644 index 770472a7952..00000000000 --- a/website/content/SDK/crypto/ov/crypto_hack_slugs/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.crypto_hack_slugs() -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- Get all crypto hack slugs - [Source: https://rekt.news] -

- -* **Returns** - - List[str]: - List with slugs diff --git a/website/content/SDK/crypto/ov/crypto_hacks/_index.rst b/website/content/SDK/crypto/ov/crypto_hacks/_index.rst deleted file mode 100644 index 0b76efc014f..00000000000 --- a/website/content/SDK/crypto/ov/crypto_hacks/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.crypto_hacks( - sortby: str = 'Platform', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get major crypto-related hacks - [Source: https://rekt.news] -

- -* **Parameters** - - sortby: str - Key by which to sort data {Platform,Date,Amount [$],Audit,Slug,URL} - ascend - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame: - Hacks with columns {Platform,Date,Amount [$],Audited,Slug,URL} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.crypto_hacks( - limit: int = 15, - sortby: str = 'Platform', - ascend: bool = False, - slug: str = 'polyntwork-rekt', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display list of major crypto-related hacks. If slug is passed - individual crypto hack is displayed instead of list of crypto hacks - [Source: https://rekt.news] -

- -* **Parameters** - - slug: str - Crypto hack slug to check (e.g., polynetwork-rekt) - limit: int - Number of hacks to search - sortby: str - Key by which to sort data {Platform,Date,Amount [$],Audit,Slug,URL} - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/ewf/_index.rst b/website/content/SDK/crypto/ov/ewf/_index.rst deleted file mode 100644 index b57ad6da985..00000000000 --- a/website/content/SDK/crypto/ov/ewf/_index.rst +++ /dev/null @@ -1,69 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.ewf() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrapes exchange withdrawal fees - [Source: https://withdrawalfees.com/] - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame: - Exchange, Coins, Lowest, Average, Median, Highest - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.ewf( - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Exchange withdrawal fees - [Source: https://withdrawalfees.com/] -

- -* **Parameters** - - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/exchanges/_index.rst b/website/content/SDK/crypto/ov/exchanges/_index.rst deleted file mode 100644 index 39a3a37bd7d..00000000000 --- a/website/content/SDK/crypto/ov/exchanges/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.exchanges( - sortby: str = 'Rank', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of top exchanges from CoinGecko API [Source: CoinGecko] -

- -* **Parameters** - - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Trust_Score, Id, Name, Country, Year_Established, Trade_Volume_24h_BTC, Url - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.exchanges( - sortby: str = 'Rank', - ascend: bool = False, - limit: int = 15, - links: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows list of top exchanges from CoinGecko. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data descending - links: bool - Flag to display urls - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/global_info/_index.rst b/website/content/SDK/crypto/ov/global_info/_index.rst deleted file mode 100644 index feef8f644ca..00000000000 --- a/website/content/SDK/crypto/ov/global_info/_index.rst +++ /dev/null @@ -1,32 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.global_info() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get global statistics about crypto from CoinGecko API like: - - market cap change - - number of markets - - icos - - number of active crypto - - [Source: CoinGecko] -

- -* **Returns** - - pandas.DataFrame - Metric, Value diff --git a/website/content/SDK/crypto/ov/list_of_coins/_index.rst b/website/content/SDK/crypto/ov/list_of_coins/_index.rst deleted file mode 100644 index 5c8f4c970da..00000000000 --- a/website/content/SDK/crypto/ov/list_of_coins/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.list_of_coins() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of all available coins on CoinPaprika [Source: CoinPaprika] -

- -* **Returns** - - pandas.DataFrame - Available coins on CoinPaprika - rank, id, name, symbol, type diff --git a/website/content/SDK/crypto/ov/news/_index.rst b/website/content/SDK/crypto/ov/news/_index.rst deleted file mode 100644 index 67d2c439645..00000000000 --- a/website/content/SDK/crypto/ov/news/_index.rst +++ /dev/null @@ -1,109 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.news( - limit: int = 60, - post_kind: str = 'news', - filter_: Optional[str] = None, - region: str = 'en', - source: Optional[str] = None, - symbol: Optional[str] = None, - sortby: str = 'published_at', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get recent posts from CryptoPanic news aggregator platform. [Source: https://cryptopanic.com/] -

- -* **Parameters** - - limit: int - number of news to fetch - post_kind: str - Filter by category of news. Available values: news or media. - filter\_: Optional[str] - Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol - region: str - Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch), - es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) - sortby: str - Key to sort by. - ascend: bool - Sort in ascend order. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with recent news from different sources filtered by provided parameters. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.news( - post_kind: str = 'news', - region: str = 'en', - filter_: Optional[str] = None, - limit: int = 25, - sortby: str = 'published_at', - ascend: bool = False, - links: bool = False, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display recent posts from CryptoPanic news aggregator platform. - [Source: https://cryptopanic.com/] -

- -* **Parameters** - - limit: int - number of news to display - post_kind: str - Filter by category of news. Available values: news or media. - filter\_: Optional[str] - Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol - region: str - Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch), - es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) - sortby: str - Key to sort by. - ascend: bool - Sort in ascending order. - links: bool - Show urls for news - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/platforms/_index.rst b/website/content/SDK/crypto/ov/platforms/_index.rst deleted file mode 100644 index 598c311cdbc..00000000000 --- a/website/content/SDK/crypto/ov/platforms/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.platforms( - sortby: str = 'Name', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get list of financial platforms from CoinGecko API [Source: CoinGecko] -

- -* **Parameters** - - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame - Rank, Name, Category, Centralized, Url - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.platforms( - sortby: str = 'Name', - ascend: bool = True, - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Shows list of financial platforms. [Source: CoinGecko] -

- -* **Parameters** - - limit: int - Number of records to display - sortby: str - Key by which to sort data - ascend: bool - Flag to sort data ascending - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/wf/_index.rst b/website/content/SDK/crypto/ov/wf/_index.rst deleted file mode 100644 index 1fdaa784917..00000000000 --- a/website/content/SDK/crypto/ov/wf/_index.rst +++ /dev/null @@ -1,73 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.wf( - limit: int = 100, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrapes top coins withdrawal fees - [Source: https://withdrawalfees.com/] -

- -* **Parameters** - - limit: int - Number of coins to search, by default n=100, one page has 100 coins, so 1 page is scraped. - chart: bool - Flag to display chart - - -* **Returns** - - pandas.DataFrame: - Coin, Lowest, Average, Median, Highest, Exchanges Compared - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.wf( - limit: int = 15, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Top coins withdrawal fees - [Source: https://withdrawalfees.com/] -

- -* **Parameters** - - limit: int - Number of coins to search - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/ov/wfpe/_index.rst b/website/content/SDK/crypto/ov/wfpe/_index.rst deleted file mode 100644 index 64ba0b24a67..00000000000 --- a/website/content/SDK/crypto/ov/wfpe/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.ov.wfpe( - symbol: str, - chart: bool = False, -) -> List[Any] -{{< /highlight >}} - -.. raw:: html - -

- Scrapes coin withdrawal fees per exchange - [Source: https://withdrawalfees.com/] -

- -* **Parameters** - - symbol: str - Coin to check withdrawal fees. By default bitcoin - chart: bool - Flag to display chart - - -* **Returns** - - List: - - str: Overall statistics (exchanges, lowest, average and median) - - pandas.DataFrame: Exchange, Withdrawal Fee, Minimum Withdrawal Amount - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.ov.wfpe( - symbol: str, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Coin withdrawal fees per exchange - [Source: https://withdrawalfees.com/] -

- -* **Parameters** - - symbol: str - Coin to check withdrawal fees - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/crypto/price/_index.rst b/website/content/SDK/crypto/price/_index.rst deleted file mode 100644 index f333e88681a..00000000000 --- a/website/content/SDK/crypto/price/_index.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.price( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Returns price and confidence interval from pyth live feed. [Source: Pyth] -

- -* **Parameters** - - symbol : str - Symbol of the asset to get price and confidence interval from - -* **Returns** - - float - Price of the asset - float - Confidence level - float - Previous price of the asset diff --git a/website/content/SDK/crypto/tools/_index.md b/website/content/SDK/crypto/tools/_index.md deleted file mode 100644 index eed97217983..00000000000 --- a/website/content/SDK/crypto/tools/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: tools -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/crypto/tools/apy/_index.rst b/website/content/SDK/crypto/tools/apy/_index.rst deleted file mode 100644 index b62837dc682..00000000000 --- a/website/content/SDK/crypto/tools/apy/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.tools.apy( - apr: float, - compounding_times: int, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, str] -{{< /highlight >}} - -.. raw:: html - -

- Converts apr into apy -

- -* **Parameters** - - apr: float - value in percentage - compounding_times: int - number of compounded periods in a year - chart: bool - Flag to display chart - - -* **Returns** - - Tuple: - - pd.DataFrame: dataframe with results - - str: narrative version of results - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.tools.apy( - apr: float, - compounding_times: int, - narrative: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays APY value converted from APR -

- -* **Parameters** - - apr: float - value in percentage - compounding_times: int - number of compounded periods in a year - narrative: str - display narrative version instead of dataframe - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - diff --git a/website/content/SDK/crypto/tools/il/_index.rst b/website/content/SDK/crypto/tools/il/_index.rst deleted file mode 100644 index 81d43f1d640..00000000000 --- a/website/content/SDK/crypto/tools/il/_index.rst +++ /dev/null @@ -1,97 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -crypto.tools.il( - price_changeA: float, - price_changeB: float, - proportion: float, - initial_pool_value: float, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, str] -{{< /highlight >}} - -.. raw:: html - -

- Calculates Impermanent Loss in a custom liquidity pool -

- -* **Parameters** - - price_changeA: float - price change of crypto A in percentage - price_changeB: float - price change of crypto B in percentage - proportion: float - percentage of first token in pool - initial_pool_value: float - initial value that pool contains - chart: bool - Flag to display chart - - -* **Returns** - - Tuple: - - pd.DataFrame: dataframe with results - - str: narrative version of results - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -crypto.tools.il( - price_changeA: int, - price_changeB: int, - proportion: int, - initial_pool_value: int, - narrative: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays Impermanent Loss in a custom liquidity pool -

- -* **Parameters** - - price_changeA: float - price change of crypto A in percentage - price_changeB: float - price change of crypto B in percentage - proportion: float - percentage of first token in pool - initial_pool_value: float - initial value that pool contains - narrative: str - display narrative version instead of dataframe - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - diff --git a/website/content/SDK/econometrics/_index.md b/website/content/SDK/econometrics/_index.md deleted file mode 100644 index 36d323b09fd..00000000000 --- a/website/content/SDK/econometrics/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: econometrics -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/econometrics/bgod/_index.rst b/website/content/SDK/econometrics/bgod/_index.rst deleted file mode 100644 index b2dbbc34d3c..00000000000 --- a/website/content/SDK/econometrics/bgod/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.bgod( - model: pandas.core.frame.DataFrame, - lags: int = 3, - chart: bool = False, -) -> tuple -{{< /highlight >}} - -.. raw:: html - -

- Calculate test statistics for autocorrelation -

- -* **Parameters** - - model : OLS Model - Model containing residual values. - lags : int - The amount of lags. - chart: bool - Flag to display chart - - -* **Returns** - - Test results from the Breusch-Godfrey Test - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.bgod( - model: pandas.core.frame.DataFrame, - lags: int = 3, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show Breusch-Godfrey autocorrelation test -

- -* **Parameters** - - model : OLS Model - Model containing residual values. - lags : int - The amount of lags included. - export : str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/bols/_index.rst b/website/content/SDK/econometrics/bols/_index.rst deleted file mode 100644 index aa2df70b992..00000000000 --- a/website/content/SDK/econometrics/bols/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.bols( - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- The between estimator is an alternative, usually less efficient estimator, can can be used to - estimate model parameters. It is particular simple since it first computes the time averages of - y and x and then runs a simple regression using these averages. [Source: LinearModels] -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the Between OLS model. diff --git a/website/content/SDK/econometrics/bpag/_index.rst b/website/content/SDK/econometrics/bpag/_index.rst deleted file mode 100644 index 50a68c1c989..00000000000 --- a/website/content/SDK/econometrics/bpag/_index.rst +++ /dev/null @@ -1,70 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.bpag( - model: pandas.core.frame.DataFrame, - chart: bool = False, -) -> tuple -{{< /highlight >}} - -.. raw:: html - -

- Calculate test statistics for heteroscedasticity -

- -* **Parameters** - - model : OLS Model - Model containing residual values. - chart: bool - Flag to display chart - - -* **Returns** - - Test results from the Breusch-Pagan Test - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.bpag( - model: pandas.core.frame.DataFrame, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show Breusch-Pagan heteroscedasticity test -

- -* **Parameters** - - model : OLS Model - Model containing residual values. - export : str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/clean/_index.rst b/website/content/SDK/econometrics/clean/_index.rst deleted file mode 100644 index 913e9eb50f5..00000000000 --- a/website/content/SDK/econometrics/clean/_index.rst +++ /dev/null @@ -1,45 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.clean( - dataset: pandas.core.frame.DataFrame, - fill: str = '', - drop: str = '', - limit: Optional[int] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Clean up NaNs from the dataset -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to clean - fill : str - The method of filling NaNs. Choose from: - rfill, cfill, rbfill, cbfill, rffill, cffill - drop : str - The method of dropping NaNs. Choose from: - rdrop, cdrop - limit : int - The maximum limit you wish to apply that can be forward or backward filled - -* **Returns** - - pd.DataFrame: - Dataframe with cleaned up data diff --git a/website/content/SDK/econometrics/coint/_index.rst b/website/content/SDK/econometrics/coint/_index.rst deleted file mode 100644 index fbd7567e58e..00000000000 --- a/website/content/SDK/econometrics/coint/_index.rst +++ /dev/null @@ -1,133 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.coint( - dependent_series, independent_series, chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Estimates long-run and short-run cointegration relationship for series y and x and apply - the two-step Engle & Granger test for cointegration. - - Uses a 2-step process to first estimate coefficients for the long-run relationship - y_t = c + gamma * x_t + z_t - - and then the short-term relationship, - y_t - y_(t-1) = alpha * z_(t-1) + epsilon_t, - - with z the found residuals of the first equation. - - Then tests cointegration by Dickey-Fuller phi=1 vs phi < 1 in - z_t = phi * z_(t-1) + eta_t - - If this implies phi < 1, the z series is stationary is concluded to be - stationary, and thus the series y and x are concluded to be cointegrated. -

- -* **Parameters** - - dependent_series : pd.Series - The first time series of the pair to analyse. - - independent_series : pd.Series - The second time series of the pair to analyse. - chart: bool - Flag to display chart - - -* **Returns** - - c : float - The constant term in the long-run relationship y_t = c + gamma * x_t + z_t. This - describes the static shift of y with respect to gamma * x. - - gamma : float - The gamma term in the long-run relationship y_t = c + gamma * x_t + z_t. This - describes the ratio between the const-shifted y and x. - - alpha : float - The alpha term in the short-run relationship y_t - y_(t-1) = alpha * z_(t-1) + epsilon. This - gives an indication of the strength of the error correction toward the long-run mean. - - z : pd.Series - Series of residuals z_t from the long-run relationship y_t = c + gamma * x_t + z_t, representing - the value of the error correction term. - - dfstat : float - The Dickey Fuller test-statistic for phi = 1 vs phi < 1 in the second equation. A more - negative value implies the existence of stronger cointegration. - - pvalue : float - The p-value corresponding to the Dickey Fuller test-statistic. A lower value implies - stronger rejection of no-cointegration, thus stronger evidence of cointegration. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.coint( - datasets: Union[pandas.core.frame.DataFrame, Dict[str, pandas.core.series.Series]], - significant: bool = False, - plot: bool = False, - export: str = '', - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Estimates long-run and short-run cointegration relationship for series y and x and apply - the two-step Engle & Granger test for cointegration. - - Uses a 2-step process to first estimate coefficients for the long-run relationship - y_t = c + gamma * x_t + z_t - - and then the short-term relationship, - y_t - y_(t-1) = alpha * z_(t-1) + epsilon_t, - - with z the found residuals of the first equation. - - Then tests co-integration with the Dickey-Fuller phi=1 vs phi < 1 in - z_t = phi * z_(t-1) + eta_t - - If this implies phi < 1, the z series is stationary is concluded to be - stationary, and thus the series y and x are concluded to be cointegrated. -

- -* **Parameters** - - datasets: Union[pd.DataFrame, Dict[str, pd.Series]] - All time series to perform co-integration tests on. - significant: float - Show only companies that have p-values lower than this percentage - plot: bool - Whether you wish to plot the z-values of all pairs. - export : str - Format to export data - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/comparison/_index.rst b/website/content/SDK/econometrics/comparison/_index.rst deleted file mode 100644 index b752aa4c669..00000000000 --- a/website/content/SDK/econometrics/comparison/_index.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.comparison( - regressions, export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Compare regression results between Panel Data regressions. -

- -* **Parameters** - - regressions : Dict - Dictionary with regression results. - export : str - Format to export data - -* **Returns** - - Returns a PanelModelComparison which shows an overview of the different regression results. diff --git a/website/content/SDK/econometrics/dwat/_index.rst b/website/content/SDK/econometrics/dwat/_index.rst deleted file mode 100644 index 871c7979642..00000000000 --- a/website/content/SDK/econometrics/dwat/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.dwat( - residual: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate test statistics for Durbing Watson autocorrelation -

- -* **Parameters** - - residual : OLS Model - Model containing residual values. - chart: bool - Flag to display chart - - -* **Returns** - - Test statistic of the Durbin Watson test. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.dwat( - dependent_variable: pandas.core.series.Series, - residual: pandas.core.frame.DataFrame, - plot: bool = False, - export: str = '', - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show Durbin-Watson autocorrelation tests -

- -* **Parameters** - - dependent_variable : pd.Series - The dependent variable. - residual : OLS Model - The residual of an OLS model. - plot : bool - Whether to plot the residuals - export : str - Format to export data - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/fdols/_index.rst b/website/content/SDK/econometrics/fdols/_index.rst deleted file mode 100644 index 6534759473e..00000000000 --- a/website/content/SDK/econometrics/fdols/_index.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.fdols( - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- First differencing is an alternative to using fixed effects when there might be correlation. - When using first differences, time-invariant variables must be excluded. Additionally, - only one linear time-trending variable can be included since this will look like a constant. - This variable will soak up all time-trends in the data, and so interpretations of - these variable can be challenging. [Source: LinearModels] -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the OLS model. diff --git a/website/content/SDK/econometrics/fe/_index.rst b/website/content/SDK/econometrics/fe/_index.rst deleted file mode 100644 index 29779dc8782..00000000000 --- a/website/content/SDK/econometrics/fe/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.fe( - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - entity_effects: bool = False, - time_effects: bool = False, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- When effects are correlated with the regressors the RE and BE estimators are not consistent. - The usual solution is to use Fixed Effects which are called entity_effects when applied to - entities and time_effects when applied to the time dimension. [Source: LinearModels] -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - entity_effects : bool - Whether to include entity effects - time_effects : bool - Whether to include time effects - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the OLS model. diff --git a/website/content/SDK/econometrics/get_regression_data/_index.rst b/website/content/SDK/econometrics/get_regression_data/_index.rst deleted file mode 100644 index a2dac5a3ea0..00000000000 --- a/website/content/SDK/econometrics/get_regression_data/_index.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.get_regression_data( - regression_variables: List[tuple], - data: Dict[str, pandas.core.frame.DataFrame], - regression_type: str = '', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any]] -{{< /highlight >}} - -.. raw:: html - -

- This function creates a DataFrame with the required regression data as - well sets up the dependent and independent variables. -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - regression_type: str - The type of regression that is executed. - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the OLS model. diff --git a/website/content/SDK/econometrics/granger/_index.rst b/website/content/SDK/econometrics/granger/_index.rst deleted file mode 100644 index b14e4584ed5..00000000000 --- a/website/content/SDK/econometrics/granger/_index.rst +++ /dev/null @@ -1,78 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.granger( - dependent_series, independent_series, lags, chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Calculate granger tests -

- -* **Parameters** - - dependent_series: Series - The series you want to test Granger Causality for. - independent_series: Series - The series that you want to test whether it Granger-causes time_series_y - lags : int - The amount of lags for the Granger test. By default, this is set to 3. - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.granger( - dependent_series: pandas.core.series.Series, - independent_series: pandas.core.series.Series, - lags: int = 3, - confidence_level: float = 0.05, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show granger tests -

- -* **Parameters** - - dependent_series: Series - The series you want to test Granger Causality for. - independent_series: Series - The series that you want to test whether it Granger-causes dependent_series - lags : int - The amount of lags for the Granger test. By default, this is set to 3. - confidence_level: float - The confidence level you wish to use. By default, this is set to 0.05. - export : str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/load/_index.rst b/website/content/SDK/econometrics/load/_index.rst deleted file mode 100644 index 4a827a7c5c2..00000000000 --- a/website/content/SDK/econometrics/load/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.load( - file: str, - data_files: Optional[Dict[Any, Any]] = None, - data_examples: Optional[Dict[Any, Any]] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Load custom file into dataframe. -

- -* **Parameters** - - file: str - Path to file - data_files: dict - Contains all available data files within the Export folder - data_examples: dict - Contains all available examples from Statsmodels - -* **Returns** - - pd.DataFrame: - Dataframe with custom data diff --git a/website/content/SDK/econometrics/norm/_index.rst b/website/content/SDK/econometrics/norm/_index.rst deleted file mode 100644 index 5f76275fada..00000000000 --- a/website/content/SDK/econometrics/norm/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.norm( - data: pandas.core.series.Series, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- The distribution of returns and generate statistics on the relation to the normal curve. - This function calculates skew and kurtosis (the third and fourth moments) and performs both - a Jarque-Bera and Shapiro Wilk test to determine if data is normally distributed. -

- -* **Parameters** - - data : pd.Series - A series or column of a DataFrame to test normality for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing statistics of normality - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.norm( - data: pandas.core.series.Series, - dataset: str = '', - column: str = '', - plot: bool = False, - export: str = '', - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Determine the normality of a timeseries. -

- -* **Parameters** - - data: pd.Series - Series of custom data - dataset: str - Dataset name - column: str - Column for y data - plot : bool - Whether you wish to plot a histogram - export: str - Format to export data. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/ols/_index.rst b/website/content/SDK/econometrics/ols/_index.rst deleted file mode 100644 index 225b46c5715..00000000000 --- a/website/content/SDK/econometrics/ols/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.ols( - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - show_regression: bool = True, - export: str = '', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs an OLS regression on timeseries data. [Source: Statsmodels] -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - show_regression: bool - Whether to show the regression results table. - export: str - Format to export data - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the OLS model. diff --git a/website/content/SDK/econometrics/options/_index.rst b/website/content/SDK/econometrics/options/_index.rst deleted file mode 100644 index 3ca49e885da..00000000000 --- a/website/content/SDK/econometrics/options/_index.rst +++ /dev/null @@ -1,78 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.options( - datasets: Dict[str, pandas.core.frame.DataFrame], - dataset_name: str = '', - chart: bool = False, -) -> Dict[Union[str, Any], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Obtain columns-dataset combinations from loaded in datasets that can be used in other commands -

- -* **Parameters** - - datasets: dict - The available datasets. - dataset_name: str - The dataset you wish to show the options for. - chart: bool - Flag to display chart - - -* **Returns** - - option_tables: dict - A dictionary with a DataFrame for each option. With dataset_name set, only shows one - options table. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.options( - datasets: Dict[str, pandas.core.frame.DataFrame], - dataset_name: str = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot custom data -

- -* **Parameters** - - datasets: dict - The loaded in datasets - dataset_name: str - The name of the dataset you wish to show options for - export: str - Format to export image - chart: bool - Flag to display chart - diff --git a/website/content/SDK/econometrics/panel/_index.rst b/website/content/SDK/econometrics/panel/_index.rst deleted file mode 100644 index 27a25cc6289..00000000000 --- a/website/content/SDK/econometrics/panel/_index.rst +++ /dev/null @@ -1,104 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.panel( - regression_type: str, - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - entity_effects: bool = False, - time_effects: bool = False, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- Based on the regression type, this function decides what regression to run. -

- -* **Parameters** - - regression_type: str - The type of regression you wish to execute. - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - entity_effects: bool - Whether to apply Fixed Effects on entities. - time_effects: bool - Whether to apply Fixed Effects on time. - chart: bool - Flag to display chart - - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the regression model. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.panel( - data: Dict[str, pandas.core.frame.DataFrame], - regression_variables: List[Tuple], - regression_type: str = 'OLS', - entity_effects: bool = False, - time_effects: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Based on the regression type, this function decides what regression to run. -

- -* **Parameters** - - data : dict - A dictionary containing the datasets. - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - each column/dataset combination. - regression_type: str - The type of regression you wish to execute. Choose from: - OLS, POLS, RE, BOLS, FE - entity_effects: bool - Whether to apply Fixed Effects on entities. - time_effects: bool - Whether to apply Fixed Effects on time. - export : str - Format to export data - chart: bool - Flag to display chart - - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the regression model. diff --git a/website/content/SDK/econometrics/pols/_index.rst b/website/content/SDK/econometrics/pols/_index.rst deleted file mode 100644 index b1c2d1364ce..00000000000 --- a/website/content/SDK/econometrics/pols/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.pols( - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- PooledOLS is just plain OLS that understands that various panel data structures. - It is useful as a base model. [Source: LinearModels] -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the Pooled OLS model. diff --git a/website/content/SDK/econometrics/re/_index.rst b/website/content/SDK/econometrics/re/_index.rst deleted file mode 100644 index d3a13d8f220..00000000000 --- a/website/content/SDK/econometrics/re/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.re( - regression_variables: List[Tuple], - data: Dict[str, pandas.core.frame.DataFrame], - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Any, List[Any], Any] -{{< /highlight >}} - -.. raw:: html - -

- The random effects model is virtually identical to the pooled OLS model except that is accounts for the - structure of the model and so is more efficient. Random effects uses a quasi-demeaning strategy which - subtracts the time average of the within entity values to account for the common shock. [Source: LinearModels] -

- -* **Parameters** - - regression_variables : list - The regressions variables entered where the first variable is - the dependent variable. - data : dict - A dictionary containing the datasets. - -* **Returns** - - The dataset used, the dependent variable, the independent variable and - the RandomEffects model. diff --git a/website/content/SDK/econometrics/root/_index.rst b/website/content/SDK/econometrics/root/_index.rst deleted file mode 100644 index 6c405b6fd87..00000000000 --- a/website/content/SDK/econometrics/root/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -econometrics.root( - data: pandas.core.series.Series, - fuller_reg: str = 'c', - kpss_reg: str = 'c', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate test statistics for unit roots -

- -* **Parameters** - - data : pd.Series - Series or column of DataFrame of target variable - fuller_reg : str - Type of regression of ADF test - kpss_reg : str - Type of regression for KPSS test - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with results of ADF test and KPSS test - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -econometrics.root( - data: pandas.core.series.Series, - dataset: str = '', - column: str = '', - fuller_reg: str = 'c', - kpss_reg: str = 'c', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Determine the normality of a timeseries. -

- -* **Parameters** - - data : pd.Series - Series of target variable - dataset: str - Name of the dataset - column: str - Name of the column - fuller_reg : str - Type of regression of ADF test. Choose c, ct, ctt, or nc - kpss_reg : str - Type of regression for KPSS test. Choose c or ct - export: str - Format to export data. - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/_index.md b/website/content/SDK/economy/_index.md deleted file mode 100644 index 6896103d085..00000000000 --- a/website/content/SDK/economy/_index.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: Introduction to Economy -keywords: "fred, sdk, api, bonds, treasury, treasuries, spread, events, calendar, futures, future, yield, curve, macro, index, indices, performance, bigmac, series, gdp, indicators" -excerpt: "This guide introduces the Economy module within the OpenBB SDK and provides some use examples." -geekdocCollapseSection: true ---- -The Economy module wraps the functions of the Economy menu, within the OpenBB Terminal, and provides the user with more control over their workflow. In a Jupyter Notebook environment, it is quick and easy to get going. Start a new `.ipynb` Notebook file, or a `.py` Python script by importing the necessary modules for the tasks at hand. For the purpose of these examples, two additional modules will be imported: -```` -from openbb_terminal.sdk import openbb -import pandas as pd -%matplotlib inline -```` -Jupyter Lab can be launched from the command line, in the `OpenBBTerminal` folder and with the Conda environment already activated, by entering either: `jupyter lab`, or, `jupyter notebook`; and then pressing `enter`. This will launch a browser window for the session. - -To get the most out of these functions, it is highly recommended to acquire an API key to access the FRED data library. This is free, just create an account here, then look in the account settings for the assigned API key. - -Refer to the Introduction Guide to API Keys within the OpenBB SDK for instructions on setting the API keys, with the Keys module. - -## How to Use - -With the modules imported, the code completion is activated after entering the `.` after, `openbb.economy` - -![Economy Menu Code Completion](https://user-images.githubusercontent.com/85772166/198433265-69073c7a-5494-4275-a0e7-bdcc1c4b431c.png) - -Just like the other modules, there are several methods for returning the docstrings of a single function: - - - Use Python's built-in help: `help(openbb.economy.index)` - - View the documentation online: https://openbb-finance.github.io/OpenBBTerminal/SDK/economy/index/ - - Open the Contextual Help window -```` -openbb.economy.index(indices = ['nyse', 'nasdaq', 'amex', 'ca_tsx', 'dow_dji', 'in_nse50']) -```` - -![Contextual Help](https://user-images.githubusercontent.com/85772166/198433406-b61f3bed-21fe-47c3-95d0-ee3c17931f92.png) - -There are some differences when comparing SDK functions against the OpenBB Terminal commands. For example, the Terminal command, `/economy/index --show`, becomes: `openbb.economy.available_indices()`. This returns a list of dictionaries; convert them to a DataFrame with: -```` -pd.DataFrame.from_dict(openbb.economy.available_indices()).transpose() -```` - -![openbb.economy.available_indices()](https://user-images.githubusercontent.com/85772166/198433551-921ec05d-6a96-44ff-b164-c7af18602d82.png) - -To display a chart inside the Notebook, instead of a DataFrame, add `chart = True` to the command syntax. For example: -```` -openbb.economy.index(indices = ['sp500', 'sp500tr'], chart = True) -```` - -![S&P 500 vs. S&P 500 Total Return Index](https://user-images.githubusercontent.com/85772166/198433750-c62794ee-a26e-4da8-85b7-0782196efd11.png) - -It is also possible to make a DataFrame of a stock and an index. The list of symbols fed to the `index` function can be the dictionary name from, `openbb.economy.available_indices()`, or it can be a ticker symbol that is recognized by `yFinance`. As an example: -```` -openbb.economy.index(indices = ['move', 'aapl'], chart = True, start_date = '2016-01-01') -```` - -![AAPL vs MOVE Index](https://user-images.githubusercontent.com/85772166/198433917-ebd06b62-e5a1-4d53-94be-ea2680297139.png) - -Another notable difference, between OpenBB Terminal commands and their corresponding SDK functions, is the way `fred` works. With the OpenBB SDK, the `fred` function is broken down into four components, as shown here: - -![FRED functions in the OpenBB SDK](https://user-images.githubusercontent.com/85772166/198434069-a0f4deb0-6db3-421e-bd49-2a3e63565949.png) - -`openbb.economy.fred_yield_curve()` returns a Tuple with the raw data for composing the chart presented by the OpenBB Terminal function, `/economy/ycrv --source fred`. - -```` -data, date = openbb.economy.fred_yield_curve() -```` - -![FRED Yield Curve Raw Data](https://user-images.githubusercontent.com/85772166/198434188-0eacedab-ff27-40dc-917d-c7bf5929d9ad.png) - -The FRED library can be searched, by key words and phrases, in two ways: - - - `openbb.economy.fred_notes('search term')` - - `openbb.economy.fred_ids('search term')` - -The former, giving more details than the latter. - -![FRED Query](https://user-images.githubusercontent.com/85772166/198434480-97d630fb-62a1-45b7-b8d2-a171fdf3c0ae.png) - -Retrieving the time-series data is then accomplished by using the `fred_series` function: - -```` -openbb.economy.fred_series(series_ids = ['PCENOW','GDPNOW']) -```` - -![fred_series](https://user-images.githubusercontent.com/85772166/198434607-8e421db7-56fa-4dda-8796-12a28373c1d8.png) - -Other functions more closely resemble their counterpart within the OpenBB Terminal, such as: `openbb.economy.bigmac(country_codes = ['CAN','USA'])` - -![BigMac Index](https://user-images.githubusercontent.com/85772166/198434807-59b77a92-bbaa-4916-9b03-2e375bfcbc79.png) - -Adding `chart = True` to the syntax will display the graph: - -```` -openbb.economy.bigmac(country_codes = ['CAN','USA'], chart = True) -```` - -![BigMac Index Chart](https://user-images.githubusercontent.com/85772166/198435081-63077337-ff31-49f2-b2df-f46c9571e98d.png) - -The `performance` and `valuation` functions, compared against the OpenBB Terminal, are also similar. Note that data returned by these functions are inclusive only of companies with an active and public US listing. - -```` -openbb.economy.performance() -openbb.economy.valuation() -```` - -![Economic Performance](https://user-images.githubusercontent.com/85772166/198435213-4c9158f1-3432-442a-b2bb-edf282264e4a.png) - -```` -openbb.economy.performance(group = 'industry') -```` - -![Performance by Industry](https://user-images.githubusercontent.com/85772166/198435374-0bb6a0fc-9fb0-4de4-bab0-c7b959694193.png) diff --git a/website/content/SDK/economy/available_indices/_index.rst b/website/content/SDK/economy/available_indices/_index.rst deleted file mode 100644 index a7ca511bb80..00000000000 --- a/website/content/SDK/economy/available_indices/_index.rst +++ /dev/null @@ -1,24 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.available_indices() -> dict -{{< /highlight >}} - -.. raw:: html - -

- Get available indices - - Returns: - dict: dictionary with available indices and respective detail -

diff --git a/website/content/SDK/economy/bigmac/_index.rst b/website/content/SDK/economy/bigmac/_index.rst deleted file mode 100644 index 369b9c791f0..00000000000 --- a/website/content/SDK/economy/bigmac/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.bigmac( - country_codes: List[str] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Display Big Mac Index for given countries -

- -* **Parameters** - - country_codes : List[str] - List of country codes (ISO-3 letter country code). Codes available through economy.country_codes(). - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with Big Mac indices converted to USD equivalent. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.bigmac( - country_codes: List[str] = None, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Big Mac Index for given countries -

- -* **Parameters** - - country_codes : List[str] - List of country codes (ISO-3 letter country code). Codes available through economy.country_codes(). - raw : bool, optional - Flag to display raw data, by default False - export : str, optional - Format data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/country_codes/_index.rst b/website/content/SDK/economy/country_codes/_index.rst deleted file mode 100644 index b22baa41b9a..00000000000 --- a/website/content/SDK/economy/country_codes/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.country_codes() -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- Get available country codes for Bigmac index -

- -* **Returns** - - List[str] - List of ISO-3 letter country codes. diff --git a/website/content/SDK/economy/cpi/_index.rst b/website/content/SDK/economy/cpi/_index.rst deleted file mode 100644 index c214cebbd03..00000000000 --- a/website/content/SDK/economy/cpi/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.cpi( - interval: str = 'm', - start_year: int = 2010, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Consumer Price Index from Alpha Vantage -

- -* **Parameters** - - interval : str - Interval for data. Either "m" or "s" for monthly or semiannual - start_year : int, optional - Start year for plot, by default 2010 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of CPI - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.cpi( - interval: str = 'm', - start_year: int = 2010, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display US consumer price index (CPI) from AlphaVantage -

- -* **Parameters** - - interval : str - Interval for GDP. Either "m" or "s" - start_year : int, optional - Start year for plot, by default 2010 - raw : bool, optional - Flag to show raw data, by default False - export : str, optional - Format to export data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/currencies/_index.rst b/website/content/SDK/economy/currencies/_index.rst deleted file mode 100644 index fe54ac2f222..00000000000 --- a/website/content/SDK/economy/currencies/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.currencies() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape data for global currencies -

- -* **Returns** - - currencies: pd.DataFrame - Dataframe containing name, price, net change and percent change diff --git a/website/content/SDK/economy/events/_index.rst b/website/content/SDK/economy/events/_index.rst deleted file mode 100644 index e798b8d67ed..00000000000 --- a/website/content/SDK/economy/events/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.events( - countries: Union[List[str], str] = '', - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get economic calendar for countries between specified dates -

- -* **Parameters** - - countries : [List[str],str] - List of countries to include in calendar. Empty returns all - start_date : str - Start date for calendar - end_date : str - End date for calendar - -* **Returns** - - pd.DataFrame - Economic calendar diff --git a/website/content/SDK/economy/fred_ids/_index.rst b/website/content/SDK/economy/fred_ids/_index.rst deleted file mode 100644 index 651086f448b..00000000000 --- a/website/content/SDK/economy/fred_ids/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.fred_ids( - search_query: str, - limit: int = -1, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Series IDs. [Source: FRED] -

- -* **Parameters** - - search_query : str - Text query to search on fred series notes database - limit : int - Maximum number of series IDs to output - -* **Returns** - - pd.Dataframe - Dataframe with series IDs and titles diff --git a/website/content/SDK/economy/fred_notes/_index.rst b/website/content/SDK/economy/fred_notes/_index.rst deleted file mode 100644 index 85f3a7073f9..00000000000 --- a/website/content/SDK/economy/fred_notes/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.fred_notes( - search_query: str, - limit: int = -1, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get series notes. [Source: FRED] -

- -* **Parameters** - - search_query : str - Text query to search on fred series notes database - limit : int - Maximum number of series notes to display - -* **Returns** - - pd.DataFrame - DataFrame of matched series diff --git a/website/content/SDK/economy/fred_series/_index.rst b/website/content/SDK/economy/fred_series/_index.rst deleted file mode 100644 index f38c9867869..00000000000 --- a/website/content/SDK/economy/fred_series/_index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.fred_series( - series_ids: List[str], - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Series data. [Source: FRED] -

- -* **Parameters** - - series_ids : List[str] - Series ID to get data from - start_date : str - Start date to get data from, format yyyy-mm-dd - end_date : str - End data to get from, format yyyy-mm-dd - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Series data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.fred_series( - series_ids: List[str], - start_date: str = None, - end_date: str = None, - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display (multiple) series from https://fred.stlouisfed.org. [Source: FRED] -

- -* **Parameters** - - series_ids : List[str] - FRED Series ID from https://fred.stlouisfed.org. For multiple series use: series1,series2,series3 - start_date : str - Starting date (YYYY-MM-DD) of data - end_date : str - Ending date (YYYY-MM-DD) of data - limit : int - Number of data points to display. - raw : bool - Output only raw data - export : str - Export data to csv,json,xlsx or png,jpg,pdf,svg file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/fred_yield_curve/_index.rst b/website/content/SDK/economy/fred_yield_curve/_index.rst deleted file mode 100644 index c9700c25265..00000000000 --- a/website/content/SDK/economy/fred_yield_curve/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.fred_yield_curve( - date: datetime.datetime = None, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, datetime.datetime] -{{< /highlight >}} - -.. raw:: html - -

- Gets yield curve data from FRED -

- -* **Parameters** - - date: datetime - Date to get curve for. If None, gets most recent date - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - Dataframe of yields and maturities - str - Date for which the yield curve is obtained - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.fred_yield_curve( - date: datetime.datetime = None, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - raw: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display yield curve based on US Treasury rates for a specified date. -

- -* **Parameters** - - date: datetime - Date to get yield curve for - external_axes: Optional[List[plt.Axes]] - External axes to plot data on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/future/_index.rst b/website/content/SDK/economy/future/_index.rst deleted file mode 100644 index 94e6605dff2..00000000000 --- a/website/content/SDK/economy/future/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.future( - future_type: str = 'Indices', - sortby: str = 'ticker', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get futures data. [Source: Finviz] -

- -* **Parameters** - - future_type : str - From the following: Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies - sortby : str - Column to sort by - ascend : bool - Flag to sort in ascending order - -* **Returns** - - pd.Dataframe - Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies diff --git a/website/content/SDK/economy/futures/_index.rst b/website/content/SDK/economy/futures/_index.rst deleted file mode 100644 index 8e62750e2ae..00000000000 --- a/website/content/SDK/economy/futures/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.futures() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape data for top commodities -

- -* **Returns** - - commodities: pd.DataFrame - Dataframe containing name, price, net change and percent change diff --git a/website/content/SDK/economy/gdp/_index.rst b/website/content/SDK/economy/gdp/_index.rst deleted file mode 100644 index ff866cde362..00000000000 --- a/website/content/SDK/economy/gdp/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.gdp( - interval: str = 'q', - start_year: int = 2010, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get annual or quarterly Real GDP for US -

- -* **Parameters** - - interval : str, optional - Interval for GDP, by default "a" for annual, by default "q" - start_year : int, optional - Start year for plot, by default 2010 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of GDP - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.gdp( - interval: str = 'q', - start_year: int = 2010, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display US GDP from AlphaVantage -

- -* **Parameters** - - interval : str - Interval for GDP. Either "a" or "q", by default "q" - start_year : int, optional - Start year for plot, by default 2010 - raw : bool, optional - Flag to show raw data, by default False - export : str, optional - Format to export data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/gdpc/_index.rst b/website/content/SDK/economy/gdpc/_index.rst deleted file mode 100644 index 47c96afdea7..00000000000 --- a/website/content/SDK/economy/gdpc/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.gdpc( - start_year: int = 2010, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Real GDP per Capita for United States -

- -* **Parameters** - - start_year : int, optional - Start year for plot, by default 2010 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of GDP per Capita - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.gdpc( - start_year: int = 2010, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display US GDP per Capita from AlphaVantage -

- -* **Parameters** - - start_year : int, optional - Start year for plot, by default 2010 - raw : bool, optional - Flag to show raw data, by default False - export : str, optional - Format to export data, by default - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/get_events_countries/_index.rst b/website/content/SDK/economy/get_events_countries/_index.rst deleted file mode 100644 index 9cd7812039c..00000000000 --- a/website/content/SDK/economy/get_events_countries/_index.rst +++ /dev/null @@ -1,24 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.get_events_countries() -> list -{{< /highlight >}} - -.. raw:: html - -

- Get available countries for events command. - - Returns: - list: List of available countries. -

diff --git a/website/content/SDK/economy/get_ycrv_countries/_index.rst b/website/content/SDK/economy/get_ycrv_countries/_index.rst deleted file mode 100644 index 66c62885d47..00000000000 --- a/website/content/SDK/economy/get_ycrv_countries/_index.rst +++ /dev/null @@ -1,24 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.get_ycrv_countries() -> list -{{< /highlight >}} - -.. raw:: html - -

- Get available countries for ycrv command. - - Returns: - list: List of available countries. -

diff --git a/website/content/SDK/economy/glbonds/_index.rst b/website/content/SDK/economy/glbonds/_index.rst deleted file mode 100644 index 6ada14b7fac..00000000000 --- a/website/content/SDK/economy/glbonds/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.glbonds() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape data for global bonds -

- -* **Returns** - - bonds: pd.DataFrame - Dataframe containing name, coupon rate, yield and change in yield diff --git a/website/content/SDK/economy/index/_index.rst b/website/content/SDK/economy/index/_index.rst deleted file mode 100644 index d3662c4c094..00000000000 --- a/website/content/SDK/economy/index/_index.rst +++ /dev/null @@ -1,114 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.index( - indices: list, - interval: str = '1d', - start_date: int = None, - end_date: int = None, - column: str = 'Adj Close', - returns: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get data on selected indices over time [Source: Yahoo Finance] -

- -* **Parameters** - - indices: list - A list of indices to get data. Available indices can be accessed through economy.available_indices(). - interval: str - Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo - Intraday data cannot extend last 60 days - start_date : str - The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. - end_date : str - The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. - column : str - Which column to load in, by default this is the Adjusted Close. - returns: bool - Flag to show cumulative returns on index - chart: bool - Flag to display chart - - -* **Returns** - - pd.Dataframe - Dataframe with historical data on selected indices. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.index( - indices: list, - interval: str = '1d', - start_date: int = None, - end_date: int = None, - column: str = 'Adj Close', - returns: bool = False, - raw: bool = False, - external_axes: Optional[List[axes]] = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Load (and show) the selected indices over time [Source: Yahoo Finance] -

- -* **Parameters** - - indices: list - A list of indices you wish to load (and plot). - Available indices can be accessed through economy.available_indices(). - interval: str - Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo - Intraday data cannot extend last 60 days - start_date : str - The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. - end_date : str - The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. - column : str - Which column to load in, by default this is the Adjusted Close. - returns: bool - Flag to show cumulative returns on index - raw : bool - Whether to display the raw output. - external_axes: Optional[List[plt.axes]] - External axes to plot on - export : str - Export data to csv,json,xlsx or png,jpg,pdf,svg file - chart: bool - Flag to display chart - - -* **Returns** - - Plots the Series. diff --git a/website/content/SDK/economy/indices/_index.rst b/website/content/SDK/economy/indices/_index.rst deleted file mode 100644 index 472ceb29bf4..00000000000 --- a/website/content/SDK/economy/indices/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.indices() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get the top US indices -

- -* **Returns** - - indices: pd.DataFrame - Dataframe containing name, price, net change and percent change diff --git a/website/content/SDK/economy/inf/_index.rst b/website/content/SDK/economy/inf/_index.rst deleted file mode 100644 index 9dad5788e3b..00000000000 --- a/website/content/SDK/economy/inf/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.inf( - start_year: int = 2010, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical Inflation for United States from AlphaVantage -

- -* **Parameters** - - start_year : int, optional - Start year for plot, by default 2010 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of inflation rates - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.inf( - start_year: int = 2010, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display US Inflation from AlphaVantage -

- -* **Parameters** - - start_year : int, optional - Start year for plot, by default 2010 - raw : bool, optional - Flag to show raw data, by default False - export : str, optional - Format to export data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/macro/_index.rst b/website/content/SDK/economy/macro/_index.rst deleted file mode 100644 index 2fb758ac941..00000000000 --- a/website/content/SDK/economy/macro/_index.rst +++ /dev/null @@ -1,121 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.macro( - parameters: list = None, - countries: list = None, - transform: str = '', - start_date: str = '1900-01-01', - end_date: str = None, - symbol: str = '', - chart: bool = False, -) -> Tuple[Any, Dict[Any, Dict[Any, Any]], str] -{{< /highlight >}} - -.. raw:: html - -

- This functions groups the data queried from the EconDB database [Source: EconDB] -

- -* **Parameters** - - parameters: list - The type of data you wish to download. Available parameters can be accessed through economy.macro_parameters(). - countries : list - The selected country or countries. Available countries can be accessed through economy.macro_countries(). - transform : str - The selected transform. Available transforms can be accessed through get_macro_transform(). - start_date : str - The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. - end_date : str - The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. - symbol : str - In what currency you wish to convert all values. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - A DataFrame with the requested macro data of all chosen countries - Dictionary - A dictionary containing the units of each country's parameter (e.g. EUR) - str - Denomination which can be Trillions, Billions, Millions, Thousands - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.macro( - parameters: list = None, - countries: list = None, - transform: str = '', - start_date: str = '1900-01-01', - end_date: str = None, - symbol: str = '', - raw: bool = False, - external_axes: Optional[List[axes]] = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show the received macro data about a company [Source: EconDB] -

- -* **Parameters** - - parameters: list - The type of data you wish to display. Available parameters can be accessed through get_macro_parameters(). - countries : list - The selected country or countries. Available countries can be accessed through get_macro_countries(). - transform : str - select data transformation from: - '' - no transformation - 'TPOP' - total percentage change on period, - 'TOYA' - total percentage since 1 year ago, - 'TUSD' - level USD, - 'TPGP' - Percentage of GDP, - 'TNOR' - Start = 100 - start_date : str - The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. - end_date : str - The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. - symbol : str - In what currency you wish to convert all values. - raw : bool - Whether to display the raw output. - external_axes: Optional[List[plt.axes]] - External axes to plot on - export : str - Export data to csv,json,xlsx or png,jpg,pdf,svg file - chart: bool - Flag to display chart - - -* **Returns** - - Plots the Series. diff --git a/website/content/SDK/economy/macro_countries/_index.rst b/website/content/SDK/economy/macro_countries/_index.rst deleted file mode 100644 index 6b06e94d975..00000000000 --- a/website/content/SDK/economy/macro_countries/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.macro_countries() -> Dict[str, str] -{{< /highlight >}} - -.. raw:: html - -

- This function returns the available countries and respective currencies. -

- -* **Returns** - - Dict[str, str] - A dictionary with the available countries and respective currencies. diff --git a/website/content/SDK/economy/macro_parameters/_index.rst b/website/content/SDK/economy/macro_parameters/_index.rst deleted file mode 100644 index 7cccfb11215..00000000000 --- a/website/content/SDK/economy/macro_parameters/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.macro_parameters() -> Dict[str, Dict[str, str]] -{{< /highlight >}} - -.. raw:: html - -

- This function returns the available macro parameters with detail. -

- -* **Returns** - - Dict[str, Dict[str, str]] - A dictionary with the available macro parameters. diff --git a/website/content/SDK/economy/overview/_index.rst b/website/content/SDK/economy/overview/_index.rst deleted file mode 100644 index aca531cd58d..00000000000 --- a/website/content/SDK/economy/overview/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.overview() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape data for market overview -

- -* **Returns** - - overview: pd.DataFrame - Dataframe containing name, price, net change and percent change diff --git a/website/content/SDK/economy/perfmap/_index.rst b/website/content/SDK/economy/perfmap/_index.rst deleted file mode 100644 index 348efbfe5b3..00000000000 --- a/website/content/SDK/economy/perfmap/_index.rst +++ /dev/null @@ -1,32 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.perfmap( - period: str = '1d', - map_filter: str = 'sp500', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Opens Finviz map website in a browser. [Source: Finviz] -

- -* **Parameters** - - period : str - Performance period. Available periods are 1d, 1w, 1m, 3m, 6m, 1y. - scope : str - Map filter. Available map filters are sp500, world, full, etf. diff --git a/website/content/SDK/economy/performance/_index.rst b/website/content/SDK/economy/performance/_index.rst deleted file mode 100644 index 986f47f0b57..00000000000 --- a/website/content/SDK/economy/performance/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.performance( - group: str = 'sector', - sortby: str = 'Name', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get group (sectors, industry or country) performance data. [Source: Finviz] -

- -* **Parameters** - - group : str - Group by category. Available groups can be accessed through get_groups(). - sortby : str - Column to sort by - ascend : bool - Flag to sort in ascending order - -* **Returns** - - pd.DataFrame - dataframe with performance data diff --git a/website/content/SDK/economy/rtps/_index.rst b/website/content/SDK/economy/rtps/_index.rst deleted file mode 100644 index fc92993a0d6..00000000000 --- a/website/content/SDK/economy/rtps/_index.rst +++ /dev/null @@ -1,63 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.rtps() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get real-time performance sector data -

- -* **Returns** - - df_sectors : pd.Dataframe - Real-time performance data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.rtps( - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Real-Time Performance sector. [Source: AlphaVantage] -

- -* **Parameters** - - raw : bool - Output only raw data - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/search_index/_index.rst b/website/content/SDK/economy/search_index/_index.rst deleted file mode 100644 index e6e337503ec..00000000000 --- a/website/content/SDK/economy/search_index/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.search_index( - keyword: list, - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Search indices by keyword. [Source: FinanceDatabase] -

- -* **Parameters** - - keyword: list - The keyword you wish to search for. This can include spaces. - limit: int - The amount of views you want to show, by default this is set to 10. - -* **Returns** - - pd.Dataframe - Dataframe with the available options. diff --git a/website/content/SDK/economy/spectrum/_index.rst b/website/content/SDK/economy/spectrum/_index.rst deleted file mode 100644 index c2dedd2ad6c..00000000000 --- a/website/content/SDK/economy/spectrum/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.spectrum( - group: str = 'sector', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get group (sectors, industry or country) valuation/performance data. [Source: Finviz] -

- -* **Parameters** - - group : str - Group by category. Available groups can be accessed through get_groups(). - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.spectrum( - group: str = 'sector', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display finviz spectrum in system viewer [Source: Finviz] -

- -* **Parameters** - - group: str - Group by category. Available groups can be accessed through get_groups(). - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/spread/_index.rst b/website/content/SDK/economy/spread/_index.rst deleted file mode 100644 index 631b270e478..00000000000 --- a/website/content/SDK/economy/spread/_index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.spread( - countries: Union[str, List[str]] = 'G7', - maturity: str = '10Y', - change: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get spread matrix. [Source: Investing.com] -

- -* **Parameters** - - countries: Union[str, List[str]] - Countries or group of countries. List of available countries is accessible through get_ycrv_countries(). - maturity: *str* - Maturity to get data. By default 10Y. - change: *bool* - Flag to use 1 day change or not. By default False. - chart: *bool* - Flag to display chart - - -* **Returns** - - pd.DataFrame - Spread matrix. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.spread( - countries: Union[str, List[str]] = 'G7', - maturity: str = '10Y', - change: bool = False, - color: str = 'openbb', - raw: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display spread matrix. [Source: Investing.com] -

- -* **Parameters** - - countries: Union[str, List[str]] - Countries or group of countries. List of available countries is accessible through get_ycrv_countries(). - maturity: *str* - Maturity to get data. By default 10Y. - change: *bool* - Flag to use 1 day change or not. By default False. - color: *str* - Color theme to use on heatmap, from rgb, binary or openbb By default, openbb. - raw : *bool* - Output only raw data. - export : *str* - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/economy/treasury/_index.rst b/website/content/SDK/economy/treasury/_index.rst deleted file mode 100644 index 13fa1d45fda..00000000000 --- a/website/content/SDK/economy/treasury/_index.rst +++ /dev/null @@ -1,107 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.treasury( - instruments: list = None, - maturities: list = None, - frequency: str = 'monthly', - start_date: str = '1900-01-01', - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get U.S. Treasury rates [Source: EconDB] -

- -* **Parameters** - - instruments: list - Type(s) of treasuries, nominal, inflation-adjusted (long term average) or secondary market. - Available options can be accessed through economy.treasury_maturities(). - maturities : list - Treasury maturities to get. Available options can be accessed through economy.treasury_maturities(). - frequency : str - Frequency of the data, this can be annually, monthly, weekly or daily. - start_date : str - Starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. - end_date : str - End date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. - chart: bool - Flag to display chart - - -* **Returns** - - treasury_data: pd.Dataframe - Holds data of the selected types and maturities - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.treasury( - instruments: list = None, - maturities: list = None, - frequency: str = 'monthly', - start_date: str = '1900-01-01', - end_date: str = None, - raw: bool = False, - external_axes: Optional[List[axes]] = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display U.S. Treasury rates [Source: EconDB] -

- -* **Parameters** - - instruments: list - Type(s) of treasuries, nominal, inflation-adjusted or secondary market. - Available options can be accessed through economy.treasury_maturities(). - maturities : list - Treasury maturities to display. Available options can be accessed through economy.treasury_maturities(). - frequency : str - Frequency of the data, this can be daily, weekly, monthly or annually - start_date : str - Starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. - end_date : str - End date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. - raw : bool - Whether to display the raw output. - external_axes: Optional[List[plt.axes]] - External axes to plot on - export : str - Export data to csv,json,xlsx or png,jpg,pdf,svg file - chart: bool - Flag to display chart - - -* **Returns** - - Plots the Treasury Series. diff --git a/website/content/SDK/economy/treasury_maturities/_index.rst b/website/content/SDK/economy/treasury_maturities/_index.rst deleted file mode 100644 index 824b6b9b109..00000000000 --- a/website/content/SDK/economy/treasury_maturities/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.treasury_maturities() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get treasury maturity options [Source: EconDB] -

- -* **Returns** - - df: pd.DataFrame - Contains the name of the instruments and a string containing all options. diff --git a/website/content/SDK/economy/tyld/_index.rst b/website/content/SDK/economy/tyld/_index.rst deleted file mode 100644 index c22b90782eb..00000000000 --- a/website/content/SDK/economy/tyld/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.tyld( - interval: str = 'm', - maturity: str = '10y', - start_date: str = '2010-01-01', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical yield for a given maturity -

- -* **Parameters** - - interval : str - Interval for data. Can be "d","w","m" for daily, weekly or monthly, by default "m" - start_date: str - Start date for data. Should be in YYYY-MM-DD format, by default "2010-01-01" - maturity : str - Maturity timeline. Can be "3mo","5y","10y" or "30y", by default "10y" - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of historical yields - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.tyld( - interval: str = 'm', - maturity: str = '10y', - start_date: str = '2010-01-01', - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display historical treasury yield for given maturity -

- -* **Parameters** - - interval : str - Interval for data. Can be "d","w","m" for daily, weekly or monthly, by default "m" - maturity : str - Maturity timeline. Can be "3mo","5y","10y" or "30y", by default "10y" - start_date: str - Start date for data. Should be in YYYY-MM-DD format, by default "2010-01-01" - raw : bool, optional - Flag to display raw data, by default False - export : str, optional - Format to export data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/unemp/_index.rst b/website/content/SDK/economy/unemp/_index.rst deleted file mode 100644 index f99cd565da9..00000000000 --- a/website/content/SDK/economy/unemp/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.unemp( - start_year: int = 2010, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical unemployment for United States -

- -* **Parameters** - - start_year : int, optional - Start year for plot, by default 2010 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of historical yields - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.unemp( - start_year: int = 2010, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display US unemployment AlphaVantage -

- -* **Parameters** - - start_year : int, optional - Start year for plot, by default 2010 - raw : bool, optional - Flag to show raw data, by default False - export : str, optional - Format to export data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/economy/usbonds/_index.rst b/website/content/SDK/economy/usbonds/_index.rst deleted file mode 100644 index 88b45b3864d..00000000000 --- a/website/content/SDK/economy/usbonds/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.usbonds() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape data for us bonds -

- -* **Returns** - - bonds: pd.DataFrame - Dataframe containing name, coupon rate, yield and change in yield diff --git a/website/content/SDK/economy/valuation/_index.rst b/website/content/SDK/economy/valuation/_index.rst deleted file mode 100644 index 792932d6c27..00000000000 --- a/website/content/SDK/economy/valuation/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.valuation( - group: str = 'sector', - sortby: str = 'Name', - ascend: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get group (sectors, industry or country) valuation data. [Source: Finviz] -

- -* **Parameters** - - group : str - Group by category. Available groups can be accessed through get_groups(). - sortby : str - Column to sort by - ascend : bool - Flag to sort in ascending order - -* **Returns** - - pd.DataFrame - dataframe with valuation/performance data diff --git a/website/content/SDK/economy/ycrv/_index.rst b/website/content/SDK/economy/ycrv/_index.rst deleted file mode 100644 index 7b200cf7d9f..00000000000 --- a/website/content/SDK/economy/ycrv/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -economy.ycrv( - date: datetime.datetime = None, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, datetime.datetime] -{{< /highlight >}} - -.. raw:: html - -

- Gets yield curve data from FRED -

- -* **Parameters** - - date: datetime - Date to get curve for. If None, gets most recent date - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - Dataframe of yields and maturities - str - Date for which the yield curve is obtained - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -economy.ycrv( - date: datetime.datetime = None, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - raw: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display yield curve based on US Treasury rates for a specified date. -

- -* **Parameters** - - date: datetime - Date to get yield curve for - external_axes: Optional[List[plt.Axes]] - External axes to plot data on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/_index.md b/website/content/SDK/etf/_index.md deleted file mode 100644 index cea98be36ef..00000000000 --- a/website/content/SDK/etf/_index.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -title: Introduction to ETF -keywords: "etf, etfs, etn, fund, funds, blackrock, vanguard, fidelity, statestreet, spdr, exchange-traded, SPY, QQQ, TQQQ, SQQQ" -excerpt: "This guide introduces the ETF module within the context of the OpenBB SDK" -geekdocCollapseSection: true - ---- -The ETF module wraps the functions from the ETF menu, within the OpenBB Terminal, allowing programmatic access to the commands. Import the OpenBB SDK module, and then find the ETF functions similarly to how the Terminal menus are navigated. The code completion will be activated after entering the `.` in: `openbb.etf` - -```python -from openbb_terminal.sdk import openbb -import pandas as pd -%matplotlib widget -``` - -![ETF Module](https://user-images.githubusercontent.com/85772166/200064234-7de67c2a-a20e-42fe-adac-ba589c08d8ac.png "The ETF Module") - -## How to Use - -ETFs are categorized into different buckets, use. the code block below as a way to generate the list of all categories: - -```python -etf_list = pd.DataFrame.from_dict(openbb.etf.etf_by_category('')).transpose() -etf_list.set_index(keys = ['category', 'family']) -etf_list.sort_values(by=['total_assets'], ascending = False) - -categories = list(etf_list['category'].drop_duplicates()) -``` - -![ETF Categories](https://user-images.githubusercontent.com/85772166/200064425-e333220c-cf5f-4d9c-a544-eba508dc9afe.png "ETF Categories") - -After determining the category to research, the same code block can be repeated, replacing the empty category in the syntax: - -```python -etf_category = pd.DataFrame.from_dict(openbb.etf.etf_by_category('Trading--Leveraged Equity')).transpose() -etf_category.sort_values(by=['total_assets'], ascending = False) -``` - -![Leveraged ETFs](https://user-images.githubusercontent.com/85772166/200064491-378f5ad1-bf28-426a-ace9-a0891329b7e5.png "Leveraged ETFs") - -A list of all tickers in the category can be generated from the index of the DataFrame: - -```python -tickers = list(etf_category.index) -``` - -This list of tickers can then be used for comparison analysis, or portfolio optimization. For example, comparing the performance metrics of all Technology ETFs available: - -```python -performance = openbb.stocks.ca.screener(similar = tickers, data_type = 'performance') -performance.sort_values(by=['Perf Quart']) -``` - -![Comparing Performance Metrics of Technology ETFs](https://user-images.githubusercontent.com/85772166/200064802-d91b4552-e912-4c99-8c04-883f2fef18dc.png "Comparing Performance Metrics of Technology ETFs") - -To peer into the holdings of a specific ETF: - -```python -openbb.etf.holdings('NXTG') -``` - -![openbb.etf.holdings](https://user-images.githubusercontent.com/85772166/200064952-f3bd2d60-10b1-4b1a-816c-f5b8ac3a8781.png "openbb.etf.holdings") - -The ETF screener is accessible through the SDK. Values for the screener are set in the file: `~/OpenBBTerminal/openbb_terminal/etf/screener/presets/etf_config.ini` - -```python -openbb.etf.scr.screen(preset='etf_config.ini') -``` - -In this example, the configuration file is set to return results with a maximum Beta value of -2. - -![ETF Screener](https://user-images.githubusercontent.com/85772166/200065448-b3348e25-b0e0-4555-9711-3baf7169d44d.png "ETF Screener") - -The current top gainers, losers, and volume for ETFs is returned with: - -```python -openbb.etf.disc.mover(sort_type = 'decliners') - -openbb.etf.disc.mover(sort_type = 'gainers') - -openbb.etf.disc.mover(sort_type = 'active') -``` - -![openbb.etf.disc.mover()](https://user-images.githubusercontent.com/85772166/200065107-e85c93a7-9cab-4298-b701-0230a171eb6a.png "openbb.etf.disc.mover()") diff --git a/website/content/SDK/etf/candle/_index.rst b/website/content/SDK/etf/candle/_index.rst deleted file mode 100644 index 30af5df2d1c..00000000000 --- a/website/content/SDK/etf/candle/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.candle( - symbol: str, - data: pandas.core.frame.DataFrame = None, - use_matplotlib: bool = True, - intraday: bool = False, - add_trend: bool = False, - ma: Optional[Iterable[int]] = None, - asset_type: str = '', - start_date: Union[datetime.datetime, str, NoneType] = None, - interval: int = 1440, - end_date: Union[datetime.datetime, str, NoneType] = None, - prepost: bool = False, - source: str = 'YahooFinance', - iexrange: str = 'ytd', - weekly: bool = False, - monthly: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - raw: bool = False, - yscale: str = 'linear', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show candle plot of loaded ticker. - - [Source: Yahoo Finance, IEX Cloud or Alpha Vantage] -

- -* **Parameters** - - symbol: str - Ticker name - data: pd.DataFrame - Stock dataframe - use_matplotlib: bool - Flag to use matplotlib instead of interactive plotly chart - intraday: bool - Flag for intraday data for plotly range breaks - add_trend: bool - Flag to add high and low trends to chart - ma: Tuple[int] - Moving averages to add to the candle - asset_type\_: str - String to include in title - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - asset_type\_: str - String to include in title - start_date: str or datetime, optional - Start date to get data from with. - datetime or string format (YYYY-MM-DD) - interval: int - Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 - end_date: str or datetime, optional - End date to get data from with. - datetime or string format (YYYY-MM-DD) - prepost: bool - Pre and After hours data - source: str - Source of data extracted - iexrange: str - Timeframe to get IEX data. - weekly: bool - Flag to get weekly data - monthly: bool - Flag to get monthly data - raw : bool, optional - Flag to display raw data, by default False - yscale: str - Linear or log for yscale diff --git a/website/content/SDK/etf/disc/_index.md b/website/content/SDK/etf/disc/_index.md deleted file mode 100644 index 670f51d025f..00000000000 --- a/website/content/SDK/etf/disc/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: disc -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/etf/disc/mover/_index.rst b/website/content/SDK/etf/disc/mover/_index.rst deleted file mode 100644 index 3fc77cf3712..00000000000 --- a/website/content/SDK/etf/disc/mover/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.disc.mover( - sort_type: str = 'gainers', - export: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Scrape data for top etf movers. -

- -* **Parameters** - - sort_type: str - Data to get. Can be "gainers", "decliners" or "active" - chart: bool - Flag to display chart - - -* **Returns** - - etfmovers: pd.DataFrame - Datafame containing the name, price, change and the volume of the etf - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.disc.mover( - sort_type: str = 'gainers', - limit: int = 10, export='', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show top ETF movers from wsj.com -

- -* **Parameters** - - sort_type: str - What to show. Either Gainers, Decliners or Activity - limit: int - Number of etfs to show - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/etf_by_category/_index.rst b/website/content/SDK/etf/etf_by_category/_index.rst deleted file mode 100644 index b90cc409649..00000000000 --- a/website/content/SDK/etf/etf_by_category/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.etf_by_category( - category: str, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Return a selection of ETFs based on category filtered by total assets. - [Source: Finance Database] -

- -* **Parameters** - - category: str - Search by category to find ETFs matching the criteria. - chart: bool - Flag to display chart - - -* **Returns** - - data : Dict - Dictionary with ETFs that match a certain description - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.etf_by_category( - category: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display a selection of ETFs based on a category filtered by total assets. - [Source: Finance Database] -

- -* **Parameters** - - description: str - Search by description to find ETFs matching the criteria. - limit: int - Limit of ETFs to display - export: str - Type of format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/etf_by_name/_index.rst b/website/content/SDK/etf/etf_by_name/_index.rst deleted file mode 100644 index b93d62b8d52..00000000000 --- a/website/content/SDK/etf/etf_by_name/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.etf_by_name( - name_to_search: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get an ETF symbol and name based on ETF string to search. [Source: StockAnalysis] -

- -* **Parameters** - - name_to_search: str - ETF name to match - chart: bool - Flag to display chart - - -* **Returns** - - df: pd.Dataframe - Dataframe with symbols and names - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.etf_by_name( - name: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display ETFs matching search string. [Source: StockAnalysis] -

- -* **Parameters** - - name: str - String being matched - limit: int - Limit of ETFs to display - export: str - Export to given file type - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/holdings/_index.rst b/website/content/SDK/etf/holdings/_index.rst deleted file mode 100644 index e81349de7f7..00000000000 --- a/website/content/SDK/etf/holdings/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.holdings( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get ETF holdings -

- -* **Parameters** - - symbol: str - Symbol to get holdings for - chart: bool - Flag to display chart - - -* **Returns** - - df: pd.DataFrame - Dataframe of holdings - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.holdings( - symbol: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- -

- -* **Parameters** - - symbol: str - ETF symbol to show holdings for - limit: int - Number of holdings to show - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/ld/_index.rst b/website/content/SDK/etf/ld/_index.rst deleted file mode 100644 index 4133d69c29c..00000000000 --- a/website/content/SDK/etf/ld/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.ld( - description: str, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Return a selection of ETFs based on description filtered by total assets. - [Source: Finance Database] -

- -* **Parameters** - - description: str - Search by description to find ETFs matching the criteria. - chart: bool - Flag to display chart - - -* **Returns** - - data : Dict - Dictionary with ETFs that match a certain description - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.ld( - description: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display a selection of ETFs based on description filtered by total assets. - [Source: Finance Database] -

- -* **Parameters** - - description: str - Search by description to find ETFs matching the criteria. - limit: int - Limit of ETFs to display - export: str - Type of format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/ln/_index.rst b/website/content/SDK/etf/ln/_index.rst deleted file mode 100644 index 52d22bef38e..00000000000 --- a/website/content/SDK/etf/ln/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.ln( - name: str, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Return a selection of ETFs based on name filtered by total assets. [Source: Finance Database] -

- -* **Parameters** - - name: str - Search by name to find ETFs matching the criteria. - chart: bool - Flag to display chart - - -* **Returns** - - data : Dict - Dictionary with ETFs that match a certain name - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.ln( - name: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display a selection of ETFs based on name filtered by total assets. [Source: Finance Database] -

- -* **Parameters** - - name: str - Search by name to find ETFs matching the criteria. - limit: int - Limit of ETFs to display - export: str - Type of format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/load/_index.rst b/website/content/SDK/etf/load/_index.rst deleted file mode 100644 index d41c726c4d4..00000000000 --- a/website/content/SDK/etf/load/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.load( - symbol: str, - start_date: Union[datetime.datetime, str, NoneType] = None, - interval: int = 1440, - end_date: Union[datetime.datetime, str, NoneType] = None, - prepost: bool = False, - source: str = 'YahooFinance', - iexrange: str = 'ytd', - weekly: bool = False, - monthly: bool = False, - verbose: bool = True, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Load a symbol to perform analysis using the string above as a template. - - Optional arguments and their descriptions are listed above. - - The default source is, yFinance (https://pypi.org/project/yfinance/). - Other sources: - - AlphaVantage (https://www.alphavantage.co/documentation/) - - IEX Cloud (https://iexcloud.io/docs/api/) - - Eod Historical Data (https://eodhistoricaldata.com/financial-apis/) - - Please note that certain analytical features are exclusive to the specific source. - - To load a symbol from an exchange outside of the NYSE/NASDAQ default, use yFinance as the source and - add the corresponding exchange to the end of the symbol. i.e. `BNS.TO`. Note this may be possible with - other paid sources check their docs. - - BNS is a dual-listed stock, there are separate options chains and order books for each listing. - Opportunities for arbitrage may arise from momentary pricing discrepancies between listings - with a dynamic exchange rate as a second order opportunity in ForEx spreads. - - Find the full list of supported exchanges here: - https://help.yahoo.com/kb/exchanges-data-providers-yahoo-finance-sln2310.html - - Certain analytical features, such as VWAP, require the ticker to be loaded as intraday - using the `-i x` argument. When encountering this error, simply reload the symbol using - the interval argument. i.e. `load -t BNS -s YYYY-MM-DD -i 1 -p` loads one-minute intervals, - including Pre/After Market data, using the default source, yFinance. - - Certain features, such as the Prediction menu, require the symbol to be loaded as daily and not intraday. -

- -* **Parameters** - - symbol: str - Ticker to get data - start_date: str or datetime, optional - Start date to get data from with. - datetime or string format (YYYY-MM-DD) - interval: int - Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 - end_date: str or datetime, optional - End date to get data from with. - datetime or string format (YYYY-MM-DD) - prepost: bool - Pre and After hours data - source: str - Source of data extracted - iexrange: str - Timeframe to get IEX data. - weekly: bool - Flag to get weekly data - monthly: bool - Flag to get monthly data - verbose: bool - Display verbose information on what was the symbol that was loaded - -* **Returns** - - df_stock_candidate: pd.DataFrame - Dataframe of data diff --git a/website/content/SDK/etf/news/_index.rst b/website/content/SDK/etf/news/_index.rst deleted file mode 100644 index feecd5cac09..00000000000 --- a/website/content/SDK/etf/news/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.news( - query: str, - limit: int = 10, - start_date: str = None, - show_newest: bool = True, - sources: str = '', - chart: bool = False, -) -> List[Tuple[Any, Any]] -{{< /highlight >}} - -.. raw:: html - -

- Get news for a given term. [Source: NewsAPI] -

- -* **Parameters** - - query : str - term to search on the news articles - start_date: str - date to start searching articles from formatted YYYY-MM-DD - show_newest: bool - flag to show newest articles first - sources: str - sources to exclusively show news from (comma separated) - chart: bool - Flag to display chart - - -* **Returns** - - tables : List[Tuple] - List of tuples containing news df in first index and dict containing title of news df - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.news( - query: str, - limit: int = 3, - start_date: str = None, - show_newest: bool = True, - sources: str = '', - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Display news for a given term. [Source: NewsAPI] -

- -* **Parameters** - - query : str - term to search on the news articles - start_date: str - date to start searching articles from formatted YYYY-MM-DD - limit : int - number of articles to display - show_newest: bool - flag to show newest articles first - sources: str - sources to exclusively show news from - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/overview/_index.rst b/website/content/SDK/etf/overview/_index.rst deleted file mode 100644 index b0418fa9a33..00000000000 --- a/website/content/SDK/etf/overview/_index.rst +++ /dev/null @@ -1,71 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.overview( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get overview data for selected etf -

- -* **Parameters** - - etf_symbol : str - Etf symbol to get overview for - chart: bool - Flag to display chart - - -* **Returns** - - df : pd.DataFrame - Dataframe of stock overview data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.overview( - symbol: str, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print etf overview information -

- -* **Parameters** - - symbol:str - ETF symbols to display overview for - export:str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/scr/_index.md b/website/content/SDK/etf/scr/_index.md deleted file mode 100644 index 1e7441bbb27..00000000000 --- a/website/content/SDK/etf/scr/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: scr -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/etf/scr/screen/_index.rst b/website/content/SDK/etf/scr/screen/_index.rst deleted file mode 100644 index 8f0a5bb58b2..00000000000 --- a/website/content/SDK/etf/scr/screen/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.scr.screen( - preset: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Screens the etfs pulled from my repo (https://github.com/jmaslek/etf_scraper), - which is updated hourly through the market day -

- -* **Parameters** - - preset: str - Screener to use from presets - chart: bool - Flag to display chart - - -* **Returns** - - df : pd.DataFrame - Screened dataframe - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.scr.screen( - preset: str, - num_to_show: int, - sortby: str, - ascend: bool, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display screener output -

- -* **Parameters** - - preset: str - Preset to use - num_to_show: int - Number of etfs to show - sortby: str - Column to sort by - ascend: bool - Ascend when sorted - export: str - Output format of export - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/summary/_index.rst b/website/content/SDK/etf/summary/_index.rst deleted file mode 100644 index 4e5ad04b828..00000000000 --- a/website/content/SDK/etf/summary/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.summary( - name: str, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Return summary description of ETF. [Source: Yahoo Finance] -

- -* **Parameters** - - name: str - ETF name - chart: bool - Flag to display chart - - -* **Returns** - - str - Summary description of the ETF - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.summary( - name: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display ETF description summary. [Source: Yahoo Finance] -

- -* **Parameters** - - name: str - ETF name - chart: bool - Flag to display chart - diff --git a/website/content/SDK/etf/symbols/_index.rst b/website/content/SDK/etf/symbols/_index.rst deleted file mode 100644 index a68408673f2..00000000000 --- a/website/content/SDK/etf/symbols/_index.rst +++ /dev/null @@ -1,28 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.symbols() -> Tuple[List[str], List[str]] -{{< /highlight >}} - -.. raw:: html - -

- Gets all etf names and symbols -

- -* **Returns** - - etf_symbols: List[str]: - List of all available etf symbols - etf_names: List[str] - List of all available etf names diff --git a/website/content/SDK/etf/weights/_index.rst b/website/content/SDK/etf/weights/_index.rst deleted file mode 100644 index 33f5a2535cf..00000000000 --- a/website/content/SDK/etf/weights/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -etf.weights( - name: str, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Return sector weightings allocation of ETF. [Source: Yahoo Finance] -

- -* **Parameters** - - name: str - ETF name - chart: bool - Flag to display chart - - -* **Returns** - - Dict - Dictionary with sector weightings allocation - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -etf.weights( - name: str, - raw: bool = False, - min_pct_to_display: float = 5, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display sector weightings allocation of ETF. [Source: Yahoo Finance] -

- -* **Parameters** - - name: str - ETF name - raw: bool - Display sector weighting allocation - min_pct_to_display: float - Minimum percentage to display sector - export: str - Type of format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forecast/_index.md b/website/content/SDK/forecast/_index.md deleted file mode 100644 index 026279ed2c9..00000000000 --- a/website/content/SDK/forecast/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: forecast -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/forecast/atr/_index.rst b/website/content/SDK/forecast/atr/_index.rst deleted file mode 100644 index 46c597829f5..00000000000 --- a/website/content/SDK/forecast/atr/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.atr( - dataset: pandas.core.frame.DataFrame, - close_column: str = 'close', - high_column: str = 'high', - low_column: str = 'low', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate the Average True Range of a variable based on a a specific stock ticker. -

diff --git a/website/content/SDK/forecast/autoets/_index.rst b/website/content/SDK/forecast/autoets/_index.rst deleted file mode 100644 index 815576fbdf8..00000000000 --- a/website/content/SDK/forecast/autoets/_index.rst +++ /dev/null @@ -1,139 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.autoets( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - seasonal_periods: int = 7, - n_predict: int = 5, - start_window: float = 0.85, - forecast_horizon: int = 5, - chart: bool = False, -) -> Tuple[list[numpy.ndarray], List[numpy.ndarray], List[numpy.ndarray], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Automatic ETS forecasting - This is a wrapper around StatsForecast ETS; - we refer to this link for the original and more complete documentation of the parameters. - - - https://nixtla.github.io/statsforecast/models.html#ets -

- -* **Parameters** - - data : Union[pd.Series, np.ndarray] - Input data. - target_column (str, optional): - Target column to forecast. Defaults to "close". - seasonal_periods: int - Number of seasonal periods in a year (7 for daily data) - If not set, inferred from frequency of the series. - n_predict: int - Number of days to forecast - start_window: float - Size of sliding window from start of timeseries and onwards - forecast_horizon: int - Number of days to forecast when backtesting and retraining historical - chart: *bool* - Flag to display chart - - -* **Returns** - - list[float] - Adjusted Data series - list[float] - List of historical fcast values - list[float] - List of predicted fcast values - Optional[float] - precision - Any - Fit ETS model object. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.autoets( - data: Union[pandas.core.frame.DataFrame, pandas.core.series.Series], - target_column: str = 'close', - dataset_name: str = '', - seasonal_periods: int = 7, - n_predict: int = 5, - start_window: float = 0.85, - forecast_horizon: int = 5, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Automatic ETS (Error, Trend, Sesonality) Model -

- -* **Parameters** - - data : Union[pd.Series, np.array] - Data to forecast - dataset_name str - The name of the ticker to be predicted - target_column (str, optional): - Target column to forecast. Defaults to "close". - seasonal_periods: int - Number of seasonal periods in a year - If not set, inferred from frequency of the series. - n_predict: int - Number of days to forecast - start_window: float - Size of sliding window from start of timeseries and onwards - forecast_horizon: int - Number of days to forecast when backtesting and retraining historical - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/brnn/_index.rst b/website/content/SDK/forecast/brnn/_index.rst deleted file mode 100644 index 34954bac20b..00000000000 --- a/website/content/SDK/forecast/brnn/_index.rst +++ /dev/null @@ -1,201 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.brnn( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - train_split: float = 0.85, - past_covariates: str = None, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - model_type: str = 'LSTM', - n_rnn_layers: int = 1, - dropout: float = 0.0, - batch_size: int = 32, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'brnn_model', - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Block RNN forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - model_type: str - Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". - n_rnn_layers: int - Number of layers in the RNN module. Defaults to 1. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.0. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset (all checkpoints will be - discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - list[TimeSeries] - Adjusted Data series - list[TimeSeries] - Historical forecast by best RNN model - list[TimeSeries] - list of Predictions - Optional[float] - Mean average precision error - Any - Best BRNN Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.brnn( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - model_type: str = 'LSTM', - n_rnn_layers: int = 1, - dropout: float = 0.0, - batch_size: int = 16, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'rnn_model', - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display BRNN forecast -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - model_type: str - Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". - n_rnn_layers: int - Number of layers in the RNN module. Defaults to 1. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.0. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 101. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/clean/_index.rst b/website/content/SDK/forecast/clean/_index.rst deleted file mode 100644 index 0079606d926..00000000000 --- a/website/content/SDK/forecast/clean/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.clean( - dataset: pandas.core.frame.DataFrame, - fill: Optional[str] = None, - drop: Optional[str] = None, - limit: Optional[int] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Clean up NaNs from the dataset -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to clean - fill : Optional[str] - The method of filling NaNs - drop : Optional[str] - The method of dropping NaNs - limit : Optional[int] - The maximum limit you wish to apply that can be forward or backward filled - -* **Returns** - - pd.DataFrame: - Dataframe with cleaned up data diff --git a/website/content/SDK/forecast/combine/_index.rst b/website/content/SDK/forecast/combine/_index.rst deleted file mode 100644 index 7690d4c3025..00000000000 --- a/website/content/SDK/forecast/combine/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.combine( - df1: pandas.core.frame.DataFrame, - df2: pandas.core.frame.DataFrame, - column: str, - dataset: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Adds the given column of df2 to df1 -

- -* **Parameters** - - df1: pd.DataFrame - The dataframe to add a column to - df2: pd.DataFrame - The dataframe to lose a column - column: str - The column to transfer - dataset: str - A name for df2 (shows in name of new column) - -* **Returns** - - data: pd.DataFrame - The new dataframe diff --git a/website/content/SDK/forecast/corr/_index.rst b/website/content/SDK/forecast/corr/_index.rst deleted file mode 100644 index be802e71c5d..00000000000 --- a/website/content/SDK/forecast/corr/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.corr( - data: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns correlation for a given df -

- -* **Parameters** - - data: pd.DataFrame - The df to produce statistics for - chart: *bool* - Flag to display chart - - -* **Returns** - - df: pd.DataFrame - The df with the new data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.corr( - dataset: pandas.core.frame.DataFrame, - export: str = '', - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot correlation coefficients for dataset features -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset fore calculating correlation coefficients - export: str - Format to export image - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/delete/_index.rst b/website/content/SDK/forecast/delete/_index.rst deleted file mode 100644 index c470ed52155..00000000000 --- a/website/content/SDK/forecast/delete/_index.rst +++ /dev/null @@ -1,12 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- diff --git a/website/content/SDK/forecast/delta/_index.rst b/website/content/SDK/forecast/delta/_index.rst deleted file mode 100644 index c94135608e2..00000000000 --- a/website/content/SDK/forecast/delta/_index.rst +++ /dev/null @@ -1,25 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.delta( - dataset: pandas.core.frame.DataFrame, - target_column: str = 'close', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Calculate the %change of a variable based on a specific column -

diff --git a/website/content/SDK/forecast/desc/_index.rst b/website/content/SDK/forecast/desc/_index.rst deleted file mode 100644 index 64486737ec4..00000000000 --- a/website/content/SDK/forecast/desc/_index.rst +++ /dev/null @@ -1,48 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.desc( - data: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns statistics for a given df -

- -* **Parameters** - - data: pd.DataFrame - The df to produce statistics for - chart: *bool* - Flag to display chart - - -* **Returns** - - df: pd.DataFrame - The df with the new data - -| - -.. raw:: html - -

- > Getting charts -

- diff --git a/website/content/SDK/forecast/ema/_index.rst b/website/content/SDK/forecast/ema/_index.rst deleted file mode 100644 index a728af77070..00000000000 --- a/website/content/SDK/forecast/ema/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.ema( - dataset: pandas.core.frame.DataFrame, - target_column: str = 'close', - period: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- A moving average provides an indication of the trend of the price movement - by cut down the amount of "noise" on a price chart. -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to clean - target_column : str - The column you wish to add the EMA to - period : int - Time Span - -* **Returns** - - pd.DataFrame: - Dataframe with added EMA column diff --git a/website/content/SDK/forecast/expo/_index.rst b/website/content/SDK/forecast/expo/_index.rst deleted file mode 100644 index c7fd500b398..00000000000 --- a/website/content/SDK/forecast/expo/_index.rst +++ /dev/null @@ -1,160 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.expo( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - trend: str = 'A', - seasonal: str = 'A', - seasonal_periods: int = 7, - dampen: str = 'F', - n_predict: int = 5, - start_window: float = 0.85, - forecast_horizon: int = 5, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Probabilistic Exponential Smoothing forecasting - This is a wrapper around statsmodels Holt-Winters' Exponential Smoothing; - we refer to this link for the original and more complete documentation of the parameters. - - https://unit8co.github.io/darts/generated_api/darts.models.forecasting.exponential_smoothing.html?highlight=exponential -

- -* **Parameters** - - data : Union[pd.Series, np.ndarray] - Input data. - target_column (str, optional): - Target column to forecast. Defaults to "close". - trend: str - Trend component. One of [N, A, M] - Defaults to ADDITIVE. - seasonal: str - Seasonal component. One of [N, A, M] - Defaults to ADDITIVE. - seasonal_periods: int - Number of seasonal periods in a year (7 for daily data) - If not set, inferred from frequency of the series. - dampen: str - Dampen the function - n_predict: int - Number of days to forecast - start_window: float - Size of sliding window from start of timeseries and onwards - forecast_horizon: int - Number of days to forecast when backtesting and retraining historical - chart: *bool* - Flag to display chart - - -* **Returns** - - list[float] - Adjusted Data series - list[float] - List of historical fcast values - list[float] - List of predicted fcast values - Optional[float] - precision - Any - Fit Prob. Expo model object. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.expo( - data: Union[pandas.core.frame.DataFrame, pandas.core.series.Series], - target_column: str = 'close', - dataset_name: str = '', - trend: str = 'A', - seasonal: str = 'A', - seasonal_periods: int = 7, - dampen: str = 'F', - n_predict: int = 5, - start_window: float = 0.85, - forecast_horizon: int = 5, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Probabilistic Exponential Smoothing forecast -

- -* **Parameters** - - data : Union[pd.Series, np.array] - Data to forecast - dataset_name str - The name of the ticker to be predicted - target_column (str, optional): - Target column to forecast. Defaults to "close". - trend: str - Trend component. One of [N, A, M] - Defaults to ADDITIVE. - seasonal: str - Seasonal component. One of [N, A, M] - Defaults to ADDITIVE. - seasonal_periods: int - Number of seasonal periods in a year - If not set, inferred from frequency of the series. - dampen: str - Dampen the function - n_predict: int - Number of days to forecast - start_window: float - Size of sliding window from start of timeseries and onwards - forecast_horizon: int - Number of days to forecast when backtesting and retraining historical - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/export/_index.rst b/website/content/SDK/forecast/export/_index.rst deleted file mode 100644 index c470ed52155..00000000000 --- a/website/content/SDK/forecast/export/_index.rst +++ /dev/null @@ -1,12 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- diff --git a/website/content/SDK/forecast/linregr/_index.rst b/website/content/SDK/forecast/linregr/_index.rst deleted file mode 100644 index d490cd7411f..00000000000 --- a/website/content/SDK/forecast/linregr/_index.rst +++ /dev/null @@ -1,148 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.linregr( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - output_chunk_length: int = 5, - lags: Union[int, List[int]] = 14, - random_state: Optional[int] = None, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], float, Any] -{{< /highlight >}} - -.. raw:: html - -

- Perform Linear Regression Forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - output_chunk_length: int - The length of the forecast of the model. Defaults to 1. - lags: Union[int, List[int]] - lagged target values to predict the next time step - random_state: Optional[int] - The state for the model - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best RNN model - List[TimeSeries] - list of Predictions - float - Mean average precision error - Any - Best Linear Regression Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.linregr( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - output_chunk_length: int = 1, - lags: Union[int, List[int]] = 72, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - explainability_raw: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Linear Regression Forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - target_col: str - Target column to forecast. Defaults to "close". - train_split (float, optional): - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - output_chunk_length: int - The length of the forecast of the model. Defaults to 1. - lags: Union[int, List[int]] - lagged target values to predict the next time step - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the - same as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/load/_index.rst b/website/content/SDK/forecast/load/_index.rst deleted file mode 100644 index d8d277b575b..00000000000 --- a/website/content/SDK/forecast/load/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.load( - file: str, - data_files: Optional[Dict[Any, Any]] = None, - data_examples: Optional[Dict[Any, Any]] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Load custom file into dataframe. -

- -* **Parameters** - - file: str - Path to file - data_files: dict - Contains all available data files within the Export folder - data_examples: dict - Contains all available examples from Statsmodels - -* **Returns** - - pd.DataFrame: - Dataframe with custom data diff --git a/website/content/SDK/forecast/mom/_index.rst b/website/content/SDK/forecast/mom/_index.rst deleted file mode 100644 index 3cd20788326..00000000000 --- a/website/content/SDK/forecast/mom/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.mom( - dataset: pandas.core.frame.DataFrame, - target_column: str = 'close', - period: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- A momentum oscillator, which measures the percentage change between the current - value and the n period past value. -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to calculate with - target_column : str - The column you wish to add the MOM to - period : int - Time Span - -* **Returns** - - pd.DataFrame: - Dataframe with added MOM column diff --git a/website/content/SDK/forecast/nbeats/_index.rst b/website/content/SDK/forecast/nbeats/_index.rst deleted file mode 100644 index bb1298ef19c..00000000000 --- a/website/content/SDK/forecast/nbeats/_index.rst +++ /dev/null @@ -1,213 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.nbeats( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - num_stacks: int = 10, - num_blocks: int = 3, - num_layers: int = 4, - layer_widths: int = 512, - batch_size: int = 800, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'nbeats_model', - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Perform NBEATS Forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - num_stacks: int - The number of stacks that make up the whole model. Defaults to 10. - num_blocks: int - The number of blocks making up every stack. Defaults to 3. - num_layers: int - The number of fully connected layers preceding the final forking layers in each block - of every stack. Defaults to 4. - layer_widths: int - Determines the number of neurons that make up each fully connected layer in each block - of every stack. Defaults to 512. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best RNN model - List[TimeSeries] - list of Predictions - Optional[float] - Mean average precision error - Any - Best NBEATS Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.nbeats( - data: Union[pandas.core.frame.DataFrame, pandas.core.series.Series], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - num_stacks: int = 10, - num_blocks: int = 3, - num_layers: int = 4, - layer_widths: int = 512, - n_epochs: int = 100, - learning_rate: float = 0.001, - batch_size: int = 800, - model_save_name: str = 'nbeats_model', - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display NBEATS forecast -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - num_stacks: int - The number of stacks that make up the whole model. Defaults to 10. - num_blocks: int - The number of blocks making up every stack. Defaults to 3. - num_layers: int - The number of fully connected layers preceding the final forking layers in each block - of every stack. Defaults to 4. - layer_widths: int - Determines the number of neurons that make up each fully connected layer in each block - of every stack. Defaults to 512. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults - to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset (all - checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/nhits/_index.rst b/website/content/SDK/forecast/nhits/_index.rst deleted file mode 100644 index 117ecf51792..00000000000 --- a/website/content/SDK/forecast/nhits/_index.rst +++ /dev/null @@ -1,253 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.nhits( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - train_split: float = 0.85, - past_covariates: str = None, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - num_stacks: int = 3, - num_blocks: int = 1, - num_layers: int = 2, - layer_widths: int = 512, - pooling_kernel_sizes: Optional[Tuple[Tuple[int]]] = None, - n_freq_downsample: Optional[Tuple[Tuple[int]]] = None, - dropout: float = 0.1, - activation: str = 'ReLU', - max_pool_1d: bool = True, - batch_size: int = 32, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'brnn_model', - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Nhits forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - num_stacks: int - The number of stacks that make up the whole model. - num_blocks: int - The number of blocks making up every stack. - num_layers: int - The number of fully connected layers preceding the final forking layers in each block - of every stack. - layer_widths: int - Determines the number of neurons that make up each fully connected layer in each - block of every stack. If a list is passed, it must have a length equal to num_stacks - and every entry in that list corresponds to the layer width of the corresponding stack. - If an integer is passed, every stack will have blocks with FC layers of the same width. - pooling_kernel_size: Optional[Tuple[Tuple[int]]]: - If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks), - specifying the kernel size for each block in each stack used for the input pooling - layer. If left to None, some default values will be used based on input_chunk_length. - n_freq_downsample: Optional[Tuple[Tuple[int]]] - If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks), - specifying the downsampling factors before interpolation, for each block in each stack. - If left to None, some default values will be used based on output_chunk_length. - dropout: float - The dropout probability to be used in fully connected layers. - activation: str - Supported activations: [‘ReLU’,’RReLU’, ‘PReLU’, ‘Softplus’, ‘Tanh’, ‘SELU’, ‘LeakyReLU’, ‘Sigmoid’] - max_pool_1d: bool - Use max_pool_1d pooling. False uses AvgPool1d. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset (all checkpoints will be - discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - list[TimeSeries] - Adjusted Data series - list[TimeSeries] - Historical forecast by best RNN model - list[TimeSeries] - list of Predictions - Optional[float] - Mean average precision error - Any - Best BRNN Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.nhits( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - num_stacks: int = 3, - num_blocks: int = 1, - num_layers: int = 2, - layer_widths: int = 512, - pooling_kernel_sizes: Optional[Tuple[Tuple[int]]] = None, - n_freq_downsample: Optional[Tuple[Tuple[int]]] = None, - dropout: float = 0.1, - activation: str = 'ReLU', - max_pool_1d: bool = True, - batch_size: int = 32, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'rnn_model', - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Nhits forecast -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - num_stacks: int - The number of stacks that make up the whole model. - num_blocks: int - The number of blocks making up every stack. - num_layers: int - The number of fully connected layers preceding the final forking layers in each block - of every stack. - layer_widths: int - Determines the number of neurons that make up each fully connected layer in each - block of every stack. If a list is passed, it must have a length equal to num_stacks - and every entry in that list corresponds to the layer width of the corresponding stack. - If an integer is passed, every stack will have blocks with FC layers of the same width. - pooling_kernel_size: Optional[Tuple[Tuple[int]]] - If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks), - specifying the kernel size for each block in each stack used for the input pooling - layer. If left to None, some default values will be used based on input_chunk_length. - n_freq_downsample: Optional[Tuple[Tuple[int]]] - If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks), - specifying the downsampling factors before interpolation, for each block in each stack. - If left to None, some default values will be used based on output_chunk_length. - dropout: float - The dropout probability to be used in fully connected layers. - activation: str - Supported activations: [[‘ReLU’,’RReLU’, ‘PReLU’, ‘Softplus’, ‘Tanh’, ‘SELU’, ‘LeakyReLU’, ‘Sigmoid’] - max_pool_1d: bool - Use max_pool_1d pooling. False uses AvgPool1d. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/plot/_index.rst b/website/content/SDK/forecast/plot/_index.rst deleted file mode 100644 index 0e9a51aad01..00000000000 --- a/website/content/SDK/forecast/plot/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.plot( - data: pandas.core.frame.DataFrame, - columns: List[str], - export: str = '', - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot data from a dataset -

- -* **Parameters** - - data: pd.DataFrame - The dataframe to plot - columns: List[str] - The columns to show - export: str - Format to export image - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.plot( - data: pandas.core.frame.DataFrame, - columns: List[str], - export: str = '', - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot data from a dataset -

- -* **Parameters** - - data: pd.DataFrame - The dataframe to plot - columns: List[str] - The columns to show - export: str - Format to export image - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/regr/_index.rst b/website/content/SDK/forecast/regr/_index.rst deleted file mode 100644 index c167fe179df..00000000000 --- a/website/content/SDK/forecast/regr/_index.rst +++ /dev/null @@ -1,145 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.regr( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - output_chunk_length: int = 1, - lags: Union[int, List[int]] = 72, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], float, Any] -{{< /highlight >}} - -.. raw:: html - -

- Perform Regression Forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - n_predict: int - Days to predict. Defaults to 5. - target_column: str - Target column to forecast. Defaults to "close". - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - output_chunk_length: int - The length of the forecast of the model. Defaults to 1. - lags: Union[int, List[int]] - lagged target values to predict the next time step - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best RNN model - List[TimeSeries] - list of Predictions - float - Mean average precision error - Any - Best Regression Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.regr( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - output_chunk_length: int = 1, - lags: Union[int, List[int]] = 72, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - explainability_raw: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Regression Forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - output_chunk_length: int - The length of the forecast of the model. Defaults to 1. - lags: Union[int, List[int]] - lagged target values to predict the next time step - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/rename/_index.rst b/website/content/SDK/forecast/rename/_index.rst deleted file mode 100644 index 04ea3ba37ec..00000000000 --- a/website/content/SDK/forecast/rename/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.rename( - data: pandas.core.frame.DataFrame, - old_column: str, - new_column: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Rename a column in a dataframe -

- -* **Parameters** - - data: pd.DataFrame - The dataframe to have a column renamed - old_column: str - The column that will have its name changed - new_column: str - The name to update to - -* **Returns** - - new_df: pd.DataFrame - The dataframe with the renamed column diff --git a/website/content/SDK/forecast/rnn/_index.rst b/website/content/SDK/forecast/rnn/_index.rst deleted file mode 100644 index 5c539a6d9c2..00000000000 --- a/website/content/SDK/forecast/rnn/_index.rst +++ /dev/null @@ -1,187 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.rnn( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - train_split: float = 0.85, - forecast_horizon: int = 5, - model_type: str = 'LSTM', - hidden_dim: int = 20, - dropout: float = 0.0, - batch_size: int = 16, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'rnn_model', - training_length: int = 20, - input_chunk_size: int = 14, - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Perform RNN forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - n_predict: int - Days to predict. Defaults to 5. - target_column: str - Target column to forecast. Defaults to "close". - train_split: float - Train/val split. Defaults to 0.85. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - model_type: str - Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". - hidden_dim: int - Size for feature maps for each hidden RNN layer.. Defaults to 20. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.0. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best RNN model - List[TimeSeries] - list of Predictions - float - Mean average precision error - Any - Best RNN Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.rnn( - data: Union[pandas.core.frame.DataFrame, pandas.core.series.Series], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - train_split: float = 0.85, - forecast_horizon: int = 5, - model_type: str = 'LSTM', - hidden_dim: int = 20, - dropout: float = 0.0, - batch_size: int = 16, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'rnn_model', - training_length: int = 20, - input_chunk_size: int = 14, - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display RNN forecast -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - target_column: str - Target column to forecast. Defaults to "close". - train_split: float - Train/val split. Defaults to 0.85. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - model_type: str - Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". - hidden_dim: int - Size for feature maps for each hidden RNN layer.. Defaults to 20. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.0. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/roc/_index.rst b/website/content/SDK/forecast/roc/_index.rst deleted file mode 100644 index d56237ee92e..00000000000 --- a/website/content/SDK/forecast/roc/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.roc( - dataset: pandas.core.frame.DataFrame, - target_column: str = 'close', - period: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- A momentum oscillator, which measures the percentage change between the current - value and the n period past value. -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to calculate with - target_column : str - The column you wish to add the ROC to - period : int - Time Span - -* **Returns** - - pd.DataFrame: - Dataframe with added ROC column diff --git a/website/content/SDK/forecast/rsi/_index.rst b/website/content/SDK/forecast/rsi/_index.rst deleted file mode 100644 index 1c43d82ea38..00000000000 --- a/website/content/SDK/forecast/rsi/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.rsi( - dataset: pandas.core.frame.DataFrame, - target_column: str = 'close', - period: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- A momentum indicator that measures the magnitude of recent price changes to evaluate - overbought or oversold conditions in the price of a stock or other asset. -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to calculate for - target_column : str - The column you wish to add the RSI to - period : int - Time Span - -* **Returns** - - pd.DataFrame: - Dataframe with added RSI column diff --git a/website/content/SDK/forecast/season/_index.rst b/website/content/SDK/forecast/season/_index.rst deleted file mode 100644 index 642a85c89ae..00000000000 --- a/website/content/SDK/forecast/season/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.season( - data: pandas.core.frame.DataFrame, - column: str = 'close', - export: str = '', - m: Optional[int] = None, - max_lag: int = 24, - alpha: float = 0.05, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot seasonality from a dataset -

- -* **Parameters** - - data: pd.DataFrame - The dataframe to plot - column: str - The column of the dataframe to analyze - export: str - Format to export image - m: Optional[int] - Optionally, a time lag to highlight on the plot. Default is none. - max_lag: int - The maximal lag order to consider. Default is 24. - alpha: float - The confidence interval to display. Default is 0.05. - external_axes:Optional[List[plt.axes]] - External axes to plot on diff --git a/website/content/SDK/forecast/show/_index.rst b/website/content/SDK/forecast/show/_index.rst deleted file mode 100644 index 6dab6568fcb..00000000000 --- a/website/content/SDK/forecast/show/_index.rst +++ /dev/null @@ -1,23 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- - -| - -.. raw:: html - -

- > Getting charts -

- diff --git a/website/content/SDK/forecast/signal/_index.rst b/website/content/SDK/forecast/signal/_index.rst deleted file mode 100644 index 5b665469714..00000000000 --- a/website/content/SDK/forecast/signal/_index.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.signal( - dataset: pandas.core.frame.DataFrame, - target_column: str = 'close', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- A price signal based on short/long term price. - - 1 if the signal is that short term price will go up as compared to the long term. - 0 if the signal is that short term price will go down as compared to the long term. -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to calculate with - -* **Returns** - - pd.DataFrame: - Dataframe with added signal column diff --git a/website/content/SDK/forecast/sto/_index.rst b/website/content/SDK/forecast/sto/_index.rst deleted file mode 100644 index 36bf3d1bcb0..00000000000 --- a/website/content/SDK/forecast/sto/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.sto( - dataset: pandas.core.frame.DataFrame, - close_column: str = 'close', - high_column: str = 'high', - low_column: str = 'low', - period: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Stochastic Oscillator %K and %D : A stochastic oscillator is a momentum indicator comparing a particular closing - price of a security to a range of its prices over a certain period of time. %K and %D are slow and fast indicators. - - Requires Low/High/Close columns. - Note: This will drop first rows equal to period due to how this metric is calculated. -

- -* **Parameters** - - dataset : pd.DataFrame - The dataset you wish to calculate for - period : int - Span - -* **Returns** - - pd.DataFrame: - Dataframe with added STO K & D columns diff --git a/website/content/SDK/forecast/tcn/_index.rst b/website/content/SDK/forecast/tcn/_index.rst deleted file mode 100644 index e5f3944dbf3..00000000000 --- a/website/content/SDK/forecast/tcn/_index.rst +++ /dev/null @@ -1,207 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.tcn( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - dropout: float = 0.1, - num_filters: int = 6, - weight_norm: bool = True, - dilation_base: int = 2, - n_epochs: int = 100, - learning_rate: float = 0.001, - batch_size: int = 800, - model_save_name: str = 'tcn_model', - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Perform TCN forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.1. - num_filters: int - The number of filters in a convolutional layer of the TCN. Defaults to 6. - weight_norm: bool - Boolean value indicating whether to use weight normalization. Defaults to True. - dilation_base: int - The base of the exponent that will determine the dilation on every level. Defaults to 2. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best RNN model - List[TimeSeries] - list of Predictions - Optional[float] - Mean average precision error - Any - Best TCN Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.tcn( - data: Union[pandas.core.frame.DataFrame, pandas.core.series.Series], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - dropout: float = 0.1, - num_filters: int = 6, - weight_norm: bool = True, - dilation_base: int = 2, - n_epochs: int = 100, - learning_rate: float = 0.001, - batch_size: int = 800, - model_save_name: str = 'tcn_model', - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display TCN forecast -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - target_column: str - Target column to forecast. Defaults to "close". - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.1. - num_filters: int - The number of filters in a convolutional layer of the TCN. Defaults to 6. - weight_norm: bool - Boolean value indicating whether to use weight normalization. Defaults to True. - dilation_base: int - The base of the exponent that will determine the dilation on every level. Defaults to 2. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/tft/_index.rst b/website/content/SDK/forecast/tft/_index.rst deleted file mode 100644 index c4a6648305b..00000000000 --- a/website/content/SDK/forecast/tft/_index.rst +++ /dev/null @@ -1,220 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.tft( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - hidden_size: int = 16, - lstm_layers: int = 1, - num_attention_heads: int = 4, - full_attention: bool = False, - dropout: float = 0.1, - hidden_continuous_size: int = 8, - n_epochs: int = 200, - batch_size: int = 32, - model_save_name: str = 'tft_model', - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Temporal Fusion Transformer forecasting - The TFT applies multi-head attention queries on future inputs from mandatory future_covariates. - Specifying future encoders with add_encoders (read below) can automatically generate future - covariates and allows to use the model without having to pass any future_covariates to fit() - and predict(). - - https://unit8co.github.io/darts/generated_api/darts.models.forecasting.tft_model.html -

- -* **Parameters** - - data (Union[pd.Series, pd.DataFrame]): - Input Data - target_column (str, optional): - Target column to forecast. Defaults to "close". - n_predict (int, optional): - Days to predict. Defaults to 5. - train_split (float, optional): - Train/val split. Defaults to 0.85. - past_covariates (str, optional): - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon (int, optional): - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length (int, optional): - Number of past time steps that are fed to the forecasting module at prediction time. - Defaults to 14. - output_chunk_length (int, optional): - The length of the forecast of the model. Defaults to 5. - hidden_size (int, optional): - Hidden state size of the TFT. Defaults to 16. - lstm_layers (int, optional): - Number of layers for the Long Short Term Memory Encoder and Decoder. Defaults to 16. - num_attention_headers (int, optional): - Number of attention heads. Defaults to 4. - full_attention (bool, optional): - Whether to apply a multi-head attention query. Defaults to False> - dropout (float, optional): - Fraction of neurons affected by dropout. Defaults to 0.1. - hidden_continuous_size (int, optional): - Default hidden size for processing continuous variables. Defaults to 8. - n_epochs (int, optional): - Number of epochs to run during training. Defaults to 200. - batch_size (int, optional): - Number of samples to pass through network during a single epoch. Defaults to 32. - model_save_name (str, optional): - The name for the model. Defaults to tft_model - force_reset (bool, optional): - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints (bool, optional): - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - List[float] - Adjusted Data series - List[float] - List of historical fcast values - List[float] - List of predicted fcast values - Optional[float] - precision - Any - Fit Prob. TFT model object. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.tft( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - hidden_size: int = 16, - lstm_layers: int = 1, - num_attention_heads: int = 4, - full_attention: bool = False, - dropout: float = 0.1, - hidden_continuous_size: int = 8, - n_epochs: int = 200, - batch_size: int = 32, - model_save_name: str = 'tft_model', - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Temporal Fusion Transformer forecast -

- -* **Parameters** - - data (Union[pd.Series, pd.DataFrame]): - Input Data - target_column (str, optional): - Target column to forecast. Defaults to "close". - dataset_name str - The name of the ticker to be predicted - n_predict (int, optional): - Days to predict. Defaults to 5. - train_split (float, optional): - Train/val split. Defaults to 0.85. - past_covariates (str, optional): - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon (int, optional): - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length (int, optional): - Number of past time steps that are fed to the forecasting module at prediction time. - Defaults to 14. - output_chunk_length (int, optional): - The length of the forecast of the model. Defaults to 5. - hidden_size (int, optional): - Hidden state size of the TFT. Defaults to 16. - lstm_layers (int, optional): - Number of layers for the Long Short Term Memory Encoder and Decoder. Defaults to 16. - num_attention_headers (int, optional): - Number of attention heads. Defaults to 4. - full_attention (bool, optional): - Whether to apply a multi-head attention query. Defaults to False> - dropout (float, optional): - Fraction of neurons affected by dropout. Defaults to 0.1. - hidden_continuous_size (int, optional): - Default hidden size for processing continuous variables. Defaults to 8. - n_epochs (int, optional): - Number of epochs to run during training. Defaults to 200. - batch_size (int, optional): - Number of samples to pass through network during a single epoch. Defaults to 32. - model_save_name (str, optional): - The name for the model. Defaults to tft_model - force_reset (bool, optional): - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints (bool, optional): - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/theta/_index.rst b/website/content/SDK/forecast/theta/_index.rst deleted file mode 100644 index d2dd5f80de2..00000000000 --- a/website/content/SDK/forecast/theta/_index.rst +++ /dev/null @@ -1,147 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.theta( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - seasonal: str = 'M', - seasonal_periods: int = 7, - n_predict: int = 5, - start_window: float = 0.85, - forecast_horizon: int = 5, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], float, float, Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Theta forecasting - An implementation of the 4Theta method with configurable theta parameter. - - https://unit8co.github.io/darts/generated_api/darts.models.forecasting.theta.html -

- -* **Parameters** - - data : Union[pd.Series, np.ndarray] - Input data. - target_column (str, optional): - Target column to forecast. Defaults to "close". - seasonal: str - Seasonal component. One of [N, A, M] - Defaults to MULTIPLICATIVE. - seasonal_periods: int - Number of seasonal periods in a year - If not set, inferred from frequency of the series. - n_predict: int - Number of days to forecast - start_window: float - Size of sliding window from start of timeseries and onwards - forecast_horizon: int - Number of days to forecast when backtesting and retraining historical - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best theta - List[TimeSeries] - list of Predictions - float - Mean average precision error - float - Best Theta - Any - Theta Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.theta( - data: Union[pandas.core.frame.DataFrame, pandas.core.series.Series], - target_column: str = 'close', - dataset_name: str = '', - seasonal: str = 'M', - seasonal_periods: int = 7, - n_predict: int = 5, - start_window: float = 0.85, - forecast_horizon: int = 5, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Theta forecast -

- -* **Parameters** - - data : Union[pd.Series, np.array] - Data to forecast - target_column (str, optional): - Target column to forecast. Defaults to "close". - dataset_name str - The name of the ticker to be predicted - seasonal: str - Seasonal component. One of [N, A, M] - Defaults to MULTIPLICATIVE. - seasonal_periods: int - Number of seasonal periods in a year - If not set, inferred from frequency of the series. - n_predict: int - Number of days to forecast - start_window: float - Size of sliding window from start of timeseries and onwards - forecast_horizon: int - Number of days to forecast when backtesting and retraining historical - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes:Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forecast/trans/_index.rst b/website/content/SDK/forecast/trans/_index.rst deleted file mode 100644 index 5002f1043d7..00000000000 --- a/website/content/SDK/forecast/trans/_index.rst +++ /dev/null @@ -1,223 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forecast.trans( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - n_predict: int = 5, - train_split: float = 0.85, - past_covariates: str = None, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - d_model: int = 64, - nhead: int = 4, - num_encoder_layers: int = 3, - num_decoder_layers: int = 3, - dim_feedforward: int = 512, - activation: str = 'relu', - dropout: float = 0.0, - batch_size: int = 32, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'trans_model', - force_reset: bool = True, - save_checkpoints: bool = True, - chart: bool = False, -) -> Tuple[List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], List[darts.timeseries.TimeSeries], Optional[float], Any] -{{< /highlight >}} - -.. raw:: html - -

- Performs Transformer forecasting -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - n_predict: int - Days to predict. Defaults to 5. - target_column: str - Target column to forecast. Defaults to "close". - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - d_model: int - The number of expected features in the encoder/decoder inputs. Defaults to 64. - nhead: int - The number of heads in the multi-head attention mechanism. Defaults to 4. - num_encoder_layers: int - The number of encoder layers in the encoder. Defaults to 3. - num_decoder_layers: int - The number of decoder layers in the encoder. Defaults to 3. - dim_feedforward: int - The dimension of the feedforward network model. Defaults to 512. - activation: str - The activation function of encoder/decoder intermediate layer, ‘relu’ or ‘gelu’. Defaults to 'relu'. - dropout: float - Fraction of neurons afected by Dropout. Defaults to 0.0. - batch_size: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - learning_rate: float - Defaults to 1e-3. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset (all checkpoints will be - discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. - chart: *bool* - Flag to display chart - - -* **Returns** - - List[TimeSeries] - Adjusted Data series - List[TimeSeries] - Historical forecast by best RNN model - List[TimeSeries] - list of Predictions - Optional[float] - Mean average precision error - Any - Best transformer Model - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forecast.trans( - data: Union[pandas.core.series.Series, pandas.core.frame.DataFrame], - target_column: str = 'close', - dataset_name: str = '', - n_predict: int = 5, - past_covariates: str = None, - train_split: float = 0.85, - forecast_horizon: int = 5, - input_chunk_length: int = 14, - output_chunk_length: int = 5, - d_model: int = 64, - nhead: int = 4, - num_encoder_layers: int = 3, - num_decoder_layers: int = 3, - dim_feedforward: int = 512, - activation: str = 'relu', - dropout: float = 0.1, - batch_size: int = 16, - n_epochs: int = 100, - learning_rate: float = 0.001, - model_save_name: str = 'trans_model', - force_reset: bool = True, - save_checkpoints: bool = True, - export: str = '', - residuals: bool = False, - forecast_only: bool = False, - start_date: Optional[datetime.datetime] = None, - end_date: Optional[datetime.datetime] = None, - naive: bool = False, - export_pred_raw: bool = False, - external_axes: Optional[List[axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Transformer forecast -

- -* **Parameters** - - data: Union[pd.Series, pd.DataFrame] - Input Data - dataset_name: str - The name of the ticker to be predicted - n_predict: int - Days to predict. Defaults to 5. - target_column: str - Target column to forecast. Defaults to "close". - train_split: float - Train/val split. Defaults to 0.85. - past_covariates: str - Multiple secondary columns to factor in when forecasting. Defaults to None. - forecast_horizon: int - Forecast horizon when performing historical forecasting. Defaults to 5. - input_chunk_length: int - Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. - output_chunk_length: int - The length of the forecast of the model. Defaults to 5. - d_model: int - The number of expected features in the encoder/decoder inputs. Defaults to 64. - nhead: int - The number of heads in the multi-head attention mechanism. Defaults to 4. - num_encoder_layers: int - The number of encoder layers in the encoder. Defaults to 3. - num_decoder_layers: int - The number of decoder layers in the encoder. Defaults to 3. - dim_feedforward: int - The dimension of the feedforward network model. Defaults to 512. - activation: str - The activation function of encoder/decoder intermediate layer, ‘relu’ or ‘gelu’. Defaults to 'relu'. - dropout: float - Fraction of neurons affected by Dropout. Defaults to 0.1. - batch_size\_: int - Number of time series (input and output sequences) used in each training pass. Defaults to 32. - n_epochs: int - Number of epochs over which to train the model. Defaults to 100. - model_save_name: str - Name for model. Defaults to "brnn_model". - force_reset: bool - If set to True, any previously-existing model with the same name will be reset - (all checkpoints will be discarded). Defaults to True. - save_checkpoints: bool - Whether or not to automatically save the untrained model and checkpoints from training. - Defaults to True. - export: str - Format to export data - residuals: bool - Whether to show residuals for the model. Defaults to False. - forecast_only: bool - Whether to only show dates in the forecasting range. Defaults to False. - start_date: Optional[datetime] - The starting date to perform analysis, data before this is trimmed. Defaults to None. - end_date: Optional[datetime] - The ending date to perform analysis, data after this is trimmed. Defaults to None. - naive: bool - Whether to show the naive baseline. This just assumes the closing price will be the same - as the previous day's closing price. Defaults to False. - external_axes: Optional[List[plt.axes]] - External axes to plot on - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/forex/_index.md b/website/content/SDK/forex/_index.md deleted file mode 100644 index 67514f398ef..00000000000 --- a/website/content/SDK/forex/_index.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -title: Introduction to Forex -keywords: "sdk, api, forex, fx, foreign, exchange, currency, pair, pairs, forward, rate, rates, eurodollar, usd, us, dollar, euro, yen, franc, central, bank, currencies, oanda" -excerpt: "This guide introduces the Forex module, within the OpenBB SDK, and provides examples." -geekdocCollapseSection: true ---- -The Forex module provides a way for users to get currency pair data, from a number of sources. API keys for them are handled by the [Keys module](https://openbb-finance.github.io/OpenBBTerminal/SDK/keys/). After importing the entire OpenBB SDK, no further action is required to authorize the sources. This module also provides Oanda account holders [additional functionality](https://openbb-finance.github.io/OpenBBTerminal/terminal/forex/oanda/). - -For the purpose of demonstration, additional modules will be imported to begin the Python script or Notebook file. - -```python -from openbb_terminal.sdk import openbb - -import pandas as pd - -%matplotlib inline -``` - -![The Forex Module](https://user-images.githubusercontent.com/85772166/199393284-bf9e2f57-4041-4304-9679-69ac07816fe4.png "The Forex Module") - -## How to Use - -To load historical data for a desired currency pair, copy and paste the code below: - -```python -currency_pair = openbb.forex.load( - from_symbol='USD', - to_symbol='EUR', - source = 'Polygon', - start_date = '2000-01-01', - resolution = 'd', - interval = '1day', - ) -``` - -Note that `source` can be any of: AlphaVantage, Oanda, Polygon, or, YahooFinance. It returns a Pandas DataFrame: - -![openbb.forex.load](https://user-images.githubusercontent.com/85772166/199393745-9c57b9d1-2613-4350-b6c2-a291ee5d9ee9.png "openbb.forex.load") - -Cached as a DataFrame, it can then be passed along to any time-series function within the OpenBB SDK; such as, the [Technical Analysis](https://openbb-finance.github.io/OpenBBTerminal/terminal/common/ta/) and [Quantitative Analysis](https://openbb-finance.github.io/OpenBBTerminal/terminal/common/qa/) modules. Pandas can also be used to further process data, for example, using the cached example above: - -```python -daily_range = pd.DataFrame(columns = ['range']) - -daily_range.range = currency_pair['High']-currency_pair['Low'] - -openbb.common.qa.bw(daily_range, target = 'range', symbol = 'Daily Variance EUR/USD') - -``` - -![Box Plot of Yearly EUR/USD Variance](https://user-images.githubusercontent.com/85772166/199393844-bb177938-d1b4-4e95-bdcd-5c415508f391.png "Box Plot of Yearly EUR/USD Variance") - -One free set of data, from the Oanda subset of functions, is the current forward rates of a currency pair. Data is returned as a table, for example: - -```python -openbb.forex.oanda.fwd(from_symbol = 'EUR', to_symbol = 'USD') -``` - -![openbb.forex.oanda.fwd](https://user-images.githubusercontent.com/85772166/199394298-466b350d-5574-401e-a750-d645192e3db6.png "openbb.forex.oanda.fwd") - -This code snippet returns a Pandas DataFrame containing forward points for two currency pairs, JPY/USD & USD/EUR: - -```python -from openbb_terminal.sdk import openbb - -import pandas as pd - -JPYUSD = openbb.forex.oanda.fwd(to_symbol='JPY', from_symbol='USD') -Expiration = list(JPYUSD.index) -JPYUSD_points = list(JPYUSD.Points) -USDEUR = openbb.forex.oanda.fwd(to_symbol='USD', from_symbol='EUR') -USDEUR_points = list(USDEUR.Points) - -fwd_spread = Expiration,JPYUSD_points,USDEUR_points - -pair_spreads = pd.DataFrame.from_dict(fwd_spread).transpose() -pair_spreads = pair_spreads.reset_index() - -pd.DataFrame(pair_spreads).rename(columns = { - 0: "Expiration", - 1: "JPY/USD Points", - 2: "USD/EUR Points", - }, inplace = True) - -pair_spreads.set_index(['Expiration'], inplace = True) - -pair_spreads = pd.DataFrame(pair_spreads, columns = ['JPY/USD Points', 'USD/EUR Points']) - -pair_spreads -``` -![Points Spread](https://user-images.githubusercontent.com/85772166/199394778-a4aa6e9f-af18-42c3-b9af-43cf9a037508.png "Comparing JPY/USD USD/EUR Points") diff --git a/website/content/SDK/forex/candle/_index.rst b/website/content/SDK/forex/candle/_index.rst deleted file mode 100644 index 6c9d7fa92cb..00000000000 --- a/website/content/SDK/forex/candle/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.candle( - data: pandas.core.frame.DataFrame, - to_symbol: str = '', - from_symbol: str = '', - ma: Optional[Iterable[int]] = None, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - use_matplotlib: bool = True, - add_trend: bool = False, - yscale: str = 'linear', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show candle plot for fx data. -

- -* **Parameters** - - data : pd.DataFrame - Loaded fx historical data - to_symbol : str - To forex symbol - from_symbol : str - From forex symbol - ma : Optional[Iterable[int]] - Moving averages - external_axes: Optional[List[plt.Axes]] - External axes (1 axis is expected in the list), by default None diff --git a/website/content/SDK/forex/get_currency_list/_index.rst b/website/content/SDK/forex/get_currency_list/_index.rst deleted file mode 100644 index 52f4987530e..00000000000 --- a/website/content/SDK/forex/get_currency_list/_index.rst +++ /dev/null @@ -1,21 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.get_currency_list() -> List -{{< /highlight >}} - -.. raw:: html - -

- Load AV currency codes from a local file. -

diff --git a/website/content/SDK/forex/hist/_index.rst b/website/content/SDK/forex/hist/_index.rst deleted file mode 100644 index 0a6571a5ad0..00000000000 --- a/website/content/SDK/forex/hist/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.hist( - to_symbol: str = 'USD', - from_symbol: str = 'EUR', - resolution: str = 'd', - interval: int = 5, - start_date: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical forex data. -

- -* **Parameters** - - to_symbol : str - To forex symbol - from_symbol : str - From forex symbol - resolution : str, optional - Resolution of data. Can be "i", "d", "w", "m" for intraday, daily, weekly or monthly - interval : int, optional - Interval for intraday data - start_date : str, optional - Start date for data. - -* **Returns** - - pd.DataFrame - Historical data for forex pair diff --git a/website/content/SDK/forex/load/_index.rst b/website/content/SDK/forex/load/_index.rst deleted file mode 100644 index f67e5579569..00000000000 --- a/website/content/SDK/forex/load/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.load( - to_symbol: str, - from_symbol: str, - resolution: str = 'd', - interval: str = '1day', - start_date: str = None, - source: str = 'YahooFinance', - verbose: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Load forex for two given symbols. -

- -* **Parameters** - - to_symbol : str - The from currency symbol. Ex: USD, EUR, GBP, YEN - from_symbol : str - The from currency symbol. Ex: USD, EUR, GBP, YEN - resolution : str, optional - The resolution for the data, by default "d" - interval : str, optional - What interval to get data for, by default "1day" - start_date : str, optional - When to begin loading in data, by default last_year.strftime("%Y-%m-%d") - source : str, optional - Where to get data from, by default "YahooFinance" - verbose : bool, optional - Display verbose information on what was the pair that was loaded, by default True - -* **Returns** - - pd.DataFrame - The loaded data diff --git a/website/content/SDK/forex/oanda/_index.md b/website/content/SDK/forex/oanda/_index.md deleted file mode 100644 index 0fc31079ca2..00000000000 --- a/website/content/SDK/forex/oanda/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: oanda -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/forex/oanda/calendar/_index.rst b/website/content/SDK/forex/oanda/calendar/_index.rst deleted file mode 100644 index c506e62e201..00000000000 --- a/website/content/SDK/forex/oanda/calendar/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.calendar( - days: int = 14, - instrument: Optional[str] = None, - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request data of significant events calendar. -

- -* **Parameters** - - instrument : Union[str, None] - The loaded currency pair, by default None - days : int - Number of days in advance - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Calendar events data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.calendar( - instrument: str, - days: int = 7, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View calendar of significant events. -

- -* **Parameters** - - instrument : str - The loaded currency pair - days : int - Number of days in advance - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/cancel/_index.rst b/website/content/SDK/forex/oanda/cancel/_index.rst deleted file mode 100644 index 883dd57989b..00000000000 --- a/website/content/SDK/forex/oanda/cancel/_index.rst +++ /dev/null @@ -1,69 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.cancel( - orderID: str, - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[str, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request cancellation of a pending order. -

- -* **Parameters** - - orderID : str - The pending order ID to cancel. - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.cancel( - accountID: str, - orderID: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Cancel a Pending Order. -

- -* **Parameters** - - accountID : str - Oanda user account ID - orderID : str - The pending order ID to cancel. - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/candles/_index.rst b/website/content/SDK/forex/oanda/candles/_index.rst deleted file mode 100644 index 6b6fc337685..00000000000 --- a/website/content/SDK/forex/oanda/candles/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.candles( - instrument: Optional[str] = None, - granularity: str = 'D', - candlecount: int = 180, - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request data for candle chart. -

- -* **Parameters** - - instrument : str - Loaded currency pair code - granularity : str, optional - Data granularity, by default "D" - candlecount : int, optional - Limit for the number of data points, by default 180 - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Candle chart data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.candles( - instrument: str = '', - granularity: str = 'D', - candlecount: int = 180, - additional_charts: Optional[Dict[str, bool]] = None, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show candle chart. - - Note that additional plots (ta indicators) not supported in external axis mode. -

- -* **Parameters** - - instrument : str - The loaded currency pair - granularity : str, optional - The timeframe to get for the candle chart. Seconds: S5, S10, S15, S30 - Minutes: M1, M2, M4, M5, M10, M15, M30 Hours: H1, H2, H3, H4, H6, H8, H12 - Day (default): D, Week: W Month: M, - candlecount : int, optional - Limit for the number of data points - additional_charts : Dict[str, bool] - A dictionary of flags to include additional charts - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/close/_index.rst b/website/content/SDK/forex/oanda/close/_index.rst deleted file mode 100644 index 698be997ad0..00000000000 --- a/website/content/SDK/forex/oanda/close/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.close( - orderID: str, - units: Optional[int] = 0, - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Close a trade. -

- -* **Parameters** - - orderID : str - ID of the order to close - units : Union[int, None] - Number of units to close. If empty default to all. - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Close trades data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.close( - accountID: str, - orderID: str = '', - units: Optional[int] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Close a trade. -

- -* **Parameters** - - accountID : str - Oanda user account ID - orderID : str - ID of the order to close - units : Union[int, None] - Number of units to close. If empty default to all. - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/fwd/_index.rst b/website/content/SDK/forex/oanda/fwd/_index.rst deleted file mode 100644 index 25c0be10e70..00000000000 --- a/website/content/SDK/forex/oanda/fwd/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.fwd( - to_symbol: str = 'USD', - from_symbol: str = 'EUR', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Gets forward rates from fxempire -

- -* **Parameters** - - to_symbol: str - To currency - from_symbol: str - From currency - chart: bool - Flag to display chart - - -* **Returns** - - df: pd.DataFrame - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.fwd( - to_symbol: str = 'USD', - from_symbol: str = 'EUR', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display forward rates for currency pairs -

- -* **Parameters** - - to_symbol: str - To currency - from_symbol: str - From currency - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/listorders/_index.rst b/website/content/SDK/forex/oanda/listorders/_index.rst deleted file mode 100644 index cbbe6dae419..00000000000 --- a/website/content/SDK/forex/oanda/listorders/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.listorders( - order_state: str = 'PENDING', - order_count: int = 0, - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request the orders list from Oanda. -

- -* **Parameters** - - order_state : str - Filter orders by a specific state ("PENDING", "CANCELLED", etc.) - order_count : int - Limit the number of orders to retrieve - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.listorders( - accountID: str, - order_state: str = 'PENDING', - order_count: int = 0, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- List order history. -

- -* **Parameters** - - accountID : str - Oanda user account ID - order_state : str - Filter orders by a specific state ("PENDING", "CANCELLED", etc.) - order_count : int - Limit the number of orders to retrieve - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/openpositions/_index.rst b/website/content/SDK/forex/oanda/openpositions/_index.rst deleted file mode 100644 index 1d464d3c21c..00000000000 --- a/website/content/SDK/forex/oanda/openpositions/_index.rst +++ /dev/null @@ -1,63 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.openpositions( - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request information on open positions. -

- -* **Parameters** - - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.openpositions( - accountID: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get information about open positions. -

- -* **Parameters** - - accountID : str - Oanda user account ID - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/opentrades/_index.rst b/website/content/SDK/forex/oanda/opentrades/_index.rst deleted file mode 100644 index 264306625e0..00000000000 --- a/website/content/SDK/forex/oanda/opentrades/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.opentrades( - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request open trades data. -

- -* **Parameters** - - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Open trades data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.opentrades( - accountID: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View open trades. -

- -* **Parameters** - - accountID : str - Oanda user account ID - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/order/_index.rst b/website/content/SDK/forex/oanda/order/_index.rst deleted file mode 100644 index 6a12b4fe16e..00000000000 --- a/website/content/SDK/forex/oanda/order/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.order( - price: int = 0, - units: int = 0, - instrument: Optional[str] = None, - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request creation of buy/sell trade order. -

- -* **Parameters** - - instrument : Union[str, None] - The loaded currency pair, by default None - price : int - The price to set for the limit order. - units : int - The number of units to place in the order request. - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Orders data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.order( - accountID: str, - instrument: str = '', - price: int = 0, - units: int = 0, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Create a buy/sell order. -

- -* **Parameters** - - accountID : str - Oanda user account ID - instrument : str - The loaded currency pair - price : int - The price to set for the limit order. - units : int - The number of units to place in the order request. - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/orderbook/_index.rst b/website/content/SDK/forex/oanda/orderbook/_index.rst deleted file mode 100644 index f06c173856f..00000000000 --- a/website/content/SDK/forex/oanda/orderbook/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.orderbook( - instrument: Optional[str] = None, - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request order book data for plotting. -

- -* **Parameters** - - instrument : Union[str, None] - The loaded currency pair, by default None - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Order book data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.orderbook( - accountID: str, - instrument: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot the orderbook for the instrument if Oanda provides one. -

- -* **Parameters** - - accountID : str - Oanda user account ID - instrument : str - The loaded currency pair - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/pending/_index.rst b/website/content/SDK/forex/oanda/pending/_index.rst deleted file mode 100644 index bea0809107d..00000000000 --- a/website/content/SDK/forex/oanda/pending/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.pending( - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request information on pending orders. -

- -* **Parameters** - - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Pending orders data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.pending( - accountID: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get information about pending orders. -

- -* **Parameters** - - accountID : str - Oanda user account ID - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/positionbook/_index.rst b/website/content/SDK/forex/oanda/positionbook/_index.rst deleted file mode 100644 index a5a2f448890..00000000000 --- a/website/content/SDK/forex/oanda/positionbook/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.positionbook( - instrument: Optional[str] = None, - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request position book data for plotting. -

- -* **Parameters** - - instrument : Union[str, None] - The loaded currency pair, by default None - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Position book data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.positionbook( - accountID: str, - instrument: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot a position book for an instrument if Oanda provides one. -

- -* **Parameters** - - accountID : str - Oanda user account ID - instrument : str - The loaded currency pair - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/price/_index.rst b/website/content/SDK/forex/oanda/price/_index.rst deleted file mode 100644 index f4dfe4f0a80..00000000000 --- a/website/content/SDK/forex/oanda/price/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.price( - accountID: str = 'REPLACE_ME', - instrument: Optional[str] = None, - chart: bool = False, -) -> Union[Dict[str, str], bool] -{{< /highlight >}} - -.. raw:: html - -

- Request price for a forex pair. -

- -* **Parameters** - - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - instrument : Union[str, None] - The loaded currency pair, by default None - chart: bool - Flag to display chart - - -* **Returns** - - Union[Dict[str, str], bool] - The currency pair price or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.price( - account: str, - instrument: Optional[str] = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View price for loaded currency pair. -

- -* **Parameters** - - accountID : str - Oanda account ID - instrument : Union[str, None] - Instrument code or None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/oanda/summary/_index.rst b/website/content/SDK/forex/oanda/summary/_index.rst deleted file mode 100644 index 942d8298c38..00000000000 --- a/website/content/SDK/forex/oanda/summary/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.oanda.summary( - accountID: str = 'REPLACE_ME', - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, bool] -{{< /highlight >}} - -.. raw:: html - -

- Request Oanda account summary. -

- -* **Parameters** - - accountID : str, optional - Oanda account ID, by default cfg.OANDA_ACCOUNT - chart: bool - Flag to display chart - - -* **Returns** - - Union[pd.DataFrame, bool] - Account summary data or False - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.oanda.summary( - accountID: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print Oanda account summary. -

- -* **Parameters** - - accountID : str - Oanda user account ID - chart: bool - Flag to display chart - diff --git a/website/content/SDK/forex/quote/_index.rst b/website/content/SDK/forex/quote/_index.rst deleted file mode 100644 index 6326b1b4c22..00000000000 --- a/website/content/SDK/forex/quote/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -forex.quote( - to_symbol: str = 'USD', - from_symbol: str = 'EUR', - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Get current exchange rate quote from alpha vantage. -

- -* **Parameters** - - to_symbol : str - To forex symbol - from_symbol : str - From forex symbol - chart: bool - Flag to display chart - - -* **Returns** - - Dict - Dictionary of exchange rate - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -forex.quote( - to_symbol: str = 'USD', - from_symbol: str = 'EUR', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display current forex pair exchange rate. -

- -* **Parameters** - - to_symbol : str - To symbol - from_symbol : str - From forex symbol - chart: bool - Flag to display chart - diff --git a/website/content/SDK/funds/_index.md b/website/content/SDK/funds/_index.md deleted file mode 100644 index 143fbd627d5..00000000000 --- a/website/content/SDK/funds/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: funds -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/funds/info/_index.rst b/website/content/SDK/funds/info/_index.rst deleted file mode 100644 index 00336719c30..00000000000 --- a/website/content/SDK/funds/info/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -funds.info( - name: str, - country: str = 'united states', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- -

- -* **Parameters** - - name: *str* - Name of fund (not symbol) to get information - country: *str* - Country of fund - chart: *bool* - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of fund information - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -funds.info( - name: str, - country: str = 'united states', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display fund information. Finds name from symbol first if name is false -

- -* **Parameters** - - name: *str* - Fund name to get info for - country : *str* - Country of fund - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/funds/overview/_index.rst b/website/content/SDK/funds/overview/_index.rst deleted file mode 100644 index 91a937f3c76..00000000000 --- a/website/content/SDK/funds/overview/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -funds.overview( - country: str = 'united states', - limit: int = 20, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- -

- -* **Parameters** - - country: *str* - Country to get overview for - limit: *int* - Number of results to get - chart: *bool* - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing overview - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -funds.overview( - country: str = 'united states', - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays an overview of the main funds from a country. -

- -* **Parameters** - - country: *str* - Country to get overview for - limit: *int* - Number to show - export : *str* - Format to export data - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/funds/search/_index.rst b/website/content/SDK/funds/search/_index.rst deleted file mode 100644 index dabde517377..00000000000 --- a/website/content/SDK/funds/search/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -funds.search( - by: str = 'name', - value: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Search investpy for matching funds -

- -* **Parameters** - - by : *str* - Field to match on. Can be name, issuer, isin or symbol - value : *str* - String that will be searched for - chart: *bool* - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing matches - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -funds.search( - by: str = 'name', - value: str = '', - country: str = 'united states', - limit: int = 10, - sortby: str = '', - ascend: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display results of searching for Mutual Funds -

- -* **Parameters** - - by : *str* - Field to match on. Can be name, issuer, isin or symbol - value : *str* - String that will be searched for - country: *str* - Country to filter on - limit: *int* - Number to show - sortby: *str* - Column to sort by - ascend: *bool* - Flag to sort in ascending order - chart: *bool* - Flag to display chart - diff --git a/website/content/SDK/futures/_index.md b/website/content/SDK/futures/_index.md deleted file mode 100644 index d86f4946d8c..00000000000 --- a/website/content/SDK/futures/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: futures -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/futures/curve/_index.rst b/website/content/SDK/futures/curve/_index.rst deleted file mode 100644 index baf0c1db789..00000000000 --- a/website/content/SDK/futures/curve/_index.rst +++ /dev/null @@ -1,72 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -futures.curve( - symbol: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get curve futures [Source: Yahoo Finance] -

- -* **Parameters** - - symbol: str - symbol to get forward curve - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -futures.curve( - symbol: str, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display curve futures [Source: Yahoo Finance] -

- -* **Parameters** - - symbol: str - Curve future symbol to display - raw: bool - Display futures timeseries in raw format - export: str - Type of format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/futures/historical/_index.rst b/website/content/SDK/futures/historical/_index.rst deleted file mode 100644 index e8f0b22526e..00000000000 --- a/website/content/SDK/futures/historical/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -futures.historical( - symbols: List[str], - expiry: str = '', - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Get historical futures [Source: Yahoo Finance] -

- -* **Parameters** - - symbols: List[str] - List of future timeseries symbols to display - expiry: str - Future expiry date with format YYYY-MM - chart: bool - Flag to display chart - - -* **Returns** - - Dict - Dictionary with sector weightings allocation - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -futures.historical( - symbols: List[str], - expiry: str = '', - start_date: str = None, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display historical futures [Source: Yahoo Finance] -

- -* **Parameters** - - symbols: List[str] - List of future timeseries symbols to display - expiry: str - Future expiry date with format YYYY-MM - start_date : str - Initial date like string (e.g., 2021-10-01) - raw: bool - Display futures timeseries in raw format - export: str - Type of format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/futures/search/_index.rst b/website/content/SDK/futures/search/_index.rst deleted file mode 100644 index 4a8c445376b..00000000000 --- a/website/content/SDK/futures/search/_index.rst +++ /dev/null @@ -1,78 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -futures.search( - category: str = '', - exchange: str = '', - description: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get search futures [Source: Yahoo Finance] -

- -* **Parameters** - - category: str - Select the category where the future exists - exchange: str - Select the exchange where the future exists - description: str - Select the description where the future exists - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -futures.search( - category: str = '', - exchange: str = '', - description: str = '', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display search futures [Source: Yahoo Finance] -

- -* **Parameters** - - category: str - Select the category where the future exists - exchange: str - Select the exchange where the future exists - description: str - Select the description of the future - export: str - Type of format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/keys/_index.md b/website/content/SDK/keys/_index.md deleted file mode 100644 index 1ad8a13cd1c..00000000000 --- a/website/content/SDK/keys/_index.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: API Keys -keywords: "api,keys,key,secret,token,bearer,credentials,secrets,data,sources" -excerpt: "This guide explains how to manage API keys within an OpenBB SDK environment." -geekdocCollapseSection: true ---- -The `keys` module provides the same functionality as the Keys menu does in the OpenBB Terminal. Each data source requiring authentication will have slight differences of required inputs. Refer to the table here for a compiled list of links for each data source. - -![openbb.keys.mykeys()](https://user-images.githubusercontent.com/85772166/198151758-7fdf1e00-29c2-4fb1-bfb1-7421cc9b8986.png) - -## How to Use - -Use Python's built-in `help` to print docstrings by entering, `help(openbb.keys.reddit)`. Alternatively, the contextual help window of a Jupyter session can be opened to view them. - -![Contextual Help](https://user-images.githubusercontent.com/85772166/198360190-753d4fd8-768a-4de6-9c24-44491804914f.png) - -Note that if `persist = False`, the credentials will not be retained in the local installation. Set as `persist = True` to apply them permanently to the local installation of the Terminal application, or SDK. - -Expected values for all sources is printed with, `openbb.keys.get_keys_info()`, which describes what fields need to be included for each API. - -![get_keys_info](https://user-images.githubusercontent.com/85772166/198151924-08f97592-08ce-4631-b333-0f6568124874.png) - -Referencing the information above, they are then defined like, `openbb.keys.av(key='putyourkeyhere')` - -A source with multiple inputs should be defined like, `openbb.keys.binance(key='apikeyhere', secret='thesecretstring')` - -Code completion is activated after the `.` is added to `openbb.keys`. This provides a list which is browsable with the arrow keys. - -![Code Completion](https://user-images.githubusercontent.com/85772166/198151847-a09e9589-43b8-4c40-9cd1-be18092a8004.png) - -Enter multiple keys by creating a list of dictionaries: - -![Multiple Keys](https://user-images.githubusercontent.com/85772166/198152166-94ed3544-a03a-4790-9b4a-c76f2419e3d5.png) - -A simple CSV backup of all credentials can be generated from a Pandas DataFrame: - -```` -from openbb_terminal.sdk import openbb -import pandas as pd - -keys_backup = openbb.keys.mykeys(show = True) -pd.DataFrame(keys_backup).to_csv('keys_backup.csv') -```` diff --git a/website/content/SDK/keys/av/_index.rst b/website/content/SDK/keys/av/_index.rst deleted file mode 100644 index 96e98c19007..00000000000 --- a/website/content/SDK/keys/av/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.av( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Alpha Vantage key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/binance/_index.rst b/website/content/SDK/keys/binance/_index.rst deleted file mode 100644 index 9a3ab3a10a6..00000000000 --- a/website/content/SDK/keys/binance/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.binance( - key: str, - secret: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Binance key -

- -* **Parameters** - - key: str - API key - secret: str - API secret - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/bitquery/_index.rst b/website/content/SDK/keys/bitquery/_index.rst deleted file mode 100644 index c37c1d9faa2..00000000000 --- a/website/content/SDK/keys/bitquery/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.bitquery( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Bitquery key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/cmc/_index.rst b/website/content/SDK/keys/cmc/_index.rst deleted file mode 100644 index b7216f776d6..00000000000 --- a/website/content/SDK/keys/cmc/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.cmc( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Coinmarketcap key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/coinbase/_index.rst b/website/content/SDK/keys/coinbase/_index.rst deleted file mode 100644 index a0f83b75453..00000000000 --- a/website/content/SDK/keys/coinbase/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.coinbase( - key: str, - secret: str, - passphrase: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Coinbase key -

- -* **Parameters** - - key: str - API key - secret: str - API secret - passphrase: str - Account passphrase - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/coinglass/_index.rst b/website/content/SDK/keys/coinglass/_index.rst deleted file mode 100644 index 9a5a7699608..00000000000 --- a/website/content/SDK/keys/coinglass/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.coinglass( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Coinglass key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/cpanic/_index.rst b/website/content/SDK/keys/cpanic/_index.rst deleted file mode 100644 index 03f3c5b96cd..00000000000 --- a/website/content/SDK/keys/cpanic/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.cpanic( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Cpanic key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/degiro/_index.rst b/website/content/SDK/keys/degiro/_index.rst deleted file mode 100644 index 7cd6b4ebef7..00000000000 --- a/website/content/SDK/keys/degiro/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.degiro( - username: str, - password: str, - secret: str = '', - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Degiro key -

- -* **Parameters** - - username: str - User username - password: str - User password - secret: str - User secret - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/eodhd/_index.rst b/website/content/SDK/keys/eodhd/_index.rst deleted file mode 100644 index 7233a531a13..00000000000 --- a/website/content/SDK/keys/eodhd/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.eodhd( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Eodhd key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/ethplorer/_index.rst b/website/content/SDK/keys/ethplorer/_index.rst deleted file mode 100644 index 7e82e99362c..00000000000 --- a/website/content/SDK/keys/ethplorer/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.ethplorer( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Ethplorer key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/finnhub/_index.rst b/website/content/SDK/keys/finnhub/_index.rst deleted file mode 100644 index a1f3a581541..00000000000 --- a/website/content/SDK/keys/finnhub/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.finnhub( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Finnhub key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/fmp/_index.rst b/website/content/SDK/keys/fmp/_index.rst deleted file mode 100644 index 16c8d61059b..00000000000 --- a/website/content/SDK/keys/fmp/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.fmp( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Financial Modeling Prep key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/fred/_index.rst b/website/content/SDK/keys/fred/_index.rst deleted file mode 100644 index b1d9b5a0113..00000000000 --- a/website/content/SDK/keys/fred/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.fred( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set FRED key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/get_keys_info/_index.rst b/website/content/SDK/keys/get_keys_info/_index.rst deleted file mode 100644 index 9d3060f27b8..00000000000 --- a/website/content/SDK/keys/get_keys_info/_index.rst +++ /dev/null @@ -1,25 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.get_keys_info() -> Dict[str, List[str]] -{{< /highlight >}} - -.. raw:: html - -

- Get info on available APIs to use in set_keys. -

- -* **Returns** - - Dictionary of expected API keys and arguments: Dict[str, List[str]] diff --git a/website/content/SDK/keys/github/_index.rst b/website/content/SDK/keys/github/_index.rst deleted file mode 100644 index 84311ea7f66..00000000000 --- a/website/content/SDK/keys/github/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.github( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set GitHub key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/glassnode/_index.rst b/website/content/SDK/keys/glassnode/_index.rst deleted file mode 100644 index 1f30ca760b0..00000000000 --- a/website/content/SDK/keys/glassnode/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.glassnode( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Glassnode key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/iex/_index.rst b/website/content/SDK/keys/iex/_index.rst deleted file mode 100644 index 18de73fad7a..00000000000 --- a/website/content/SDK/keys/iex/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.iex( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set IEX Cloud key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/messari/_index.rst b/website/content/SDK/keys/messari/_index.rst deleted file mode 100644 index 17504dfd50a..00000000000 --- a/website/content/SDK/keys/messari/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.messari( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Messari key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/mykeys/_index.rst b/website/content/SDK/keys/mykeys/_index.rst deleted file mode 100644 index e8975f30c59..00000000000 --- a/website/content/SDK/keys/mykeys/_index.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.mykeys( - show: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get currently set API keys. -

- -* **Parameters** - - show: bool - Flag to choose whether to show actual keys or not. - By default, False. - -* **Returns** - - pd.DataFrame - Currents keys diff --git a/website/content/SDK/keys/news/_index.rst b/website/content/SDK/keys/news/_index.rst deleted file mode 100644 index 95895fd5b96..00000000000 --- a/website/content/SDK/keys/news/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.news( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set News key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/oanda/_index.rst b/website/content/SDK/keys/oanda/_index.rst deleted file mode 100644 index 36a436830e5..00000000000 --- a/website/content/SDK/keys/oanda/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.oanda( - account: str, - access_token: str, - account_type: str = '', - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Oanda key -

- -* **Parameters** - - account: str - User account - access_token: str - User token - account_type: str - User account type - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/polygon/_index.rst b/website/content/SDK/keys/polygon/_index.rst deleted file mode 100644 index 336642c5bde..00000000000 --- a/website/content/SDK/keys/polygon/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.polygon( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Polygon key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/quandl/_index.rst b/website/content/SDK/keys/quandl/_index.rst deleted file mode 100644 index 08150bb4980..00000000000 --- a/website/content/SDK/keys/quandl/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.quandl( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Quandl key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/reddit/_index.rst b/website/content/SDK/keys/reddit/_index.rst deleted file mode 100644 index e1599ddfbef..00000000000 --- a/website/content/SDK/keys/reddit/_index.rst +++ /dev/null @@ -1,53 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.reddit( - client_id: str, - client_secret: str, - password: str, - username: str, - useragent: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Reddit key -

- -* **Parameters** - - client_id: str - Client ID - client_secret: str - Client secret - password: str - User assword - username: str - User username - useragent: str - User useragent - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/rh/_index.rst b/website/content/SDK/keys/rh/_index.rst deleted file mode 100644 index 3f938f856a0..00000000000 --- a/website/content/SDK/keys/rh/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.rh( - username: str, - password: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Robinhood key -

- -* **Parameters** - - username: str - User username - password: str - User password - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/santiment/_index.rst b/website/content/SDK/keys/santiment/_index.rst deleted file mode 100644 index 69e38f97cb9..00000000000 --- a/website/content/SDK/keys/santiment/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.santiment( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Santiment key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/set_keys/_index.rst b/website/content/SDK/keys/set_keys/_index.rst deleted file mode 100644 index 6aa10d1c66d..00000000000 --- a/website/content/SDK/keys/set_keys/_index.rst +++ /dev/null @@ -1,42 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.set_keys( - keys_dict: Dict[str, Dict[str, Union[str, bool]]], - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Set API keys in bundle. -

- -* **Parameters** - - keys_dict: Dict[str, Dict[str, Union[str, bool]]] - E.g. {"fred": {"key":"XXXXX"}, "binance": {"key":"YYYYY", "secret":"ZZZZZ"}} - More info on APIs can be found through get_keys_info(). - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status_dict: Dict diff --git a/website/content/SDK/keys/shroom/_index.rst b/website/content/SDK/keys/shroom/_index.rst deleted file mode 100644 index ae4212c0224..00000000000 --- a/website/content/SDK/keys/shroom/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.shroom( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Shroom key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/si/_index.rst b/website/content/SDK/keys/si/_index.rst deleted file mode 100644 index 33c76244b79..00000000000 --- a/website/content/SDK/keys/si/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.si( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Sentimentinvestor key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/smartstake/_index.rst b/website/content/SDK/keys/smartstake/_index.rst deleted file mode 100644 index c9672cd9c16..00000000000 --- a/website/content/SDK/keys/smartstake/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.smartstake( - key: str, - access_token: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Set Smartstake key. -

- -* **Parameters** - - key: str - API key - access_token: str - API token - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/tokenterminal/_index.rst b/website/content/SDK/keys/tokenterminal/_index.rst deleted file mode 100644 index 263717cb1e7..00000000000 --- a/website/content/SDK/keys/tokenterminal/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.tokenterminal( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Token Terminal key. -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/tradier/_index.rst b/website/content/SDK/keys/tradier/_index.rst deleted file mode 100644 index 5aa49f3c9db..00000000000 --- a/website/content/SDK/keys/tradier/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.tradier( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Tradier key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/twitter/_index.rst b/website/content/SDK/keys/twitter/_index.rst deleted file mode 100644 index 09470d12ad9..00000000000 --- a/website/content/SDK/keys/twitter/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.twitter( - key: str, - secret: str, - access_token: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Twitter key -

- -* **Parameters** - - key: str - API key - secret: str - API secret - access_token: str - API token - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/keys/walert/_index.rst b/website/content/SDK/keys/walert/_index.rst deleted file mode 100644 index c59082ae404..00000000000 --- a/website/content/SDK/keys/walert/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -keys.walert( - key: str, - persist: bool = False, - show_output: bool = False, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Set Walert key -

- -* **Parameters** - - key: str - API key - persist: bool - If False, api key change will be contained to where it was changed. For example, Jupyter notebook. - If True, api key change will be global, i.e. it will affect terminal environment variables. - By default, False. - show_output: bool - Display status string or not. By default, False. - -* **Returns** - - status: str diff --git a/website/content/SDK/portfolio/_index.md b/website/content/SDK/portfolio/_index.md deleted file mode 100644 index 9a73484e311..00000000000 --- a/website/content/SDK/portfolio/_index.md +++ /dev/null @@ -1,186 +0,0 @@ ---- -title: Introduction to Portfolio -keywords: "portfolio, attribution, optimization, pnl, benchmark, return, volatility, metrics, broker, integration, report" -excerpt: "The Introduction to Portfolio explains how to use the -menu and provides a brief description of its sub-menus" -geekdocCollapseSection: true ---- - -The capabilities of the Portfolio menu from the OpenBB Terminal are wrapped into a powerful SDK, enabling users to work with the data in a flexible environment that can be fully customized to meet the needs of any user. This menu is dedicated to properly explaining and optimizing your own portfolio with features to load your own orderbook (transactions) it is possible to compare your results to that of a benchmark. For example, you are able to load both your portfolio and a benchmark, then have the option to look into the performance compared to the benchmark asking the question "_What if I invested all my money in the benchmark instead?_" as well as see a wide variety of statistics and metrics. Next to that, with these findings you can apply optimization techniques to your portfolio through functionalities regarding Portfolio Optimization. - -## How to use - -Start a Python script or Notebook file by importing the module: - -```python -from openbb_terminal.sdk import openbb -``` - -The contents of the menu is printed by running a cell with `openbb.portfolio` which -returns the following: - -``` -PORTFOLIO Menu - -The SDK commands of the the menu: - .portfolio.holdv - .portfolio.holdp - .portfolio.yret - .portfolio.mret - .portfolio.dret - .portfolio.max_drawdown_ratio - .portfolio.distr - .portfolio.maxdd - .portfolio.rvol - .portfolio.rsharpe - .portfolio.rsort - .portfolio.rbeta - .portfolio.summary - .portfolio.skew - .portfolio.kurtosis - .portfolio.volatility - .portfolio.sharpe - -``` - -The first step in using this menu is loading a portfolio. Here, we provide an example titled "Public_Equity_Orderbook.xlsx" which can be loaded in. This file also serves as a template when you wish to fill in your own orders. This results -in the following: - -```python -from openbb_terminal.sdk import Portfolio - -# Define your own orderbook location here -orderbook_path = "Public_Equity_Orderbook.xlsx" - -# Load in the transactions -transactions = Portfolio.read_orderbook(orderbook_path) -P = Portfolio(transactions) -P.generate_portfolio_data() - -# Load in the benchmark, by default this is the SPY ETF -P.set_benchmark() -``` - -Note that the Excel sheet requires the following columns: -- **Date** - The date the trade occurred -- **Name** - The name of the security -- **Type** - The type of the security. Use Cash/Stock/Crypto/ETF as appropriate -- **Price** - The price the security was added or removed at, on a per-unit basis -- **Quantity** - How much of the security in question was added or removed -- **Side** - Whether you bought or sold. Use Buy/Deposit/1 to add to the portfolio or Sell/Withdrawal/0 to remove from the portfolio -a search criteria, country, sector or industry. - -Furthermore, the chosen Excel sheet above also has additional columns but these are _optional_. The OpenBB Terminal -can figure out by itself what industry, sector, country and region belongs to the loaded in equity. You can see this in -action by loading in the "Public_Equity_Orderbook_No_Categorization.xlsx" Excel sheet. - -With the `get_orderbook` on the `Portfolio` class command we can show how the data has been loaded in: - -````python -P.get_orderbook() -```` - -This returns the following (a portion of the data): - -| | Date | Type | Ticker | Side | Price | Quantity | Fees | Investment | Currency | Sector | Industry | Country | Region | -|---:|:-----------|:-------|:---------|:-------|--------:|-----------:|-------:|-------------:|:-----------|:------------------|:-----------------------|:--------------|:--------------| -| 38 | 2022-05-02 | STOCK | YUM | Buy | 115.76 | 11 | 40 | 1313.36 | USD | Consumer Cyclical | Restaurants | United States | North America | -| 37 | 2022-04-12 | STOCK | DGX | Buy | 137.27 | 10 | 30 | 1402.7 | USD | Healthcare | Diagnostics & Research | United States | North America | -| 36 | 2022-03-04 | STOCK | TSM | Buy | 105.06 | 30 | 0 | 3151.8 | USD | Technology | Semiconductors | Taiwan | Asia | -| 35 | 2022-02-02 | STOCK | BABA | Buy | 122.88 | 30 | 0 | 3686.4 | USD | Consumer Cyclical | Internet Retail | China | Asia | -| 34 | 2021-12-28 | STOCK | NKE | Buy | 166.42 | 13 | 20 | 2183.46 | USD | Consumer Cyclical | Footwear & Accessories | Germany | Europe | - -With the portfolio and benchmark loaded in, we can see how the portfolio performed compared to if you invested the same amount of money into the -benchmark instead. This reflects the capabilities of you, as an investor, to outperform a passive strategy. - -```python -openbb.portfolio.perf(P) -``` - -| | Portfolio | Benchmark | Difference | -|:-----------------|:-------------------|:-------------------|:-------------------| -| Total Investment | 48693.95 | 48693.95 | - | -| Total Value | 54591.70 | 60379.68 | -5787.97 | -| Total % Return | 12.11% | 24.00% | -11.89% | -| Total Abs Return | 5897.75 | 11685.73 | -5787.97 | - -Compliment this by showing the volatility of the portfolio for different time periods with the volatility measure. - -```python -openbb.portfolio.volatility(P) -``` - -| | Portfolio [%] | Benchmark [%] | -|:----|----------------:|----------------:| -| mtd | 7.024 | 3.589 | -| qtd | 13.515 | 8.823 | -| ytd | 34.853 | 22.489 | -| 3m | 18.119 | 12.562 | -| 6m | 26.216 | 17.64 | -| 1y | 36.341 | 23.303 | -| 3y | 54.114 | 42.435 | -| 5y | 62.103 | 47.383 | -| 10y | 72.617 | 54.408 | -| all | 91.162 | 62.297 | - -## Examples - -Instead of loading the "Public_Equity_Orderbook.xlsx" file, we now load in -"Public_Equity_Orderbook_No_Categorization.xlsx" which does not include categorization of the stocks -by industry, sector, country and region. Therefore, we let the OpenBB Terminal figure this out. This -takes a bit longer to load. - -```python -from openbb_terminal.sdk import Portfolio - -# Define your own orderbook location here -orderbook_path = "Public_Equity_Orderbook_No_Categorization.xlsx" - -# Load in the transactions -transactions = Portfolio.read_orderbook(orderbook_path) -P = Portfolio(transactions) -P.generate_portfolio_data() - -# Load in the benchmark, by default this is the SPY ETF -P.set_benchmark() -``` - -Then, we can show our performance compared to that of the benchmark. - -```python -openbb.portfolio.perf(P) -``` - -| | Portfolio | Benchmark | Difference | -|:-----------------|:------------------|:-------------------|:-------------------| -| Total Investment | 48693.95 | 48693.95 | - | -| Total Value | 54795.03 | 60472.14 | -5677.11| -| Total % Return | 12.53% | 24.19% | -11.66% | -| Total Abs Return | 6101.08| 11778.19| -5677.11 | - - -Furthermore, we can also show the rolling beta. -```python -openbb.portfolio.rbeta(P, chart=True) -``` - -![Rolling Beta of the Portfolio](https://user-images.githubusercontent.com/46355364/180178392-96efb6e1-60a1-4f76-92d8-434fb3637c21.png) - -This helps in understanding that, even though you achieved a superior return, this also came at a greater risk compared to that of the benchmark. With the available functionalities you can further look into these results, e.g. by looking at the sharpe ratio: - -```python -openbb.portfolio.sharpe(P) -``` - -| | Portfolio | Benchmark | -|:----|------------:|------------:| -| mtd | 0.193 | -0.207 | -| qtd | 0.144 | 0.132 | -| ytd | -0.077 | -0.058 | -| 3m | -0.069 | -0.071 | -| 6m | -0.013 | -0.013 | -| 1y | -0.073 | -0.046 | -| 3y | 0.021 | 0.029 | -| 5y | 0.026 | 0.035 | -| 10y | 0.044 | 0.049 | -| all | 0.03 | 0.045 | diff --git a/website/content/SDK/portfolio/alloc/_index.md b/website/content/SDK/portfolio/alloc/_index.md deleted file mode 100644 index 754aa89dd96..00000000000 --- a/website/content/SDK/portfolio/alloc/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: alloc -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/portfolio/alloc/assets/_index.rst b/website/content/SDK/portfolio/alloc/assets/_index.rst deleted file mode 100644 index 5c04e198a46..00000000000 --- a/website/content/SDK/portfolio/alloc/assets/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.alloc.assets( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - tables: bool = False, - limit: int = 10, - recalculate: bool = False, - chart: bool = False, -) -> Union[pandas.core.frame.DataFrame, Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame]] -{{< /highlight >}} - -.. raw:: html - -

- Display portfolio asset allocation compared to the benchmark -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - tables: bool - Whether to include separate allocation tables - limit: int - The amount of assets you wish to show, by default this is set to 10 - recalculate: bool - Flag to force recalculate allocation if already exists - -* **Returns** - - Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] - DataFrame with combined allocation plus individual allocation if tables is `True`. - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.alloc.assets(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/alloc/countries/_index.rst b/website/content/SDK/portfolio/alloc/countries/_index.rst deleted file mode 100644 index 8a62c4db208..00000000000 --- a/website/content/SDK/portfolio/alloc/countries/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.alloc.countries( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - limit: int = 10, - tables: bool = False, - recalculate: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display portfolio country allocation compared to the benchmark -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - tables: bool - Whether to include separate allocation tables - limit: int - The amount of assets you wish to show, by default this is set to 10 - recalculate: bool - Flag to force recalculate allocation if already exists - -* **Returns** - - Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] - DataFrame with combined allocation plus individual allocation if tables is `True`. - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.alloc.countries(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/alloc/regions/_index.rst b/website/content/SDK/portfolio/alloc/regions/_index.rst deleted file mode 100644 index 0163cd63a3e..00000000000 --- a/website/content/SDK/portfolio/alloc/regions/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.alloc.regions( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - limit: int = 10, - tables: bool = False, - recalculate: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display portfolio region allocation compared to the benchmark -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - tables: bool - Whether to include separate allocation tables - limit: int - The amount of assets you wish to show, by default this is set to 10 - recalculate: bool - Flag to force recalculate allocation if already exists - -* **Returns** - - Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] - DataFrame with combined allocation plus individual allocation if tables is `True`. - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.alloc.regions(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/alloc/sectors/_index.rst b/website/content/SDK/portfolio/alloc/sectors/_index.rst deleted file mode 100644 index d29886caa06..00000000000 --- a/website/content/SDK/portfolio/alloc/sectors/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.alloc.sectors( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - limit: int = 10, - tables: bool = False, - recalculate: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display portfolio sector allocation compared to the benchmark -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - tables: bool - Whether to include separate allocation tables - limit: int - The amount of assets you wish to show, by default this is set to 10 - recalculate: bool - Flag to force recalculate allocation if already exists - -* **Returns** - - Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] - DataFrame with combined allocation plus individual allocation if tables is `True`. - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.alloc.sectors(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/bench/_index.rst b/website/content/SDK/portfolio/bench/_index.rst deleted file mode 100644 index 4ebf47266bf..00000000000 --- a/website/content/SDK/portfolio/bench/_index.rst +++ /dev/null @@ -1,45 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.bench( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - symbol: str, - full_shares: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Load benchmark into portfolio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - symbol: str - Benchmark symbol to download data - full_shares: bool - Whether to mimic the portfolio trades exactly (partial shares) or round down the - quantity to the nearest number - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.bench(p, symbol="SPY") - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/distr/_index.rst b/website/content/SDK/portfolio/distr/_index.rst deleted file mode 100644 index bd58fb9e534..00000000000 --- a/website/content/SDK/portfolio/distr/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.distr( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Display daily returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of returns distribution - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.distr(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.distr( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - raw: bool = False, - export: str = '', - external_axes: Optional[matplotlib.axes._axes.Axes] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display daily returns -

- -* **Parameters** - - portfolio_returns : pd.Series - Returns of the portfolio - benchmark_returns : pd.Series - Returns of the benchmark - interval : str - interval to compare cumulative returns and benchmark - raw : False - Display raw data from cumulative return - export : str - Export certain type of data - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/dret/_index.rst b/website/content/SDK/portfolio/dret/_index.rst deleted file mode 100644 index 04cbc7205dc..00000000000 --- a/website/content/SDK/portfolio/dret/_index.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.dret( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get daily returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with daily returns - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.dret(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.dret( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - raw: bool = False, - limit: int = 10, - export: str = '', - external_axes: Optional[matplotlib.axes._axes.Axes] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display daily returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - raw : False - Display raw data from cumulative return - limit : int - Last daily returns to display - export : str - Export certain type of data - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/es/_index.rst b/website/content/SDK/portfolio/es/_index.rst deleted file mode 100644 index 26545180319..00000000000 --- a/website/content/SDK/portfolio/es/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.es( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - use_mean: bool = False, - distribution: str = 'normal', - percentile: float = 99.9, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get portfolio expected shortfall -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - use_mean: - if one should use the data mean return - distribution: str - choose distribution to use: logistic, laplace, normal - percentile: float - es percentile (%) - -* **Returns** - - pd.DataFrame - DataFrame with portfolio expected shortfall - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.es(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/holdp/_index.rst b/website/content/SDK/portfolio/holdp/_index.rst deleted file mode 100644 index fdd4063335b..00000000000 --- a/website/content/SDK/portfolio/holdp/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.holdp( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get holdings of assets (in percentage) -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of holdings percentage - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.holdp(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.holdp( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - unstack: bool = False, - raw: bool = False, - limit: int = 10, - export: str = '', - external_axes: Optional[matplotlib.axes._axes.Axes] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display holdings of assets (in percentage) -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - unstack: bool - Individual assets over time - raw : bool - To display raw data - limit : int - Number of past market days to display holdings - export: str - Format to export plot - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/holdv/_index.rst b/website/content/SDK/portfolio/holdv/_index.rst deleted file mode 100644 index d9e11ab5b6f..00000000000 --- a/website/content/SDK/portfolio/holdv/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.holdv( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get holdings of assets (absolute value) -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of holdings value - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.holdv(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.holdv( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - unstack: bool = False, - raw: bool = False, - limit: int = 10, - export: str = '', - external_axes: Optional[matplotlib.axes._axes.Axes] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display holdings of assets (absolute value) -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - unstack: bool - Individual assets over time - raw : bool - To display raw data - limit : int - Number of past market days to display holdings - export: str - Format to export plot - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/load/_index.rst b/website/content/SDK/portfolio/load/_index.rst deleted file mode 100644 index c0e98a3bd7d..00000000000 --- a/website/content/SDK/portfolio/load/_index.rst +++ /dev/null @@ -1,51 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.load( - transactions_file_path: str, - benchmark_symbol: str = 'SPY', - full_shares: bool = False, - risk_free_rate: float = 0, - chart: bool = False, -) -> openbb_terminal.portfolio.portfolio_engine.PortfolioEngine -{{< /highlight >}} - -.. raw:: html - -

- Get PortfolioEngine object -

- -* **Parameters** - - transactions_file_path : str - Path to transactions file - benchmark_symbol : str - Benchmark ticker to download data - full_shares : bool - Whether to mimic the portfolio trades exactly (partial shares) or round down the - quantity to the nearest number - risk_free_rate : float - Risk free rate in float format - -* **Returns** - - PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/maxdd/_index.rst b/website/content/SDK/portfolio/maxdd/_index.rst deleted file mode 100644 index eaf562c8de6..00000000000 --- a/website/content/SDK/portfolio/maxdd/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.maxdd( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - is_returns: bool = False, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.series.Series] -{{< /highlight >}} - -.. raw:: html - -

- Calculate the drawdown (MDD) of historical series. Note that the calculation is done - on cumulative returns (or prices). The definition of drawdown is - - DD = (current value - rolling maximum) / rolling maximum -

- -* **Parameters** - - data: pd.Series - Series of input values - is_returns: bool - Flag to indicate inputs are returns - chart: bool - Flag to display chart - - -* **Returns** - - pd.Series - Holdings series - pd.Series - Drawdown series - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.maxdd(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.maxdd( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display maximum drawdown curve -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - export: str - Format to export data - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/metric/_index.md b/website/content/SDK/portfolio/metric/_index.md deleted file mode 100644 index d55ad10c586..00000000000 --- a/website/content/SDK/portfolio/metric/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: metric -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/portfolio/metric/calmar/_index.rst b/website/content/SDK/portfolio/metric/calmar/_index.rst deleted file mode 100644 index 39c76800962..00000000000 --- a/website/content/SDK/portfolio/metric/calmar/_index.rst +++ /dev/null @@ -1,48 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.calmar( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: int = 756, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.series.Series] -{{< /highlight >}} - -.. raw:: html - -

- Get calmar ratio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window: int - Interval used for rolling values - -* **Returns** - - pd.DataFrame - DataFrame of calmar ratio of the benchmark and portfolio during different time periods - pd.Series - Series of calmar ratio data - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.calmar(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/commonsense/_index.rst b/website/content/SDK/portfolio/metric/commonsense/_index.rst deleted file mode 100644 index 205528460a4..00000000000 --- a/website/content/SDK/portfolio/metric/commonsense/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.commonsense( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get common sense ratio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame of the portfolios and the benchmarks common sense ratio during different time periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.commonsense(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/gaintopain/_index.rst b/website/content/SDK/portfolio/metric/gaintopain/_index.rst deleted file mode 100644 index 03aab42d3a6..00000000000 --- a/website/content/SDK/portfolio/metric/gaintopain/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.gaintopain( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Pain-to-Gain ratio based on historical data -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame of the portfolio's gain-to-pain ratio - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.gaintopain(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/information/_index.rst b/website/content/SDK/portfolio/metric/information/_index.rst deleted file mode 100644 index a6e6f9f2ee2..00000000000 --- a/website/content/SDK/portfolio/metric/information/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.information( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get information ratio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame of the information ratio during different time periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.information(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/jensens/_index.rst b/website/content/SDK/portfolio/metric/jensens/_index.rst deleted file mode 100644 index 21f63c2cf43..00000000000 --- a/website/content/SDK/portfolio/metric/jensens/_index.rst +++ /dev/null @@ -1,51 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.jensens( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - risk_free_rate: float = 0, - window: str = '1y', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.series.Series] -{{< /highlight >}} - -.. raw:: html - -

- Get jensen's alpha -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window: str - Interval used for rolling values - risk_free_rate: float - Risk free rate - -* **Returns** - - pd.DataFrame - DataFrame of jensens's alpha during different time windows - pd.Series - Series of jensens's alpha data - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.jensens(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/kelly/_index.rst b/website/content/SDK/portfolio/metric/kelly/_index.rst deleted file mode 100644 index 05c785befa0..00000000000 --- a/website/content/SDK/portfolio/metric/kelly/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.kelly( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get kelly criterion -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame of kelly criterion of the portfolio during different time periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.kelly(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/kurtosis/_index.rst b/website/content/SDK/portfolio/metric/kurtosis/_index.rst deleted file mode 100644 index 16ee2808ad0..00000000000 --- a/website/content/SDK/portfolio/metric/kurtosis/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.kurtosis( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get kurtosis for portfolio and benchmark selected -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame with kurtosis for portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.kurtosis(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/maxdrawdown/_index.rst b/website/content/SDK/portfolio/metric/maxdrawdown/_index.rst deleted file mode 100644 index b2eeb781010..00000000000 --- a/website/content/SDK/portfolio/metric/maxdrawdown/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.maxdrawdown( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get maximum drawdown ratio for portfolio and benchmark selected -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame with maximum drawdown for portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.maxdrawdown(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/payoff/_index.rst b/website/content/SDK/portfolio/metric/payoff/_index.rst deleted file mode 100644 index e9c97b356d6..00000000000 --- a/website/content/SDK/portfolio/metric/payoff/_index.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.payoff( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get payoff ratio - - Returns - ------- - pd.DataFrame - DataFrame of payoff ratio of the portfolio during different time periods - - Examples - -------- - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.payoff(p) - During some time periods there were no losing trades. Thus some values could not be calculated. -

- -* **Returns** - - pd.DataFrame - DataFrame of payoff ratio of the portfolio during different time periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.payoff(p) - During some time periods there were no losing trades. Thus some values could not be calculated. - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/profitfactor/_index.rst b/website/content/SDK/portfolio/metric/profitfactor/_index.rst deleted file mode 100644 index 5eff42dbf91..00000000000 --- a/website/content/SDK/portfolio/metric/profitfactor/_index.rst +++ /dev/null @@ -1,44 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.profitfactor( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get profit factor -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame of profit factor of the portfolio during different time periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.profitfactor(p) - During some time periods there were no losing trades. Thus some values could not be calculated. - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/rsquare/_index.rst b/website/content/SDK/portfolio/metric/rsquare/_index.rst deleted file mode 100644 index 376c38a101e..00000000000 --- a/website/content/SDK/portfolio/metric/rsquare/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.rsquare( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get R2 Score for portfolio and benchmark selected -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame with R2 Score between portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.rsquare(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/sharpe/_index.rst b/website/content/SDK/portfolio/metric/sharpe/_index.rst deleted file mode 100644 index 6152000d5df..00000000000 --- a/website/content/SDK/portfolio/metric/sharpe/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.sharpe( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - risk_free_rate: float = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get sharpe ratio for portfolio and benchmark selected -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - risk_free_rate: float - Risk free rate value - -* **Returns** - - pd.DataFrame - DataFrame with sharpe ratio for portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.sharpe(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/skew/_index.rst b/website/content/SDK/portfolio/metric/skew/_index.rst deleted file mode 100644 index 463d9d84a6d..00000000000 --- a/website/content/SDK/portfolio/metric/skew/_index.rst +++ /dev/null @@ -1,52 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.skew( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get skewness for portfolio and benchmark selected - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - - Returns - ------- - pd.DataFrame - DataFrame with skewness for portfolio and benchmark for different periods - - Examples - -------- - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.skew(p) -

- -* **Returns** - - pd.DataFrame - DataFrame with skewness for portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.skew(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/sortino/_index.rst b/website/content/SDK/portfolio/metric/sortino/_index.rst deleted file mode 100644 index 31aebf0643c..00000000000 --- a/website/content/SDK/portfolio/metric/sortino/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.sortino( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - risk_free_rate: float = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get sortino ratio for portfolio and benchmark selected -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - risk_free_rate: float - Risk free rate value - -* **Returns** - - pd.DataFrame - DataFrame with sortino ratio for portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.sortino(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/tail/_index.rst b/website/content/SDK/portfolio/metric/tail/_index.rst deleted file mode 100644 index 7bf6427169f..00000000000 --- a/website/content/SDK/portfolio/metric/tail/_index.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.tail( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: int = 252, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.series.Series, pandas.core.series.Series] -{{< /highlight >}} - -.. raw:: html - -

- Get tail ratio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window: int - Interval used for rolling values - -* **Returns** - - pd.DataFrame - DataFrame of the portfolios and the benchmarks tail ratio during different time windows - pd.Series - Series of the portfolios rolling tail ratio - pd.Series - Series of the benchmarks rolling tail ratio - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.tail(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/trackerr/_index.rst b/website/content/SDK/portfolio/metric/trackerr/_index.rst deleted file mode 100644 index dd4ce2332fc..00000000000 --- a/website/content/SDK/portfolio/metric/trackerr/_index.rst +++ /dev/null @@ -1,48 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.trackerr( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: int = 252, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.series.Series] -{{< /highlight >}} - -.. raw:: html - -

- Get tracking error -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window: int - Interval used for rolling values - -* **Returns** - - pd.DataFrame - DataFrame of tracking errors during different time windows - pd.Series - Series of rolling tracking error - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.trackerr(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/metric/volatility/_index.rst b/website/content/SDK/portfolio/metric/volatility/_index.rst deleted file mode 100644 index a231c3029c5..00000000000 --- a/website/content/SDK/portfolio/metric/volatility/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.metric.volatility( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get volatility for portfolio and benchmark selected -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - DataFrame with volatility for portfolio and benchmark for different periods - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.metric.volatility(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/mret/_index.rst b/website/content/SDK/portfolio/mret/_index.rst deleted file mode 100644 index 00d780b7f95..00000000000 --- a/website/content/SDK/portfolio/mret/_index.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.mret( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get monthly returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with monthly returns - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.mret(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.mret( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - raw: bool = False, - show_vals: bool = False, - export: str = '', - external_axes: Optional[matplotlib.axes._axes.Axes] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display monthly returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - raw : False - Display raw data from cumulative return - show_vals : False - Show values on heatmap - export : str - Export certain type of data - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/om/_index.rst b/website/content/SDK/portfolio/om/_index.rst deleted file mode 100644 index 871f4309bf1..00000000000 --- a/website/content/SDK/portfolio/om/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.om( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - threshold_start: float = 0, - threshold_end: float = 1.5, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get omega ratio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - threshold_start: float - annualized target return threshold start of plotted threshold range - threshold_end: float - annualized target return threshold end of plotted threshold range - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with portfolio omega ratio - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.om(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.om( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - threshold_start: float = 0, - threshold_end: float = 1.5, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display omega ratio -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - threshold_start: float - annualized target return threshold start of plotted threshold range - threshold_end: float - annualized target return threshold end of plotted threshold range - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/perf/_index.rst b/website/content/SDK/portfolio/perf/_index.rst deleted file mode 100644 index 191ec1f6998..00000000000 --- a/website/content/SDK/portfolio/perf/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.perf( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - show_all_trades: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get portfolio performance vs the benchmark -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - show_all_trades: bool - Whether to also show all trades made and their performance (default is False) - -* **Returns** - - pd.DataFrame - DataFrame with portfolio performance vs the benchmark - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.perf(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/po/_index.md b/website/content/SDK/portfolio/po/_index.md deleted file mode 100644 index eb3b3217ccd..00000000000 --- a/website/content/SDK/portfolio/po/_index.md +++ /dev/null @@ -1,212 +0,0 @@ ---- -title: Introduction to Portfolio Optimization -keywords: "portfolio, optimization, mean variance, risk parity, black litterman, mean risk, -hierarchical clustering models" -excerpt: "The Introduction to Portfolio Optimization within the Portfolio menu explains how to use various portfolio -optimization techniques and provides a brief description of its sub-menus" -geekdocCollapseSection: true ---- -The Portfolio Optimization menu allows the user to apply advanced optimization techniques to a portfolio of any type -and of any size. It does so by introducing a multitude of optimization techniques ranging from mean-variance optimization -to risk parity models and -hierarchical clustering models. -By providing Excel templates, the user can make sense of the vast array of parameters that each command has. E.g. think -of the historic period you wish to use or which of the more than 10 risk measures and covariance methods should be used? -These are questions the templates make easier to answer. - -The capabilities of the Portfolio Optimization menu from the OpenBB Terminal are wrapped into a powerful SDK, enabling users to work with the data in a flexible environment that can be fully customized to meet the needs of any user. These functionalities allow the user to apply advanced optimization techniques to a portfolio of any type and of any size. It does so by introducing a multitude of optimization techniques ranging from mean-variance optimization to risk parity models and hierarchical clustering models. -By providing Excel templates, the user can make sense of the vast array of parameters that each command has. E.g. think of the historic period you wish to use or which of the more than 10 risk measures and covariance methods should be used? These are questions the templates make easier to answer. - -## How to use -Start a Python script or Notebook file by importing the module: - -```python -from openbb_terminal.sdk import openbb -``` - -This menu requires the usage of the Excel templates to work properly. As there is a lot of complexity involved around -these techniques, these templates allow the user to understand what values for each parameter are actually used and -allow for an easy way to define the allocation. - -> For this there are two templates that need to be set, the **OpenBB Parameters Template** and the **OpenBB Portfolio Template**. These files can be found in the -`OpenBBUserData` folder. Please see this guide for how to find this folder. - -### OpenBB Parameters Template -This template provides the user with the ability to set define values for each parameter based on the optimization -technique that is deployed. E.g. if you select `riskparity` for the `technique` parameter, you will notice that some -parameters turn grey. This means that the parameter is irrelevant for the selected -method. - -The OpenBB Terminal does, however, allow the user to run any model despite the `technique` you selected. Therefore, if -you are interested in running multiple models, consider removing the value for `technique`. Do note that this makes it -more difficult to understand which values are used for which model. - -OpenBB Parameters Template - -Once you have defined the parameters, save the template and load it inside the terminal by using the the following: - -```python -# Define your orderbook path here -order_book_path = "60_40_Portfolio.xlsx" - -# Read in the file -order_book = pd.read_excel(order_book_path) - -# Adjust the columns accordingly -order_book_cols = ['Ticker', 'Asset Class', 'Sector', 'Industry', 'Country', - 'Current Invested Amount', 'Currency'] - -order_book = order_book[order_book_cols] -``` - -### OpenBB Portfolio Template -This template hands the user a format to work with it to define the portfolio. Here, categorization is applied -based on asset class, sector, industry, country and currency. By using the dropdown menus within this Excel, you -are able to apply the proper categorization. This is based on the same methodology as found in other areas of the -terminal. - -OpenBB Portfolio Template - -You can load in the portfolio template with the following code: - -```python -import pandas as pd - -# Define your own orderbook path here, current value won't work -order_book_path = "60_40_Portfolio.xlsx" - -# Read in the file -order_book = pd.read_excel(order_book_path) - -# Adjust the columns accordingly -order_book_cols = ['Ticker', 'Asset Class', 'Sector', 'Industry', 'Country', - 'Current Invested Amount', 'Currency'] - -order_book = order_book[order_book_cols] - -# Load in the portfolio -tickers, categories = openbb.portfolio.po.load(order_book_path) -``` - -### Performing optimization -Based on the parameters and allocation the user has set, the optimization process begins. What optimization -technique is ideal depends entirely on the user's risk profile and objectives. As an illustration, -Risk Parity -is presented below: - -```python -# Perform calculations -weights_riskparity, data_returns_riskparity = openbb.portfolio.po.riskparity(tickers) - -# Convert to a DataFrame -pd.DataFrame.from_dict(weights_riskparity, orient='index', columns=["Risk Parity"]) -``` - -Which returns: - -| | Risk Parity | -|:------|--------------:| -| AAPL | 0.0462 | -| AMZN | 0.04545 | -| APTV | 0.03177 | -| ASML | 0.03328 | -| BABA | 0.04192 | -| GOOGL | 0.04758 | -| HYG | 0.13093 | -| NKE | 0.04909 | -| TIP | 0.30826 | -| TLT | 0.21927 | -| TSM | 0.04626 | - -It is possible to use the commands without loading in the parameters template or by using the parameters template but -changing some arguments directly into the terminal. For example, using the same method as described above, the risk -measure is changed to Conditional Value at Risk (CVaR) -and the used historic period is increased to 10 years (keeping all other parameters unchanged): - -```python -weights_riskparity, data_returns_riskparity = openbb.portfolio.po.riskparity(tickers, interval="10y", risk_measure="CVaR") -``` - -Which returns: - -| | Risk Parity | -|:------|--------------:| -| AAPL | 0.04843 | -| AMZN | 0.04302 | -| APTV | 0.03907 | -| ASML | 0.03717 | -| GOOGL | 0.04877 | -| HYG | 0.14643 | -| NKE | 0.05275 | -| TIP | 0.33264 | -| TLT | 0.20371 | -| TSM | 0.04802 | - - - -## Examples -To demonstrate the capabilities of the Portfolio Optimization menu, the entire S&P 500 index (as of 30th of May 2022) -is used and optimized and analysed in a variety of ways. Starting by loading in the dataset with the following: - -```python -import pandas as pd - -# Define your own orderbook path here, current value won't work -order_book_path = "SP_500_Portfolio.xlsx" - -# Read in the file -order_book = pd.read_excel(order_book_path) - -# Adjust the columns accordingly -order_book_cols = ['Ticker', 'Asset Class', 'Sector', 'Industry', 'Country', - 'Current Invested Amount', 'Currency'] - -order_book = order_book[order_book_cols] - -# Load in the portfolio -tickers, categories = openbb.portfolio.po.load(order_book_path) -``` - -Then, the Hierarchical Risk Parity technique is applied by using the following: - -```python -weights_hrp, data_returns_hrp = openbb.portfolio.po.hrp( - tickers, - interval="5y", - risk_measure="cVaR", - risk_aversion=0.8 -) - -pd.DataFrame.from_dict(weights_hrp, orient='index', columns=["Hierarchical Risk Parity"]) -``` - -This results in the following (the result is edited, as it would show 500 tickers, to prevent flooding this page): - -| | Hierarchical Risk Parity | -|:------|---------------------------:| -| A | 0.00199 | -| AAL | 0.00104 | -| AAP | 0.00185 | -| AAPL | 0.00184 | -| ABBV | 0.0028 | -| ... | ... | -| NOC | 0.00228 | -| XOM | 0.00167 | -| ZBRA | 0.00156 | -| ZION | 0.0014 | -| ZTS | 0.00225 | - -It is possible to delve further into these findings with the `plot` functionality for example done by looking at the portfolio's returns histogram -which also includes a variety of risk measures as well as the portfolio's drawdowns. - -```` -openbb.portfolio.po.plot(data=data_returns_hrp, weights=weights_hrp, risk_measure='cVaR', hist=True) -```` - -Portfokio Returns Histogram - -```` -openbb.portfolio.po.plot(data=data_returns_hrp, weights=weights_hrp, risk_measure='cVaR', dd=True) -```` - -Portfolio Drawdowns \ No newline at end of file diff --git a/website/content/SDK/portfolio/po/blacklitterman/_index.rst b/website/content/SDK/portfolio/po/blacklitterman/_index.rst deleted file mode 100644 index ed4a9577363..00000000000 --- a/website/content/SDK/portfolio/po/blacklitterman/_index.rst +++ /dev/null @@ -1,229 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.blacklitterman( - symbols: List[str], - benchmark: Dict, - p_views: List, - q_views: List, - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - objective: str = 'Sharpe', - risk_free_rate: float = 0, - risk_aversion: float = 1, - delta: float = None, - equilibrium: bool = True, - optimize: bool = True, - value: float = 1.0, - value_short: float = 0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal diversification portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - benchmark : Dict - Dict of portfolio weights - p_views: List - Matrix P of views that shows relationships among assets and returns. - Default value to None. - q_views: List - Matrix Q of expected returns of views. Default value is None. - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str - If not using interval, start date string (YYYY-MM-DD) - end_date: str - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - objective: str - Objective function of the optimization model. - The default is 'Sharpe'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'MaxRet': Maximize the expected return of the portfolio. - - risk_free_rate: float, optional - Risk free rate, must be in annual frequency. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - delta: float, optional - Risk aversion factor of Black Litterman model. Default value is None. - equilibrium: bool, optional - If True excess returns are based on equilibrium market portfolio, if False - excess returns are calculated as historical returns minus risk free rate. - Default value is True. - optimize: bool, optional - If True Black Litterman estimates are used as inputs of mean variance model, - if False returns equilibrium weights from Black Litterman model - Default value is True. - value : float, optional - Amount of money to allocate. The default is 1. - value_short : float, optional - Amount to allocate to portfolio in short positions. The default is 0. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.blacklitterman( - symbols: List[str], - p_views: List, - q_views: List, - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - benchmark: Dict = None, - objective: str = 'Sharpe', - risk_free_rate: float = 0, - risk_aversion: float = 1, - delta: float = None, - equilibrium: bool = True, - optimize: bool = True, - value: float = 1.0, - value_short: float = 0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a black litterman portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - p_views: List - Matrix P of views that shows relationships among assets and returns. - Default value to None. - q_views: List - Matrix Q of expected returns of views. Default value is None. - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - benchmark : Dict - Dict of portfolio weights - objective: str - Objective function of the optimization model. - The default is 'Sharpe'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'MaxRet': Maximize the expected return of the portfolio. - - risk_free_rate: float, optional - Risk free rate, must be in annual frequency. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - delta: float, optional - Risk aversion factor of Black Litterman model. Default value is None. - equilibrium: bool, optional - If True excess returns are based on equilibrium market portfolio, if False - excess returns are calculated as historical returns minus risk free rate. - Default value is True. - optimize: bool, optional - If True Black Litterman estimates are used as inputs of mean variance model, - if False returns equilibrium weights from Black Litterman model - Default value is True. - value : float, optional - Amount of money to allocate. The default is 1. - value_short : float, optional - Amount to allocate to portfolio in short positions. The default is 0. - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/ef/_index.rst b/website/content/SDK/portfolio/po/ef/_index.rst deleted file mode 100644 index 91aa48c73eb..00000000000 --- a/website/content/SDK/portfolio/po/ef/_index.rst +++ /dev/null @@ -1,230 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.ef( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - alpha: float = 0.05, - value: float = 1.0, - value_short: float = 0.0, - n_portfolios: int = 100, - seed: int = 123, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, Optional[pandas.core.frame.DataFrame], numpy.ndarray[Any, numpy.dtype[numpy.floating]], numpy.ndarray[Any, numpy.dtype[numpy.floating]], riskfolio.Portfolio.Portfolio] -{{< /highlight >}} - -.. raw:: html - -

- Get efficient frontier -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - The default is 0.05. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - n_portfolios: int, optional - "Number of portfolios to simulate. The default value is 100. - seed: int, optional - Seed used to generate random portfolios. The default value is 123. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[ - pd.DataFrame, - pd.DataFrame, - pd.DataFrame, - pd.DataFrame, - Optional[pd.DataFrame], - NDArray[floating], - NDArray[floating], - rp.Portfolio, - ] - Parameters to create efficient frontier: - frontier, mu, cov, stock_returns, weights, X1, Y1, port - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.ef( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - alpha: float = 0.05, - value: float = 1.0, - value_short: float = 0.0, - n_portfolios: int = 100, - seed: int = 123, - tangency: bool = False, - plot_tickers: bool = True, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display efficient frontier -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - The default is 0.05. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - n_portfolios: int, optional - "Number of portfolios to simulate. The default value is 100. - seed: int, optional - Seed used to generate random portfolios. The default value is 123. - tangency: bool, optional - Adds the optimal line with the risk-free asset. - external_axes: Optional[List[plt.Axes]] - Optional axes to plot data on - plot_tickers: bool - Whether to plot the tickers for the assets - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/equal/_index.rst b/website/content/SDK/portfolio/po/equal/_index.rst deleted file mode 100644 index 94d000ba45d..00000000000 --- a/website/content/SDK/portfolio/po/equal/_index.rst +++ /dev/null @@ -1,70 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.equal( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - value: float = 1.0, - chart: bool = False, -) -> Tuple[Dict[str, float], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Equally weighted portfolio, where weight = 1/# of symbols -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for m' for monthly returns. - - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - value : float, optional - Amount to allocate. Returns percentages if set to 1. - -* **Returns** - - Tuple[Dict[str, float], pd.DataFrame] - Dictionary of weights where keys are the tickers, dataframe of stock returns diff --git a/website/content/SDK/portfolio/po/get_properties/_index.rst b/website/content/SDK/portfolio/po/get_properties/_index.rst deleted file mode 100644 index 93d98d07cc5..00000000000 --- a/website/content/SDK/portfolio/po/get_properties/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.get_properties() -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- Get properties to use on property optimization. -

- -* **Returns** - - List[str]: - List of available properties to use on property optimization. diff --git a/website/content/SDK/portfolio/po/hcp/_index.rst b/website/content/SDK/portfolio/po/hcp/_index.rst deleted file mode 100644 index f806c9a8610..00000000000 --- a/website/content/SDK/portfolio/po/hcp/_index.rst +++ /dev/null @@ -1,452 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.hcp( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - model: str = 'HRP', - codependence: str = 'pearson', - covariance: str = 'hist', - objective: str = 'MinRisk', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'single', - k: int = 0, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds hierarchical clustering based portfolios -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - model: str, optional - The hierarchical cluster portfolio model used for optimize the - portfolio. The default is 'HRP'. Possible values are: - - - 'HRP': Hierarchical Risk Parity. - - 'HERC': Hierarchical Equal Risk Contribution. - - 'NCO': Nested Clustered Optimization. - - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})} - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})} - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)} - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)} - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})} - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - objective: str, optional - Objective function used by the NCO model. - The default is 'MinRisk'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'ERC': Equally risk contribution portfolio of the selected risk measure. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in annual frequency. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount of money to allocate. The default is 1. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.hcp( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - model: str = 'HRP', - codependence: str = 'pearson', - covariance: str = 'hist', - objective: str = 'minrisk', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'ward', - k: int = None, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical clustering portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - model: str, optional - The hierarchical cluster portfolio model used for optimize the - portfolio. The default is 'HRP'. Possible values are: - - - 'HRP': Hierarchical Risk Parity. - - 'HERC': Hierarchical Equal Risk Contribution. - - 'NCO': Nested Clustered Optimization. - - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}. - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}. - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}. - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}. - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}. - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - objective: str, optional - Objective function used by the NCO model. - The default is 'MinRisk'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'ERC': Equally risk contribution portfolio of the selected risk measure. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio, by default 1.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/herc/_index.rst b/website/content/SDK/portfolio/po/herc/_index.rst deleted file mode 100644 index 955886d24d4..00000000000 --- a/website/content/SDK/portfolio/po/herc/_index.rst +++ /dev/null @@ -1,437 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.herc( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - codependence: str = 'pearson', - covariance: str = 'hist', - objective: str = 'minrisk', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'single', - k: int = 0, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical risk parity portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})} - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})} - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)} - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)} - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})} - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - objective: str, optional - Objective function used by the NCO model. - The default is 'MinRisk'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'ERC': Equally risk contribution portfolio of the selected risk measure. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.herc( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - codependence: str = 'pearson', - covariance: str = 'hist', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'ward', - k: int = 0, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical equal risk contribution portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - model: str, optional - The hierarchical cluster portfolio model used for optimize the - portfolio. The default is 'HRP'. Possible values are: - - - 'HRP': Hierarchical Risk Parity. - - 'HERC': Hierarchical Equal Risk Contribution. - - 'NCO': Nested Clustered Optimization. - - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}. - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}. - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}. - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}. - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}. - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/hrp/_index.rst b/website/content/SDK/portfolio/po/hrp/_index.rst deleted file mode 100644 index dbbec964f4e..00000000000 --- a/website/content/SDK/portfolio/po/hrp/_index.rst +++ /dev/null @@ -1,429 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.hrp( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - codependence: str = 'pearson', - covariance: str = 'hist', - objective: str = 'minrisk', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'single', - k: int = 0, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical risk parity portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})} - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})} - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)} - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)} - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})} - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - objective: str, optional - Objective function used by the NCO model. - The default is 'MinRisk'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'ERC': Equally risk contribution portfolio of the selected risk measure. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.hrp( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - codependence: str = 'pearson', - covariance: str = 'hist', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'single', - k: int = 0, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical risk parity portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}. - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}. - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}. - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}. - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}. - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/load/_index.rst b/website/content/SDK/portfolio/po/load/_index.rst deleted file mode 100644 index 11519ab6488..00000000000 --- a/website/content/SDK/portfolio/po/load/_index.rst +++ /dev/null @@ -1,36 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.load( - excel_file: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Load in the Excel file to determine the allocation that needs to be set. -

- -* **Parameters** - - excel_file: str - The location of the Excel file that needs to be loaded. - -* **Returns** - - tickers: list - Returns a list with ticker symbols - categories: dictionary - Returns a dictionary that specifies each category diff --git a/website/content/SDK/portfolio/po/load_bl_views/_index.rst b/website/content/SDK/portfolio/po/load_bl_views/_index.rst deleted file mode 100644 index 6b032f52340..00000000000 --- a/website/content/SDK/portfolio/po/load_bl_views/_index.rst +++ /dev/null @@ -1,36 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.load_bl_views( - excel_file: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Load a Excel file with views for Black Litterman model. -

- -* **Parameters** - - excel_file: str - The location of the Excel file that needs to be loaded. - -* **Returns** - - p_views: list - Returns a list with p_views matrix - q_views: list - Returns a list with q_views matrix diff --git a/website/content/SDK/portfolio/po/maxdecorr/_index.rst b/website/content/SDK/portfolio/po/maxdecorr/_index.rst deleted file mode 100644 index 46200ca9443..00000000000 --- a/website/content/SDK/portfolio/po/maxdecorr/_index.rst +++ /dev/null @@ -1,191 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.maxdecorr( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal decorrelation portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str - If not using interval, start date string (YYYY-MM-DD) - end_date: str - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see s`interpolate `__. - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount of money to allocate. The default is 1. - value_short : float, optional - Amount to allocate to portfolio in short positions. The default is 0. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.maxdecorr( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal decorrelation portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/maxdiv/_index.rst b/website/content/SDK/portfolio/po/maxdiv/_index.rst deleted file mode 100644 index 76c99b12d08..00000000000 --- a/website/content/SDK/portfolio/po/maxdiv/_index.rst +++ /dev/null @@ -1,191 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.maxdiv( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal diversification portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str - If not using interval, start date string (YYYY-MM-DD) - end_date: str - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount of money to allocate. The default is 1. - value_short : float, optional - Amount to allocate to portfolio in short positions. The default is 0. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.maxdiv( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal diversification portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/maxret/_index.rst b/website/content/SDK/portfolio/po/maxret/_index.rst deleted file mode 100644 index 5ed4137b68a..00000000000 --- a/website/content/SDK/portfolio/po/maxret/_index.rst +++ /dev/null @@ -1,278 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.maxret( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal return/risk ratio portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.maxret( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal return portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/maxsharpe/_index.rst b/website/content/SDK/portfolio/po/maxsharpe/_index.rst deleted file mode 100644 index 45ad222f228..00000000000 --- a/website/content/SDK/portfolio/po/maxsharpe/_index.rst +++ /dev/null @@ -1,278 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.maxsharpe( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal return/risk ratio portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.maxsharpe( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal return/risk ratio portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/maxutil/_index.rst b/website/content/SDK/portfolio/po/maxutil/_index.rst deleted file mode 100644 index 70c493a0cef..00000000000 --- a/website/content/SDK/portfolio/po/maxutil/_index.rst +++ /dev/null @@ -1,278 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.maxutil( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal return/risk ratio portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.maxutil( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal risk averse utility portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/meanrisk/_index.rst b/website/content/SDK/portfolio/po/meanrisk/_index.rst deleted file mode 100644 index a2102983813..00000000000 --- a/website/content/SDK/portfolio/po/meanrisk/_index.rst +++ /dev/null @@ -1,301 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.meanrisk( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - objective: str = 'Sharpe', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a mean risk optimal portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - objective: str - Objective function of the optimization model. - The default is 'Sharpe'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'MaxRet': Maximize the expected return of the portfolio. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in annual frequency. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount of money to allocate. The default is 1. - value_short : float, optional - Amount to allocate to portfolio in short positions. The default is 0. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.meanrisk( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'mv', - objective: str = 'sharpe', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a mean risk optimal portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - objective: str - Objective function of the optimization model. - The default is 'Sharpe'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'MaxRet': Maximize the expected return of the portfolio. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/minrisk/_index.rst b/website/content/SDK/portfolio/po/minrisk/_index.rst deleted file mode 100644 index 374b5a7ea34..00000000000 --- a/website/content/SDK/portfolio/po/minrisk/_index.rst +++ /dev/null @@ -1,278 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.minrisk( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a maximal return/risk ratio portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.minrisk( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - risk_aversion: float = 1, - alpha: float = 0.05, - target_return: float = -1, - target_risk: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - value_short: float = 0.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a minimum risk portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - target_risk: float, optional - Constraint on maximum level of portfolio's risk. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/nco/_index.rst b/website/content/SDK/portfolio/po/nco/_index.rst deleted file mode 100644 index 2e800c32a61..00000000000 --- a/website/content/SDK/portfolio/po/nco/_index.rst +++ /dev/null @@ -1,447 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.nco( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - codependence: str = 'pearson', - covariance: str = 'hist', - objective: str = 'minrisk', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'single', - k: int = None, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical risk parity portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})} - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})} - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)} - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)} - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})} - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - objective: str, optional - Objective function used by the NCO model. - The default is 'MinRisk'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'ERC': Equally risk contribution portfolio of the selected risk measure. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.nco( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - codependence: str = 'pearson', - covariance: str = 'hist', - objective: str = 'MinRisk', - risk_measure: str = 'mv', - risk_free_rate: float = 0.0, - risk_aversion: float = 1.0, - alpha: float = 0.05, - a_sim: int = 100, - beta: float = None, - b_sim: int = None, - linkage: str = 'ward', - k: int = None, - max_k: int = 10, - bins_info: str = 'KN', - alpha_tail: float = 0.05, - leaf_order: bool = True, - d_ewma: float = 0.94, - value: float = 1.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a hierarchical equal risk contribution portfolio -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - model: str, optional - The hierarchical cluster portfolio model used for optimize the - portfolio. The default is 'HRP'. Possible values are: - - - 'HRP': Hierarchical Risk Parity. - - 'HERC': Hierarchical Equal Risk Contribution. - - 'NCO': Nested Clustered Optimization. - - codependence: str, optional - The codependence or similarity matrix used to build the distance - metric and clusters. The default is 'pearson'. Possible values are: - - - 'pearson': pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}. - - 'spearman': spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}. - - 'abs_pearson': absolute value pearson correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}. - - 'abs_spearman': absolute value spearman correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}. - - 'distance': distance correlation matrix. Distance formula: - .. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}. - - 'mutual_info': mutual information matrix. Distance used is variation information matrix. - - 'tail': lower tail dependence index matrix. Dissimilarity formula: - .. math:: D_{i,j} = -\log{\lambda_{i,j}}. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. - - objective: str, optional - Objective function used by the NCO model. - The default is 'MinRisk'. Possible values are: - - - 'MinRisk': Minimize the selected risk measure. - - 'Utility': Maximize the risk averse utility function. - - 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure. - - 'ERC': Equally risk contribution portfolio of the selected risk measure. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - risk_aversion: float, optional - Risk aversion factor of the 'Utility' objective function. - The default is 1. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - linkage: str, optional - Linkage method of hierarchical clustering. For more information see `linkage `__. - The default is 'single'. Possible values are: - - - 'single'. - - 'complete'. - - 'average'. - - 'weighted'. - - 'centroid'. - - 'median'. - - 'ward'. - - 'dbht': Direct Bubble Hierarchical Tree. - - k: int, optional - Number of clusters. This value is took instead of the optimal number - of clusters calculated with the two difference gap statistic. - The default is None. - max_k: int, optional - Max number of clusters used by the two difference gap statistic - to find the optimal number of clusters. The default is 10. - bins_info: str, optional - Number of bins used to calculate variation of information. The default - value is 'KN'. Possible values are: - - - 'KN': Knuth's choice method. For more information see `knuth_bin_width `__. - - 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__. - - 'SC': Scotts' choice method. For more information see `scott_bin_width `__. - - 'HGR': Hacine-Gharbi and Ravier' choice method. - - alpha_tail: float, optional - Significance level for lower tail dependence index. The default is 0.05. - leaf_order: bool, optional - Indicates if the cluster are ordered so that the distance between - successive leaves is minimal. The default is True. - d: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio in long positions, by default 1.0 - value_short : float, optional - Amount to allocate to portfolio in short positions, by default 0.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/plot/_index.rst b/website/content/SDK/portfolio/po/plot/_index.rst deleted file mode 100644 index 303559d4c6f..00000000000 --- a/website/content/SDK/portfolio/po/plot/_index.rst +++ /dev/null @@ -1,229 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.plot( - weights, data: pandas.core.frame.DataFrame, - category: Dict = None, - title_opt: str = '', - freq: str = 'D', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - alpha: float = 0.05, - a_sim: float = 100, - beta: float = None, - b_sim: float = None, - pie: bool = False, - hist: bool = False, - dd: bool = False, - rc_chart: bool = False, - heat: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot additional charts -

- -* **Parameters** - - weights: Dict - Dict of portfolio weights - data: pd.DataFrame - DataFrame of stock returns - title_opt: str - Title to be used on the pie chart - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - pie : bool, optional - Display a pie chart of values, by default False - hist : bool, optional - Display a histogram with risk measures, by default False - dd : bool, optional - Display a drawdown chart with risk measures, by default False - rc-chart : float, optional - Display a risk contribution chart for assets, by default False - heat : float, optional - Display a heatmap of correlation matrix with dendrogram, by default False - external_axes: Optional[List[plt.Axes]] - Optional axes to plot data on - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.plot( - weights, data: pandas.core.frame.DataFrame, - category: Dict = None, - title_opt: str = '', - freq: str = 'D', - risk_measure: str = 'MV', - risk_free_rate: float = 0, - alpha: float = 0.05, - a_sim: float = 100, - beta: float = None, - b_sim: float = None, - pie: bool = False, - hist: bool = False, - dd: bool = False, - rc_chart: bool = False, - heat: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot additional charts -

- -* **Parameters** - - weights: Dict - Dict of portfolio weights - data: pd.DataFrame - DataFrame of stock returns - title_opt: str - Title to be used on the pie chart - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - risk_measure: str, optional - The risk measure used to optimize the portfolio. If model is 'NCO', - the risk measures available depends on the objective function. - The default is 'MV'. Possible values are: - - - 'MV': Variance. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'VaR': Value at Risk. - - 'CVaR': Conditional Value at Risk. - - 'TG': Tail Gini. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization (Minimax). - - 'RG': Range of returns. - - 'CVRG': CVaR range of returns. - - 'TGRG': Tail Gini range of returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio). - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'DaR': Drawdown at Risk of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio). - - 'ADD_Rel': Average Drawdown of compounded cumulative returns. - - 'DaR_Rel': Drawdown at Risk of compounded cumulative returns. - - 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns. - - 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns. - - 'UCI_Rel': Ulcer Index of compounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. - Used for 'FLPM' and 'SLPM'. The default is 0. - alpha: float, optional - Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses. - The default is 0.05. - a_sim: float, optional - Number of CVaRs used to approximate Tail Gini of losses. The default is 100. - beta: float, optional - Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value. - The default is None. - b_sim: float, optional - Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value. - The default is None. - pie : bool, optional - Display a pie chart of values, by default False - hist : bool, optional - Display a histogram with risk measures, by default False - dd : bool, optional - Display a drawdown chart with risk measures, by default False - rc-chart : float, optional - Display a risk contribution chart for assets, by default False - heat : float, optional - Display a heatmap of correlation matrix with dendrogram, by default False - external_axes: Optional[List[plt.Axes]] - Optional axes to plot data on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/property/_index.rst b/website/content/SDK/portfolio/po/property/_index.rst deleted file mode 100644 index 08444353d0a..00000000000 --- a/website/content/SDK/portfolio/po/property/_index.rst +++ /dev/null @@ -1,170 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.property( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - s_property: str = 'marketCap', - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[Dict[str, Any]], Optional[pandas.core.frame.DataFrame]] -{{< /highlight >}} - -.. raw:: html - -

- Calculate portfolio weights based on selected property -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - s_property : str - Property to weight portfolio by - value : float, optional - Amount of money to allocate - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Dict[str, Any], pd.DataFrame] - Dictionary of portfolio weights or allocations - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.property( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - s_property: str = 'marketCap', risk_measure='mv', - risk_free_rate: float = 0, alpha=0.05, - value: float = 1, - table: bool = False, - chart: bool = False, -) -> Dict[str, float] -{{< /highlight >}} - -.. raw:: html - -

- Builds a portfolio weighted by selected property -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - s_property : str - Property to get weighted portfolio of - risk_measure: str, optional - The risk measure used to compute indicators. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'WR': Worst Realization. - - 'ADD': Average Drawdown of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'MDD': Maximum Drawdown of uncompounded cumulative returns. - - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR. - value : float, optional - Amount to allocate to portfolio, by default 1.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/relriskparity/_index.rst b/website/content/SDK/portfolio/po/relriskparity/_index.rst deleted file mode 100644 index 9e53722d2f0..00000000000 --- a/website/content/SDK/portfolio/po/relriskparity/_index.rst +++ /dev/null @@ -1,244 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.relriskparity( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - version: str = 'A', - risk_cont: List[str] = None, - penal_factor: float = 1, - target_return: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a relaxed risk parity portfolio using the least squares approach -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - version : str, optional - Relaxed risk parity model version. The default is 'A'. - Possible values are: - - - 'A': without regularization and penalization constraints. - - 'B': with regularization constraint but without penalization constraint. - - 'C': with regularization and penalization constraints. - - risk_cont: List[str], optional - The vector of risk contribution per asset. If empty, the default is - 1/n (number of assets). - penal_factor: float, optional - The penalization factor of penalization constraints. Only used with - version 'C'. The default is 1. - target_return: float, optional - Constraint on minimum level of portfolio's return. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount of money to allocate. The default is 1. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.relriskparity( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - version: str = 'A', - risk_cont: List[str] = None, - penal_factor: float = 1, - target_return: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a relaxed risk parity portfolio using the least squares approach -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str, optional - interval to look at returns from - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - X (integer days) for returns calculated every X days. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - version : str, optional - Relaxed risk parity model version. The default is 'A'. - Possible values are: - - - 'A': without regularization and penalization constraints. - - 'B': with regularization constraint but without penalization constraint. - - 'C': with regularization and penalization constraints. - - risk_cont: List[str], optional - The vector of risk contribution per asset. If empty, the default is - 1/n (number of assets). - penal_factor: float, optional - The penalization factor of penalization constraints. Only used with - version 'C'. The default is 1. - target_return: float, optional - Constraint on minimum level of portfolio's return. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio, by default 1.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/po/riskparity/_index.rst b/website/content/SDK/portfolio/po/riskparity/_index.rst deleted file mode 100644 index 763093bf251..00000000000 --- a/website/content/SDK/portfolio/po/riskparity/_index.rst +++ /dev/null @@ -1,264 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.po.riskparity( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'MV', - risk_cont: List[str] = None, - risk_free_rate: float = 0, - alpha: float = 0.05, - target_return: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - chart: bool = False, -) -> Tuple[Optional[dict], pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Builds a risk parity portfolio using the risk budgeting approach -

- -* **Parameters** - - symbols : List[str] - List of portfolio stocks - interval : str, optional - interval to get stock data, by default "3mo" - start_date: str, optional - If not using interval, start date string (YYYY-MM-DD) - end_date: str, optional - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool, optional - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str, optional - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - maxnan: float, optional - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float, optional - Value used to replace outliers that are higher to threshold. - method: str, optional - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str, optional - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - risk_cont: List[str], optional - The vector of risk contribution per asset. If empty, the default is - 1/n (number of assets). - risk_free_rate: float, optional - Risk free rate, must be in annual frequency. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount of money to allocate. The default is 1. - chart: bool - Flag to display chart - - -* **Returns** - - Tuple[Optional[dict], pd.DataFrame] - Dictionary of portfolio weights, - DataFrame of stock returns. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.po.riskparity( - symbols: List[str], - interval: str = '3y', - start_date: str = '', - end_date: str = '', - log_returns: bool = False, - freq: str = 'D', - maxnan: float = 0.05, - threshold: float = 0, - method: str = 'time', - risk_measure: str = 'mv', - risk_cont: List[str] = None, - risk_free_rate: float = 0, - alpha: float = 0.05, - target_return: float = -1, - mean: str = 'hist', - covariance: str = 'hist', - d_ewma: float = 0.94, - value: float = 1.0, - table: bool = False, - chart: bool = False, -) -> Dict -{{< /highlight >}} - -.. raw:: html - -

- Builds a risk parity portfolio using the risk budgeting approach -

- -* **Parameters** - - symbols : List[str] - List of portfolio tickers - interval : str - interval to look at returns from - start_date: str - If not using interval, start date string (YYYY-MM-DD) - end_date: str - If not using interval, end date string (YYYY-MM-DD). If empty use last - weekday. - log_returns: bool - If True calculate log returns, else arithmetic returns. Default value - is False - freq: str - The frequency used to calculate returns. Default value is 'D'. Possible - values are: - - 'D' for daily returns. - - 'W' for weekly returns. - - 'M' for monthly returns. - - X (integer days) for returns calculated every X days. - - maxnan: float - Max percentage of nan values accepted per asset to be included in - returns. - threshold: float - Value used to replace outliers that are higher to threshold. - method: str - Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. - risk_measure: str - The risk measure used to optimize the portfolio. - The default is 'MV'. Possible values are: - - - 'MV': Standard Deviation. - - 'MAD': Mean Absolute Deviation. - - 'MSV': Semi Standard Deviation. - - 'FLPM': First Lower Partial Moment (Omega Ratio). - - 'SLPM': Second Lower Partial Moment (Sortino Ratio). - - 'CVaR': Conditional Value at Risk. - - 'EVaR': Entropic Value at Risk. - - 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns. - - 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns. - - 'UCI': Ulcer Index of uncompounded cumulative returns. - - risk_cont: List[str], optional - The vector of risk contribution per asset. If empty, the default is - 1/n (number of assets). - risk_free_rate: float, optional - Risk free rate, must be in the same interval of assets returns. Used for - 'FLPM' and 'SLPM' and Sharpe objective function. The default is 0. - alpha: float, optional - Significance level of CVaR, EVaR, CDaR and EDaR - target_return: float, optional - Constraint on minimum level of portfolio's return. - mean: str, optional - The method used to estimate the expected returns. - The default value is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - covariance: str, optional - The method used to estimate the covariance matrix: - The default is 'hist'. Possible values are: - - - 'hist': use historical estimates. - - 'ewma1': use ewma with adjust=True. For more information see `EWM `__. - - 'ewma2': use ewma with adjust=False. For more information see `EWM `__. - - 'ledoit': use the Ledoit and Wolf Shrinkage method. - - 'oas': use the Oracle Approximation Shrinkage method. - - 'shrunk': use the basic Shrunk Covariance method. - - 'gl': use the basic Graphical Lasso Covariance method. - - 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`. - - 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`. - - 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`. - - 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. - - d_ewma: float, optional - The smoothing factor of ewma methods. - The default is 0.94. - value : float, optional - Amount to allocate to portfolio, by default 1.0 - table: bool, optional - True if plot table weights, by default False - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/rbeta/_index.rst b/website/content/SDK/portfolio/rbeta/_index.rst deleted file mode 100644 index 979f6874c32..00000000000 --- a/website/content/SDK/portfolio/rbeta/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.rbeta( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = '1y', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get rolling beta using portfolio and benchmark returns -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - window: string - Interval used for rolling values. - Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of the portfolio's rolling beta - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.rbeta(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.rbeta( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = '1y', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display rolling beta -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - window: str - interval for window to consider - Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y. - export: str - Export to file - external_axes: Optional[List[plt.Axes]] - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/rsharpe/_index.rst b/website/content/SDK/portfolio/rsharpe/_index.rst deleted file mode 100644 index 7ef306bc875..00000000000 --- a/website/content/SDK/portfolio/rsharpe/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.rsharpe( - portfolio_engine: pandas.core.frame.DataFrame, - risk_free_rate: float = 0, - window: str = '1y', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get rolling sharpe ratio -

- -* **Parameters** - - portfolio_returns : pd.Series - Series of portfolio returns - risk_free_rate : float - Risk free rate - window : str - Rolling window to use - Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Rolling sharpe ratio DataFrame - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.rsharpe(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.rsharpe( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - risk_free_rate: float = 0, - window: str = '1y', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display rolling sharpe -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - risk_free_rate: float - Value to use for risk free rate in sharpe/other calculations - window: str - interval for window to consider - export: str - Export to file - external_axes: Optional[List[plt.Axes]] - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/rsort/_index.rst b/website/content/SDK/portfolio/rsort/_index.rst deleted file mode 100644 index 682cd3c296f..00000000000 --- a/website/content/SDK/portfolio/rsort/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.rsort( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - risk_free_rate: float = 0, - window: str = '1y', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get rolling sortino -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - window: str - interval for window to consider - Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y - risk_free_rate: float - Value to use for risk free rate in sharpe/other calculations - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Rolling sortino ratio DataFrame - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.rsort(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.rsort( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - risk_free_rate: float = 0, - window: str = '1y', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display rolling sortino -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - risk_free_rate: float - Value to use for risk free rate in sharpe/other calculations - window: str - interval for window to consider - export: str - Export to file - external_axes: Optional[List[plt.Axes]] - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/rsortino/_index.rst b/website/content/SDK/portfolio/rsortino/_index.rst deleted file mode 100644 index 5c50e133218..00000000000 --- a/website/content/SDK/portfolio/rsortino/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.rsort( - portfolio: openbb_terminal.portfolio.portfolio_model.PortfolioEngine, - risk_free_rate: float = 0, - window: str = '1y', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get rolling sortino -

- -* **Parameters** - - portfolio : PortfolioEngine - Portfolio object - window: str - interval for window to consider - Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y - risk_free_rate: float - Value to use for risk free rate in sharpe/other calculations - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Rolling sortino ratio DataFrame - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.rsort( - portfolio: openbb_terminal.portfolio.portfolio_model.PortfolioEngine, - risk_free_rate: float = 0, - window: str = '1y', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display rolling sortino -

- -* **Parameters** - - portfolio : PortfolioEngine - Portfolio object - risk_free_rate: float - Value to use for risk free rate in sharpe/other calculations - window: str - interval for window to consider - export: str - Export to file - external_axes: Optional[List[plt.Axes]] - Optional axes to display plot on - chart: bool - Flag to display chart diff --git a/website/content/SDK/portfolio/rsquare/_index.rst b/website/content/SDK/portfolio/rsquare/_index.rst deleted file mode 100644 index 1b897089119..00000000000 --- a/website/content/SDK/portfolio/rsquare/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.rsquare( - portfolio: openbb_terminal.portfolio.portfolio_model.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Class method that retrieves R2 Score for portfolio and benchmark selected -

- -* **Parameters** - - portfolio: Portfolio - Portfolio object with trades loaded - -* **Returns** - - pd.DataFrame - DataFrame with R2 Score between portfolio and benchmark for different periods diff --git a/website/content/SDK/portfolio/rvol/_index.rst b/website/content/SDK/portfolio/rvol/_index.rst deleted file mode 100644 index c56928ed1a0..00000000000 --- a/website/content/SDK/portfolio/rvol/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.rvol( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = '1y', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get rolling volatility -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - Rolling window size to use - Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Rolling volatility DataFrame - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.rvol(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.rvol( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = '1y', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display rolling volatility -

- -* **Parameters** - - portfolio : PortfolioEngine - PortfolioEngine object - interval: str - interval for window to consider - export: str - Export to file - external_axes: Optional[List[plt.Axes]] - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/portfolio/show/_index.rst b/website/content/SDK/portfolio/show/_index.rst deleted file mode 100644 index 732506e2753..00000000000 --- a/website/content/SDK/portfolio/show/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.show( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get portfolio transactions -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - -* **Returns** - - pd.DataFrame - Portfolio transactions - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.show(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/summary/_index.rst b/website/content/SDK/portfolio/summary/_index.rst deleted file mode 100644 index 7a2047a805b..00000000000 --- a/website/content/SDK/portfolio/summary/_index.rst +++ /dev/null @@ -1,49 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.summary( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - risk_free_rate: float = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get portfolio and benchmark returns summary -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - risk_free_rate : float - Risk free rate for calculations - -* **Returns** - - pd.DataFrame - DataFrame with portfolio and benchmark returns summary - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.summary(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/var/_index.rst b/website/content/SDK/portfolio/var/_index.rst deleted file mode 100644 index 9ad7687475a..00000000000 --- a/website/content/SDK/portfolio/var/_index.rst +++ /dev/null @@ -1,55 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.var( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - use_mean: bool = False, - adjusted_var: bool = False, - student_t: bool = False, - percentile: float = 99.9, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get portfolio VaR -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - use_mean: bool - if one should use the data mean return - adjusted_var: bool - if one should have VaR adjusted for skew and kurtosis (Cornish-Fisher-Expansion) - student_t: bool - If one should use the student-t distribution - percentile: float - var percentile (%) - -* **Returns** - - pd.DataFrame - DataFrame with portfolio VaR - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.var(p) - {{< /highlight >}} diff --git a/website/content/SDK/portfolio/yret/_index.rst b/website/content/SDK/portfolio/yret/_index.rst deleted file mode 100644 index e61872f01cd..00000000000 --- a/website/content/SDK/portfolio/yret/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -portfolio.yret( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get yearly returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame with yearly returns - -* **Examples** - - {{< highlight python >}} - >>> from openbb_terminal.sdk import openbb - >>> p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") - >>> output = openbb.portfolio.yret(p) - {{< /highlight >}} - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -portfolio.yret( - portfolio_engine: openbb_terminal.portfolio.portfolio_engine.PortfolioEngine, - window: str = 'all', - raw: bool = False, - export: str = '', - external_axes: Optional[matplotlib.axes._axes.Axes] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display yearly returns -

- -* **Parameters** - - portfolio_engine: PortfolioEngine - PortfolioEngine class instance, this will hold transactions and perform calculations. - Use `portfolio.load` to create a PortfolioEngine. - window : str - interval to compare cumulative returns and benchmark - raw : False - Display raw data from cumulative return - export : str - Export certain type of data - external_axes: plt.Axes - Optional axes to display plot on - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/_index.md b/website/content/SDK/stocks/_index.md deleted file mode 100644 index e3ff1960e0c..00000000000 --- a/website/content/SDK/stocks/_index.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: Introduction to the Stocks Menu -keywords: "stocks, stock, options, option, call, put, earnings, calendar, how-to, guide, scripts, fundamental, analysis, technical, behavioural, analyst, equity, research, api, sdk, application, python, notebook, jupyter" -excerpt: "This guide introduces the Stocks menu in the context of the OpenBB SDK." -geekdocCollapseSection: true ---- -The capabilities of the Stocks menu from the OpenBB Terminal are wrapped into a powerful SDK, enabling users to work with the data in a flexible environment that can be fully customized to meet the needs of any user. Code completion and contextual help makes it easy to use. Navigating is very similar to operating the CLI Terminal Application. - -## How to use - -Start a Python script or Notebook file by importing the module: - -`from openbb_terminal.sdk import openbb` - -In the next cell, code completion will activate after the `.` is entered, showing the submenus and functions at the root level of the Stocks menu. - -![Stocks Menu](https://user-images.githubusercontent.com/85772166/195393178-83c39078-3419-4fae-bf69-5950b143b422.png) - -The contents of the menu is printed by running a cell with: `openbb.stocks` - -![Stocks Menu](https://user-images.githubusercontent.com/85772166/195393891-8ff6d5d2-043a-463b-994a-2ad0805bef0d.png) - -Docstrings for each function are printed using the `help()` function of Python: `help(openbb.stocks.candle)` - -![Calling the Help Dialogue](https://user-images.githubusercontent.com/85772166/195407824-16ce6a84-ca1f-42ea-9a4e-7de6584b356c.png) - -Add `%matplotlib inline` to the first cell for displaying charts within a Notebook file. - -A candle chart is shown with: `openbb.stocks.candle(symbol = 'ticker')`. The contextual help provides syntax and arguments for the function. - -![Candle Function](https://user-images.githubusercontent.com/85772166/195409395-4a09d357-9725-4e71-8342-86607f27d060.png) - -## Examples - -Pass historical price data to a Pandas DataFrame by declaring a name for the DataFrame: - -`spy_monthly = openbb.stocks.load(symbol = 'SPY', start_date = '1990-01-01', monthly = True)` - -![Load to a Pandas DataFrame](https://user-images.githubusercontent.com/85772166/195410451-7ab90457-122e-478c-a023-72fdf31fd6f5.png) - -Give the candle chart a custom title: - -`openbb.stocks.candle(data = spy_monthly, symbol = 'SPY - Monthly Candles')` - -![Change the Chart Title](https://user-images.githubusercontent.com/85772166/195198857-9af40ffe-e7b6-46d3-9887-bca05999fd3f.png) - -Get the options data for a specific expiration date: - -![Options Chains](https://user-images.githubusercontent.com/85772166/195446332-58daf843-ff1b-4821-a12e-a15209397af0.png) - -Search for companies with the `search` function: - -`openbb.stocks.search(sector = 'Energy', country = 'United Kingdom', query = 'oil')` - -![Stocks Search](https://user-images.githubusercontent.com/85772166/195447185-d3582665-7852-4a1e-bf0e-d0d389ec8ed7.png) - -Make a custom screener for tickers on the most Stocktwits users' watchlists: -```` -stocktwits = openbb.stocks.ba.trending() -stocktwits = pd.DataFrame(stocktwits).sort_values(by = 'Watchlist Count', ascending = False) -tickers = list(stocktwits.Ticker) -stocktwits.head(5) - -screener_results = openbb.stocks.ca.screener(similar = tickers, data_type = 'overview') -pd.DataFrame(screener_results).sort_values(by = 'Market Cap') -```` -![Comparing Trending Tickers From Stocktwits](https://user-images.githubusercontent.com/85772166/195452365-44847886-02c8-4b0f-a348-7eeb791b8f60.png) diff --git a/website/content/SDK/stocks/ba/_index.md b/website/content/SDK/stocks/ba/_index.md deleted file mode 100644 index fceac3b8036..00000000000 --- a/website/content/SDK/stocks/ba/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: ba -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/ba/bullbear/_index.rst b/website/content/SDK/stocks/ba/bullbear/_index.rst deleted file mode 100644 index fa59b978405..00000000000 --- a/website/content/SDK/stocks/ba/bullbear/_index.rst +++ /dev/null @@ -1,75 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.bullbear( - symbol: str, - chart: bool = False, -) -> Tuple[int, int, int, int] -{{< /highlight >}} - -.. raw:: html - -

- Gets bullbear sentiment for ticker [Source: stocktwits] -

- -* **Parameters** - - symbol : str - Ticker symbol to look at - chart: bool - Flag to display chart - - -* **Returns** - - int - Watchlist count - int - Number of cases found for ticker - int - Number of bullish statements - int - Number of bearish statements - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.bullbear( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print bullbear sentiment based on last 30 messages on the board. - Also prints the watchlist_count. [Source: Stocktwits] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/cnews/_index.rst b/website/content/SDK/stocks/ba/cnews/_index.rst deleted file mode 100644 index 8ff7a8c8a18..00000000000 --- a/website/content/SDK/stocks/ba/cnews/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.cnews( - symbol: str, - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> List[Dict] -{{< /highlight >}} - -.. raw:: html - -

- Get news from a company. [Source: Finnhub] -

- -* **Parameters** - - symbol : str - company ticker to look for news articles - start_date: str - date to start searching articles, with format YYYY-MM-DD - end_date: str - date to end searching articles, with format YYYY-MM-DD - -* **Returns** - - articles : List - term to search on the news articles diff --git a/website/content/SDK/stocks/ba/getdd/_index.rst b/website/content/SDK/stocks/ba/getdd/_index.rst deleted file mode 100644 index 71455a8443b..00000000000 --- a/website/content/SDK/stocks/ba/getdd/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.getdd( - symbol: str, - limit: int = 5, - n_days: int = 3, - show_all_flairs: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets due diligence posts from list of subreddits [Source: reddit] -

- -* **Parameters** - - symbol: str - Stock ticker - limit: int - Number of posts to get - n_days: int - Number of days back to get posts - show_all_flairs: bool - Search through all flairs (apart from Yolo and Meme) - -* **Returns** - - pd.DataFrame - Dataframe of submissions diff --git a/website/content/SDK/stocks/ba/headlines/_index.rst b/website/content/SDK/stocks/ba/headlines/_index.rst deleted file mode 100644 index f1ffa6c2e9d..00000000000 --- a/website/content/SDK/stocks/ba/headlines/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.headlines( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets Sentiment analysis provided by FinBrain's API [Source: finbrain] -

- -* **Parameters** - - symbol : str - Ticker symbol to get the sentiment analysis from - chart: bool - Flag to display chart - - -* **Returns** - - DataFrame() - Empty if there was an issue with data retrieval - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.headlines( - symbol: str, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Sentiment analysis from FinBrain -

- -* **Parameters** - - symbol: str - Ticker symbol to get the sentiment analysis from - raw: False - Display raw table data - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/hist/_index.rst b/website/content/SDK/stocks/ba/hist/_index.rst deleted file mode 100644 index 0c53f8de90e..00000000000 --- a/website/content/SDK/stocks/ba/hist/_index.rst +++ /dev/null @@ -1,108 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.hist( - symbol: str, - start_date: str = None, - end_date: str = None, - number: int = 100, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get hour-level sentiment data for the chosen symbol - - Source: [Sentiment Investor] -

- -* **Parameters** - - symbol: str - Ticker to view sentiment data - start_date: str - Initial date like string or unix timestamp (e.g. 12-21-2021) - end_date: str - End date like string or unix timestamp (e.g. 12-21-2021) - number : int - Number of results returned by API call - Maximum 250 per api call - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of historical sentiment - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.hist( - symbol: str, - start_date: str = None, - end_date: str = None, - number: int = 100, - raw: bool = False, - limit: int = 10, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display historical sentiment data of a ticker, - and plot a chart with RHI and AHI. -

- -* **Parameters** - - symbol: str - Ticker symbol to view sentiment data - start_date: str - Initial date like string or unix timestamp (e.g. 2021-12-21) - end_date: str - End date like string or unix timestamp (e.g. 2022-01-15) - number: int - Number of results returned by API call - Maximum 250 per api call - raw: boolean - Whether to display raw data, by default False - limit: int - Number of results display on the terminal - Default: 10 - export: str - Format to export data - external_axes: Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - - -* **Returns** - - diff --git a/website/content/SDK/stocks/ba/infer/_index.rst b/website/content/SDK/stocks/ba/infer/_index.rst deleted file mode 100644 index 6301576c5b9..00000000000 --- a/website/content/SDK/stocks/ba/infer/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.infer( - symbol: str, - limit: int = 100, - start_date: Optional[str] = '', - end_date: Optional[str] = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Load tweets from twitter API and analyzes using VADER -

- -* **Parameters** - - symbol: str - Ticker symbol to search twitter for - limit: int - Number of tweets to analyze - start_date: Optional[str] - If given, the start time to get tweets from - end_date: Optional[str] - If given, the end time to get tweets from - chart: bool - Flag to display chart - - -* **Returns** - - df_tweet: pd.DataFrame - Dataframe of tweets and sentiment - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.infer( - symbol: str, - limit: int = 100, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Infer sentiment from past n tweets -

- -* **Parameters** - - symbol: str - Stock ticker symbol - limit: int - Number of tweets to analyze - export: str - Format to export tweet dataframe - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/mentions/_index.rst b/website/content/SDK/stocks/ba/mentions/_index.rst deleted file mode 100644 index 9485fe5704e..00000000000 --- a/website/content/SDK/stocks/ba/mentions/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.mentions( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get interest over time from google api [Source: google] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of interest over time - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.mentions( - symbol: str, - start_date: str = '', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot weekly bars of stock's interest over time. other users watchlist. [Source: Google] -

- -* **Parameters** - - symbol : str - Ticker symbol - start_date : str - Start date as YYYY-MM-DD string - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/messages/_index.rst b/website/content/SDK/stocks/ba/messages/_index.rst deleted file mode 100644 index dd48fbedfec..00000000000 --- a/website/content/SDK/stocks/ba/messages/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.messages( - symbol: str, - limit: int = 30, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get last messages for a given ticker [Source: stocktwits] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number of messages to get - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of messages - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.messages( - symbol: str, - limit: int = 30, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print up to 30 of the last messages on the board. [Source: Stocktwits] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - limit: int - Number of messages to get - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/popular/_index.rst b/website/content/SDK/stocks/ba/popular/_index.rst deleted file mode 100644 index e8a849d26b4..00000000000 --- a/website/content/SDK/stocks/ba/popular/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.popular( - limit: int = 10, - post_limit: int = 50, - subreddits: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get popular tickers from list of subreddits [Source: reddit] -

- -* **Parameters** - - limit : int - Number of top tickers to get - post_limit : int - How many posts to analyze in each subreddit - subreddits : str, optional - String of comma separated subreddits. - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of top tickers from supplied subreddits - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.popular( - limit: int = 10, - post_limit: int = 50, - subreddits: str = '', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print latest popular tickers. [Source: Reddit] -

- -* **Parameters** - - limit : int - Number of top tickers to get - post_limit : int - How many posts to analyze in each subreddit - subreddits : str, optional - String of comma separated subreddits. - export : str - Format to export dataframe - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/queries/_index.rst b/website/content/SDK/stocks/ba/queries/_index.rst deleted file mode 100644 index 595d673d540..00000000000 --- a/website/content/SDK/stocks/ba/queries/_index.rst +++ /dev/null @@ -1,36 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.queries( - symbol: str, - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get related queries from google api [Source: google] -

- -* **Parameters** - - symbol: str - Stock ticker symbol to compare - limit: int - Number of queries to show - -* **Returns** - - dict : {'top': pd.DataFrame or None, 'rising': pd.DataFrame or None} diff --git a/website/content/SDK/stocks/ba/redditsent/_index.rst b/website/content/SDK/stocks/ba/redditsent/_index.rst deleted file mode 100644 index ed6738536cb..00000000000 --- a/website/content/SDK/stocks/ba/redditsent/_index.rst +++ /dev/null @@ -1,114 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.redditsent( - symbol: str, - limit: int = 100, - sortby: str = 'relevance', - time_frame: str = 'week', - full_search: bool = True, - subreddits: str = 'all', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, list, float] -{{< /highlight >}} - -.. raw:: html - -

- Finds posts related to a specific search term in Reddit -

- -* **Parameters** - - symbol: str - Ticker symbol to search for - limit: int - Number of posts to get per subreddit - sortby: str - Search type - Possibilities: "relevance", "hot", "top", "new", or "comments" - time_frame: str - Relative time of post - Possibilities: "hour", "day", "week", "month", "year", "all" - full_search: bool - Enable comprehensive search for ticker - subreddits: str - Comma-separated list of subreddits - chart: bool - Flag to display chart - - -* **Returns** - - tuple[pd.DataFrame, list, float]: - Dataframe of submissions related to the search term, - List of polarity scores, - Average polarity score - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.redditsent( - symbol: str, - sortby: str = 'relevance', - limit: int = 100, - graphic: bool = False, - time_frame: str = 'week', - full_search: bool = True, - subreddits: str = 'all', - display: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Determine Reddit sentiment about a search term -

- -* **Parameters** - - symbol: str - The ticker symbol being search for in Reddit - sortby: str - Type of search - limit: str - Number of posts to get at most - graphic: bool - Displays box and whisker plot - time_frame: str - Time frame for search - full_search: bool - Enable comprehensive search for ticker - subreddits: str - Comma-separated list of subreddits - display: bool - Enable printing of raw sentiment values for each post - export: str - Format to export data - external_axes: Optional[List[plt.Axes]] - If supplied, expect 1 external axis - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/regions/_index.rst b/website/content/SDK/stocks/ba/regions/_index.rst deleted file mode 100644 index ea56cbd4f83..00000000000 --- a/website/content/SDK/stocks/ba/regions/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.regions( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get interest by region from google api [Source: google] -

- -* **Parameters** - - symbol: str - Ticker symbol to look at - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of interest by region - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.regions( - symbol: str, - limit: int = 5, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot bars of regions based on stock's interest. [Source: Google] -

- -* **Parameters** - - symbol : str - Ticker symbol - limit: int - Number of regions to show - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/rise/_index.rst b/website/content/SDK/stocks/ba/rise/_index.rst deleted file mode 100644 index 4a7cb51e6ca..00000000000 --- a/website/content/SDK/stocks/ba/rise/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.rise( - symbol: str, - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top rising related queries with this stock's query [Source: google] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - limit: int - Number of queries to show - -* **Returns** - - pd.DataFrame - Dataframe containing rising related queries diff --git a/website/content/SDK/stocks/ba/sentiment/_index.rst b/website/content/SDK/stocks/ba/sentiment/_index.rst deleted file mode 100644 index 04bf1643c0e..00000000000 --- a/website/content/SDK/stocks/ba/sentiment/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.sentiment( - symbol: str, - n_tweets: int = 15, - n_days_past: int = 2, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get sentiments from symbol -

- -* **Parameters** - - symbol: str - Stock ticker symbol to get sentiment for - n_tweets: int - Number of tweets to get per hour - n_days_past: int - Number of days to extract tweets for - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.sentiment( - symbol: str, - n_tweets: int = 15, - n_days_past: int = 2, - compare: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot sentiments from symbol -

- -* **Parameters** - - symbol: str - Stock ticker symbol to get sentiment for - n_tweets: int - Number of tweets to get per hour - n_days_past: int - Number of days to extract tweets for - compare: bool - Show corresponding change in stock price - export: str - Format to export tweet dataframe - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/snews/_index.rst b/website/content/SDK/stocks/ba/snews/_index.rst deleted file mode 100644 index 21f85690f38..00000000000 --- a/website/content/SDK/stocks/ba/snews/_index.rst +++ /dev/null @@ -1,69 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.snews( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get headlines sentiment using VADER model over time. [Source: Finnhub] -

- -* **Parameters** - - symbol : str - Ticker of company - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.snews( - symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display stock price and headlines sentiment using VADER model over time. [Source: Finnhub] -

- -* **Parameters** - - symbol : str - Ticker of company - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/spac/_index.rst b/website/content/SDK/stocks/ba/spac/_index.rst deleted file mode 100644 index 4bdfac41502..00000000000 --- a/website/content/SDK/stocks/ba/spac/_index.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.spac( - limit: int = 5, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, dict, int] -{{< /highlight >}} - -.. raw:: html - -

- Get posts containing SPAC from top subreddits [Source: reddit] -

- -* **Parameters** - - limit : int, optional - Number of posts to get for each subreddit, by default 5 - -* **Returns** - - pd.DataFrame : - Dataframe of reddit submissions - dict : - Dictionary of tickers and counts - int : - Number of posts found. diff --git a/website/content/SDK/stocks/ba/spacc/_index.rst b/website/content/SDK/stocks/ba/spacc/_index.rst deleted file mode 100644 index ffeedb01086..00000000000 --- a/website/content/SDK/stocks/ba/spacc/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.spacc( - limit: int = 10, - popular: bool = False, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, dict] -{{< /highlight >}} - -.. raw:: html - -

- Get top tickers from r/SPACs [Source: reddit] -

- -* **Parameters** - - limit : int - Number of posts to look at - popular : bool - Search by hot instead of new - -* **Returns** - - pd.DataFrame: - Dataframe of reddit submission - dict: - Dictionary of tickers and number of mentions diff --git a/website/content/SDK/stocks/ba/stalker/_index.rst b/website/content/SDK/stocks/ba/stalker/_index.rst deleted file mode 100644 index 36e94b97ded..00000000000 --- a/website/content/SDK/stocks/ba/stalker/_index.rst +++ /dev/null @@ -1,32 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.stalker( - user: str, - limit: int = 30, - chart: bool = False, -) -> List[Dict] -{{< /highlight >}} - -.. raw:: html - -

- Gets messages from given user [Source: stocktwits] -

- -* **Parameters** - - user : str - User to get posts for - limit : int, optional - Number of posts to get, by default 30 diff --git a/website/content/SDK/stocks/ba/text_sent/_index.rst b/website/content/SDK/stocks/ba/text_sent/_index.rst deleted file mode 100644 index 9c1d59f4ac5..00000000000 --- a/website/content/SDK/stocks/ba/text_sent/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.text_sent( - post_data: List[str], - chart: bool = False, -) -> float -{{< /highlight >}} - -.. raw:: html - -

- Find the sentiment of a post and related comments -

- -* **Parameters** - - post_data: list[str] - A post and its comments in string form - -* **Returns** - - float - A number in the range [-1, 1] representing sentiment diff --git a/website/content/SDK/stocks/ba/trend/_index.rst b/website/content/SDK/stocks/ba/trend/_index.rst deleted file mode 100644 index dac24d0374c..00000000000 --- a/website/content/SDK/stocks/ba/trend/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.trend( - start_date: str = None, - hour: int = 0, - number: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get sentiment data on the most talked about tickers - within the last hour - - Source: [Sentiment Investor] -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - hour: int - Hour of the day in 24-hour notation (e.g. 14) - number : int - Number of results returned by API call - Maximum 250 per api call - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of trending data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.trend( - start_date: str = None, - hour: int = 0, - number: int = 10, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display most talked about tickers within - the last hour together with their sentiment data. -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - hour: int - Hour of the day in 24-hour notation (e.g. 14) - number : int - Number of results returned by API call - Maximum 250 per api call - limit: int - Number of results display on the terminal - Default: 10 - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/trending/_index.rst b/website/content/SDK/stocks/ba/trending/_index.rst deleted file mode 100644 index 2b310f93289..00000000000 --- a/website/content/SDK/stocks/ba/trending/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.trending() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get trending tickers from stocktwits [Source: stocktwits] -

- -* **Returns** - - pd.DataFrame - Dataframe of trending tickers and watchlist count diff --git a/website/content/SDK/stocks/ba/watchlist/_index.rst b/website/content/SDK/stocks/ba/watchlist/_index.rst deleted file mode 100644 index b4fce94dc36..00000000000 --- a/website/content/SDK/stocks/ba/watchlist/_index.rst +++ /dev/null @@ -1,72 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.watchlist( - limit: int = 5, - chart: bool = False, -) -> Tuple[List[praw.models.reddit.submission.Submission], dict, int] -{{< /highlight >}} - -.. raw:: html - -

- Get reddit users watchlists [Source: reddit] -

- -* **Parameters** - - limit : int - Number of posts to look through - chart: bool - Flag to display chart - - -* **Returns** - - list[praw.models.reddit.submission.Submission]: - List of reddit submissions - dict: - Dictionary of tickers and counts - int - Count of how many posts were analyzed - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ba.watchlist( - limit: int = 5, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print other users watchlist. [Source: Reddit] -

- -* **Parameters** - - limit: int - Maximum number of submissions to look at - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ba/wsb/_index.rst b/website/content/SDK/stocks/ba/wsb/_index.rst deleted file mode 100644 index 4cc68fdd451..00000000000 --- a/website/content/SDK/stocks/ba/wsb/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ba.wsb( - limit: int = 10, - new: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get wsb posts [Source: reddit] -

- -* **Parameters** - - limit : int, optional - Number of posts to get, by default 10 - new : bool, optional - Flag to sort by new instead of hot, by default False - -* **Returns** - - pd.DataFrame - Dataframe of reddit submissions diff --git a/website/content/SDK/stocks/ca/_index.md b/website/content/SDK/stocks/ca/_index.md deleted file mode 100644 index 3e82ce81e93..00000000000 --- a/website/content/SDK/stocks/ca/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: ca -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/ca/balance/_index.rst b/website/content/SDK/stocks/ca/balance/_index.rst deleted file mode 100644 index ce71e551276..00000000000 --- a/website/content/SDK/stocks/ca/balance/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.balance( - similar: List[str], - timeframe: str = '2021', - quarter: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get balance data. [Source: Marketwatch] -

- -* **Parameters** - - similar : List[str] - List of tickers to compare. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - timeframe : str - Column header to compare - quarter : bool, optional - Whether to use quarterly statements, by default False - export : str, optional - Format to export data diff --git a/website/content/SDK/stocks/ca/cashflow/_index.rst b/website/content/SDK/stocks/ca/cashflow/_index.rst deleted file mode 100644 index cbe85ff79dc..00000000000 --- a/website/content/SDK/stocks/ca/cashflow/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.cashflow( - similar: List[str], - timeframe: str = '2021', - quarter: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get cashflow data. [Source: Marketwatch] -

- -* **Parameters** - - similar : List[str] - List of tickers to compare. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - timeframe : str - Column header to compare - quarter : bool, optional - Whether to use quarterly statements, by default False - export : str, optional - Format to export data diff --git a/website/content/SDK/stocks/ca/finnhub_peers/_index.rst b/website/content/SDK/stocks/ca/finnhub_peers/_index.rst deleted file mode 100644 index 8211635687b..00000000000 --- a/website/content/SDK/stocks/ca/finnhub_peers/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.finnhub_peers( - symbol: str, - chart: bool = False, -) -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- Get similar companies from Finhub -

- -* **Parameters** - - symbol : str - Ticker to find comparisons for - -* **Returns** - - List[str] - List of similar companies diff --git a/website/content/SDK/stocks/ca/finviz_peers/_index.rst b/website/content/SDK/stocks/ca/finviz_peers/_index.rst deleted file mode 100644 index 4949d95eb3e..00000000000 --- a/website/content/SDK/stocks/ca/finviz_peers/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.finviz_peers( - symbol: str, - compare_list: List[str] = None, - chart: bool = False, -) -> Tuple[List[str], str] -{{< /highlight >}} - -.. raw:: html - -

- Get similar companies from Finviz -

- -* **Parameters** - - symbol : str - Ticker to find comparisons for - compare_list : List[str] - List of fields to compare, ["Sector", "Industry", "Country"] - -* **Returns** - - List[str] - List of similar companies diff --git a/website/content/SDK/stocks/ca/hcorr/_index.rst b/website/content/SDK/stocks/ca/hcorr/_index.rst deleted file mode 100644 index 9696621821f..00000000000 --- a/website/content/SDK/stocks/ca/hcorr/_index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.hcorr( - similar: List[str], - start_date: str = None, - candle_type: str = 'a', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get historical price correlation. [Source: Yahoo Finance] -

- -* **Parameters** - - similar : List[str] - List of similar tickers. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - start_date : str, optional - Initial date (e.g., 2021-10-01). Defaults to 1 year back - candle_type : str, optional - OHLCA column to use for candles or R for returns, by default "a" for Adjusted Close - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ca.hcorr( - similar: List[str], - start_date: str = None, - candle_type: str = 'a', - display_full_matrix: bool = False, - raw: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Correlation heatmap based on historical price comparison - between similar companies. [Source: Yahoo Finance] -

- -* **Parameters** - - similar : List[str] - List of similar tickers. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - start_date : str, optional - Initial date (e.g., 2021-10-01). Defaults to 1 year back - candle_type : str, optional - OHLCA column to use for candles or R for returns, by default "a" for Adjusted Close - display_full_matrix : bool, optional - Optionally display all values in the matrix, rather than masking off half, by default False - raw: bool, optional - Whether to display raw data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - export : str, optional - Format to export correlation prices, by default "" - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ca/hist/_index.rst b/website/content/SDK/stocks/ca/hist/_index.rst deleted file mode 100644 index f4679dc9392..00000000000 --- a/website/content/SDK/stocks/ca/hist/_index.rst +++ /dev/null @@ -1,93 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.hist( - similar: List[str], - start_date: str = None, - candle_type: str = 'a', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical prices for all comparison stocks -

- -* **Parameters** - - similar: List[str] - List of similar tickers. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - start_date: str, optional - Initial date (e.g., 2021-10-01). Defaults to 1 year back - candle_type: str, optional - Candle variable to compare, by default "a" for Adjusted Close. Possible values are: o, h, l, c, a, v, r - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe containing candle type variable for each ticker - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ca.hist( - similar: List[str], - start_date: str = None, - candle_type: str = 'a', - normalize: bool = True, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display historical stock prices. [Source: Yahoo Finance] -

- -* **Parameters** - - similar: List[str] - List of similar tickers. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - start_date: str, optional - Initial date (e.g., 2021-10-01). Defaults to 1 year back - candle_type: str, optional - OHLCA column to use or R to use daily returns calculated from Adjusted Close, by default "a" for Adjusted Close - normalize: bool, optional - Boolean to normalize all stock prices using MinMax defaults True - export: str, optional - Format to export historical prices, by default "" - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ca/income/_index.rst b/website/content/SDK/stocks/ca/income/_index.rst deleted file mode 100644 index e04753c2ac8..00000000000 --- a/website/content/SDK/stocks/ca/income/_index.rst +++ /dev/null @@ -1,85 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.income( - similar: List[str], - timeframe: str = '2021', - quarter: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get income data. [Source: Marketwatch] -

- -* **Parameters** - - similar : List[str] - List of tickers to compare. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - timeframe : str - Column header to compare - quarter : bool, optional - Whether to use quarterly statements, by default False - export : str, optional - Format to export data - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ca.income( - symbols: List[str], - timeframe: str = '2021', - quarter: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display income data. [Source: Marketwatch] -

- -* **Parameters** - - symbols : List[str] - List of tickers to compare. Enter tickers you want to see as shown below: - ["TSLA", "AAPL", "NFLX", "BBY"] - You can also get a list of comparable peers with - finnhub_peers(), finviz_peers(), polygon_peers(). - timeframe : str - What year to look at - quarter : bool, optional - Whether to use quarterly statements, by default False - export : str, optional - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ca/polygon_peers/_index.rst b/website/content/SDK/stocks/ca/polygon_peers/_index.rst deleted file mode 100644 index b4795c7365d..00000000000 --- a/website/content/SDK/stocks/ca/polygon_peers/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.polygon_peers( - symbol: str, - us_only: bool = False, - chart: bool = False, -) -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- Get similar companies from Polygon -

- -* **Parameters** - - symbol: str - Ticker to get similar companies of - us_only: bool - Only stocks from the US stock exchanges - -* **Returns** - - List[str]: - List of similar tickers diff --git a/website/content/SDK/stocks/ca/scorr/_index.rst b/website/content/SDK/stocks/ca/scorr/_index.rst deleted file mode 100644 index 0715369c8ae..00000000000 --- a/website/content/SDK/stocks/ca/scorr/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.scorr( - similar: List[str], - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get correlation sentiments across similar companies. [Source: FinBrain] -

- -* **Parameters** - - similar : List[str] - Similar companies to compare income with. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ca.scorr( - similar: List[str], - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot correlation sentiments heatmap across similar companies. [Source: FinBrain] -

- -* **Parameters** - - similar : List[str] - Similar companies to compare income with. - Comparable companies can be accessed through - finviz_peers(), finnhub_peers() or polygon_peers(). - raw : bool, optional - Output raw values, by default False - export : str, optional - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ca/screener/_index.rst b/website/content/SDK/stocks/ca/screener/_index.rst deleted file mode 100644 index d8dda03ed9b..00000000000 --- a/website/content/SDK/stocks/ca/screener/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.screener( - similar: List[str], - data_type: str = 'overview', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Screener Overview -

- -* **Parameters** - - similar: - List of similar companies. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - data_type : str - Data type between: overview, valuation, financial, ownership, performance, technical - -* **Returns** - - pd.DataFrame - Dataframe with overview, valuation, financial, ownership, performance or technical diff --git a/website/content/SDK/stocks/ca/sentiment/_index.rst b/website/content/SDK/stocks/ca/sentiment/_index.rst deleted file mode 100644 index 986c4558159..00000000000 --- a/website/content/SDK/stocks/ca/sentiment/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.sentiment( - symbols: List[str], - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets Sentiment analysis from several symbols provided by FinBrain's API -

- -* **Parameters** - - symbols : List[str] - List of tickers to get sentiment - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Contains sentiment analysis from several tickers - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ca.sentiment( - similar: List[str], - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display sentiment for all ticker. [Source: FinBrain] -

- -* **Parameters** - - similar : List[str] - Similar companies to compare income with. - Comparable companies can be accessed through - finviz_peers(), finnhub_peers() or polygon_peers(). - raw : bool, optional - Output raw values, by default False - export : str, optional - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ca/volume/_index.rst b/website/content/SDK/stocks/ca/volume/_index.rst deleted file mode 100644 index 160fe4f645f..00000000000 --- a/website/content/SDK/stocks/ca/volume/_index.rst +++ /dev/null @@ -1,79 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ca.volume( - similar: List[str], - start_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get stock volume. [Source: Yahoo Finance] -

- -* **Parameters** - - similar : List[str] - List of similar tickers. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - start_date : str, optional - Initial date (e.g., 2021-10-01). Defaults to 1 year back - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ca.volume( - similar: List[str], - start_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display stock volume. [Source: Yahoo Finance] -

- -* **Parameters** - - similar : List[str] - List of similar tickers. - Comparable companies can be accessed through - finnhub_peers(), finviz_peers(), polygon_peers(). - start_date : str, optional - Initial date (e.g., 2021-10-01). Defaults to 1 year back - export : str, optional - Format to export historical prices, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/candle/_index.rst b/website/content/SDK/stocks/candle/_index.rst deleted file mode 100644 index 1d6cd0a6559..00000000000 --- a/website/content/SDK/stocks/candle/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.candle( - symbol: str, - data: pandas.core.frame.DataFrame = None, - use_matplotlib: bool = True, - intraday: bool = False, - add_trend: bool = False, - ma: Optional[Iterable[int]] = None, - asset_type: str = '', - start_date: Union[datetime.datetime, str, NoneType] = None, - interval: int = 1440, - end_date: Union[datetime.datetime, str, NoneType] = None, - prepost: bool = False, - source: str = 'YahooFinance', - iexrange: str = 'ytd', - weekly: bool = False, - monthly: bool = False, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - raw: bool = False, - yscale: str = 'linear', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show candle plot of loaded ticker. - - [Source: Yahoo Finance, IEX Cloud or Alpha Vantage] -

- -* **Parameters** - - symbol: str - Ticker name - data: pd.DataFrame - Stock dataframe - use_matplotlib: bool - Flag to use matplotlib instead of interactive plotly chart - intraday: bool - Flag for intraday data for plotly range breaks - add_trend: bool - Flag to add high and low trends to chart - ma: Tuple[int] - Moving averages to add to the candle - asset_type\_: str - String to include in title - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - asset_type\_: str - String to include in title - start_date: str or datetime, optional - Start date to get data from with. - datetime or string format (YYYY-MM-DD) - interval: int - Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 - end_date: str or datetime, optional - End date to get data from with. - datetime or string format (YYYY-MM-DD) - prepost: bool - Pre and After hours data - source: str - Source of data extracted - iexrange: str - Timeframe to get IEX data. - weekly: bool - Flag to get weekly data - monthly: bool - Flag to get monthly data - raw : bool, optional - Flag to display raw data, by default False - yscale: str - Linear or log for yscale diff --git a/website/content/SDK/stocks/dd/_index.md b/website/content/SDK/stocks/dd/_index.md deleted file mode 100644 index ed1d5e259d6..00000000000 --- a/website/content/SDK/stocks/dd/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: dd -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/dd/analyst/_index.rst b/website/content/SDK/stocks/dd/analyst/_index.rst deleted file mode 100644 index d2f4f279852..00000000000 --- a/website/content/SDK/stocks/dd/analyst/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.analyst( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get analyst data. [Source: Finviz] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - df_fa: DataFrame - Analyst price targets diff --git a/website/content/SDK/stocks/dd/arktrades/_index.rst b/website/content/SDK/stocks/dd/arktrades/_index.rst deleted file mode 100644 index c22c6ff3b0b..00000000000 --- a/website/content/SDK/stocks/dd/arktrades/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.arktrades( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets a dataframe of ARK trades for ticker -

- -* **Parameters** - - symbol : str - Ticker to get trades for - -* **Returns** - - pd.DataFrame - DataFrame of trades diff --git a/website/content/SDK/stocks/dd/customer/_index.rst b/website/content/SDK/stocks/dd/customer/_index.rst deleted file mode 100644 index 2771ce3aacd..00000000000 --- a/website/content/SDK/stocks/dd/customer/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.customer( - symbol: str, - limit: int = 50, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Print customers from ticker provided -

- -* **Parameters** - - symbol: str - Ticker to select customers from - limit: int - The maximum number of rows to show - -* **Returns** - - pd.DataFrame - A dataframe of suppliers diff --git a/website/content/SDK/stocks/dd/est/_index.rst b/website/content/SDK/stocks/dd/est/_index.rst deleted file mode 100644 index 1435aa9470d..00000000000 --- a/website/content/SDK/stocks/dd/est/_index.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.est( - symbol: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Get analysts' estimates for a given ticker. [Source: Business Insider] -

- -* **Parameters** - - symbol : str - Ticker to get analysts' estimates - -* **Returns** - - df_year_estimates : pd.DataFrame - Year estimates - df_quarter_earnings : pd.DataFrame - Quarter earnings estimates - df_quarter_revenues : pd.DataFrame - Quarter revenues estimates diff --git a/website/content/SDK/stocks/dd/news/_index.rst b/website/content/SDK/stocks/dd/news/_index.rst deleted file mode 100644 index 9a339ec4955..00000000000 --- a/website/content/SDK/stocks/dd/news/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.news( - symbol: str, - chart: bool = False, -) -> List[Any] -{{< /highlight >}} - -.. raw:: html - -

- Get news from Finviz -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - List[Any] - News diff --git a/website/content/SDK/stocks/dd/pt/_index.rst b/website/content/SDK/stocks/dd/pt/_index.rst deleted file mode 100644 index 11f39c590b8..00000000000 --- a/website/content/SDK/stocks/dd/pt/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.pt( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get analysts' price targets for a given stock. [Source: Business Insider] -

- -* **Parameters** - - symbol : str - Ticker symbol - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Analysts data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dd.pt( - symbol: str, - data: pandas.core.frame.DataFrame, - start_date: str = None, - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display analysts' price targets for a given stock. [Source: Business Insider] -

- -* **Parameters** - - symbol: str - Due diligence ticker symbol - data: DataFrame - Due diligence stock dataframe - start_date : str - Start date of the stock data, format YYYY-MM-DD - limit : int - Number of latest price targets from analysts to print - raw: bool - Display raw data only - export: str - Export dataframe data to csv,json,xlsx file - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dd/rating/_index.rst b/website/content/SDK/stocks/dd/rating/_index.rst deleted file mode 100644 index 934ce85ce8f..00000000000 --- a/website/content/SDK/stocks/dd/rating/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.rating( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get ratings for a given ticker. [Source: Financial Modeling Prep] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - Rating data diff --git a/website/content/SDK/stocks/dd/rot/_index.rst b/website/content/SDK/stocks/dd/rot/_index.rst deleted file mode 100644 index 1a83a051636..00000000000 --- a/website/content/SDK/stocks/dd/rot/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.rot( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get rating over time data. [Source: Finnhub] -

- -* **Parameters** - - symbol : str - Ticker symbol to get ratings from - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Get dataframe with ratings - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dd.rot( - symbol: str, - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Rating over time (monthly). [Source: Finnhub] -

- -* **Parameters** - - ticker : str - Ticker to get ratings from - limit : int - Number of last months ratings to show - raw: bool - Display raw data only - export: str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]] - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dd/sec/_index.rst b/website/content/SDK/stocks/dd/sec/_index.rst deleted file mode 100644 index 6cfb03735d2..00000000000 --- a/website/content/SDK/stocks/dd/sec/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.sec( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get SEC filings for a given stock ticker. [Source: Market Watch] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - chart: bool - Flag to display chart - - -* **Returns** - - df_financials : pd.DataFrame - SEC filings data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dd.sec( - symbol: str, - limit: int = 5, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display SEC filings for a given stock ticker. [Source: Market Watch] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - limit: int - Number of ratings to display - export: str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dd/supplier/_index.rst b/website/content/SDK/stocks/dd/supplier/_index.rst deleted file mode 100644 index b5c45b590da..00000000000 --- a/website/content/SDK/stocks/dd/supplier/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dd.supplier( - symbol: str, - limit: int = 50, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get suppliers from ticker provided. [Source: CSIMarket] -

- -* **Parameters** - - symbol: str - Ticker to select suppliers from - limit: int - The maximum number of rows to show - -* **Returns** - - pd.DataFrame - A dataframe of suppliers diff --git a/website/content/SDK/stocks/disc/_index.md b/website/content/SDK/stocks/disc/_index.md deleted file mode 100644 index 670f51d025f..00000000000 --- a/website/content/SDK/stocks/disc/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: disc -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/disc/active/_index.rst b/website/content/SDK/stocks/disc/active/_index.rst deleted file mode 100644 index 892060741fa..00000000000 --- a/website/content/SDK/stocks/disc/active/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.active() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get stocks ordered in descending order by intraday trade volume. [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Most active stocks diff --git a/website/content/SDK/stocks/disc/arkord/_index.rst b/website/content/SDK/stocks/disc/arkord/_index.rst deleted file mode 100644 index f734cfdbe3e..00000000000 --- a/website/content/SDK/stocks/disc/arkord/_index.rst +++ /dev/null @@ -1,41 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.arkord( - buys_only: bool = False, - sells_only: bool = False, - fund: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns ARK orders in a Dataframe -

- -* **Parameters** - - buys_only: bool - Flag to filter on buys only - sells_only: bool - Flag to sort on sells only - fund: str - Optional filter by fund - -* **Returns** - - DataFrame - ARK orders data frame with the following columns: - ticker, date, shares, weight, fund, direction diff --git a/website/content/SDK/stocks/disc/asc/_index.rst b/website/content/SDK/stocks/disc/asc/_index.rst deleted file mode 100644 index c0681c2ed34..00000000000 --- a/website/content/SDK/stocks/disc/asc/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.asc() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Yahoo Finance small cap stocks with earnings growth rates better than 25%. - [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Most aggressive small cap stocks diff --git a/website/content/SDK/stocks/disc/dividends/_index.rst b/website/content/SDK/stocks/disc/dividends/_index.rst deleted file mode 100644 index c78eb3916d4..00000000000 --- a/website/content/SDK/stocks/disc/dividends/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.dividends( - date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets dividend calendar for given date. Date represents Ex-Dividend Date -

- -* **Parameters** - - date: datetime - Date to get for in format YYYY-MM-DD - -* **Returns** - - pd.DataFrame: - Dataframe of dividend calendar diff --git a/website/content/SDK/stocks/disc/fipo/_index.rst b/website/content/SDK/stocks/disc/fipo/_index.rst deleted file mode 100644 index 0d35fa670ff..00000000000 --- a/website/content/SDK/stocks/disc/fipo/_index.rst +++ /dev/null @@ -1,32 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.fipo( - num_days_ahead: int = 5, - end_date: Optional[str] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Future IPOs dates. [Source: Finnhub] -

- -* **Parameters** - - num_days_ahead: int - Number of days to look ahead for IPOs dates - end_date: datetime - The end date (format YYYY-MM-DD) to look for IPOs from today onwards diff --git a/website/content/SDK/stocks/disc/gainers/_index.rst b/website/content/SDK/stocks/disc/gainers/_index.rst deleted file mode 100644 index 96c06f35e58..00000000000 --- a/website/content/SDK/stocks/disc/gainers/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.gainers() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top gainers. [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Stock Gainers diff --git a/website/content/SDK/stocks/disc/gtech/_index.rst b/website/content/SDK/stocks/disc/gtech/_index.rst deleted file mode 100644 index 308c320e2e7..00000000000 --- a/website/content/SDK/stocks/disc/gtech/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.gtech() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get technology stocks with revenue and earnings growth in excess of 25%. [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Growth technology stocks diff --git a/website/content/SDK/stocks/disc/hotpenny/_index.rst b/website/content/SDK/stocks/disc/hotpenny/_index.rst deleted file mode 100644 index bf3a7abf2e1..00000000000 --- a/website/content/SDK/stocks/disc/hotpenny/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.hotpenny() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns today hot penny stocks -

- -* **Returns** - - DataFrame - Today hot penny stocks DataFrame with the following columns: - Ticker, Price, Change, $ Volume, Volume, # Trades diff --git a/website/content/SDK/stocks/disc/ipo/_index.rst b/website/content/SDK/stocks/disc/ipo/_index.rst deleted file mode 100644 index 1da264916ea..00000000000 --- a/website/content/SDK/stocks/disc/ipo/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.ipo( - start_date: str = None, - end_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get IPO calendar -

- -* **Parameters** - - start_date : str - Initial date, format YYYY-MM-DD - end_date : str - Final date, format YYYY-MM-DD - -* **Returns** - - pd.DataFrame - Get dataframe with IPO calendar events diff --git a/website/content/SDK/stocks/disc/losers/_index.rst b/website/content/SDK/stocks/disc/losers/_index.rst deleted file mode 100644 index dbdb361e741..00000000000 --- a/website/content/SDK/stocks/disc/losers/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.losers() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top losers. [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Stock Losers diff --git a/website/content/SDK/stocks/disc/lowfloat/_index.rst b/website/content/SDK/stocks/disc/lowfloat/_index.rst deleted file mode 100644 index 7cbccd65971..00000000000 --- a/website/content/SDK/stocks/disc/lowfloat/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.lowfloat() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns low float DataFrame -

- -* **Returns** - - DataFrame - Low float DataFrame with the following columns: - Ticker, Company, Exchange, ShortInt, Float, Outstd, Industry diff --git a/website/content/SDK/stocks/disc/news/_index.rst b/website/content/SDK/stocks/disc/news/_index.rst deleted file mode 100644 index d1d41556b81..00000000000 --- a/website/content/SDK/stocks/disc/news/_index.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.news( - news_type: str = 'Top-News', - limit: int = 5, - chart: bool = False, -) -> List -{{< /highlight >}} - -.. raw:: html - -

- Gets news. [Source: SeekingAlpha] -

- -* **Parameters** - - news_type : str - From: Top-News, On-The-Move, Market-Pulse, Notable-Calls, Buybacks, Commodities, Crypto, Issuance, Global, - Guidance, IPOs, SPACs, Politics, M-A, Consumer, Energy, Financials, Healthcare, MLPs, REITs, Technology - limit : int - Number of news to display - -* **Returns** - - List[dict] - List of dict news diff --git a/website/content/SDK/stocks/disc/pipo/_index.rst b/website/content/SDK/stocks/disc/pipo/_index.rst deleted file mode 100644 index c5a1f2fa7b9..00000000000 --- a/website/content/SDK/stocks/disc/pipo/_index.rst +++ /dev/null @@ -1,32 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.pipo( - num_days_behind: int = 5, - start_date: Optional[str] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Past IPOs dates. [Source: Finnhub] -

- -* **Parameters** - - num_days_behind: int - Number of days to look behind for IPOs dates - start_date: str - The starting date (format YYYY-MM-DD) to look for IPOs diff --git a/website/content/SDK/stocks/disc/rtat/_index.rst b/website/content/SDK/stocks/disc/rtat/_index.rst deleted file mode 100644 index 165072be65f..00000000000 --- a/website/content/SDK/stocks/disc/rtat/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.rtat() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets the top 10 retail stocks per day -

- -* **Returns** - - pd.DataFrame - Dataframe of tickers diff --git a/website/content/SDK/stocks/disc/trending/_index.rst b/website/content/SDK/stocks/disc/trending/_index.rst deleted file mode 100644 index 96d7cb7ff5f..00000000000 --- a/website/content/SDK/stocks/disc/trending/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.trending( - limit: int = 5, - chart: bool = False, -) -> list -{{< /highlight >}} - -.. raw:: html - -

- Returns a list of trending articles -

- -* **Parameters** - - limit: int - Number of articles - -* **Returns** - - list - Trending articles list diff --git a/website/content/SDK/stocks/disc/ugs/_index.rst b/website/content/SDK/stocks/disc/ugs/_index.rst deleted file mode 100644 index 0624b60dcb9..00000000000 --- a/website/content/SDK/stocks/disc/ugs/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.ugs() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get stocks with earnings growth rates better than 25% and relatively low PE and PEG ratios. - [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Undervalued stocks diff --git a/website/content/SDK/stocks/disc/ulc/_index.rst b/website/content/SDK/stocks/disc/ulc/_index.rst deleted file mode 100644 index 21f00bcd913..00000000000 --- a/website/content/SDK/stocks/disc/ulc/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.ulc() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Yahoo Finance potentially undervalued large cap stocks. - [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Most undervalued large cap stocks diff --git a/website/content/SDK/stocks/disc/upcoming/_index.rst b/website/content/SDK/stocks/disc/upcoming/_index.rst deleted file mode 100644 index 67269b5d8de..00000000000 --- a/website/content/SDK/stocks/disc/upcoming/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.disc.upcoming( - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns a DataFrame with upcoming earnings -

- -* **Parameters** - - limit : int - Number of pages - -* **Returns** - - DataFrame - Upcoming earnings DataFrame diff --git a/website/content/SDK/stocks/dps/_index.md b/website/content/SDK/stocks/dps/_index.md deleted file mode 100644 index c16e552e4b3..00000000000 --- a/website/content/SDK/stocks/dps/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: dps -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/dps/ctb/_index.rst b/website/content/SDK/stocks/dps/ctb/_index.rst deleted file mode 100644 index aa8adc88e0b..00000000000 --- a/website/content/SDK/stocks/dps/ctb/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.ctb() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get stocks with highest cost to borrow [Source: Interactive Broker] -

- -* **Returns** - - pd.DataFrame - Cost to borrow diff --git a/website/content/SDK/stocks/dps/dpotc/_index.rst b/website/content/SDK/stocks/dps/dpotc/_index.rst deleted file mode 100644 index d9788049976..00000000000 --- a/website/content/SDK/stocks/dps/dpotc/_index.rst +++ /dev/null @@ -1,76 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.dpotc( - symbol: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Get all FINRA data associated with a ticker -

- -* **Parameters** - - symbol : str - Stock ticker to get data from - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dark Pools (ATS) Data - pd.DataFrame - OTC (Non-ATS) Data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.dpotc( - symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display barchart of dark pool (ATS) and OTC (Non ATS) data. [Source: FINRA] -

- -* **Parameters** - - symbol : str - Stock ticker - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dps/ftd/_index.rst b/website/content/SDK/stocks/dps/ftd/_index.rst deleted file mode 100644 index eb9c97fa407..00000000000 --- a/website/content/SDK/stocks/dps/ftd/_index.rst +++ /dev/null @@ -1,98 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.ftd( - symbol: str, - start_date: str = None, - end_date: str = None, - limit: int = 0, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Display fails-to-deliver data for a given ticker. [Source: SEC] -

- -* **Parameters** - - symbol : str - Stock ticker - start_date : str - Start of data, in YYYY-MM-DD format - end_date : str - End of data, in YYYY-MM-DD format - limit : int - Number of latest fails-to-deliver being printed - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Fail to deliver data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.ftd( - symbol: str, - data: pandas.core.frame.DataFrame = None, - start_date: str = None, - end_date: str = None, - limit: int = 0, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display fails-to-deliver data for a given ticker. [Source: SEC] -

- -* **Parameters** - - symbol: str - Stock ticker - data: pd.DataFrame - Stock data - start_date: str - Start of data, in YYYY-MM-DD format - end_date: str - End of data, in YYYY-MM-DD format - limit : int - Number of latest fails-to-deliver being printed - raw: bool - Print raw data - export: str - Export dataframe data to csv,json,xlsx file - external_axes: Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dps/hsi/_index.rst b/website/content/SDK/stocks/dps/hsi/_index.rst deleted file mode 100644 index 1a0875eb5ee..00000000000 --- a/website/content/SDK/stocks/dps/hsi/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.hsi() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns a high short interest DataFrame -

- -* **Returns** - - DataFrame - High short interest Dataframe with the following columns: - Ticker, Company, Exchange, ShortInt, Float, Outstd, Industry diff --git a/website/content/SDK/stocks/dps/pos/_index.rst b/website/content/SDK/stocks/dps/pos/_index.rst deleted file mode 100644 index 2a5916b3ce3..00000000000 --- a/website/content/SDK/stocks/dps/pos/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.pos( - sortby: str = 'dpp_dollar', - ascend: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get dark pool short positions. [Source: Stockgrid] -

- -* **Parameters** - - sortby : str - Field for which to sort by, where 'sv': Short Vol. [1M], - 'sv_pct': Short Vol. %%, 'nsv': Net Short Vol. [1M], - 'nsv_dollar': Net Short Vol. ($100M), 'dpp': DP Position [1M], - 'dpp_dollar': DP Position ($1B) - ascend : bool - Data in ascending order - -* **Returns** - - pd.DataFrame - Dark pool short position data diff --git a/website/content/SDK/stocks/dps/prom/_index.rst b/website/content/SDK/stocks/dps/prom/_index.rst deleted file mode 100644 index 6857fc7043d..00000000000 --- a/website/content/SDK/stocks/dps/prom/_index.rst +++ /dev/null @@ -1,87 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.prom( - limit: int = 1000, - tier_ats: str = 'T1', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, Dict] -{{< /highlight >}} - -.. raw:: html - -

- Get all FINRA ATS data, and parse most promising tickers based on linear regression -

- -* **Parameters** - - limit: int - Number of tickers to filter from entire ATS data based on the sum of the total weekly shares quantity - tier_ats : int - Tier to process data from: T1, T2 or OTCE - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dark Pools (ATS) Data - Dict - Tickers from Dark Pools with better regression slope - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.prom( - input_limit: int = 1000, - limit: int = 10, - tier: str = 'T1', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display dark pool (ATS) data of tickers with growing trades activity. [Source: FINRA] -

- -* **Parameters** - - input_limit : int - Number of tickers to filter from entire ATS data based on - the sum of the total weekly shares quantity - limit : int - Number of tickers to display from most promising with - better linear regression slope - tier : str - Tier to process data from: T1, T2 or OTCE - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dps/psi_q/_index.rst b/website/content/SDK/stocks/dps/psi_q/_index.rst deleted file mode 100644 index 24522f196c7..00000000000 --- a/website/content/SDK/stocks/dps/psi_q/_index.rst +++ /dev/null @@ -1,90 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.psi_q( - symbol: str, - nyse: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Plots the short interest of a stock. This corresponds to the - number of shares that have been sold short but have not yet been - covered or closed out. Either NASDAQ or NYSE [Source: Quandl] -

- -* **Parameters** - - symbol : str - ticker to get short interest from - nyse : bool - data from NYSE if true, otherwise NASDAQ - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - short interest volume data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.psi_q( - symbol: str, - nyse: bool = False, - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plots the short interest of a stock. This corresponds to the - number of shares that have been sold short but have not yet been - covered or closed out. Either NASDAQ or NYSE [Source: Quandl] -

- -* **Parameters** - - symbol : str - ticker to get short interest from - nyse : bool - data from NYSE if true, otherwise NASDAQ - limit: int - Number of past days to show short interest - raw : bool - Flag to print raw data instead - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dps/psi_sg/_index.rst b/website/content/SDK/stocks/dps/psi_sg/_index.rst deleted file mode 100644 index 3a4cdffbe00..00000000000 --- a/website/content/SDK/stocks/dps/psi_sg/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.psi_sg( - symbol: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, List] -{{< /highlight >}} - -.. raw:: html - -

- Get price vs short interest volume. [Source: Stockgrid] -

- -* **Parameters** - - symbol : str - Stock to get data from - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Short interest volume data - List - Price data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.psi_sg( - symbol: str, - limit: int = 84, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot price vs short interest volume. [Source: Stockgrid] -

- -* **Parameters** - - symbol : str - Stock to plot for - limit : int - Number of last open market days to show - raw : bool - Flag to print raw data instead - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (3 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dps/shorted/_index.rst b/website/content/SDK/stocks/dps/shorted/_index.rst deleted file mode 100644 index a080b37e638..00000000000 --- a/website/content/SDK/stocks/dps/shorted/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.shorted() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get most shorted stock screener [Source: Yahoo Finance] -

- -* **Returns** - - pd.DataFrame - Most Shorted Stocks diff --git a/website/content/SDK/stocks/dps/sidtc/_index.rst b/website/content/SDK/stocks/dps/sidtc/_index.rst deleted file mode 100644 index 040c527a808..00000000000 --- a/website/content/SDK/stocks/dps/sidtc/_index.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.sidtc( - sortby: str = 'float', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get short interest and days to cover. [Source: Stockgrid] -

- -* **Parameters** - - sortby : str - Field for which to sort by, where 'float': Float Short %%, - 'dtc': Days to Cover, 'si': Short Interest - -* **Returns** - - pd.DataFrame - Short interest and days to cover data diff --git a/website/content/SDK/stocks/dps/spos/_index.rst b/website/content/SDK/stocks/dps/spos/_index.rst deleted file mode 100644 index 8cdfa62cb8d..00000000000 --- a/website/content/SDK/stocks/dps/spos/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.spos( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get net short position. [Source: Stockgrid] -

- -* **Parameters** - - symbol: str - Stock to get data from - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Net short position - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.spos( - symbol: str, - limit: int = 84, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot net short position. [Source: Stockgrid] -

- -* **Parameters** - - symbol: str - Stock to plot for - limit : int - Number of last open market days to show - raw : bool - Flag to print raw data instead - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (2 axes are expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/dps/volexch/_index.rst b/website/content/SDK/stocks/dps/volexch/_index.rst deleted file mode 100644 index f0e01e5d2e4..00000000000 --- a/website/content/SDK/stocks/dps/volexch/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.dps.volexch( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets short data for 5 exchanges [https://ftp.nyse.com] starting at 1/1/2021 -

- -* **Parameters** - - symbol : str - Ticker to get data for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of short data by exchange - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.dps.volexch( - symbol: str, - raw: bool = False, - sortby: str = '', - ascend: bool = False, - mpl: bool = True, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display short data by exchange -

- -* **Parameters** - - symbol : str - Stock ticker - raw : bool - Flag to display raw data - sortby: str - Column to sort by - ascend: bool - Sort in ascending order - mpl: bool - Display using matplotlib - export : str, optional - Format of export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/fa/_index.md b/website/content/SDK/stocks/fa/_index.md deleted file mode 100644 index b54ede5cd56..00000000000 --- a/website/content/SDK/stocks/fa/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: fa -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/fa/analysis/_index.rst b/website/content/SDK/stocks/fa/analysis/_index.rst deleted file mode 100644 index cf670ae817d..00000000000 --- a/website/content/SDK/stocks/fa/analysis/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.analysis( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Save time reading SEC filings with the help of machine learning. [Source: https://eclect.us] -

- -* **Parameters** - - symbol: str - Ticker symbol to see analysis of filings - -* **Returns** - - str - Analysis of filings text diff --git a/website/content/SDK/stocks/fa/av_balance/_index.rst b/website/content/SDK/stocks/fa/av_balance/_index.rst deleted file mode 100644 index 16ef3530845..00000000000 --- a/website/content/SDK/stocks/fa/av_balance/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.av_balance( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get balance sheets for company -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number of past to get - quarterly : bool, optional - Flag to get quarterly instead of annual, by default False - ratios: bool - Shows percentage change, by default False - plot: bool - If the data shall be formatted ready to plot - -* **Returns** - - pd.DataFrame - DataFrame of the balance sheet diff --git a/website/content/SDK/stocks/fa/av_cash/_index.rst b/website/content/SDK/stocks/fa/av_cash/_index.rst deleted file mode 100644 index 11ddfbc8446..00000000000 --- a/website/content/SDK/stocks/fa/av_cash/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.av_cash( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get cash flows for company -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number of past to get - quarterly : bool, optional - Flag to get quarterly instead of annual, by default False - ratios: bool - Shows percentage change, by default False - plot: bool - If the data shall be formatted ready to plot - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of cash flow statements - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.fa.av_cash( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: list = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Alpha Vantage income statement -

- -* **Parameters** - - symbol : str - Fundamental analysis ticker symbol - limit: int - Number of past statements, by default 5 - quarterly: bool - Flag to get quarterly instead of annual, by default False - ratios: bool - Shows percentage change, by default False - plot: list - List of row labels to plot - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/fa/av_income/_index.rst b/website/content/SDK/stocks/fa/av_income/_index.rst deleted file mode 100644 index 6b4cae85c56..00000000000 --- a/website/content/SDK/stocks/fa/av_income/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.av_income( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get income statements for company -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number of past to get - quarterly : bool, optional - Flag to get quarterly instead of annual, by default False - ratios: bool - Shows percentage change, by default False - plot: bool - If the data shall be formatted ready to plot - -* **Returns** - - pd.DataFrame - DataFrame of income statements diff --git a/website/content/SDK/stocks/fa/av_metrics/_index.rst b/website/content/SDK/stocks/fa/av_metrics/_index.rst deleted file mode 100644 index 14f22f1f579..00000000000 --- a/website/content/SDK/stocks/fa/av_metrics/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.av_metrics( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get key metrics from overview -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - Dataframe of key metrics diff --git a/website/content/SDK/stocks/fa/av_overview/_index.rst b/website/content/SDK/stocks/fa/av_overview/_index.rst deleted file mode 100644 index e3529447420..00000000000 --- a/website/content/SDK/stocks/fa/av_overview/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.av_overview( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get alpha vantage company overview -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - Dataframe of fundamentals diff --git a/website/content/SDK/stocks/fa/cal/_index.rst b/website/content/SDK/stocks/fa/cal/_index.rst deleted file mode 100644 index f4c6cc38436..00000000000 --- a/website/content/SDK/stocks/fa/cal/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.cal( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get calendar earnings for ticker symbol -

- -* **Parameters** - - symbol: str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - Dataframe of calendar earnings diff --git a/website/content/SDK/stocks/fa/data/_index.rst b/website/content/SDK/stocks/fa/data/_index.rst deleted file mode 100644 index 17e89ea5929..00000000000 --- a/website/content/SDK/stocks/fa/data/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.data( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get fundamental data from finviz -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - DataFrame of fundamental data diff --git a/website/content/SDK/stocks/fa/dcf/_index.rst b/website/content/SDK/stocks/fa/dcf/_index.rst deleted file mode 100644 index 6ca62de3e9d..00000000000 --- a/website/content/SDK/stocks/fa/dcf/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.dcf( - symbol: str, - limit: int = 5, - quarterly: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get stocks dcf from FMP -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - -* **Returns** - - pd.DataFrame - Dataframe of dcf data diff --git a/website/content/SDK/stocks/fa/divs/_index.rst b/website/content/SDK/stocks/fa/divs/_index.rst deleted file mode 100644 index bc853a7a354..00000000000 --- a/website/content/SDK/stocks/fa/divs/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.divs( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical dividend for ticker -

- -* **Parameters** - - symbol: str - Ticker symbol to get dividend for - -* **Returns** - - pd.DataFrame: - Dataframe of dividends and dates diff --git a/website/content/SDK/stocks/fa/dupont/_index.rst b/website/content/SDK/stocks/fa/dupont/_index.rst deleted file mode 100644 index 83c4d3ac0de..00000000000 --- a/website/content/SDK/stocks/fa/dupont/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.dupont( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get dupont ratios -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - dupont : pd.DataFrame - The dupont ratio breakdown diff --git a/website/content/SDK/stocks/fa/earnings/_index.rst b/website/content/SDK/stocks/fa/earnings/_index.rst deleted file mode 100644 index dda462091dc..00000000000 --- a/website/content/SDK/stocks/fa/earnings/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.earnings( - symbol: str, - quarterly: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get earnings calendar for ticker -

- -* **Parameters** - - symbol : str - Stock ticker symbol - quarterly : bool, optional - Flag to get quarterly and not annual, by default False - -* **Returns** - - pd.DataFrame - Dataframe of earnings diff --git a/website/content/SDK/stocks/fa/enterprise/_index.rst b/website/content/SDK/stocks/fa/enterprise/_index.rst deleted file mode 100644 index 05d437ed727..00000000000 --- a/website/content/SDK/stocks/fa/enterprise/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.enterprise( - symbol: str, - limit: int = 5, - quarterly: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Financial Modeling Prep ticker enterprise -

- -* **Parameters** - - symbol : str - Fundamental analysis ticker symbol - limit: int - Number to get - quarterly: bool - Flag to get quarterly data - -* **Returns** - - pd.DataFrame: - Dataframe of enterprise information diff --git a/website/content/SDK/stocks/fa/fama_coe/_index.rst b/website/content/SDK/stocks/fa/fama_coe/_index.rst deleted file mode 100644 index f86ae0a334b..00000000000 --- a/website/content/SDK/stocks/fa/fama_coe/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fama_coe( - symbol: str, - chart: bool = False, -) -> float -{{< /highlight >}} - -.. raw:: html - -

- Use Fama and French to get the cost of equity for a company -

- -* **Parameters** - - symbol : str - The ticker symbol to be analyzed - -* **Returns** - - coef : float - The stock's Fama French coefficient diff --git a/website/content/SDK/stocks/fa/fama_raw/_index.rst b/website/content/SDK/stocks/fa/fama_raw/_index.rst deleted file mode 100644 index 6f441c8f9e9..00000000000 --- a/website/content/SDK/stocks/fa/fama_raw/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fama_raw() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get Fama French data -

- -* **Returns** - - df : pd.DataFrame - Fama French data diff --git a/website/content/SDK/stocks/fa/fmp_balance/_index.rst b/website/content/SDK/stocks/fa/fmp_balance/_index.rst deleted file mode 100644 index 6299cf54784..00000000000 --- a/website/content/SDK/stocks/fa/fmp_balance/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fmp_balance( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get balance sheets -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - ratios: bool - Shows percentage change, by default False - plot: bool - If the data shall be formatted ready to plot - -* **Returns** - - pd.DataFrame - Dataframe of balance sheet diff --git a/website/content/SDK/stocks/fa/fmp_cash/_index.rst b/website/content/SDK/stocks/fa/fmp_cash/_index.rst deleted file mode 100644 index 06e7a9f45c4..00000000000 --- a/website/content/SDK/stocks/fa/fmp_cash/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fmp_cash( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get cash flow -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - ratios: bool - Shows percentage change, by default False - plot: bool - If the data shall be formatted ready to plot - -* **Returns** - - pd.DataFrame - Dataframe of company cash flow diff --git a/website/content/SDK/stocks/fa/fmp_income/_index.rst b/website/content/SDK/stocks/fa/fmp_income/_index.rst deleted file mode 100644 index 32453ea08b3..00000000000 --- a/website/content/SDK/stocks/fa/fmp_income/_index.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fmp_income( - symbol: str, - limit: int = 5, - quarterly: bool = False, - ratios: bool = False, - plot: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get income statements -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - ratios: bool - Shows percentage change, by default False - plot: bool - If the data shall be formatted ready to plot - -* **Returns** - - pd.DataFrame - Dataframe of the income statements diff --git a/website/content/SDK/stocks/fa/fmp_metrics/_index.rst b/website/content/SDK/stocks/fa/fmp_metrics/_index.rst deleted file mode 100644 index cb67e3de616..00000000000 --- a/website/content/SDK/stocks/fa/fmp_metrics/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fmp_metrics( - symbol: str, - limit: int = 5, - quarterly: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get key metrics -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - -* **Returns** - - pd.DataFrame - Dataframe of key metrics diff --git a/website/content/SDK/stocks/fa/fmp_ratios/_index.rst b/website/content/SDK/stocks/fa/fmp_ratios/_index.rst deleted file mode 100644 index 5fca6c03b01..00000000000 --- a/website/content/SDK/stocks/fa/fmp_ratios/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fmp_ratios( - symbol: str, - limit: int = 5, - quarterly: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get key ratios -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - -* **Returns** - - pd.DataFrame - Dataframe of key ratios diff --git a/website/content/SDK/stocks/fa/fraud/_index.rst b/website/content/SDK/stocks/fa/fraud/_index.rst deleted file mode 100644 index df3ace47fef..00000000000 --- a/website/content/SDK/stocks/fa/fraud/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.fraud( - symbol: str, - detail: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get fraud ratios based on fundamentals -

- -* **Parameters** - - symbol : str - Stock ticker symbol - detail : bool - Whether to provide extra m-score details - -* **Returns** - - metrics : pd.DataFrame - The fraud ratios diff --git a/website/content/SDK/stocks/fa/growth/_index.rst b/website/content/SDK/stocks/fa/growth/_index.rst deleted file mode 100644 index b292fd5b333..00000000000 --- a/website/content/SDK/stocks/fa/growth/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.growth( - symbol: str, - limit: int = 5, - quarterly: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get financial statement growth -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number to get - quarterly : bool, optional - Flag to get quarterly data, by default False - -* **Returns** - - pd.DataFrame - Dataframe of financial statement growth diff --git a/website/content/SDK/stocks/fa/historical_5/_index.rst b/website/content/SDK/stocks/fa/historical_5/_index.rst deleted file mode 100644 index fa565d9fa3f..00000000000 --- a/website/content/SDK/stocks/fa/historical_5/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.historical_5( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get 5 year monthly historical performance for a ticker with dividends filtered -

- -* **Parameters** - - symbol: str - The ticker symbol to be analyzed - -* **Returns** - - df: pd.DataFrame - Historical data diff --git a/website/content/SDK/stocks/fa/hq/_index.rst b/website/content/SDK/stocks/fa/hq/_index.rst deleted file mode 100644 index 64d8720d5ed..00000000000 --- a/website/content/SDK/stocks/fa/hq/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.hq( - symbol: str, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Gets google map url for headquarter -

- -* **Parameters** - - symbol: str - Stock ticker symbol - -* **Returns** - - str - Headquarter google maps url diff --git a/website/content/SDK/stocks/fa/info/_index.rst b/website/content/SDK/stocks/fa/info/_index.rst deleted file mode 100644 index 843d6a7bf5a..00000000000 --- a/website/content/SDK/stocks/fa/info/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.info( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets ticker symbol info -

- -* **Parameters** - - symbol: str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - DataFrame of yfinance information diff --git a/website/content/SDK/stocks/fa/mgmt/_index.rst b/website/content/SDK/stocks/fa/mgmt/_index.rst deleted file mode 100644 index 9c3c68727bd..00000000000 --- a/website/content/SDK/stocks/fa/mgmt/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.mgmt( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get company managers from Business Insider -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - Dataframe of managers diff --git a/website/content/SDK/stocks/fa/mktcap/_index.rst b/website/content/SDK/stocks/fa/mktcap/_index.rst deleted file mode 100644 index 0a4c15134cb..00000000000 --- a/website/content/SDK/stocks/fa/mktcap/_index.rst +++ /dev/null @@ -1,82 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.mktcap( - symbol: str, - start_date: str = None, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, str] -{{< /highlight >}} - -.. raw:: html - -

- Get market cap over time for ticker. [Source: Yahoo Finance] -

- -* **Parameters** - - symbol: str - Ticker to get market cap over time - start_date: str - Initial date (e.g., 2021-10-01). Defaults to 3 years back - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - Dataframe of estimated market cap over time - str: - Currency of ticker - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.fa.mktcap( - symbol: str, - start_date: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display market cap over time. [Source: Yahoo Finance] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - start_date: str - Initial date (e.g., 2021-10-01). Defaults to 3 years back - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/fa/poly_financials/_index.rst b/website/content/SDK/stocks/fa/poly_financials/_index.rst deleted file mode 100644 index abfdae4b919..00000000000 --- a/website/content/SDK/stocks/fa/poly_financials/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.poly_financials( - symbol: str, - statement: str, - quarterly: bool = False, - ratios: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get ticker financial statements from polygon -

- -* **Parameters** - - symbol: str - Stock ticker symbol - statement: str - Financial statement data to retrieve, can be balance, income or cash - quarterly:bool - Flag to get quarterly reports, by default False - ratios: bool - Shows percentage change, by default False - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Balance Sheets or Income Statements - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.fa.poly_financials( - symbol: str, - statement: str, - limit: int = 10, - quarterly: bool = False, - ratios: bool = False, - plot: list = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display tickers balance sheet or income statement -

- -* **Parameters** - - symbol: str - Stock ticker symbol - statement:str - Either balance or income - limit: int - Number of results to show, by default 10 - quarterly: bool - Flag to get quarterly reports, by default False - ratios: bool - Shows percentage change, by default False - plot: list - List of row labels to plot - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/fa/profile/_index.rst b/website/content/SDK/stocks/fa/profile/_index.rst deleted file mode 100644 index 72d438849c7..00000000000 --- a/website/content/SDK/stocks/fa/profile/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.profile( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get ticker profile from FMP -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame: - Dataframe of ticker profile diff --git a/website/content/SDK/stocks/fa/quote/_index.rst b/website/content/SDK/stocks/fa/quote/_index.rst deleted file mode 100644 index 50efddd8101..00000000000 --- a/website/content/SDK/stocks/fa/quote/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.quote( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets ticker quote from FMP -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame: - Dataframe of ticker quote diff --git a/website/content/SDK/stocks/fa/score/_index.rst b/website/content/SDK/stocks/fa/score/_index.rst deleted file mode 100644 index a6e8b94a1a0..00000000000 --- a/website/content/SDK/stocks/fa/score/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.score( - symbol: str, - chart: bool = False, -) -> Optional[numpy.number] -{{< /highlight >}} - -.. raw:: html - -

- Gets value score from fmp -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - np.number - Value score diff --git a/website/content/SDK/stocks/fa/shrs/_index.rst b/website/content/SDK/stocks/fa/shrs/_index.rst deleted file mode 100644 index 219b98d6925..00000000000 --- a/website/content/SDK/stocks/fa/shrs/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.shrs( - symbol: str, - holder: str = 'institutional', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get shareholders from yahoo -

- -* **Parameters** - - symbol : str - Stock ticker symbol - holder : str - Which holder to get table for - -* **Returns** - - pd.DataFrame - Major holders diff --git a/website/content/SDK/stocks/fa/similar_dfs/_index.rst b/website/content/SDK/stocks/fa/similar_dfs/_index.rst deleted file mode 100644 index 13433560253..00000000000 --- a/website/content/SDK/stocks/fa/similar_dfs/_index.rst +++ /dev/null @@ -1,43 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.similar_dfs( - symbol: str, - info: Dict[str, Any], - n: int, - no_filter: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get dataframes for similar companies -

- -* **Parameters** - - symbol : str - The ticker symbol to create a dataframe for - into : Dict[str,Any] - The dictionary produced from the yfinance.info function - n : int - The number of similar companies to produce - no_filter : bool - True means that we do not filter based on market cap - -* **Returns** - - new_list : List[str, pd.DataFrame] - A list of similar companies diff --git a/website/content/SDK/stocks/fa/splits/_index.rst b/website/content/SDK/stocks/fa/splits/_index.rst deleted file mode 100644 index ba6c36f3c9c..00000000000 --- a/website/content/SDK/stocks/fa/splits/_index.rst +++ /dev/null @@ -1,74 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.splits( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get splits and reverse splits events. [Source: Yahoo Finance] -

- -* **Parameters** - - symbol: str - Ticker to get forward and reverse splits - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - Dataframe of forward and reverse splits - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.fa.splits( - symbol: str, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display splits and reverse splits events. [Source: Yahoo Finance] -

- -* **Parameters** - - symbol: str - Stock ticker symbol - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/fa/sust/_index.rst b/website/content/SDK/stocks/fa/sust/_index.rst deleted file mode 100644 index c4225475c76..00000000000 --- a/website/content/SDK/stocks/fa/sust/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.sust( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get sustainability metrics from yahoo -

- -* **Parameters** - - symbol : str - Stock ticker symbol - -* **Returns** - - pd.DataFrame - Dataframe of sustainability metrics diff --git a/website/content/SDK/stocks/fa/website/_index.rst b/website/content/SDK/stocks/fa/website/_index.rst deleted file mode 100644 index be330a81988..00000000000 --- a/website/content/SDK/stocks/fa/website/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.website( - symbol: str, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Gets website of company from yfinance -

- -* **Parameters** - - symbol: str - Stock ticker symbol - -* **Returns** - - str - Company websit diff --git a/website/content/SDK/stocks/fa/yf_financials/_index.rst b/website/content/SDK/stocks/fa/yf_financials/_index.rst deleted file mode 100644 index 7e37c2115c0..00000000000 --- a/website/content/SDK/stocks/fa/yf_financials/_index.rst +++ /dev/null @@ -1,99 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.fa.yf_financials( - symbol: str, - statement: str, - ratios: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get cashflow statement for company -

- -* **Parameters** - - symbol : str - Stock ticker symbol - statement: str - can be: - - - cash-flow - - financials for Income - - balance-sheet - - ratios: bool - Shows percentage change - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of Financial statement - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.fa.yf_financials( - symbol: str, - statement: str, - limit: int = 12, - ratios: bool = False, - plot: list = None, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display tickers balance sheet, income statement or cash-flow -

- -* **Parameters** - - symbol: str - Stock ticker symbol - statement: str - Possible values are: - - - cash-flow - - financials for Income - - balance-sheet - - limit: int - Number of periods to show - ratios: bool - Shows percentage change - plot: list - List of row labels to plot - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/_index.md b/website/content/SDK/stocks/gov/_index.md deleted file mode 100644 index 1901eb00f5f..00000000000 --- a/website/content/SDK/stocks/gov/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: gov -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/gov/contracts/_index.rst b/website/content/SDK/stocks/gov/contracts/_index.rst deleted file mode 100644 index 351637c9bab..00000000000 --- a/website/content/SDK/stocks/gov/contracts/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.contracts( - symbol: str, - past_transaction_days: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get government contracts for ticker [Source: quiverquant.com] -

- -* **Parameters** - - symbol: str - Ticker to get congress trading data from - past_transaction_days: int - Number of days to get transactions for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Most recent transactions by members of U.S. Congress - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.contracts( - symbol: str, - past_transaction_days: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show government contracts for ticker [Source: quiverquant.com] -

- -* **Parameters** - - symbol: str - Ticker to get congress trading data from - past_transaction_days: int - Number of days to get transactions for - raw: bool - Flag to display raw data - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/government_trading/_index.rst b/website/content/SDK/stocks/gov/government_trading/_index.rst deleted file mode 100644 index 65b0e947b48..00000000000 --- a/website/content/SDK/stocks/gov/government_trading/_index.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.government_trading( - gov_type: str = 'congress', - symbol: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Returns the most recent transactions by members of government -

- -* **Parameters** - - gov_type: str - Type of government data between: - 'congress', 'senate', 'house', 'contracts', 'quarter-contracts' and 'corporate-lobbying' - symbol : str - Ticker symbol to get congress trading data from - -* **Returns** - - pd.DataFrame - Most recent transactions by members of U.S. Congress diff --git a/website/content/SDK/stocks/gov/gtrades/_index.rst b/website/content/SDK/stocks/gov/gtrades/_index.rst deleted file mode 100644 index 509fd1565cb..00000000000 --- a/website/content/SDK/stocks/gov/gtrades/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.gtrades( - symbol: str, - gov_type: str = 'congress', - past_transactions_months: int = 6, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Government trading for specific ticker [Source: quiverquant.com] -

- -* **Parameters** - - symbol: str - Ticker symbol to get congress trading data from - gov_type: str - Type of government data between: congress, senate and house - past_transactions_months: int - Number of months to get transactions for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of tickers government trading - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.gtrades( - symbol: str, - gov_type: str = 'congress', - past_transactions_months: int = 6, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Government trading for specific ticker [Source: quiverquant.com] -

- -* **Parameters** - - symbol: str - Ticker symbol to get congress trading data from - gov_type: str - Type of government data between: congress, senate and house - past_transactions_months: int - Number of months to get transactions for - raw: bool - Show raw output of trades - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/histcont/_index.rst b/website/content/SDK/stocks/gov/histcont/_index.rst deleted file mode 100644 index eb3e3818abd..00000000000 --- a/website/content/SDK/stocks/gov/histcont/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.histcont( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get historical quarterly government contracts [Source: quiverquant.com] -

- -* **Parameters** - - symbol: str - Ticker symbol to get congress trading data from - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Historical quarterly government contracts - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.histcont( - symbol: str, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Show historical quarterly government contracts [Source: quiverquant.com] -

- -* **Parameters** - - symbol: str - Ticker symbol to get congress trading data from - raw: bool - Flag to display raw data - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/lastcontracts/_index.rst b/website/content/SDK/stocks/gov/lastcontracts/_index.rst deleted file mode 100644 index 13d52edff64..00000000000 --- a/website/content/SDK/stocks/gov/lastcontracts/_index.rst +++ /dev/null @@ -1,80 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.lastcontracts( - past_transaction_days: int = 2, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get last government contracts [Source: quiverquant.com] -

- -* **Parameters** - - past_transaction_days: int - Number of days to look back - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of government contracts - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.lastcontracts( - past_transaction_days: int = 2, - limit: int = 20, - sum_contracts: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Last government contracts [Source: quiverquant.com] -

- -* **Parameters** - - past_transaction_days: int - Number of days to look back - limit: int - Number of contracts to show - sum_contracts: bool - Flag to show total amount of contracts given out. - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/lasttrades/_index.rst b/website/content/SDK/stocks/gov/lasttrades/_index.rst deleted file mode 100644 index 7142122b68e..00000000000 --- a/website/content/SDK/stocks/gov/lasttrades/_index.rst +++ /dev/null @@ -1,40 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.lasttrades( - gov_type: str = 'congress', - limit: int = -1, - representative: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get last government trading [Source: quiverquant.com] -

- -* **Parameters** - - gov_type: str - Type of government data between: congress, senate and house - limit: int - Number of days to look back - representative: str - Specific representative to look at - -* **Returns** - - pd.DataFrame - Last government trading diff --git a/website/content/SDK/stocks/gov/lobbying/_index.rst b/website/content/SDK/stocks/gov/lobbying/_index.rst deleted file mode 100644 index df6b2652cfa..00000000000 --- a/website/content/SDK/stocks/gov/lobbying/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.lobbying( - symbol: str, - limit: int = 10, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Corporate lobbying details -

- -* **Parameters** - - symbol: str - Ticker symbol to get corporate lobbying data from - limit: int - Number of events to show - -* **Returns** - - pd.DataFrame - Dataframe with corporate lobbying data diff --git a/website/content/SDK/stocks/gov/qtrcontracts/_index.rst b/website/content/SDK/stocks/gov/qtrcontracts/_index.rst deleted file mode 100644 index 6ebb6fb37e7..00000000000 --- a/website/content/SDK/stocks/gov/qtrcontracts/_index.rst +++ /dev/null @@ -1,83 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.qtrcontracts( - analysis: str = 'total', - limit: int = 5, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Analyzes quarterly contracts by ticker -

- -* **Parameters** - - analysis : str - How to analyze. Either gives total amount or sorts by high/low momentum. - limit : int, optional - Number to return, by default 5 - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with tickers and total amount if total selected. - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.qtrcontracts( - analysis: str = 'total', - limit: int = 5, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Quarterly contracts [Source: quiverquant.com] -

- -* **Parameters** - - analysis: str - Analysis to perform. Either 'total', 'upmom' 'downmom' - limit: int - Number to show - raw: bool - Flag to display raw data - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/topbuys/_index.rst b/website/content/SDK/stocks/gov/topbuys/_index.rst deleted file mode 100644 index c983e0f13fa..00000000000 --- a/website/content/SDK/stocks/gov/topbuys/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.topbuys( - gov_type: str = 'congress', - past_transactions_months: int = 6, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top buy government trading [Source: quiverquant.com] -

- -* **Parameters** - - gov_type: str - Type of government data between: congress, senate and house - past_transactions_months: int - Number of months to get trading for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of top government buy trading - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.topbuys( - gov_type: str = 'congress', - past_transactions_months: int = 6, - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Top buy government trading [Source: quiverquant.com] -

- -* **Parameters** - - gov_type: str - Type of government data between: congress, senate and house - past_transactions_months: int - Number of months to get trading for - limit: int - Number of tickers to show - raw: bool - Display raw data - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/toplobbying/_index.rst b/website/content/SDK/stocks/gov/toplobbying/_index.rst deleted file mode 100644 index 6f7b0328bca..00000000000 --- a/website/content/SDK/stocks/gov/toplobbying/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.toplobbying() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Corporate lobbying details -

- -* **Returns** - - pd.DataFrame - DataFrame of top corporate lobbying - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.toplobbying( - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Top lobbying tickers based on total spent -

- -* **Parameters** - - limit: int - Number of tickers to show - raw: bool - Show raw data - export: - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/gov/topsells/_index.rst b/website/content/SDK/stocks/gov/topsells/_index.rst deleted file mode 100644 index 330a073790e..00000000000 --- a/website/content/SDK/stocks/gov/topsells/_index.rst +++ /dev/null @@ -1,86 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.gov.topsells( - gov_type: str = 'congress', - past_transactions_months: int = 6, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get top sell government trading [Source: quiverquant.com] -

- -* **Parameters** - - gov_type: str - Type of government data between: congress, senate and house - past_transactions_months: int - Number of months to get trading for - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of top government sell trading - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.gov.topsells( - gov_type: str = 'congress', - past_transactions_months: int = 6, - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Top sell government trading [Source: quiverquant.com] -

- -* **Parameters** - - gov_type: str - Type of government data between: congress, senate and house - past_transactions_months: int - Number of months to get trading for - limit: int - Number of tickers to show - raw: bool - Display raw data - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ins/_index.md b/website/content/SDK/stocks/ins/_index.md deleted file mode 100644 index 925825ebbb7..00000000000 --- a/website/content/SDK/stocks/ins/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: ins -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/ins/act/_index.rst b/website/content/SDK/stocks/ins/act/_index.rst deleted file mode 100644 index 43fb93aafe4..00000000000 --- a/website/content/SDK/stocks/ins/act/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ins.act( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get insider activity. [Source: Business Insider] -

- -* **Parameters** - - symbol : str - Ticker symbol to get insider activity data from - chart: bool - Flag to display chart - - -* **Returns** - - df_insider : pd.DataFrame - Get insider activity data - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ins.act( - data: pandas.core.frame.DataFrame, - symbol: str, - start_date: str = None, - interval: str = '1440min', - limit: int = 10, - raw: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display insider activity. [Source: Business Insider] -

- -* **Parameters** - - data: pd.DataFrame - Stock dataframe - symbol: str - Due diligence ticker symbol - start_date: str - Initial date (e.g., 2021-10-01). Defaults to 3 years back - interval: str - Stock data interval - limit: int - Number of latest days of inside activity - raw: bool - Print to console - export: str - Export dataframe data to csv,json,xlsx file - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ins/lins/_index.rst b/website/content/SDK/stocks/ins/lins/_index.rst deleted file mode 100644 index 31fa3de72fa..00000000000 --- a/website/content/SDK/stocks/ins/lins/_index.rst +++ /dev/null @@ -1,72 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ins.lins( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get last insider activity for a given stock ticker. [Source: Finviz] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - - pd.DataFrame - Latest insider trading activity - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ins.lins( - symbol: str, - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display insider activity for a given stock ticker. [Source: Finviz] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - limit : int - Number of latest insider activity to display - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ins/print_insider_data/_index.rst b/website/content/SDK/stocks/ins/print_insider_data/_index.rst deleted file mode 100644 index 35b13db674c..00000000000 --- a/website/content/SDK/stocks/ins/print_insider_data/_index.rst +++ /dev/null @@ -1,72 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ins.print_insider_data( - type_insider: str = 'lcb', - limit: int = 10, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print insider data -

- -* **Parameters** - - type_insider: str - Insider type of data. Available types can be accessed through get_insider_types(). - limit: int - Limit of data rows to display - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ins.print_insider_data( - type_insider: str = 'lcb', - limit: int = 10, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print insider data -

- -* **Parameters** - - type_insider: str - Insider type of data. Available types can be accessed through get_insider_types(). - limit: int - Limit of data rows to display - export: str - Export data format - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/load/_index.rst b/website/content/SDK/stocks/load/_index.rst deleted file mode 100644 index 7d420bcd74e..00000000000 --- a/website/content/SDK/stocks/load/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.load( - symbol: str, - start_date: Union[datetime.datetime, str, NoneType] = None, - interval: int = 1440, - end_date: Union[datetime.datetime, str, NoneType] = None, - prepost: bool = False, - source: str = 'YahooFinance', - iexrange: str = 'ytd', - weekly: bool = False, - monthly: bool = False, - verbose: bool = True, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Load a symbol to perform analysis using the string above as a template. - - Optional arguments and their descriptions are listed above. - - The default source is, yFinance (https://pypi.org/project/yfinance/). - Other sources: - - AlphaVantage (https://www.alphavantage.co/documentation/) - - IEX Cloud (https://iexcloud.io/docs/api/) - - Eod Historical Data (https://eodhistoricaldata.com/financial-apis/) - - Please note that certain analytical features are exclusive to the specific source. - - To load a symbol from an exchange outside of the NYSE/NASDAQ default, use yFinance as the source and - add the corresponding exchange to the end of the symbol. i.e. `BNS.TO`. Note this may be possible with - other paid sources check their docs. - - BNS is a dual-listed stock, there are separate options chains and order books for each listing. - Opportunities for arbitrage may arise from momentary pricing discrepancies between listings - with a dynamic exchange rate as a second order opportunity in ForEx spreads. - - Find the full list of supported exchanges here: - https://help.yahoo.com/kb/exchanges-data-providers-yahoo-finance-sln2310.html - - Certain analytical features, such as VWAP, require the ticker to be loaded as intraday - using the `-i x` argument. When encountering this error, simply reload the symbol using - the interval argument. i.e. `load -t BNS -s YYYY-MM-DD -i 1 -p` loads one-minute intervals, - including Pre/After Market data, using the default source, yFinance. - - Certain features, such as the Prediction menu, require the symbol to be loaded as daily and not intraday. -

- -* **Parameters** - - symbol: str - Ticker to get data - start_date: str or datetime, optional - Start date to get data from with. - datetime or string format (YYYY-MM-DD) - interval: int - Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 - end_date: str or datetime, optional - End date to get data from with. - datetime or string format (YYYY-MM-DD) - prepost: bool - Pre and After hours data - source: str - Source of data extracted - iexrange: str - Timeframe to get IEX data. - weekly: bool - Flag to get weekly data - monthly: bool - Flag to get monthly data - verbose: bool - Display verbose information on what was the symbol that was loaded - -* **Returns** - - df_stock_candidate: pd.DataFrame - Dataframe of data diff --git a/website/content/SDK/stocks/options/_index.md b/website/content/SDK/stocks/options/_index.md deleted file mode 100644 index 7a61607a682..00000000000 --- a/website/content/SDK/stocks/options/_index.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Introduction to Options -keywords: "stocks, options, calls, puts, gamma, delta, iv, theta, rho, greeks, charm, vanna, vomma, derivatives, contracts, ^SPX, ^VIX, ^NDX, chains, oi, vol, volume, open, interest, expiration, dte, volatility, underlying" -excerpt: "This guide introduces the Stock Options module, within the context of the OpenBB SDK" -geekdocCollapseSection: true ---- -The Stock Options module of the OpenBB SDK wraps the functions of the Options [sub-menu](https://openbb-finance.github.io/OpenBBTerminal/terminal/stocks/options/) within the [OpenBB Terminal](https://openbb-finance.github.io/OpenBBTerminal/terminal/). This allows the user greater flexibility when researching and anlayzing options data. Start a Python script of Notebook file by importing the dependencies: - -```python -from openbb_terminal.sdk import openbb - -import pandas as pd -import numpy as np - -import matplotlib.pyplot as plt - -%matplotlib widget -``` - -## How to Use - -All functions within the Options module are printed with: `openbb.stocks.options` - -![Options Module Functions](https://user-images.githubusercontent.com/85772166/199891549-1331a65c-6251-4206-b77c-c64dfabe70f4.png "Options Module Functions") - -The [Unusual Options function](https://openbb-finance.github.io/OpenBBTerminal/terminal/stocks/options/unu/) returns a Tuple containing the DataFrame and a timestamp from when the list was last updated. - -```python -unusual_options,timestamp = openbb.stocks.options.unu() -unusual_options -``` - -![Unusual Options](https://user-images.githubusercontent.com/85772166/199891691-da3af87e-99c3-4d01-881f-62b6b0d3ae34.png "Unusual Options") - -Get up to ten years of historical put/call ratios (US equity options only), with the `PCR` function: - -```python -pcr_spy = openbb.stocks.options.pcr(symbol = 'SPY', start_date = '2012-11-03') -pcr_spy.rename(columns = {'PCR': 'Put/Call Ratio'}) -``` - -![openbb.stocks.options.pcr](https://user-images.githubusercontent.com/85772166/199892365-f0ece3fa-307f-41cd-9326-d515f1d8b716.png "openbb.stocks.options.pcr") - -The list of expiration dates is generated with: - -```python -openbb.stocks.options.option_expirations('SPY') -``` - -Get the raw DataFrame for an options chain from yFinance by using: - -```python -SPY221111 = openbb.stocks.options.chains_yf(symbol = 'SPY', expiry = '2022-11-11') - -SPY221111 -``` - -![openbb.stocks.options.chains_yf](https://user-images.githubusercontent.com/85772166/199900266-668af99d-ae72-4bca-9b40-14228b25279b.png "openbb.stocks.options.chains_yf") - -Getting all option chains for the underlying symbol as a single Pandas DataFrame requires a little bit of scripting prior to analysis. This will query Tradier as the data source: - -```python -from openbb_terminal.sdk import openbb -import pandas as pd -import numpy as np - -expirations = openbb.stocks.options.option_expirations(symbol = 'SPY') -options_df: pd.DataFrame = [] - -for expirations in expirations: - options_df.append(openbb.stocks.options.chains(symbol = 'SPY', expiry = expirations)) - -options_df = pd.concat(options_df) - -options_df.set_index(keys = 'symbol', inplace = True) - -options_df -``` - -Depending on the depth of options available, compiling the data may take upwards of thirty seconds. - -![DataFrame With all Expirations](https://user-images.githubusercontent.com/85772166/199893166-35ef062d-c16e-464d-a392-378ef4c6a1ee.png "DataFrame With all Expirations") diff --git a/website/content/SDK/stocks/options/chains/_index.rst b/website/content/SDK/stocks/options/chains/_index.rst deleted file mode 100644 index 99aa78acab5..00000000000 --- a/website/content/SDK/stocks/options/chains/_index.rst +++ /dev/null @@ -1,92 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.chains( - symbol: str, - expiry: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Display option chains [Source: Tradier]" -

- -* **Parameters** - - symbol : str - Ticker to get options for - expiry : str - Expiration date in the form of "YYYY-MM-DD" - chart: bool - Flag to display chart - - -* **Returns** - - chains: pd.DataFrame - Dataframe with options for the given Symbol and Expiration date - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.chains( - symbol: str, - expiry: str, - to_display: List[str] = None, - min_sp: float = -1, - max_sp: float = -1, - calls_only: bool = False, - puts_only: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display option chain -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Expiration date of option - to_display: List[str] - List of columns to display - min_sp: float - Min strike price to display - max_sp: float - Max strike price to display - calls_only: bool - Only display calls - puts_only: bool - Only display puts - export: str - Format to export file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/chains_yf/_index.rst b/website/content/SDK/stocks/options/chains_yf/_index.rst deleted file mode 100644 index c8b0136c5c1..00000000000 --- a/website/content/SDK/stocks/options/chains_yf/_index.rst +++ /dev/null @@ -1,97 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.chains_yf( - symbol: str, - expiry: str, - min_sp: float = -1, - max_sp: float = -1, - calls: bool = True, - puts: bool = True, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get full option chains with calculated greeks -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Expiration date for chain in format YYY-mm-dd - calls: bool - Flag to get calls - puts: bool - Flag to get puts - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - DataFrame of option chain. If both calls and puts - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.chains_yf( - symbol: str, - expiry: str, - min_sp: float = -1, - max_sp: float = -1, - calls_only: bool = False, - puts_only: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display option chains for given ticker and expiration -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Expiration for option chain - min_sp: float - Min strike - max_sp: float - Max strike - calls_only: bool - Flag to get calls only - puts_only: bool - Flag to get puts only - export: str - Format to export data - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/closing/_index.rst b/website/content/SDK/stocks/options/closing/_index.rst deleted file mode 100644 index a85a7fa8b10..00000000000 --- a/website/content/SDK/stocks/options/closing/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.closing( - symbol: str, - chart: bool = False, -) -> pandas.core.series.Series -{{< /highlight >}} - -.. raw:: html - -

- Get closing prices for a given ticker -

- -* **Parameters** - - symbol : str - The ticker symbol to get the price for - -* **Returns** - - price : List[float] - A list of closing prices for a ticker diff --git a/website/content/SDK/stocks/options/dividend/_index.rst b/website/content/SDK/stocks/options/dividend/_index.rst deleted file mode 100644 index e5b299090e6..00000000000 --- a/website/content/SDK/stocks/options/dividend/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.dividend( - symbol: str, - chart: bool = False, -) -> pandas.core.series.Series -{{< /highlight >}} - -.. raw:: html - -

- Gets option chain from yf for given ticker and expiration -

- -* **Parameters** - - symbol: str - Ticker symbol to get options for - -* **Returns** - - chains: yf.ticker.Dividends - Dividends diff --git a/website/content/SDK/stocks/options/dte/_index.rst b/website/content/SDK/stocks/options/dte/_index.rst deleted file mode 100644 index 8aa15887bf7..00000000000 --- a/website/content/SDK/stocks/options/dte/_index.rst +++ /dev/null @@ -1,24 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.dte( - date_value: str, - chart: bool = False, -) -> int -{{< /highlight >}} - -.. raw:: html - -

- Gets days to expiration from yfinance option dat -

diff --git a/website/content/SDK/stocks/options/generate_data/_index.rst b/website/content/SDK/stocks/options/generate_data/_index.rst deleted file mode 100644 index 688d7bd962e..00000000000 --- a/website/content/SDK/stocks/options/generate_data/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.generate_data( - current_price: float, - options: List[Dict[str, int]], - underlying: int, - chart: bool = False, -) -> Tuple[List[float], List[float], List[float]] -{{< /highlight >}} - -.. raw:: html - -

- Gets x values, and y values before and after premium -

diff --git a/website/content/SDK/stocks/options/grhist/_index.rst b/website/content/SDK/stocks/options/grhist/_index.rst deleted file mode 100644 index e6e1e724350..00000000000 --- a/website/content/SDK/stocks/options/grhist/_index.rst +++ /dev/null @@ -1,107 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.grhist( - symbol: str, - expiry: str, - strike: Union[str, float], - chain_id: str = '', - put: bool = False, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get histoical option greeks -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Option expiration date - strike: Union[str, float] - Strike price to look for - chain_id: str - OCC option symbol. Overwrites other inputs - put: bool - Is this a put option? - chart: bool - Flag to display chart - - -* **Returns** - - df: pd.DataFrame - Dataframe containing historical greeks - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.grhist( - symbol: str, - expiry: str, - strike: Union[float, str], - greek: str = 'Delta', - chain_id: str = '', - put: bool = False, - raw: bool = False, - limit: Union[int, str] = 20, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plots historical greeks for a given option. [Source: Syncretism] -

- -* **Parameters** - - symbol: str - Stock ticker - expiry: str - Expiration date - strike: Union[str, float] - Strike price to consider - greek: str - Greek variable to plot - chain_id: str - OCC option chain. Overwrites other variables - put: bool - Is this a put option? - raw: bool - Print to console - limit: int - Number of rows to show in raw - export: str - Format to export data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/hedge/_index.md b/website/content/SDK/stocks/options/hedge/_index.md deleted file mode 100644 index 923ac606e56..00000000000 --- a/website/content/SDK/stocks/options/hedge/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: hedge -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/options/hedge/add_hedge_option/_index.rst b/website/content/SDK/stocks/options/hedge/add_hedge_option/_index.rst deleted file mode 100644 index 602f54a96fa..00000000000 --- a/website/content/SDK/stocks/options/hedge/add_hedge_option/_index.rst +++ /dev/null @@ -1,99 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hedge.add_hedge_option( - price: float = 100, - implied_volatility: float = 20, - strike: float = 120, - days: float = 30, - sign: int = 1, - chart: bool = False, -) -> tuple -{{< /highlight >}} - -.. raw:: html - -

- Determine the delta, gamma and vega value of the portfolio and/or options. -

- -* **Parameters** - - price: float - The price. - implied_volatility: float - The implied volatility. - strike: float - The strike price. - days: float - The amount of days until expiration. Use annual notation thus a month would be 30 / 360. - sign: int - Whether you have a long (1) or short (-1) position - chart: bool - Flag to display chart - - -* **Returns** - - delta: float - gamma: float - portfolio: float - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.hedge.add_hedge_option( - price: float = 100, - implied_volatility: float = 20, - strike: float = 120, - days: float = 30, - sign: int = 1, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Determine the delta, gamma and vega value of the portfolio and/or options and show them. -

- -* **Parameters** - - price: float - The price. - implied_volatility: float - The implied volatility. - strike: float - The strike price. - days: float - The amount of days until expiration. Use annual notation thus a month would be 30 / 360. - sign: int - Whether you have a long (1) or short (-1) position - chart: bool - Flag to display chart - - -* **Returns** - - delta: float - gamma: float - vega: float diff --git a/website/content/SDK/stocks/options/hedge/calc_delta/_index.rst b/website/content/SDK/stocks/options/hedge/calc_delta/_index.rst deleted file mode 100644 index 6134231387b..00000000000 --- a/website/content/SDK/stocks/options/hedge/calc_delta/_index.rst +++ /dev/null @@ -1,53 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hedge.calc_delta( - asset_price: float = 100, - asset_volatility: float = 20, - strike_price: float = 120, - time_to_expiration: float = 30, - risk_free_rate: float = 0, - sign: int = 1, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- The first-order partial-derivative with respect to the underlying asset of the Black-Scholes - equation is known as delta. Delta refers to how the option value changes when there is a change in - the underlying asset price. Multiplying delta by a +-$1 change in the underlying asset, holding all other - parameters constant, will give you the new value of the option. Delta will be positive for long call and - short put positions, negative for short call and long put positions. -

- -* **Parameters** - - asset_price: int - The price. - asset_volatility: float - The implied volatility. - strike_price: float - The strike price. - time_to_expiration: float - The amount of days until expiration. Use annual notation thus a month would be 30 / 360. - risk_free_rate: float - The risk free rate. - sign: int - Whether you have a long (1) or short (-1) position - -* **Returns** - - delta: float - Returns the value for the delta. diff --git a/website/content/SDK/stocks/options/hedge/calc_gamma/_index.rst b/website/content/SDK/stocks/options/hedge/calc_gamma/_index.rst deleted file mode 100644 index 3be5a93fd33..00000000000 --- a/website/content/SDK/stocks/options/hedge/calc_gamma/_index.rst +++ /dev/null @@ -1,51 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hedge.calc_gamma( - asset_price: float = 100, - asset_volatility: float = 20, - strike_price: float = 120, - time_to_expiration: float = 30, - risk_free_rate: float = 0, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- The second-order partial-derivative with respect to the underlying asset of the Black-Scholes equation - is known as gamma. Gamma refers to how the option’s delta changes when there is a change in the underlying - asset price. Multiplying gamma by a +-$1 change in the underlying asset, holding all other parameters constant, - will give you the new value of the option’s delta. Essentially, gamma is telling us the rate of change of delta - given a +-1 change in the underlying asset price. Gamma is always positive for long positions and - negative for short positions. -

- -* **Parameters** - - asset_price: int - The price. - asset_volatility: float - The implied volatility. - strike_price: float - The strike price. - time_to_expiration: float - The amount of days until expiration. Use annual notation thus a month would be 30 / 360. - risk_free_rate: float - The risk free rate. - -* **Returns** - - gamma: float - Returns the value for the gamma. diff --git a/website/content/SDK/stocks/options/hedge/calc_hedge/_index.rst b/website/content/SDK/stocks/options/hedge/calc_hedge/_index.rst deleted file mode 100644 index c114afd4dfd..00000000000 --- a/website/content/SDK/stocks/options/hedge/calc_hedge/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hedge.calc_hedge( - portfolio_option_amount: float = 100, - side: str = 'Call', - greeks: dict = {'Portfolio': {'Delta': 1, 'Gamma': 9.1268e-05, 'Vega': 5.4661}, 'Option A': {'Delta': 1, 'Gamma': 9.1268e-05, 'Vega': 5.4661}, 'Option B': {'Delta': 1, 'Gamma': 9.1268e-05, 'Vega': 5.4661}}, sign: int = 1, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Determine the hedge position and the weights within each option and - underlying asset to hold a neutral portfolio -

- -* **Parameters** - - portfolio_option_amount: float - Number to show - side: str - Whether you have a Call or Put instrument - greeks: dict - Dictionary containing delta, gamma and vega values for the portfolio and option A and B. Structure is - as follows: {'Portfolio': {'Delta': VALUE, 'Gamma': VALUE, 'Vega': VALUE}} etc - sign: int - Whether you have a long (1) or short (-1) position - chart: bool - Flag to display chart - - -* **Returns** - - option A weight: float - option B weight: float - portfolio weight: float - is_singular: boolean - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.hedge.calc_hedge( - portfolio_option_amount: float = 100, - side: str = 'Call', - greeks: dict = {'Portfolio': {'Delta': 1, 'Gamma': 9.1268e-05, 'Vega': 5.4661}, 'Option A': {'Delta': 1, 'Gamma': 9.1268e-05, 'Vega': 5.4661}, 'Option B': {'Delta': 1, 'Gamma': 9.1268e-05, 'Vega': 5.4661}}, sign: int = 1, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Determine the hedge position and the weights within each option and - underlying asset to hold a neutral portfolio and show them -

- -* **Parameters** - - portfolio_option_amount: float - Number to show - side: str - Whether you have a Call or Put instrument - greeks: dict - Dictionary containing delta, gamma and vega values for the portfolio and option A and B. Structure is - as follows: {'Portfolio': {'Delta': VALUE, 'Gamma': VALUE, 'Vega': VALUE}} etc - sign: int - Whether you have a long (1) or short (-1) position - chart: bool - Flag to display chart - - -* **Returns** - - A table with the neutral portfolio weights. diff --git a/website/content/SDK/stocks/options/hedge/calc_vega/_index.rst b/website/content/SDK/stocks/options/hedge/calc_vega/_index.rst deleted file mode 100644 index 37016549d5c..00000000000 --- a/website/content/SDK/stocks/options/hedge/calc_vega/_index.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hedge.calc_vega( - asset_price: float = 100, - asset_volatility: float = 20, - strike_price: float = 120, - time_to_expiration: float = 30, - risk_free_rate: float = 0, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- The first-order partial-derivative with respect to the underlying asset volatility of - the Black-Scholes equation is known as vega. Vega refers to how the option value - changes when there is a change in the underlying asset volatility. Multiplying vega by - a +-1% change in the underlying asset volatility, holding all other parameters constant, will give - you the new value of the option. Vega will be positive for long positions and negative for short positions. -

- -* **Parameters** - - asset_price: int - The price. - asset_volatility: float - The implied volatility. - strike_price: float - The strike price. - time_to_expiration: float - The amount of days until expiration. Use annual notation thus a month would be 30 / 360. - risk_free_rate: float - The risk free rate. - -* **Returns** - - vega: float - Returns the value for the gamma. diff --git a/website/content/SDK/stocks/options/hist_ce/_index.rst b/website/content/SDK/stocks/options/hist_ce/_index.rst deleted file mode 100644 index 160af26d938..00000000000 --- a/website/content/SDK/stocks/options/hist_ce/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hist_ce( - symbol: str = 'GME', - date: str = '2021-02-05', - call: bool = True, - price: str = '90', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Historic prices for a specific option [chartexchange] -

- -* **Parameters** - - symbol : str - Ticker symbol to get historical data from - date : str - Date as a string YYYYMMDD - call : bool - Whether to show a call or a put - price : str - Strike price for a specific option - chart: bool - Flag to display chart - - -* **Returns** - - historical : pd.Dataframe - Historic information for an option - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.hist_ce( - symbol: str = 'GME', - expiry: str = '2021-02-05', - call: bool = True, - price: float = 90, - limit: int = 10, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Return raw stock data[chartexchange] -

- -* **Parameters** - - symbol : str - Ticker symbol for the given option - expiry : str - The expiry of expiration, format "YYYY-MM-DD", i.e. 2010-12-31. - call : bool - Whether the underlying asset should be a call or a put - price : float - The strike of the expiration - limit : int - Number of rows to show - export : str - Export data as CSV, JSON, XLSX - external_axes: Optional[List[plt.Axes]] - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/hist_tr/_index.rst b/website/content/SDK/stocks/options/hist_tr/_index.rst deleted file mode 100644 index 796d7b6edf3..00000000000 --- a/website/content/SDK/stocks/options/hist_tr/_index.rst +++ /dev/null @@ -1,102 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.hist_tr( - symbol: str, - expiry: str, - strike: float = 0, - put: bool = False, - chain_id: Optional[str] = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets historical option pricing. This inputs either ticker, expiration, strike or the OCC chain ID and processes - the request to tradier for historical premiums. -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Option expiration date - strike: int - Option strike price - put: bool - Is this a put option? - chain_id: Optional[str] - OCC chain ID - chart: bool - Flag to display chart - - -* **Returns** - - df_hist: pd.DataFrame - Dataframe of historical option prices - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.hist_tr( - symbol: str, - expiry: str, - strike: float = 0, - put: bool = False, - raw: bool = False, - chain_id: str = None, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot historical option prices -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Expiry date of option - strike: float - Option strike price - put: bool - Is this a put option? - raw: bool - Print raw data - chain_id: str - OCC option symbol - export: str - Format of export file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/info/_index.rst b/website/content/SDK/stocks/options/info/_index.rst deleted file mode 100644 index 3bcbe9ba0cd..00000000000 --- a/website/content/SDK/stocks/options/info/_index.rst +++ /dev/null @@ -1,71 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.info( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get info for a given ticker -

- -* **Parameters** - - symbol : str - The ticker symbol to get the price for - chart: bool - Flag to display chart - - -* **Returns** - - price : float - The info for a given ticker - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.info( - symbol: str, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Scrapes Barchart.com for the options information -

- -* **Parameters** - - symbol: str - Ticker symbol to get options info for - export: str - Format of export file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/last_price/_index.rst b/website/content/SDK/stocks/options/last_price/_index.rst deleted file mode 100644 index 3c3e09208c8..00000000000 --- a/website/content/SDK/stocks/options/last_price/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.last_price( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Makes api request for last price -

- -* **Parameters** - - symbol: str - Ticker symbol - -* **Returns** - - float: - Last price diff --git a/website/content/SDK/stocks/options/option_chain/_index.rst b/website/content/SDK/stocks/options/option_chain/_index.rst deleted file mode 100644 index 3b61c5de4fe..00000000000 --- a/website/content/SDK/stocks/options/option_chain/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.option_chain( - symbol: str, - expiry: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Gets option chain from yf for given ticker and expiration -

- -* **Parameters** - - symbol: str - Ticker symbol to get options for - expiry: str - Date to get options for. YYYY-MM-DD - -* **Returns** - - chains: yf.ticker.Options - Options chain diff --git a/website/content/SDK/stocks/options/option_expirations/_index.rst b/website/content/SDK/stocks/options/option_expirations/_index.rst deleted file mode 100644 index 1c919c7a220..00000000000 --- a/website/content/SDK/stocks/options/option_expirations/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.option_expirations( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get available expiration dates for given ticker -

- -* **Parameters** - - symbol: str - Ticker symbol to get expirations for - -* **Returns** - - dates: List[str] - List of of available expirations diff --git a/website/content/SDK/stocks/options/pcr/_index.rst b/website/content/SDK/stocks/options/pcr/_index.rst deleted file mode 100644 index 1c8d7a4abc2..00000000000 --- a/website/content/SDK/stocks/options/pcr/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.pcr( - symbol: str, - window: int = 30, - start_date: str = None, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets put call ratio over last time window [Source: AlphaQuery.com] -

- -* **Parameters** - - symbol: str - Ticker symbol to look for - window: int, optional - Window to consider, by default 30 - start_date: str, optional - Start date to plot (e.g., 2021-10-01), by default last 366 days - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.pcr( - symbol: str, - window: int = 30, - start_date: str = '2021-11-13', - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display put call ratio [Source: AlphaQuery.com] -

- -* **Parameters** - - symbol : str - Stock ticker symbol - window : int, optional - Window length to look at, by default 30 - start_date : str, optional - Starting date for data, by default (datetime.now() - timedelta(days=366)).strftime("%Y-%m-%d") - export : str, optional - Format to export data, by default "" - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/price/_index.rst b/website/content/SDK/stocks/options/price/_index.rst deleted file mode 100644 index 3cfbbaec6df..00000000000 --- a/website/content/SDK/stocks/options/price/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.price( - symbol: str, - chart: bool = False, -) -> float -{{< /highlight >}} - -.. raw:: html - -

- Get current price for a given ticker -

- -* **Parameters** - - symbol : str - The ticker symbol to get the price for - -* **Returns** - - price : float - The price of the ticker diff --git a/website/content/SDK/stocks/options/process_chains/_index.rst b/website/content/SDK/stocks/options/process_chains/_index.rst deleted file mode 100644 index bfdb568a1d9..00000000000 --- a/website/content/SDK/stocks/options/process_chains/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.process_chains( - response: requests.models.Response, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Function to take in the requests.get and return a DataFrame -

- -* **Parameters** - - response: requests.models.Response - This is the response from tradier api. - -* **Returns** - - opt_chain: pd.DataFrame - Dataframe with all available options diff --git a/website/content/SDK/stocks/options/screen/_index.md b/website/content/SDK/stocks/options/screen/_index.md deleted file mode 100644 index 6c6c547d60d..00000000000 --- a/website/content/SDK/stocks/options/screen/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: screen -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/options/screen/check_presets/_index.rst b/website/content/SDK/stocks/options/screen/check_presets/_index.rst deleted file mode 100644 index ba6271e654f..00000000000 --- a/website/content/SDK/stocks/options/screen/check_presets/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.screen.check_presets( - preset_dict: dict, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Checks option screener preset values -

- -* **Parameters** - - preset_dict: dict - Defined presets from configparser - -* **Returns** - - error: str - String of all errors accumulated diff --git a/website/content/SDK/stocks/options/screen/screener_output/_index.rst b/website/content/SDK/stocks/options/screen/screener_output/_index.rst deleted file mode 100644 index c54d29144aa..00000000000 --- a/website/content/SDK/stocks/options/screen/screener_output/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.screen.screener_output( - preset: str, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, str] -{{< /highlight >}} - -.. raw:: html - -

- Screen options based on preset filters -

- -* **Parameters** - - preset: str - Chosen preset - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame: - DataFrame with screener data, or empty if errors - str: - String containing error message if supplied - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.screen.screener_output( - preset: str, - limit: int = 20, - export: str = '', - chart: bool = False, -) -> List -{{< /highlight >}} - -.. raw:: html - -

- Print the output of screener -

- -* **Parameters** - - preset: str - Chosen preset - limit: int - Number of randomly sorted rows to display - export: str - Format for export file - chart: bool - Flag to display chart - - -* **Returns** - - List - List of tickers screened diff --git a/website/content/SDK/stocks/options/unu/_index.rst b/website/content/SDK/stocks/options/unu/_index.rst deleted file mode 100644 index 3a6efcec8b0..00000000000 --- a/website/content/SDK/stocks/options/unu/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.unu( - limit: int = 100, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get unusual option activity from fdscanner.com -

- -* **Parameters** - - limit: int - Number to show - chart: bool - Flag to display chart - - -* **Returns** - - df: pd.DataFrame - Dataframe containing options information - last_updated: pd.Timestamp - Timestamp indicated when data was updated from website - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.unu( - limit: int = 20, - sortby: str = 'Vol/OI', ascend: bool = False, - calls_only: bool = False, - puts_only: bool = False, - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Displays the unusual options table -

- -* **Parameters** - - limit: int - Number of rows to show - sortby: str - Data column to sort on - ascend: bool - Whether to sort in ascend order - calls_only : bool - Flag to only show calls - puts_only : bool - Flag to show puts only - export: str - File type to export - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/voi_yf/_index.rst b/website/content/SDK/stocks/options/voi_yf/_index.rst deleted file mode 100644 index 0ae21598cc4..00000000000 --- a/website/content/SDK/stocks/options/voi_yf/_index.rst +++ /dev/null @@ -1,84 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.voi_yf( - symbol: str, - expiry: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Plot volume and open interest -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Option expiration - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.voi_yf( - symbol: str, - expiry: str, - min_sp: float = -1, - max_sp: float = -1, - min_vol: float = -1, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot volume and open interest -

- -* **Parameters** - - symbol: str - Stock ticker symbol - expiry: str - Option expiration - min_sp: float - Min strike price - max_sp: float - Max strike price - min_vol: float - Min volume to consider - export: str - Format for exporting data - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/vol_yf/_index.rst b/website/content/SDK/stocks/options/vol_yf/_index.rst deleted file mode 100644 index 74d338836e5..00000000000 --- a/website/content/SDK/stocks/options/vol_yf/_index.rst +++ /dev/null @@ -1,87 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.vol_yf( - symbol: str, - expiry: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Plot volume -

- -* **Parameters** - - symbol: str - Ticker symbol - expiry: str - expiration date for options - chart: bool - Flag to display chart - - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.vol_yf( - symbol: str, - expiry: str, - min_sp: float = -1, - max_sp: float = -1, - calls_only: bool = False, - puts_only: bool = False, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Plot volume -

- -* **Parameters** - - symbol: str - Ticker symbol - expiry: str - expiration date for options - min_sp: float - Min strike to consider - max_sp: float - Max strike to consider - calls_only: bool - Show calls only - puts_only: bool - Show puts only - export: str - Format to export file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/vsurf/_index.rst b/website/content/SDK/stocks/options/vsurf/_index.rst deleted file mode 100644 index 343d091c772..00000000000 --- a/website/content/SDK/stocks/options/vsurf/_index.rst +++ /dev/null @@ -1,77 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.vsurf( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets IV surface for calls and puts for ticker -

- -* **Parameters** - - symbol: str - Stock ticker symbol to get - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of DTE, Strike and IV - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.options.vsurf( - symbol: str, - export: str = '', - z: str = 'IV', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display vol surface -

- -* **Parameters** - - symbol : str - Ticker symbol to get surface for - export : str - Format to export data - z : str - The variable for the Z axis - external_axes: Optional[List[plt.Axes]] - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/options/x_values/_index.rst b/website/content/SDK/stocks/options/x_values/_index.rst deleted file mode 100644 index 1e246cf5053..00000000000 --- a/website/content/SDK/stocks/options/x_values/_index.rst +++ /dev/null @@ -1,25 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.x_values( - current_price: float, - options: List[Dict[str, int]], - chart: bool = False, -) -> List[float] -{{< /highlight >}} - -.. raw:: html - -

- Generates different price values that need to be teste -

diff --git a/website/content/SDK/stocks/options/y_values/_index.rst b/website/content/SDK/stocks/options/y_values/_index.rst deleted file mode 100644 index a236e1987a3..00000000000 --- a/website/content/SDK/stocks/options/y_values/_index.rst +++ /dev/null @@ -1,27 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.options.y_values( - base: float, - price: float, - options: List[Dict[Any, Any]], - underlying: int, - chart: bool = False, -) -> float -{{< /highlight >}} - -.. raw:: html - -

- Generates y values for corresponding x value -

diff --git a/website/content/SDK/stocks/process_candle/_index.rst b/website/content/SDK/stocks/process_candle/_index.rst deleted file mode 100644 index 0ed5eaa11d0..00000000000 --- a/website/content/SDK/stocks/process_candle/_index.rst +++ /dev/null @@ -1,35 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.process_candle( - data: pandas.core.frame.DataFrame, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Process DataFrame into candle style plot. -

- -* **Parameters** - - data : DataFrame - Stock dataframe. - -* **Returns** - - DataFrame - A Panda's data frame with columns Open, High, Low, Close, Adj Close, Volume, - date_id, OC-High, OC-Low. diff --git a/website/content/SDK/stocks/qa/_index.md b/website/content/SDK/stocks/qa/_index.md deleted file mode 100644 index a2e8e36a06a..00000000000 --- a/website/content/SDK/stocks/qa/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: qa -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/qa/capm_information/_index.rst b/website/content/SDK/stocks/qa/capm_information/_index.rst deleted file mode 100644 index 31474a67e6f..00000000000 --- a/website/content/SDK/stocks/qa/capm_information/_index.rst +++ /dev/null @@ -1,36 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.qa.capm_information( - symbol: str, - chart: bool = False, -) -> Tuple[float, float] -{{< /highlight >}} - -.. raw:: html - -

- Provides information that relates to the CAPM model -

- -* **Parameters** - - symbol : str - A ticker symbol in string form - -* **Returns** - - beta : float - The beta for a stock - sys : float - The systematic risk for a stock diff --git a/website/content/SDK/stocks/qa/fama_raw/_index.rst b/website/content/SDK/stocks/qa/fama_raw/_index.rst deleted file mode 100644 index 555675788e8..00000000000 --- a/website/content/SDK/stocks/qa/fama_raw/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.qa.fama_raw() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Gets base Fama French data to calculate risk -

- -* **Returns** - - fama : pd.DataFrame - A data with fama french model information diff --git a/website/content/SDK/stocks/qa/historical_5/_index.rst b/website/content/SDK/stocks/qa/historical_5/_index.rst deleted file mode 100644 index 6d5355ca8e1..00000000000 --- a/website/content/SDK/stocks/qa/historical_5/_index.rst +++ /dev/null @@ -1,34 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.qa.historical_5( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get 5 year monthly historical performance for a ticker with dividends filtered -

- -* **Parameters** - - symbol : str - A ticker symbol in string form - -* **Returns** - - data : pd.DataFrame - A dataframe with historical information diff --git a/website/content/SDK/stocks/quote/_index.rst b/website/content/SDK/stocks/quote/_index.rst deleted file mode 100644 index 437ca365448..00000000000 --- a/website/content/SDK/stocks/quote/_index.rst +++ /dev/null @@ -1,29 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.quote( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Ticker quote. [Source: YahooFinance] -

- -* **Parameters** - - symbol : str - Ticker diff --git a/website/content/SDK/stocks/screener/_index.md b/website/content/SDK/stocks/screener/_index.md deleted file mode 100644 index c8ebb5054e1..00000000000 --- a/website/content/SDK/stocks/screener/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: screener -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/screener/historical/_index.rst b/website/content/SDK/stocks/screener/historical/_index.rst deleted file mode 100644 index bd2c8c1b332..00000000000 --- a/website/content/SDK/stocks/screener/historical/_index.rst +++ /dev/null @@ -1,107 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.screener.historical( - preset_loaded: str = 'top_gainers', - limit: int = 10, - start_date: str = '2022-05-18', - type_candle: str = 'a', - normalize: bool = True, - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, List[str], bool] -{{< /highlight >}} - -.. raw:: html - -

- View historical price of stocks that meet preset -

- -* **Parameters** - - preset_loaded: str - Preset loaded to filter for tickers - limit: int - Number of stocks to display - start_date: str - Start date to display historical data, in YYYY-MM-DD format - type_candle: str - Type of candle to display - normalize : bool - Boolean to normalize all stock prices using MinMax - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of the screener - list[str] - List of stocks - bool - Whether some random stock selection due to limitations - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.screener.historical( - preset_loaded: str = 'top_gainers', - limit: int = 10, - start_date: str = '2022-05-18', - type_candle: str = 'a', - normalize: bool = True, - export: str = '', - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- View historical price of stocks that meet preset -

- -* **Parameters** - - preset_loaded: str - Preset loaded to filter for tickers - limit: int - Number of stocks to display - start_date: str - Start date to display historical data, in YYYY-MM-DD format - type_candle: str - Type of candle to display - normalize : bool - Boolean to normalize all stock prices using MinMax - export : str - Export dataframe data to csv,json,xlsx file - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - - -* **Returns** - - list[str] - List of stocks diff --git a/website/content/SDK/stocks/screener/screener_data/_index.rst b/website/content/SDK/stocks/screener/screener_data/_index.rst deleted file mode 100644 index ae2b3f79d6d..00000000000 --- a/website/content/SDK/stocks/screener/screener_data/_index.rst +++ /dev/null @@ -1,97 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.screener.screener_data( - preset_loaded: str = 'top_gainers', - data_type: str = 'overview', - limit: int = 10, - ascend: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Screener Overview -

- -* **Parameters** - - preset_loaded : str - Loaded preset filter - data_type : str - Data type between: overview, valuation, financial, ownership, performance, technical - limit : int - Limit of stocks filtered with presets to print - ascend : bool - Ascended order of stocks filtered to print - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe with loaded filtered stocks - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.screener.screener_data( - loaded_preset: str = 'top_gainers', - data_type: str = 'overview', - limit: int = 10, - ascend: bool = False, - sortby: str = '', - export: str = '', - chart: bool = False, -) -> List[str] -{{< /highlight >}} - -.. raw:: html - -

- Screener one of the following: overview, valuation, financial, ownership, performance, technical. -

- -* **Parameters** - - loaded_preset: str - Preset loaded to filter for tickers - data_type : str - Data type string between: overview, valuation, financial, ownership, performance, technical - limit : int - Limit of stocks to display - ascend : bool - Order of table to ascend or descend - sortby: str - Column to sort table by - export : str - Export dataframe data to csv,json,xlsx file - chart: bool - Flag to display chart - - -* **Returns** - - List[str] - List of stocks that meet preset criteria diff --git a/website/content/SDK/stocks/search/_index.rst b/website/content/SDK/stocks/search/_index.rst deleted file mode 100644 index 56c5d7c21ca..00000000000 --- a/website/content/SDK/stocks/search/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.search( - query: str = '', - country: str = '', - sector: str = '', - industry: str = '', - exchange_country: str = '', - limit: int = 0, - export: str = '', - chart: bool = False, -) -> None -{{< /highlight >}} - -.. raw:: html - -

- Search selected query for tickers. -

- -* **Parameters** - - query : str - The search term used to find company tickers - country: str - Search by country to find stocks matching the criteria - sector : str - Search by sector to find stocks matching the criteria - industry : str - Search by industry to find stocks matching the criteria - exchange_country: str - Search by exchange country to find stock matching - limit : int - The limit of companies shown. - export : str - Export data diff --git a/website/content/SDK/stocks/sia/_index.md b/website/content/SDK/stocks/sia/_index.md deleted file mode 100644 index d2775201c5d..00000000000 --- a/website/content/SDK/stocks/sia/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: sia -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/sia/countries/_index.rst b/website/content/SDK/stocks/sia/countries/_index.rst deleted file mode 100644 index 8f5c7787336..00000000000 --- a/website/content/SDK/stocks/sia/countries/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.countries( - industry: str = '', - sector: str = '', - chart: bool = False, -) -> list -{{< /highlight >}} - -.. raw:: html - -

- Get all countries in Yahoo Finance data based on sector or industry. [Source: Finance Database] -

- -* **Parameters** - - industry : str - Filter retrieved countries by industry - sector : str - Filter retrieved countries by sector - -* **Returns** - - list - List of possible countries diff --git a/website/content/SDK/stocks/sia/cpci/_index.rst b/website/content/SDK/stocks/sia/cpci/_index.rst deleted file mode 100644 index d10edc871de..00000000000 --- a/website/content/SDK/stocks/sia/cpci/_index.rst +++ /dev/null @@ -1,94 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.cpci( - industry: str = 'Internet Content & Information', mktcap: str = 'Large', - exclude_exchanges: bool = True, - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Get number of companies per country in a specific industry (and specific market cap). - [Source: Finance Database] -

- -* **Parameters** - - industry: str - Select industry to get number of companies by each country - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - chart: bool - Flag to display chart - - -* **Returns** - - dict - Dictionary of countries and number of companies in a specific sector - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.sia.cpci( - industry: str = 'Internet Content & Information', mktcap: str = 'Large', - exclude_exchanges: bool = True, - export: str = '', - raw: bool = False, - max_countries_to_display: int = 15, - min_pct_to_display_country: float = 0.015, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display number of companies per country in a specific industry. [Source: Finance Database] -

- -* **Parameters** - - industry: str - Select industry to get number of companies by each country - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - export: str - Format to export data as - raw: bool - Output all raw data - max_countries_to_display: int - Maximum number of countries to display - min_pct_to_display_country: float - Minimum percentage to display country - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/sia/cpcs/_index.rst b/website/content/SDK/stocks/sia/cpcs/_index.rst deleted file mode 100644 index 8d2d2b62ccc..00000000000 --- a/website/content/SDK/stocks/sia/cpcs/_index.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.cpcs( - sector: str = 'Technology', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Get number of companies per country in a specific sector (and specific market cap). - [Source: Finance Database] -

- -* **Parameters** - - sector: str - Select sector to get number of companies by each country - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - chart: bool - Flag to display chart - - -* **Returns** - - dict - Dictionary of countries and number of companies in a specific sector - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.sia.cpcs( - sector: str = 'Technology', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - export: str = '', - raw: bool = False, - max_countries_to_display: int = 15, - min_pct_to_display_country: float = 0.015, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display number of companies per country in a specific sector. [Source: Finance Database] -

- -* **Parameters** - - sector: str - Select sector to get number of companies by each country - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - export: str - Format to export data as - raw: bool - Output all raw data - max_countries_to_display: int - Maximum number of countries to display - min_pct_to_display_country: float - Minimum percentage to display country - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/sia/cpic/_index.rst b/website/content/SDK/stocks/sia/cpic/_index.rst deleted file mode 100644 index e1791835e0c..00000000000 --- a/website/content/SDK/stocks/sia/cpic/_index.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.cpic( - country: str = 'United States', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get number of companies per industry in a specific country (and specific market cap). - [Source: Finance Database] -

- -* **Parameters** - - country: str - Select country to get number of companies by each industry - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - chart: bool - Flag to display chart - - -* **Returns** - - dict - Dictionary of industries and number of companies in a specific country - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.sia.cpic( - country: str = 'United States', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - export: str = '', - raw: bool = False, - max_industries_to_display: int = 15, - min_pct_to_display_industry: float = 0.015, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display number of companies per industry in a specific country. [Source: Finance Database] -

- -* **Parameters** - - country: str - Select country to get number of companies by each industry - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - export: str - Format to export data as - raw: bool - Output all raw data - max_industries_to_display: int - Maximum number of industries to display - min_pct_to_display_industry: float - Minimum percentage to display industry - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/sia/cpis/_index.rst b/website/content/SDK/stocks/sia/cpis/_index.rst deleted file mode 100644 index bdd18c23535..00000000000 --- a/website/content/SDK/stocks/sia/cpis/_index.rst +++ /dev/null @@ -1,96 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.cpis( - sector: str = 'Technology', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Get number of companies per industry in a specific sector (and specific market cap). - [Source: Finance Database] -

- -* **Parameters** - - sector: str - Select sector to get number of companies by each industry - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - chart: bool - Flag to display chart - - -* **Returns** - - dict - Dictionary of industries and number of companies in a specific sector - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.sia.cpis( - sector: str = 'Technology', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - export: str = '', - raw: bool = False, - max_industries_to_display: int = 15, - min_pct_to_display_industry: float = 0.015, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display number of companies per industry in a specific sector. [Source: Finance Database] -

- -* **Parameters** - - sector: str - Select sector to get number of companies by each industry - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - export: str - Format to export data as - raw: bool - Output all raw data - max_industries_to_display: int - Maximum number of industries to display - min_pct_to_display_industry: float - Minimum percentage to display industry - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/sia/cps/_index.rst b/website/content/SDK/stocks/sia/cps/_index.rst deleted file mode 100644 index 2f942601f05..00000000000 --- a/website/content/SDK/stocks/sia/cps/_index.rst +++ /dev/null @@ -1,95 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.cps( - country: str = 'United States', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - chart: bool = False, -) -> dict -{{< /highlight >}} - -.. raw:: html - -

- Get number of companies per sector in a specific country (and specific market cap). [Source: Finance Database] -

- -* **Parameters** - - country: str - Select country to get number of companies by each sector - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - chart: bool - Flag to display chart - - -* **Returns** - - dict - Dictionary of sectors and number of companies in a specific country - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.sia.cps( - country: str = 'United States', - mktcap: str = 'Large', - exclude_exchanges: bool = True, - export: str = '', - raw: bool = False, - max_sectors_to_display: int = 15, - min_pct_to_display_sector: float = 0.015, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display number of companies per sector in a specific country (and market cap). [Source: Finance Database] -

- -* **Parameters** - - country: str - Select country to get number of companies by each sector - mktcap: str - Select market cap of companies to consider from Small, Mid and Large - exclude_exchanges : bool - Exclude international exchanges - export: str - Format to export data as - raw: bool - Output all raw data - max_sectors_to_display: int - Maximum number of sectors to display - min_pct_to_display_sector: float - Minimum percentage to display sector - external_axes : Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/sia/filter_stocks/_index.rst b/website/content/SDK/stocks/sia/filter_stocks/_index.rst deleted file mode 100644 index ad36f152d19..00000000000 --- a/website/content/SDK/stocks/sia/filter_stocks/_index.rst +++ /dev/null @@ -1,47 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.filter_stocks( - country: str = None, - sector: str = None, - industry: str = None, - marketcap: str = '', - exclude_exchanges: bool = True, - chart: bool = False, -) -> list -{{< /highlight >}} - -.. raw:: html - -

- Filter stocks based on country, sector, industry, market cap and exclude exchanges. - [Source: Finance Database] -

- -* **Parameters** - - country: str - Search by country to find stocks matching the criteria. - sector: str - Search by sector to find stocks matching the criteria. - industry: str - Search by industry to find stocks matching the criteria. - marketcap: str - Select stocks based on the market cap. - exclude_exchanges: bool - When you wish to include different exchanges use this boolean. - -* **Returns** - - list - List of filtered stocks diff --git a/website/content/SDK/stocks/sia/industries/_index.rst b/website/content/SDK/stocks/sia/industries/_index.rst deleted file mode 100644 index b6560edca0f..00000000000 --- a/website/content/SDK/stocks/sia/industries/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.industries( - country: str = '', - sector: str = '', - chart: bool = False, -) -> list -{{< /highlight >}} - -.. raw:: html - -

- Get all industries in Yahoo Finance data based on country or sector. [Source: Finance Database] -

- -* **Parameters** - - country : str - Filter retrieved industries by country - sector : str - Filter retrieved industries by sector - -* **Returns** - - list - List of possible industries diff --git a/website/content/SDK/stocks/sia/maketcap/_index.rst b/website/content/SDK/stocks/sia/maketcap/_index.rst deleted file mode 100644 index 951b8fcd25a..00000000000 --- a/website/content/SDK/stocks/sia/maketcap/_index.rst +++ /dev/null @@ -1,26 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.maketcap() -> list -{{< /highlight >}} - -.. raw:: html - -

- Get all market cap division in Yahoo Finance data. [Source: Finance Database] -

- -* **Returns** - - list - List of possible market caps diff --git a/website/content/SDK/stocks/sia/sectors/_index.rst b/website/content/SDK/stocks/sia/sectors/_index.rst deleted file mode 100644 index b2d359de0c1..00000000000 --- a/website/content/SDK/stocks/sia/sectors/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.sectors( - industry: str = '', - country: str = '', - chart: bool = False, -) -> list -{{< /highlight >}} - -.. raw:: html - -

- Get all sectors in Yahoo Finance data based on country or industry. [Source: Finance Database] -

- -* **Parameters** - - industry : str - Filter retrieved sectors by industry - country : str - Filter retrieved sectors by country - -* **Returns** - - list - List of possible sectors diff --git a/website/content/SDK/stocks/sia/stocks_data/_index.rst b/website/content/SDK/stocks/sia/stocks_data/_index.rst deleted file mode 100644 index ab61907692d..00000000000 --- a/website/content/SDK/stocks/sia/stocks_data/_index.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.sia.stocks_data( - symbols: List[str] = None, - finance_key: str = 'ncf', - stocks_data: dict = None, - period: str = 'annual', - symbol: str = 'USD', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Get stocks data based on a list of stocks and the finance key. The function searches for the - correct financial statement automatically. [Source: StockAnalysis] -

- -* **Parameters** - - symbols: list - A list of tickers that will be used to collect data for. - finance_key: str - The finance key used to search within the SA_KEYS for the correct name of item - on the financial statement - stocks_data : dict - A dictionary that is empty on initialisation but filled once data is collected - for the first time. - period : str - Whether you want annually, quarterly or trailing financial statements. - symbol : str - Choose in what currency you wish to convert each company's financial statement. - Default is USD (US Dollars). - -* **Returns** - - dict - Dictionary of filtered stocks data separated by financial statement diff --git a/website/content/SDK/stocks/ta/_index.md b/website/content/SDK/stocks/ta/_index.md deleted file mode 100644 index 952ad926b99..00000000000 --- a/website/content/SDK/stocks/ta/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: ta -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/ta/recom/_index.rst b/website/content/SDK/stocks/ta/recom/_index.rst deleted file mode 100644 index 6b61c14a8ec..00000000000 --- a/website/content/SDK/stocks/ta/recom/_index.rst +++ /dev/null @@ -1,89 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ta.recom( - symbol: str, - screener: str = 'america', - exchange: str = '', - interval: str = '', - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get tradingview recommendation based on technical indicators -

- -* **Parameters** - - symbol : str - Ticker symbol to get the recommendation from tradingview based on technical indicators - screener : str - Screener based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html - exchange: str - Exchange based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html - interval: str - Interval time to check technical indicators and correspondent recommendation - chart: bool - Flag to display chart - - -* **Returns** - - df_recommendation: pd.DataFrame - Dataframe of tradingview recommendations based on technical indicators - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ta.recom( - symbol: str, - screener: str = 'america', - exchange: str = '', - interval: str = '', - export: str = '', - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print tradingview recommendation based on technical indicators -

- -* **Parameters** - - symbol : str - Ticker symbol to get tradingview recommendation based on technical indicators - screener : str - Screener based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html - exchange: str - Exchange based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html - interval: str - Interval time to check technical indicators and correspondent recommendation - export: str - Format of export file - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ta/rsp/_index.rst b/website/content/SDK/stocks/ta/rsp/_index.rst deleted file mode 100644 index 1f25474e088..00000000000 --- a/website/content/SDK/stocks/ta/rsp/_index.rst +++ /dev/null @@ -1,81 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ta.rsp( - s_ticker: str = '', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Relative strength percentile [Source: https://github.com/skyte/relative-strength] - Currently takes from https://github.com/soggyomelette/rs-log in order to get desired output -

- -* **Parameters** - - s_ticker : str - Stock Ticker - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Dataframe of stock percentile - pd.Dataframe - Dataframe of industry percentile - pd.Dataframe - Raw stock dataframe for export - pd.Dataframe - Raw industry dataframe for export - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ta.rsp( - s_ticker: str = '', - export: str = '', - tickers_show: bool = False, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display Relative Strength Percentile [Source: https://github.com/skyte/relative-strength] -

- -* **Parameters** - - s_ticker : str - Stock ticker - export : str - Format of export file - tickers_show : bool - Boolean to check if tickers in the same industry as the stock should be shown - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ta/summary/_index.rst b/website/content/SDK/stocks/ta/summary/_index.rst deleted file mode 100644 index 4cb11319ad3..00000000000 --- a/website/content/SDK/stocks/ta/summary/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ta.summary( - symbol: str, - chart: bool = False, -) -> str -{{< /highlight >}} - -.. raw:: html - -

- Get technical summary report provided by FinBrain's API -

- -* **Parameters** - - symbol : str - Ticker symbol to get the technical summary - chart: bool - Flag to display chart - - -* **Returns** - - report:str - technical summary report - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ta.summary( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Print technical summary report provided by FinBrain's API -

- -* **Parameters** - - symbol: str - Ticker symbol to get the technical summary - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/ta/view/_index.rst b/website/content/SDK/stocks/ta/view/_index.rst deleted file mode 100644 index ebdac7627f5..00000000000 --- a/website/content/SDK/stocks/ta/view/_index.rst +++ /dev/null @@ -1,71 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.ta.view( - symbol: str, - chart: bool = False, -) -> bytes -{{< /highlight >}} - -.. raw:: html - -

- Get finviz image for given ticker -

- -* **Parameters** - - symbol: str - Ticker symbol - chart: bool - Flag to display chart - - -* **Returns** - - bytes - Image in byte format - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.ta.view( - symbol: str, - external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- View finviz image for ticker -

- -* **Parameters** - - symbol: str - Stock ticker symbol - external_axes: Optional[List[plt.Axes]], optional - External axes (1 axis is expected in the list), by default None - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/th/_index.md b/website/content/SDK/stocks/th/_index.md deleted file mode 100644 index b63716e9bea..00000000000 --- a/website/content/SDK/stocks/th/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: th -keywords: "" -excerpt: "" -geekdocCollapseSection: true ---- diff --git a/website/content/SDK/stocks/th/all/_index.rst b/website/content/SDK/stocks/th/all/_index.rst deleted file mode 100644 index 83cd68a4838..00000000000 --- a/website/content/SDK/stocks/th/all/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.th.all() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get all exchanges. - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - All available exchanges - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.th.all() -{{< /highlight >}} - -.. raw:: html - -

- Display all exchanges. - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/th/check_if_open/_index.rst b/website/content/SDK/stocks/th/check_if_open/_index.rst deleted file mode 100644 index b1e42ac72f4..00000000000 --- a/website/content/SDK/stocks/th/check_if_open/_index.rst +++ /dev/null @@ -1,37 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.th.check_if_open( - bursa: pandas.core.frame.DataFrame, - exchange: str, - chart: bool = False, -) -> bool -{{< /highlight >}} - -.. raw:: html - -

- Check if market open helper function -

- -* **Parameters** - - bursa : pd.DataFrame - pd.DataFrame of all exchanges - exchange : str - bursa pd.DataFrame index value for exchange - -* **Returns** - - bool - If market is open diff --git a/website/content/SDK/stocks/th/closed/_index.rst b/website/content/SDK/stocks/th/closed/_index.rst deleted file mode 100644 index 91dc279556f..00000000000 --- a/website/content/SDK/stocks/th/closed/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.th.closed() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get closed exchanges. - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Currently closed exchanges - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.th.closed() -{{< /highlight >}} - -.. raw:: html - -

- Display closed exchanges. - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/th/exchange/_index.rst b/website/content/SDK/stocks/th/exchange/_index.rst deleted file mode 100644 index 04fea3ed0ec..00000000000 --- a/website/content/SDK/stocks/th/exchange/_index.rst +++ /dev/null @@ -1,68 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.th.exchange( - symbol: str, - chart: bool = False, -) -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get current exchange open hours. -

- -* **Parameters** - - symbol : str - Exchange symbol - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Exchange info - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.th.exchange( - symbol: str, - chart: bool = False, -) -{{< /highlight >}} - -.. raw:: html - -

- Display current exchange trading hours. -

- -* **Parameters** - - symbol : str - Exchange symbol - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/th/open/_index.rst b/website/content/SDK/stocks/th/open/_index.rst deleted file mode 100644 index a4c38836f90..00000000000 --- a/website/content/SDK/stocks/th/open/_index.rst +++ /dev/null @@ -1,66 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -To obtain charts, make sure to add :python:`chart = True` as the last parameter. - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.th.open() -> pandas.core.frame.DataFrame -{{< /highlight >}} - -.. raw:: html - -

- Get open exchanges. - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - - -* **Returns** - - pd.DataFrame - Currently open exchanges - -| - -.. raw:: html - -

- > Getting charts -

- -{{< highlight python >}} -stocks.th.open() -{{< /highlight >}} - -.. raw:: html - -

- Display open exchanges. - - Parameters - ---------- -

- -* **Parameters** - - - chart: bool - Flag to display chart - diff --git a/website/content/SDK/stocks/tob/_index.rst b/website/content/SDK/stocks/tob/_index.rst deleted file mode 100644 index f1e6837f02b..00000000000 --- a/website/content/SDK/stocks/tob/_index.rst +++ /dev/null @@ -1,39 +0,0 @@ -.. role:: python(code) - :language: python - :class: highlight - -| - -.. raw:: html - -

- > Getting data -

- -{{< highlight python >}} -stocks.tob( - symbol: str, - exchange: str = 'BZX', - chart: bool = False, -) -> Tuple[pandas.core.frame.DataFrame, pandas.core.frame.DataFrame] -{{< /highlight >}} - -.. raw:: html - -

- Get top of book bid and ask for ticker on exchange [CBOE.com] -

- -* **Parameters** - - symbol: str - Ticker to get - exchange: str - Exchange to look at. Can be `BZX`,`EDGX`, `BYX`, `EDGA` - -* **Returns** - - pd.DatatFrame - Dataframe of Bids - pd.DataFrame - Dataframe of asks diff --git a/website/content/_index.md b/website/content/_index.md deleted file mode 100644 index c745215cf97..00000000000 --- a/website/content/_index.md +++ /dev/null @@ -1,521 +0,0 @@ ---- -title: OpenBB Terminal Documentation -keywords: "getting started, openbb, api, beginner guide, how to use openbb, openbb keys, openbb terminal, openbb, terminal" -excerpt: "This page guides you how to use the OpenBB terminal, developed by OpenBB." -description: "The OpenBB Documentation provides guidance on how to use the OpenBB Terminal, a free, custom built -financial terminal that will help you make more informed decisions, faster." -geekdocCollapseSection: true ---- - -**Introduction** - -OpenBB is a leading open source investment research software platform for accessing and analyzing financial market data. -We represent millions of investors who want to leverage state-of-the-art data science and machine learning technologies -to make sense of raw unrefined data. Our mission is to make investment research effective, powerful and accessible to everyone. - ---- - -**The OpenBB Terminal is Free and Open-Source (FOSS)** - - - - -[![Stargazers][stars-shield]][stars-url] -[![Forks][forks-shield]][forks-url] -[![Contributors][contributors-shield]][contributors-url] -[![MIT License][license-shield]][license-url] -[![Twitter][twitter-shield]][twitter-url] - - - ---- - -{{< toc >}} - -{{< columns >}} - -### Why Python? - -Python is one of the most used programming languages due to its simplified syntax and shallow learning curve. -On top of this, it is highly used in data science and academia world (particularly on finance, economics -or business related degrees). This is very important, as it is the first time in history that users - regardless -of their background - can so easily add features to an investment research platform. - -<---> - -### Why Open Source? - -An open source product allows for higher quality, lower costs, more transparency, and faster go-to-market due to the strong community created. There is no point in re-inventing the wheel for financial theory that has been around for decades, thus users can adapt the platform to their needs or even build proprietary features on top of our infrastructure. - -<---> - -### Why Free? - -We believe that everyone should be able to have the same tooling to do investment research. By leveraging free API tiers, we can allow users to have access to a vast range of information for free. On the other hand, we want users that are willing to subscribe to premium API keys from certain data providers to be able to take advantage of that on OpenBB Terminal - this is where we see a monetization opportunity, a revenue share with data providers for connecting our users to their resources. - -{{< /columns >}} - -{{< columns >}} - -### Importing and Exporting data - -The terminal allows for users to import their own proprietary datasets to use on our econometrics menu. In addition, users are allowed to export any type of data to any type of format whether that is raw data in Excel or an image in PNG. This is also ideal for finance content creation. - -<---> - -### OpenBB SDK and Customizable notebook reports - -Use our OpenBB Terminal environment to access raw data through a Jupyter Notebook and play with it accordingly. Or just create customizable notebook reports for your colleagues and friends doing research on a particular asset or a macroeconomic event impact on said asset. The possibilities are endless. - -<---> - -### Advanced user and routines - -Navigate through 750+ terminal features using fast shortcuts and leverage auto-complete functionality. Jump from looking into your portfolio to comparing the financials of those companies in a few seconds. Leverage our routines implementation to run analysis while you drink your coffee or tea. - -{{< /columns >}} - -## Accessing the OpenBB Terminal - -The OpenBB Terminal can be directly installed on your computer via our installation program. Within this section, you -are guided through the installation process and how to launch the program. If you are a developer, please have a -look here. If you struggle with the -installation process, please don't hesitate to reach us on Discord -or visit our contact page. - -### Installation for Windows - -The process starts off by downloading the installer, see below for how to download the most recent release: - -1. Go to the OpenBB website. -2. Click on the `Download` button in the Windows Installer section. - -When the file is downloaded, use the following steps to run the OpenBB Terminal: - -{{< columns >}} - -**Step 1: Double-click the `.exe` file that got downloaded to your `Downloads` folder** - -You will most likely receive the error below stating "Windows protected your PC". This is because the installer is -still in beta phase, and the team has not yet requested verification from Windows. - -

windows_protected_your_pc

- -<---> - -**Step 2: Click on `More info` and select `Run anyway` to start the installation process** - -Proceed by following the steps. Do note that if you wish to install the application to "Program Files" that you will have to run the resulting application as Administrator. - -

run_anyway

- -<---> - -**Step 3: Double-click on the application that appeared on your Desktop, you are now able to run the OpenBB Terminal** - -The first time this takes a bit longer to load, this can take up to a few minutes. - -

run_the_terminal

- -{{< /columns >}} - -### Installation for MacOS - -The process starts off by downloading the installer, see below for how to download the most recent release: - -1. Go to the OpenBB website. -2. Click on the `Download` button in the macOS Installer section. - -When the DMG file is downloaded, use the following steps to run the OpenBB Terminal: - -{{< columns >}} - -**Step 1: Open the downloaded `OpenBB Terminal.dmg` and copy `OpenBB Terminal` folder into your `Applications`** - -Open the `OpenBB Terminal.dmg` file that got saved to your "Downloads" folder and drag the "OpenBB Terminal" folder into "Applications" folder. A link to the `Applications` folder is presented on the screen. -Note that this should take some time as it is extracting the files from the .dmg file. - -

image

- -<---> - -**Step 2: Open the `OpenBB Terminal` app in the folder that you have just copied to your `Applications`.** - -During first launch if you get a message saying that the application can't be launched, do the following: -Right-Click the app and select `Open`. You will see a message saying that macOS was not able to check whether the application contains malicious software. Click `Open` to proceed. - -

image

- -{{< /columns >}} - -**Troubleshooting: Allow the application to run by going into your settings** - -If you have trouble launching the app because of security settings and the "Right-click and Open" approach from Step 2 of these instructions doesn't work, go to `System Preferences > Security & Privacy > General`. You should see a message at the bottom that says that the file "was blocked from use because it is not from an identified developer". Click on `Allow anyway` or `Open anyway`. - -

image

- -## Structure of the OpenBB Terminal - -The OpenBB Terminal is based off the Command Line Interface (CLI) -which is installed by default on every computer. By opening the application you have installed via "Accessing the OpenBB Terminal", -you are greeted with the following interface: - -Main Menu - -The OpenBB Terminal is centered around keyboard input. To navigate and perform analysis you will have to type in the name of the command followed by an `ENTER` (⏎). If you wish to see information about the OpenBB Terminal you can do so by typing `about` and then press `ENTER` (⏎). As you are typing, you will notice that you receive suggestions, by using the `DOWN` (⌄) arrow and pressing `ENTER` (⏎) you can select the command and execute it. - -Throughout the entire terminal, the same set of colors are used which all share the same representation. This is structured as follows: - -- Light Blue: represents commands. -- Dark Blue: represents menus, also recognizable by the `>` in front. -- Orange: represents titles and headers. -- Yellow: represents descriptions of a parameter or variable. -- White: represents text, usually in combination with a description that is in Yellow. - -### Explanation of Menus - -Menus, depicted in Dark Blue, take you to a new section of the terminal referred -to as a menu. For example, if you wish to view information about stocks, you can do so by typing `stocks` and pressing `ENTER` (⏎). -This opens a new menu as depicted below. - -Stocks Menu - -Depending on the menu you are in, you are presented with a new set of commands (see Explanation of Commands) -and menus you can select. There are interactions in place between each menu. For example, when selecting a company within -the `stocks` menu, the terminal will remember your selection when you visit the `fa` or `options` menu. -See Introduction to Stocks for more information. - ---- - -**Pro tip:** you can quickly jump between menus by using a forward slash (`/`). For example, if I want to access the options -menu, I can type `/stocks/options` to instantly arrive at this menu. You can do this from any location within the -OpenBB Terminal! - ---- - -### Explanation of Commands - -Commands, depicted in Light Blue, execute an action or task. For example, -the commands that you are able to use from any menu in the terminal (see Explanation of Menus) are as follows: - -- `cls`: clears the screen, by executing this command you are left with an empty screen. -- `help`, `h` or `?`: displays the menu that you are currently on. -- `quit`, `q` or `..`: allows for navigation through the menu. E.g. if you type `stocks` press `ENTER` (⏎) and then - use `q` and press `ENTER` (⏎) you return to where you started. Validate this by typing `?` and pressing `ENTER` (⏎). -- `support`: allows you to submit bugs, questions and suggestions. -- `about`: this opens the related guide, linking to this website. It also has the ability to open a guide to a specific - command. For example, within the `stocks` menu, `about candle` opens this guide. -- `wiki`: search for a given expression on the Wikipedia without leaving the terminal. - -Continuing with the example mentioned at `quit`, revisit the `stocks` menu and look at the commands. At the top you -will see a command named load. To understand what this command can do, you can use `load -h` followed by `ENTER` (⏎). The `-h` stands for `help` and every command will have this feature. This will return the following: - -``` -2022 May 19, 05:27 (🦋) /stocks/ $ load -h -usage: load [-t TICKER] [-s START] [-e END] [-i {1,5,15,30,60}] [-p] [-f FILEPATH] [-m] [-w] [-r {ytd,1y,2y,5y,6m}] [-h] [--source {yf,av,iex,polygon}] - -Load stock ticker to perform analysis on. When the data source is Yahoo Finance, an Indian ticker can be loaded by -using '.NS' at the end, e.g. 'SBIN.NS'. American tickers do not have this addition, e.g. AMZN. - -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: 2019-07-01) - -e END, --end END The ending date (format YYYY-MM-DD) of the stock (default: 2022-07-05) - -i {1,5,15,30,60}, --interval {1,5,15,30,60} - Intraday stock minutes (default: 1440) - -p, --prepost Pre/After market hours. Only works for 'yf' source, and 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) - -r {ytd,1y,2y,5y,6m}, --iexrange {ytd,1y,2y,5y,6m} - Range for using the iexcloud api. Note that longer range requires more tokens in account (default: ytd) - -h, --help show this help message (default: False) - --source {yf,av,iex,polygon} - Data source to select from (default: yf) - -For more information and examples, use 'about load' to access the related guide. -``` - -This shows you all **arguments** the command has. These are additional options you can provide to the command. Each -default value is also displayed which is used when you do not select this option. For example, if I would use the -stock ticker -of Amazon (AMZN, which can also be found with `search amazon`), I can use `load AMZN` which will return the following: - -``` -2022 May 19, 05:27 (🦋) /stocks/ $ load AMZN - -Loading Daily AMZN stock with starting period 2019-05-15 for analysis. - -Datetime: 2022 May 19 05:33 -Timezone: America/New_York -Currency: USD -Market: OPEN -Company: Amazon.com, Inc. - - AMZN Performance -┏━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ 1 Day ┃ 1 Week ┃ 1 Month ┃ 1 Year ┃ YTD ┃ Volatility (1Y) ┃ Volume (10D avg) ┃ Last Price ┃ -┡━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ -3.34 % │ 1.65 % │ -32.26 % │ -33.71 % │ -37.14 % │ 31.36 % │ 5.51 M │ 2142.25 │ -└─────────┴────────┴──────────┴──────────┴──────────┴─────────────────┴──────────────────┴────────────┘ -``` - -The default values you see within `load -h` have been inputted here. E.g. the starting period is 2019-05-15. I can -decide to change these default values by calling the argument and inputting a different value. - -Whenever you wish to apply an optional argument, you use the related shortcode, e.g. `-s` or `--start`. Then, if there -is an additional word behind the argument (in this case there is, which is `START`) it implies the argument expects you -to define a value. Within the documentation you can read that the format must be `YYYY-MM-DD` implying that `2010-01-01` -will be valid. If there is not an additional word behind it, it is enough to write down `load AMZN -p` (which refers to -the prepost optional argument) - -Let's change the starting and ending period of the data that is being loaded in by doing the following: - -``` -2022 May 19, 05:38 (🦋) /stocks/ $ load AMZN -s 2005-01-01 -e 2010-01-01 - -Loading Daily AMZN stock with starting period 2005-01-01 for analysis. - -Datetime: 2022 May 19 05:43 -Timezone: America/New_York -Currency: USD -Market: OPEN -Company: Amazon.com, Inc. - - AMZN Performance -┏━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ 1 Day ┃ 1 Week ┃ 1 Month ┃ 1 Year ┃ Period ┃ Volatility (1Y) ┃ Volume (10D avg) ┃ Last Price ┃ -┡━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ -3.51 % │ -3.18 % │ -2.87 % │ 162.32 % │ 203.73 % │ 49.78 % │ 8.53 M │ 134.52 │ -└─────────┴─────────┴─────────┴──────────┴──────────┴─────────────────┴──────────────────┴────────────┘ -``` - -We can check that this period has changed by looking into the candle chart with `candle`. This, again shares the same `-h` argument. This results in the following which indeed depicts our -selected period. - -``` -2022 May 19, 05:44 (🦋) /stocks/ $ candle -``` - -Amazon Candle Chart - -As mentioned in the Explanation of Menus, some information also transfers over to other menus and this includes the -loaded market data from load. -So, if you would visit the `ta` menu (which stands for Technical Analysis) you will see that, by running any command, the selected period above is depicted again. Return to the Stocks menu again by using `q` and use it again to return to the home screen which can be shown with `?`. - ---- - -### Explanation of Scripts - -The `.openbb` scripts offer the ability to automatically run a set of commands in the form of a **routine**. Furthermore, -the scripts can be adapted, and documented, at any moment giving the user full control over the type of analysis you wish -to do (and repeat). This can fundamental research, understanding market movements, finding hidden gems and even -doing advanced statistical/econometric research. - -For a thorough guide on how to setup these files, please see the Scripts & Routines guide. - ---- - -## Importing and Exporting Data in the OpenBB Terminal - -Screen Shot 2022-10-13 at 6 45 01 PM - -The `OpenBBUserData` folder's default location is the home of the system user account. The location of this folder can be set by the user from the `/settings` menu. This folder is where exported files are saved, it is also where files being imported to the Terminal functions are kept. These include all things user-created: - - - Screener presets - - Portfolio files - - Exported files - - Files to be imported by various functions - - Styles and themes - - Preferred data sources - - Anonymized usage logs - -The settings menu - ---- - -## Accessing other sources of data via API keys - -Within this menu you can define your, often free, API key from various platforms like Alpha Vantage, FRED, IEX, Twitter, DeGiro, Binance and Coinglass. API keys are in essence a set of random characters that is unique to you. - -You can access this menu from the homepage with `keys` which will open the menu as shown below: - - - -Within this menu you are able to set your API keys to access the commands that require that key. You can do so by typing the command followed by the API key, for example: `fred a215egade08a8d47cfd49c849658a2be`. When you press `ENTER` (⏎) the terminal will test whether this API key works. If it does, you receive the message `defined, test passed` and if it does not, you receive the message `defined, test failed`. - -To figure out where you can obtain the API key, you can enter the command (e.g. `av`) and press `ENTER` (⏎) or use the table below. **We recommend that you gradually obtain and set keys whenever you wish to use features that require an API key. For example, if you are interested in viewing recent news about a company, you should set the API key from the 'News API'.** - -| Command | Name | URL | -| :--------- | :--------------------------------------- | :--------------------------------------------------------------------------------- | -| av | AlphaVantage | https://www.alphavantage.co/support/#api-key | -| fmp | Financial Modelling Prep | https://site.financialmodelingprep.com/developer/docs/ | -| quandl | Quandl | https://www.quandl.com | -| polygon | Polygon | https://polygon.io | -| fred | Federal Reserve Economic Database (FRED) | https://fred.stlouisfed.org | -| news | News API | https://newsapi.org/ | -| tradier | Tradier | https://developer.tradier.com | -| cmc | CoinMarketCap | https://coinmarketcap.com/ | -| finnhub | Finnhub | https://finnhub.io/ | -| iex | IEX Cloud | https://iexcloud.io/ | -| reddit | Reddit | https://www.reddit.com/wiki/api | -| twitter | Twitter | https://developer.twitter.com | -| rh | Robinhood | https://robinhood.com/us/en/ | -| degiro | DeGiro | https://www.degiro.com/ | -| oanda | Oanda | https://developer.oanda.com | -| binance | Binance | https://binance.com | -| bitquery | Bitquery | https://bitquery.io/ | -| si | Sentiment Investor | https://sentimentinvestor.com | -| cb | Coinbase | https://help.coinbase.com/en/exchange/managing-my-account/how-to-create-an-api-key | -| walert | Whale Alert | https://docs.whale-alert.io/ | -| glassnode | Glassnode | https://docs.glassnode.com/basic-api/api-key#how-to-get-an-api-key/ | -| coinglass | Coinglass | https://coinglass.github.io/API-Reference/#api-key | -| ethplorer | Ethplorer | https://github.com/EverexIO/Ethplorer/wiki/Ethplorer-API | -| smartstake | Smartstake | https://www.smartstake.io | -| github | GitHub | https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api | -| messari | Messari | https://messari.io/api/docs | -| cpanic | Crypto Panic | https://cryptopanic.com/developers/api/ | -| eodhd | EODHD | https://eodhistoricaldata.com/ | -| santiment | Santiment | https://app.santiment.net/ | -| shroom | ShroomDK | https://sdk.flipsidecrypto.xyz/shroomdk | -| tokenterminal | Token Terminal | https://tokenterminal.com/ | ---- - -## Available Menus Within the OpenBB Terminal - -There is a large collection of (sub) menus available. Here, the asset class and other menus are described. To find a detailed description and explanation of its usage for each menu, click on the corresponding link to visit the introduction page. - -The asset class menus are as follows: - -- Introduction to Stocks: access historical pricing data, options, sector and - industry analysis, and overall due diligence. -- Introduction to Crypto: dive into onchain data, tokenomics, circulation supply, - nfts and more. -- Introduction to ETF: explore exchange traded funds, historical pricing, holdings - and screeners. -- Introduction to Forex: see foreign exchanges, quotes, forward rates for currency - pairs and Oanda integration. -- Introduction to Funds: discover mutual funds, general overviews, holdings and - sector weights. - -The other menus are as follows: - -- Introduction to Economy: explore global macroeconomic data including - interest and inflation rates, GDP and its components, futures, yield curves and treasury rates. -- Introduction to Alternative: explore alternative datasets such as COVID and - open source metrics. -- Introduction to Econometrics: perform (advanced) regression techniques and - statistical tests on custom datasets to understand relationships for both time series and panel data. -- Introduction to Portfolio: understand how your portfolio evolved over time, what - assets contributed the most to this performance, compare this to a benchmark and make adjustments via various portfolio - optimization techniques. -- Introduction to Dashboards: see interactive dashboards using voila and - jupyter notebooks. -- Introduction to Reports (Work in Progress): create customizable research reports through jupyter notebooks. - ---- - -## Customizing the terminal - -To adjust the lay-out and settings of the OpenBB Terminal you can access the `settings` menu. This menu allows you to -tweak how the terminal behaves. This includes the following: - -- `dt` adds or removes the datetime from the flair (which is next to the emoji). -- `flair` allows you to change the emoji that is used. -- `lang` gives the ability to change the terminal language. At this moment, the terminal is only available in English. -- `export` defines the folder you wish to export data you acquire from the terminal. Use quotes for custom locations. -- `tz` allows you to change the timezone if this is incorrectly displayed for you. -- `autoscaling` automatically scales plots for you if enabled (when green). -- `pheight` sets the percentage height of the plot (graphs) displayed (if autoscaling is enabled). -- `pwidth` sets the percentage width of the plot (graphs) displayed (if autoscaling is enabled). -- `height` sets the height of the plot (graphs) displayed (if autoscaling is disabled). -- `width` sets the width of the plot (graphs) displayed (if autoscaling is disabled). -- `dpi` refers to the resolution that is used for the plot (graphs) -- `backend` allows you to change the backend that is used for the graphs -- `monitor` choose which monitors to scale the plot (graphs) to if applicable -- `source` allows you to select a different source file in which the default data sources are written down - -Next to that, to enable or disable certain functionalities of the terminal you can use the `featflags` menu which -includes the following: - -- `retryload` whenever you misspell commands, try to use the `load` command with it first (default is no). -- `tab` whether to use tabulate to print DataFrames, to prettify these DataFrames (default is yes). -- `cls` whether to clear the command window after each command (default is no). -- `color` whether to use colors within the terminal (default is yes). -- `promptkit` whether you wish to enable autocomplete and history (default is yes). -- `thoughts` whether to receive a thought of the day (default is no). -- `reporthtml` whether to open reports as HTML instead of Jupyter Notebooks (default is yes). -- `exithelp` whether to automatically print the help message when you use `q` (default is yes). -- `rcontext` whether to remember loaded tickers and similar while switching menus (default is yes). -- `rich` whether to apply a colorful rich terminal (default is yes). -- `richpanel` whether to apply a colorful rich terminal panel (default is yes). -- `ion` whether to enable interactive mode of MATPLOTLIB (default is yes). -- `watermark` whether to include the watermark of OpenBB Terminal in figures (default is yes). -- `cmdloc` whether the location of the command is displayed in figures (default is yes). -- `tbhint` whether usage hints are displayed in the bottom toolbar (default is yes). - -Lastly, you can also change the default sources of each command via the `sources` menu. For example, if you would -like to change the default data provider from the `load` command from the `stocks` menu you can first run the command -`get` following by `stocks_load`. This returns the following: - -``` -2022 Jul 25, 16:52 (🦋) /sources/ $ get stocks_load - -Default : yf -Available : yf, iex, av, polygon -``` - -Then, with `set` you can change the default data provider. For example, we can change the data provider to iex with -the following: - -``` -2022 Jul 25, 16:55 (🦋) /sources/ $ set stocks_load iex -The data source was specified successfully. - -2022 Jul 25, 16:55 (🦋) /sources/ $ get stocks_load - -Default : iex -Available : iex, yf, av, polygon -``` - ---- - -## Obtaining support and/or giving feedback - -Being an open source platform that wishes to tailor to the needs of any type of investor, we highly encourage anyone -to share with us their experience and/or how we can further improve the OpenBB Terminal. This can be anything -from a very small bug to a new feature to the implementation of a highly advanced Machine Learning model. - -You are able to directly send us information about a bug or question/suggestion from inside the terminal by using -the `support` command which is available everywhere in the terminal. Here you can select which command you want to -report a bug, ask a question or make a suggestion on. When you press `ENTER` (⏎), you are taken to the Support form -which is automatically filled with your input. You are only required to include the type (e.g. bug, suggestion or -question) and message in the form although this can also be set directly from inside the terminal (see `support -h`). - -Support Command - -Alternatively, you can contact us via the following routes: - -- If you notice that a feature is missing inside the terminal, please fill in the Request a Feature form. -- If you wish to report a bug, have a question/suggestion or anything else, please fill in the Support form. -- If you wish to speak to us directly, please contact us via Discord. - -[contributors-shield]: https://img.shields.io/github/contributors/OpenBB-finance/OpenBBTerminal.svg?style=for-the-badge -[contributors-url]: https://github.com/OpenBB-finance/OpenBBTerminal/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/OpenBB-finance/OpenBBTerminal.svg?style=for-the-badge -[forks-url]: https://github.com/OpenBB-finance/OpenBBTerminal/network/members -[stars-shield]: https://img.shields.io/github/stars/OpenBB-finance/OpenBBTerminal.svg?style=for-the-badge -[stars-url]: https://github.com/OpenBB-finance/OpenBBTerminal/stargazers -[issues-shield]: https://img.shields.io/github/issues/OpenBB-finance/OpenBBTerminal.svg?style=for-the-badge&color=blue -[issues-url]: https://github.com/OpenBB-finance/OpenBBTerminal/issues -[bugs-open-shield]: https://img.shields.io/github/issues/OpenBB-finance/OpenBBTerminal/bug.svg?style=for-the-badge&color=yellow -[bugs-open-url]: https://github.com/OpenBB-finance/OpenBBTerminal/issues?q=is%3Aissue+label%3Abug+is%3Aopen -[bugs-closed-shield]: https://img.shields.io/github/issues-closed/OpenBB-finance/OpenBBTerminal/bug.svg?style=for-the-badge&color=success -[bugs-closed-url]: https://github.com/OpenBB-finance/OpenBBTerminal/issues?q=is%3Aissue+label%3Abug+is%3Aclosed -[license-shield]: https://img.shields.io/github/license/OpenBB-finance/OpenBBTerminal.svg?style=for-the-badge -[license-url]: https://github.com/OpenBB-finance/OpenBBTerminal/blob/main/LICENSE -[twitter-shield]: https://img.shields.io/twitter/follow/openbb_finance?style=for-the-badge&color=blue -[twitter-url]: https://twitter.com/openbb_finance diff --git a/website/content/sdk/guides/_category_.json b/website/content/sdk/guides/_category_.json new file mode 100644 index 00000000000..da53c8adaaa --- /dev/null +++ b/website/content/sdk/guides/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Using OpenBB SDK", + "position": 3 +} \ No newline at end of file diff --git a/website/content/sdk/guides/advanced/_category_.json b/website/content/sdk/guides/advanced/_category_.json new file mode 100644 index 00000000000..9e95ee676f6 --- /dev/null +++ b/website/content/sdk/guides/advanced/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Advanced", + "position": 3 +} diff --git a/website/content/sdk/guides/advanced/api-keys.md b/website/content/sdk/guides/advanced/api-keys.md new file mode 100644 index 00000000000..a13e1665311 --- /dev/null +++ b/website/content/sdk/guides/advanced/api-keys.md @@ -0,0 +1,150 @@ +--- +title: Set API Keys +--- + +## **API Keys** + +API keys can be managed directly from the SDK environment. If there is already a Terminal installation configured with API keys, they will be recognized by the SDK. Their status can be verified with the line of code below. + +```python +from openbb_terminal.sdk import openbb +openbb.keys.mykeys(show = True) +``` + +Removing `show = True` from the syntax will hide the values for the keys, as shown in the screenshot below. + +| API | Key | +|:--------------------------|:--------| +| BINANCE_KEY | ******* | +| BINANCE_SECRET | ******* | +| BITQUERY_KEY | ******* | +| CMC_KEY | ******* | +| COINBASE_KEY | ******* | +| COINBASE_PASS_PHRASE | ******* | +| COINBASE_SECRET | ******* | +| COINGLASS_KEY | ******* | +| CRYPTO_PANIC_KEY | ******* | +| EODHD_KEY | ******* | +| ETHPLORER_KEY | ******* | + +Individual keys are entered like this example: + +```python +obb.keys.fred( + key = 'replace_me', + persist = True, +) +``` + +The required fields for each source will vary, print the docstring for each to know the required inputs. + +```python +help(openbb.keys.reddit) +``` + + +```py + Help on Operation in module openbb_terminal.core.library.operation: + + + Set Reddit key + + Parameters + ---------- + client_id: str + Client ID + client_secret: str + Client secret + password: str + User assword + username: str + User username + useragent: str + User useragent + persist: bool + If False, api key change will be contained to where it was changed. For example, Jupyter notebook. + If True, api key change will be global, i.e. it will affect terminal environment variables. + By default, False. + show_output: bool + Display status string or not. By default, False. + + Returns + ------- + str + Status of key set +``` + + +
+ API Reference (expand to see list of API key references) + +| Key Name | Description | URL | +| :--------- | :--------------------------------------- | :--------------------------------------------------------------------------------- | +| av | AlphaVantage | https://www.alphavantage.co/support/#api-key | +| fmp | Financial Modelling Prep | https://site.financialmodelingprep.com/developer/docs/ | +| quandl | Quandl | https://www.quandl.com | +| polygon | Polygon | https://polygon.io | +| fred | Federal Reserve Economic Database (FRED) | https://fred.stlouisfed.org | +| news | News API | https://newsapi.org/ | +| tradier | Tradier | https://developer.tradier.com | +| cmc | CoinMarketCap | https://coinmarketcap.com/ | +| finnhub | Finnhub | https://finnhub.io/ | +| iex | IEX Cloud | https://iexcloud.io/ | +| reddit | Reddit | https://www.reddit.com/wiki/api | +| twitter | Twitter | https://developer.twitter.com | +| rh | Robinhood | https://robinhood.com/us/en/ | +| degiro | DeGiro | https://www.degiro.com/ | +| oanda | Oanda | https://developer.oanda.com | +| binance | Binance | https://binance.com | +| bitquery | Bitquery | https://bitquery.io/ | +| si | Sentiment Investor | https://sentimentinvestor.com | +| cb | Coinbase | https://help.coinbase.com/en/exchange/managing-my-account/how-to-create-an-api-key | +| walert | Whale Alert | https://docs.whale-alert.io/ | +| glassnode | Glassnode | https://docs.glassnode.com/basic-api/api-key#how-to-get-an-api-key/ | +| coinglass | Coinglass | https://coinglass.github.io/API-Reference/#api-key | +| ethplorer | Ethplorer | https://github.com/EverexIO/Ethplorer/wiki/Ethplorer-API | +| smartstake | Smartstake | https://www.smartstake.io | +| github | GitHub | https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api | +| messari | Messari | https://messari.io/api/docs | +| cpanic | Crypto Panic | https://cryptopanic.com/developers/api/ | +| eodhd | EODHD | https://eodhistoricaldata.com/ | +| santiment | Santiment | https://app.santiment.net/ | +| shroom | ShroomDK | https://sdk.flipsidecrypto.xyz/shroomdk | +| tokenterminal | Token Terminal | https://tokenterminal.com/ | +
+ +### Importing Keys as a Variable + +In cases where API credentials must be passed to another process, use the following import statement: + +```python +from openbb_terminal import config_terminal as cfg +``` + +Values can then be passed to a request URL as a variable, `f"{cfg.API_KEY_QUANDL}"` + +The code block below will authorize Quandl to request data from Nasdaq Data Link. The series in the example is for the historical price of gold. + +```python +import quandl +from openbb_terminal import config_terminal as cfg + +gold = quandl.get("LBMA/GOLD", collapse="monthly", transform="", index_col=0, order="desc", parse_dates=True, authtoken=f"{cfg.API_KEY_QUANDL}") +``` + +| Date | USD (AM) | USD (PM) | GBP (AM) | GBP (PM) | EURO (AM) | EURO (PM) | +|:--------------------|-----------:|-----------:|-----------:|-----------:|------------:|------------:| +| 2022-11-30 00:00:00 | 1757.35 | 1768.9 | 1491.46 | 1506.57 | 1704.98 | 1714.06 | +| 2022-10-31 00:00:00 | 1638.85 | 1639 | 1419.74 | 1425.27 | 1649.5 | 1656.87 | +| 2022-09-30 00:00:00 | 1672.75 | 1671.75 | 1495.94 | 1502.4 | 1703.7 | 1710.53 | +| 2022-08-31 00:00:00 | 1712.4 | 1715.9 | 1472.15 | 1478.08 | 1713.6 | 1715.21 | +| 2022-07-31 00:00:00 | 1758.9 | 1753.4 | 1447.4 | 1451.64 | 1724.07 | 1725.7 | + +### Creating a Backup Copy + +To make a backup file containing all stored keys, use the code block below. + +```python +df_keys = openbb.keys.mykeys(show = True) +df_keys.to_csv('backup.csv') +``` diff --git a/website/content/sdk/guides/advanced/changing-sources.md b/website/content/sdk/guides/advanced/changing-sources.md new file mode 100644 index 00000000000..ef7c29ac636 --- /dev/null +++ b/website/content/sdk/guides/advanced/changing-sources.md @@ -0,0 +1,66 @@ +--- +title: Changing Sources +--- + +Some functions have the built-in capability of requesting data from multiple sources. `obb.stocks.load` is one example of this type feature: + +```python +obb.stocks.load( + symbol = 'SPY', + start_date = '2022-10-01', + end_date = '2022-11-11', + interval = 15, + prepost = True, + source = 'YahooFinance', + weekly = False, + monthly = False, +) +``` + +| date | Open | High | Low | Close | Adj Close | Volume | +|:--------------------|--------:|-------:|-------:|--------:|------------:|------------:| +| 2022-11-15 15:00:00 | 398.68 | 399.4 | 398.13 | 398.47 | 398.47 | 2.46198e+06 | +| 2022-11-15 15:15:00 | 398.475 | 399.52 | 398.46 | 398.913 | 398.913 | 2.8631e+06 | +| 2022-11-15 15:30:00 | 398.93 | 399.27 | 397.82 | 399.11 | 399.11 | 3.03659e+06 | +| 2022-11-15 15:45:00 | 399.114 | 399.13 | 397.46 | 398.53 | 398.53 | 6.46879e+06 | +| 2022-11-15 16:00:00 | 398.54 | 399.06 | 395.01 | 398.175 | 398.175 | 1.99462e+06 | + + +The choices for the `source` are currently: + + - YahooFinance (default) + - IEXCloud + - AlphaVantage + - Polygon + - EODHD + +Each source may have unique arguments, consult the docstrings for specfic details. If the command syntax is not framed as a variable assignment, results are printed as a table. When assigned to a variable, the table is not displayed. + +There are functions which return a Tuple, and they can be identified through the docstrings. It will also be evident when the returned data is not presented as a DataFrame. The list, highlighted in the right frame of the image below, provides guidance for unpacking the results. + +![Tuples](https://user-images.githubusercontent.com/85772166/201582221-8203a240-aa74-4755-989d-8cac167e40c6.png "Tuples") + +The two elements within this Tuple are a DataFrame, and a String. Variables are assigned in the order described by the docstrings. + +```python +data,title = obb.crypto.dd.mt(symbol = 'ETH', timeseries_id = 'act.addr.cnt', start_date = '2019-01-01') +``` + +Data need not be collected by the OpenBB SDK in order for it to be passed through the functions. Local files can be read with Pandas functions such as, `pd.read_csv()`. Importing an additional module, `pandas_datareader`, is a low-code method for requesting data from alternate sources. + +```python +import pandas_datareader as pdr + +spx_daily = pdr.get_data_stooq('^SPX', start = '1990-11-11') + +spx_daily.tail(5) +``` + +| Date | Open | High | Low | Close | Volume | +|:--------------------|-------:|-------:|-------:|--------:|------------:| +| 1990-11-16 00:00:00 | 317.02 | 318.8 | 314.99 | 317.12 | 9.19111e+07 | +| 1990-11-15 00:00:00 | 320.4 | 320.4 | 316.13 | 317.02 | 8.40944e+07 | +| 1990-11-14 00:00:00 | 317.66 | 321.7 | 317.23 | 320.4 | 9.96167e+07 | +| 1990-11-13 00:00:00 | 319.48 | 319.48 | 317.26 | 317.67 | 8.90222e+07 | +| 1990-11-12 00:00:00 | 313.74 | 319.77 | 313.73 | 319.48 | 8.96611e+07 | + diff --git a/website/content/sdk/guides/advanced/user-settings.md b/website/content/sdk/guides/advanced/user-settings.md new file mode 100644 index 00000000000..49025226d3a --- /dev/null +++ b/website/content/sdk/guides/advanced/user-settings.md @@ -0,0 +1,877 @@ +--- +title: User Settings +--- + +## **The OpenBBUserData Folder** + +The OpenBB SDK shares the `OpenBBUserData` folder with the Terminal, even with multiple versions installed on the same machine. Portfolio files, screener presets, and Matplotlib style sheets are all shared resources. This folder will be created after the first installation and it is read by subsequent installations. The default location for it is in the root of the operating system user account folder. + +### Presets + +For screeners, it is not necessary to include the full path to the preset file. The example below is for the stock screener, with the preset, `unusual_volume.ini`. + +```python +results = [] + +results = openbb.stocks.screener.screener_data( + preset_loaded = 'unusual_volume.ini', + data_type = 'technical', + limit = 5, +) +results = results.sort_values(ascending = False, by = ['Volume']) +results.head(5) +``` + +| | Ticker | Beta | ATR | SMA20 | SMA50 | SMA200 | 52W High | 52W Low | RSI | Price | Change | from Open | Gap | Volume | +|---:|:---------|-------:|------:|--------:|--------:|---------:|-----------:|----------:|------:|--------:|---------:|------------:|--------:|------------:| +| 48 | CUEN | 0.61 | 0.04 | -0.0367 | -0.2802 | -0.5626 | -0.8793 | 0.1505 | 39.65 | 0.35 | 0.0494 | -0.2249 | 0.3539 | 1.15487e+07 | +| 16 | PDSB | 2.54 | 0.55 | 0.6788 | 1.0466 | 0.7899 | -0.248 | 2.0104 | 83.52 | 8.7 | 0.2323 | 0.1951 | 0.0312 | 6.32774e+06 | +| 32 | IBTE | nan | 0.05 | 0.0025 | -0.0015 | -0.0214 | -0.0661 | 0.0076 | 53.72 | 23.89 | 0.0008 | 0.0004 | 0.0004 | 5.85758e+06 | +| 11 | PTLO | nan | 1.28 | 0.033 | 0.038 | 0.0368 | -0.6097 | 0.5187 | 52.02 | 22.53 | -0.0941 | -0.004 | -0.0905 | 3.96768e+06 | +| 65 | ABMD | 1.32 | 10.78 | 0.1822 | 0.3316 | 0.3296 | -0.0201 | 0.7027 | 78.79 | 374.32 | 0.0006 | -0.0006 | 0.0011 | 3.50787e+06 | + +This will fetch results from the options screener with the preset, `Highest_OI`: + +```python +results = [] + +results, title = openbb.stocks.options.screen.screener_output(preset='Highest_OI.ini') + +pd.DataFrame(results.head(5)) +``` + +| | Contract Symbol | Expiration | Ticker | Type | Strike | Vol | OI | IV | Delta | Gamma | Rho | Theta | Vega | Last Traded | Bid | Ask | Last | % Change | Underlying | P/B | +|---:|:-------------------|:-------------|:---------|:-------|---------:|------:|-------:|----------:|------------:|------------:|------------:|-------------:|------------:|:--------------|------:|------:|-------:|-----------:|-------------:|---------:| +| 0 | SLV230120C00035000 | 2023-01-20 | SLV | C | 35 | 338 | 389212 | 0.250008 | 2.65844e-09 | 8.21107e-09 | 8.20159e-11 | -2.63722e-10 | 1.23914e-09 | 2022-11-18 | 0 | 0 | 0.02 | 0 | 19.25 | 0.901724 | +| 1 | EEM221216C00045000 | 2022-12-16 | EEM | C | 45 | 14086 | 341301 | 0.125009 | 1.13015e-07 | 4.91845e-07 | 2.86473e-09 | -1.52641e-08 | 5.96183e-08 | 2022-11-18 | 0 | 0 | 0.02 | 0 | 38.03 | 0.723568 | +| 2 | SLV230120C00040000 | 2023-01-20 | SLV | C | 40 | 200 | 316800 | 0.500005 | 0.000228694 | 0.000221098 | 6.8245e-06 | -2.83253e-05 | 6.67309e-05 | 2022-11-18 | 0 | 0 | 0.01 | 0 | 19.25 | 0.901724 | +| 3 | NOK230120C00007000 | 2023-01-20 | NOK | C | 7 | 557 | 257115 | 0.250008 | 0.00010857 | 0.000884296 | 8.27629e-07 | -1.74568e-06 | 8.2688e-06 | 2022-11-18 | 0 | 0 | 0.01 | 0 | 4.79 | 1.36273 | +| 4 | EEM221216C00040000 | 2022-12-16 | EEM | C | 40 | 13302 | 247105 | 0.0625094 | 0.000969793 | 0.00531776 | 2.46164e-05 | -4.14814e-05 | 0.000322318 | 2022-11-18 | 0 | 0 | 0.23 | 0 | 38.03 | 0.723568 | + +### Portfolio Files + +User files are located in, `~/OpenBBUserData/portfolio/holdings/`, and can be loaded like: + +```python +port = openbb.portfolio.load(transactions_file_path='/users/username/OpenBBUserData/portfolio/holdings/test_port.csv') +``` +```console +Preprocessing transactions: 100%|██████████| 14/14 [00:01<00:00, 7.20it/s] + Loading price data: 100%|██████████| 1/1 [00:00<00:00, 2.09it/s] + Calculating returns: 100%|██████████| 1/1 [00:00<00:00, 30.04it/s] + Loading benchmark: 100%|██████████| 4/4 [00:04<00:00, 1.15s/it] +``` +```python +openbb.portfolio.show(port) +``` + +| | Date | Type | Ticker | Side | Price | Quantity | Fees | Investment | Currency | Sector | Industry | Country | Region | +|---:|:-----------|:-------|:---------|:-------|--------:|-----------:|-------:|-------------:|:-----------|:-------------------|:-----------------|:---------------|:--------------| +| 5 | 2021-11-04 | STOCK | ABX.TO | Buy | 23.46 | 1000 | 200 | 23660 | CAD | Basic Materials | Gold | Canada | North America | +| 4 | 2021-11-04 | STOCK | PHYS.TO | Buy | 17.57 | 1400 | 200 | 24798 | CAD | Financial Services | Asset Management | Canada | North America | +| 1 | 2021-10-29 | STOCK | WPM.TO | Buy | 51.23 | 300 | 200 | 15569 | CAD | Basic Materials | Gold | Canada | North America | +| 3 | 2021-10-29 | STOCK | K.TO | Buy | 7.93 | 1900 | 200 | 15267 | CAD | Basic Materials | Gold | Canada | North America | +| 2 | 2021-10-29 | STOCK | NGT.TO | Buy | 71.05 | 200 | 200 | 14410 | CAD | Basic Materials | Gold | United States | North America | +| 0 | 2021-10-27 | STOCK | PHYS.TO | Buy | 17.65 | 3000 | 200 | 53150 | CAD | Financial Services | Asset Management | Canada | North America | + +### Importing Previously Exported Files + +The best way to load a local `csv` or `xlsx` file to memory is with Pandas Read: + +```python +data = pd.read_csv('/Users/user/OpenBBUserData/exports/20221106_SPY.csv') +``` + +If necessary, clean the data before passing through the desired function. + +### Matplotlib Style Sheets + +Pasted below is the default Matplotlib, `mplrc`, style sheet. Use this as a reference for making changes to the style sheets located in the `OpenBBUserData/styles/user` folder. + +``` +#### MATPLOTLIBRC FORMAT + +## NOTE FOR END USERS: DO NOT EDIT THIS FILE! +## +## This is a sample Matplotlib configuration file - you can find a copy +## of it on your system in site-packages/matplotlib/mpl-data/matplotlibrc +## (relative to your Python installation location). +## DO NOT EDIT IT! +## +## If you wish to change your default style, copy this file to one of the +## following locations: +## Unix/Linux: +## $HOME/.config/matplotlib/matplotlibrc OR +## $XDG_CONFIG_HOME/matplotlib/matplotlibrc (if $XDG_CONFIG_HOME is set) +## Other platforms: +## $HOME/.matplotlib/matplotlibrc +## and edit that copy. +## +## See https://matplotlib.org/stable/tutorials/introductory/customizing.html#customizing-with-matplotlibrc-files +## for more details on the paths which are checked for the configuration file. +## +## Blank lines, or lines starting with a comment symbol, are ignored, as are +## trailing comments. Other lines must have the format: +## key: val # optional comment +## +## Formatting: Use PEP8-like style (as enforced in the rest of the codebase). +## All lines start with an additional '#', so that removing all leading '#'s +## yields a valid style file. +## +## Colors: for the color values below, you can either use +## - a Matplotlib color string, such as r, k, or b +## - an RGB tuple, such as (1.0, 0.5, 0.0) +## - a double-quoted hex string, such as "#ff00ff". +## The unquoted string ff00ff is also supported for backward +## compatibility, but is discouraged. +## - a scalar grayscale intensity such as 0.75 +## - a legal html color name, e.g., red, blue, darkslategray +## +## String values may optionally be enclosed in double quotes, which allows +## using the comment character # in the string. +## +## This file (and other style files) must be encoded as utf-8. +## +## Matplotlib configuration are currently divided into following parts: +## - BACKENDS +## - LINES +## - PATCHES +## - HATCHES +## - BOXPLOT +## - FONT +## - TEXT +## - LaTeX +## - AXES +## - DATES +## - TICKS +## - GRIDS +## - LEGEND +## - FIGURE +## - IMAGES +## - CONTOUR PLOTS +## - ERRORBAR PLOTS +## - HISTOGRAM PLOTS +## - SCATTER PLOTS +## - AGG RENDERING +## - PATHS +## - SAVING FIGURES +## - INTERACTIVE KEYMAPS +## - ANIMATION + +##### CONFIGURATION BEGINS HERE + + +## *************************************************************************** +## * BACKENDS * +## *************************************************************************** +## The default backend. If you omit this parameter, the first working +## backend from the following list is used: +## MacOSX QtAgg Gtk4Agg Gtk3Agg TkAgg WxAgg Agg +## Other choices include: +## QtCairo GTK4Cairo GTK3Cairo TkCairo WxCairo Cairo +## Qt5Agg Qt5Cairo Wx # deprecated. +## PS PDF SVG Template +## You can also deploy your own backend outside of Matplotlib by referring to +## the module name (which must be in the PYTHONPATH) as 'module://my_backend'. +##backend: Agg + +## The port to use for the web server in the WebAgg backend. +#webagg.port: 8988 + +## The address on which the WebAgg web server should be reachable +#webagg.address: 127.0.0.1 + +## If webagg.port is unavailable, a number of other random ports will +## be tried until one that is available is found. +#webagg.port_retries: 50 + +## When True, open the web browser to the plot that is shown +#webagg.open_in_browser: True + +## If you are running pyplot inside a GUI and your backend choice +## conflicts, we will automatically try to find a compatible one for +## you if backend_fallback is True +#backend_fallback: True + +#interactive: False +#toolbar: toolbar2 # {None, toolbar2, toolmanager} +#timezone: UTC # a pytz timezone string, e.g., US/Central or Europe/Paris + + +## *************************************************************************** +## * LINES * +## *************************************************************************** +## See https://matplotlib.org/api/artist_api.html#module-matplotlib.lines +## for more information on line properties. +#lines.linewidth: 1.5 # line width in points +#lines.linestyle: - # solid line +#lines.color: C0 # has no affect on plot(); see axes.prop_cycle +#lines.marker: None # the default marker +#lines.markerfacecolor: auto # the default marker face color +#lines.markeredgecolor: auto # the default marker edge color +#lines.markeredgewidth: 1.0 # the line width around the marker symbol +#lines.markersize: 6 # marker size, in points +#lines.dash_joinstyle: round # {miter, round, bevel} +#lines.dash_capstyle: butt # {butt, round, projecting} +#lines.solid_joinstyle: round # {miter, round, bevel} +#lines.solid_capstyle: projecting # {butt, round, projecting} +#lines.antialiased: True # render lines in antialiased (no jaggies) + +## The three standard dash patterns. These are scaled by the linewidth. +#lines.dashed_pattern: 3.7, 1.6 +#lines.dashdot_pattern: 6.4, 1.6, 1, 1.6 +#lines.dotted_pattern: 1, 1.65 +#lines.scale_dashes: True + +#markers.fillstyle: full # {full, left, right, bottom, top, none} + +#pcolor.shading: auto +#pcolormesh.snap: True # Whether to snap the mesh to pixel boundaries. This is + # provided solely to allow old test images to remain + # unchanged. Set to False to obtain the previous behavior. + +## *************************************************************************** +## * PATCHES * +## *************************************************************************** +## Patches are graphical objects that fill 2D space, like polygons or circles. +## See https://matplotlib.org/api/artist_api.html#module-matplotlib.patches +## for more information on patch properties. +#patch.linewidth: 1.0 # edge width in points. +#patch.facecolor: C0 +#patch.edgecolor: black # if forced, or patch is not filled +#patch.force_edgecolor: False # True to always use edgecolor +#patch.antialiased: True # render patches in antialiased (no jaggies) + + +## *************************************************************************** +## * HATCHES * +## *************************************************************************** +#hatch.color: black +#hatch.linewidth: 1.0 + + +## *************************************************************************** +## * BOXPLOT * +## *************************************************************************** +#boxplot.notch: False +#boxplot.vertical: True +#boxplot.whiskers: 1.5 +#boxplot.bootstrap: None +#boxplot.patchartist: False +#boxplot.showmeans: False +#boxplot.showcaps: True +#boxplot.showbox: True +#boxplot.showfliers: True +#boxplot.meanline: False + +#boxplot.flierprops.color: black +#boxplot.flierprops.marker: o +#boxplot.flierprops.markerfacecolor: none +#boxplot.flierprops.markeredgecolor: black +#boxplot.flierprops.markeredgewidth: 1.0 +#boxplot.flierprops.markersize: 6 +#boxplot.flierprops.linestyle: none +#boxplot.flierprops.linewidth: 1.0 + +#boxplot.boxprops.color: black +#boxplot.boxprops.linewidth: 1.0 +#boxplot.boxprops.linestyle: - + +#boxplot.whiskerprops.color: black +#boxplot.whiskerprops.linewidth: 1.0 +#boxplot.whiskerprops.linestyle: - + +#boxplot.capprops.color: black +#boxplot.capprops.linewidth: 1.0 +#boxplot.capprops.linestyle: - + +#boxplot.medianprops.color: C1 +#boxplot.medianprops.linewidth: 1.0 +#boxplot.medianprops.linestyle: - + +#boxplot.meanprops.color: C2 +#boxplot.meanprops.marker: ^ +#boxplot.meanprops.markerfacecolor: C2 +#boxplot.meanprops.markeredgecolor: C2 +#boxplot.meanprops.markersize: 6 +#boxplot.meanprops.linestyle: -- +#boxplot.meanprops.linewidth: 1.0 + + +## *************************************************************************** +## * FONT * +## *************************************************************************** +## The font properties used by `text.Text`. +## See https://matplotlib.org/api/font_manager_api.html for more information +## on font properties. The 6 font properties used for font matching are +## given below with their default values. +## +## The font.family property can take either a single or multiple entries of any +## combination of concrete font names (not supported when rendering text with +## usetex) or the following five generic values: +## - 'serif' (e.g., Times), +## - 'sans-serif' (e.g., Helvetica), +## - 'cursive' (e.g., Zapf-Chancery), +## - 'fantasy' (e.g., Western), and +## - 'monospace' (e.g., Courier). +## Each of these values has a corresponding default list of font names +## (font.serif, etc.); the first available font in the list is used. Note that +## for font.serif, font.sans-serif, and font.monospace, the first element of +## the list (a DejaVu font) will always be used because DejaVu is shipped with +## Matplotlib and is thus guaranteed to be available; the other entries are +## left as examples of other possible values. +## +## The font.style property has three values: normal (or roman), italic +## or oblique. The oblique style will be used for italic, if it is not +## present. +## +## The font.variant property has two values: normal or small-caps. For +## TrueType fonts, which are scalable fonts, small-caps is equivalent +## to using a font size of 'smaller', or about 83%% of the current font +## size. +## +## The font.weight property has effectively 13 values: normal, bold, +## bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as +## 400, and bold is 700. bolder and lighter are relative values with +## respect to the current weight. +## +## The font.stretch property has 11 values: ultra-condensed, +## extra-condensed, condensed, semi-condensed, normal, semi-expanded, +## expanded, extra-expanded, ultra-expanded, wider, and narrower. This +## property is not currently implemented. +## +## The font.size property is the default font size for text, given in points. +## 10 pt is the standard value. +## +## Note that font.size controls default text sizes. To configure +## special text sizes tick labels, axes, labels, title, etc., see the rc +## settings for axes and ticks. Special text sizes can be defined +## relative to font.size, using the following values: xx-small, x-small, +## small, medium, large, x-large, xx-large, larger, or smaller + +#font.family: sans-serif +#font.style: normal +#font.variant: normal +#font.weight: normal +#font.stretch: normal +#font.size: 10.0 + +#font.serif: DejaVu Serif, Bitstream Vera Serif, Computer Modern Roman, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif +#font.sans-serif: DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif +#font.cursive: Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, Comic Neue, Comic Sans MS, cursive +#font.fantasy: Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy +#font.monospace: DejaVu Sans Mono, Bitstream Vera Sans Mono, Computer Modern Typewriter, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace + + +## *************************************************************************** +## * TEXT * +## *************************************************************************** +## The text properties used by `text.Text`. +## See https://matplotlib.org/api/artist_api.html#module-matplotlib.text +## for more information on text properties +#text.color: black + +## FreeType hinting flag ("foo" corresponds to FT_LOAD_FOO); may be one of the +## following (Proprietary Matplotlib-specific synonyms are given in parentheses, +## but their use is discouraged): +## - default: Use the font's native hinter if possible, else FreeType's auto-hinter. +## ("either" is a synonym). +## - no_autohint: Use the font's native hinter if possible, else don't hint. +## ("native" is a synonym.) +## - force_autohint: Use FreeType's auto-hinter. ("auto" is a synonym.) +## - no_hinting: Disable hinting. ("none" is a synonym.) +#text.hinting: force_autohint + +#text.hinting_factor: 8 # Specifies the amount of softness for hinting in the + # horizontal direction. A value of 1 will hint to full + # pixels. A value of 2 will hint to half pixels etc. +#text.kerning_factor: 0 # Specifies the scaling factor for kerning values. This + # is provided solely to allow old test images to remain + # unchanged. Set to 6 to obtain previous behavior. + # Values other than 0 or 6 have no defined meaning. +#text.antialiased: True # If True (default), the text will be antialiased. + # This only affects raster outputs. +#text.parse_math: True # Use mathtext if there is an even number of unescaped + # dollar signs. + + +## *************************************************************************** +## * LaTeX * +## *************************************************************************** +## For more information on LaTeX properties, see +## https://matplotlib.org/tutorials/text/usetex.html +#text.usetex: False # use latex for all text handling. The following fonts + # are supported through the usual rc parameter settings: + # new century schoolbook, bookman, times, palatino, + # zapf chancery, charter, serif, sans-serif, helvetica, + # avant garde, courier, monospace, computer modern roman, + # computer modern sans serif, computer modern typewriter +#text.latex.preamble: # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES + # AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP + # IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO. + # text.latex.preamble is a single line of LaTeX code that + # will be passed on to the LaTeX system. It may contain + # any code that is valid for the LaTeX "preamble", i.e. + # between the "\documentclass" and "\begin{document}" + # statements. + # Note that it has to be put on a single line, which may + # become quite long. + # The following packages are always loaded with usetex, + # so beware of package collisions: + # geometry, inputenc, type1cm. + # PostScript (PSNFSS) font packages may also be + # loaded, depending on your font settings. + +## The following settings allow you to select the fonts in math mode. +#mathtext.fontset: dejavusans # Should be 'dejavusans' (default), + # 'dejavuserif', 'cm' (Computer Modern), 'stix', + # 'stixsans' or 'custom' (unsupported, may go + # away in the future) +## "mathtext.fontset: custom" is defined by the mathtext.bf, .cal, .it, ... +## settings which map a TeX font name to a fontconfig font pattern. (These +## settings are not used for other font sets.) +#mathtext.bf: sans:bold +#mathtext.cal: cursive +#mathtext.it: sans:italic +#mathtext.rm: sans +#mathtext.sf: sans +#mathtext.tt: monospace +#mathtext.fallback: cm # Select fallback font from ['cm' (Computer Modern), 'stix' + # 'stixsans'] when a symbol can not be found in one of the + # custom math fonts. Select 'None' to not perform fallback + # and replace the missing character by a dummy symbol. +#mathtext.default: it # The default font to use for math. + # Can be any of the LaTeX font names, including + # the special name "regular" for the same font + # used in regular text. + + +## *************************************************************************** +## * AXES * +## *************************************************************************** +## Following are default face and edge colors, default tick sizes, +## default font sizes for tick labels, and so on. See +## https://matplotlib.org/api/axes_api.html#module-matplotlib.axes +#axes.facecolor: white # axes background color +#axes.edgecolor: black # axes edge color +#axes.linewidth: 0.8 # edge line width +#axes.grid: False # display grid or not +#axes.grid.axis: both # which axis the grid should apply to +#axes.grid.which: major # grid lines at {major, minor, both} ticks +#axes.titlelocation: center # alignment of the title: {left, right, center} +#axes.titlesize: large # font size of the axes title +#axes.titleweight: normal # font weight of title +#axes.titlecolor: auto # color of the axes title, auto falls back to + # text.color as default value +#axes.titley: None # position title (axes relative units). None implies auto +#axes.titlepad: 6.0 # pad between axes and title in points +#axes.labelsize: medium # font size of the x and y labels +#axes.labelpad: 4.0 # space between label and axis +#axes.labelweight: normal # weight of the x and y labels +#axes.labelcolor: black +#axes.axisbelow: line # draw axis gridlines and ticks: + # - below patches (True) + # - above patches but below lines ('line') + # - above all (False) + +#axes.formatter.limits: -5, 6 # use scientific notation if log10 + # of the axis range is smaller than the + # first or larger than the second +#axes.formatter.use_locale: False # When True, format tick labels + # according to the user's locale. + # For example, use ',' as a decimal + # separator in the fr_FR locale. +#axes.formatter.use_mathtext: False # When True, use mathtext for scientific + # notation. +#axes.formatter.min_exponent: 0 # minimum exponent to format in scientific notation +#axes.formatter.useoffset: True # If True, the tick label formatter + # will default to labeling ticks relative + # to an offset when the data range is + # small compared to the minimum absolute + # value of the data. +#axes.formatter.offset_threshold: 4 # When useoffset is True, the offset + # will be used when it can remove + # at least this number of significant + # digits from tick labels. + +#axes.spines.left: True # display axis spines +#axes.spines.bottom: True +#axes.spines.top: True +#axes.spines.right: True + +#axes.unicode_minus: True # use Unicode for the minus symbol rather than hyphen. See + # https://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes +#axes.prop_cycle: cycler('color', ['1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf']) + # color cycle for plot lines as list of string color specs: + # single letter, long name, or web-style hex + # As opposed to all other parameters in this file, the color + # values must be enclosed in quotes for this parameter, + # e.g. '1f77b4', instead of 1f77b4. + # See also https://matplotlib.org/tutorials/intermediate/color_cycle.html + # for more details on prop_cycle usage. +#axes.xmargin: .05 # x margin. See `axes.Axes.margins` +#axes.ymargin: .05 # y margin. See `axes.Axes.margins` +#axes.zmargin: .05 # z margin. See `axes.Axes.margins` +#axes.autolimit_mode: data # If "data", use axes.xmargin and axes.ymargin as is. + # If "round_numbers", after application of margins, axis + # limits are further expanded to the nearest "round" number. +#polaraxes.grid: True # display grid on polar axes +#axes3d.grid: True # display grid on 3D axes + + +## *************************************************************************** +## * AXIS * +## *************************************************************************** +#xaxis.labellocation: center # alignment of the xaxis label: {left, right, center} +#yaxis.labellocation: center # alignment of the yaxis label: {bottom, top, center} + + +## *************************************************************************** +## * DATES * +## *************************************************************************** +## These control the default format strings used in AutoDateFormatter. +## Any valid format datetime format string can be used (see the python +## `datetime` for details). For example, by using: +## - '%%x' will use the locale date representation +## - '%%X' will use the locale time representation +## - '%%c' will use the full locale datetime representation +## These values map to the scales: +## {'year': 365, 'month': 30, 'day': 1, 'hour': 1/24, 'minute': 1 / (24 * 60)} + +#date.autoformatter.year: %Y +#date.autoformatter.month: %Y-%m +#date.autoformatter.day: %Y-%m-%d +#date.autoformatter.hour: %m-%d %H +#date.autoformatter.minute: %d %H:%M +#date.autoformatter.second: %H:%M:%S +#date.autoformatter.microsecond: %M:%S.%f +## The reference date for Matplotlib's internal date representation +## See https://matplotlib.org/examples/ticks_and_spines/date_precision_and_epochs.py +#date.epoch: 1970-01-01T00:00:00 +## 'auto', 'concise': +#date.converter: auto +## For auto converter whether to use interval_multiples: +#date.interval_multiples: True + +## *************************************************************************** +## * TICKS * +## *************************************************************************** +## See https://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick +#xtick.top: False # draw ticks on the top side +#xtick.bottom: True # draw ticks on the bottom side +#xtick.labeltop: False # draw label on the top +#xtick.labelbottom: True # draw label on the bottom +#xtick.major.size: 3.5 # major tick size in points +#xtick.minor.size: 2 # minor tick size in points +#xtick.major.width: 0.8 # major tick width in points +#xtick.minor.width: 0.6 # minor tick width in points +#xtick.major.pad: 3.5 # distance to major tick label in points +#xtick.minor.pad: 3.4 # distance to the minor tick label in points +#xtick.color: black # color of the ticks +#xtick.labelcolor: inherit # color of the tick labels or inherit from xtick.color +#xtick.labelsize: medium # font size of the tick labels +#xtick.direction: out # direction: {in, out, inout} +#xtick.minor.visible: False # visibility of minor ticks on x-axis +#xtick.major.top: True # draw x axis top major ticks +#xtick.major.bottom: True # draw x axis bottom major ticks +#xtick.minor.top: True # draw x axis top minor ticks +#xtick.minor.bottom: True # draw x axis bottom minor ticks +#xtick.alignment: center # alignment of xticks + +#ytick.left: True # draw ticks on the left side +#ytick.right: False # draw ticks on the right side +#ytick.labelleft: True # draw tick labels on the left side +#ytick.labelright: False # draw tick labels on the right side +#ytick.major.size: 3.5 # major tick size in points +#ytick.minor.size: 2 # minor tick size in points +#ytick.major.width: 0.8 # major tick width in points +#ytick.minor.width: 0.6 # minor tick width in points +#ytick.major.pad: 3.5 # distance to major tick label in points +#ytick.minor.pad: 3.4 # distance to the minor tick label in points +#ytick.color: black # color of the ticks +#ytick.labelcolor: inherit # color of the tick labels or inherit from ytick.color +#ytick.labelsize: medium # font size of the tick labels +#ytick.direction: out # direction: {in, out, inout} +#ytick.minor.visible: False # visibility of minor ticks on y-axis +#ytick.major.left: True # draw y axis left major ticks +#ytick.major.right: True # draw y axis right major ticks +#ytick.minor.left: True # draw y axis left minor ticks +#ytick.minor.right: True # draw y axis right minor ticks +#ytick.alignment: center_baseline # alignment of yticks + + +## *************************************************************************** +## * GRIDS * +## *************************************************************************** +#grid.color: "#b0b0b0" # grid color +#grid.linestyle: - # solid +#grid.linewidth: 0.8 # in points +#grid.alpha: 1.0 # transparency, between 0.0 and 1.0 + + +## *************************************************************************** +## * LEGEND * +## *************************************************************************** +#legend.loc: best +#legend.frameon: True # if True, draw the legend on a background patch +#legend.framealpha: 0.8 # legend patch transparency +#legend.facecolor: inherit # inherit from axes.facecolor; or color spec +#legend.edgecolor: 0.8 # background patch boundary color +#legend.fancybox: True # if True, use a rounded box for the + # legend background, else a rectangle +#legend.shadow: False # if True, give background a shadow effect +#legend.numpoints: 1 # the number of marker points in the legend line +#legend.scatterpoints: 1 # number of scatter points +#legend.markerscale: 1.0 # the relative size of legend markers vs. original +#legend.fontsize: medium +#legend.labelcolor: None +#legend.title_fontsize: None # None sets to the same as the default axes. + +## Dimensions as fraction of font size: +#legend.borderpad: 0.4 # border whitespace +#legend.labelspacing: 0.5 # the vertical space between the legend entries +#legend.handlelength: 2.0 # the length of the legend lines +#legend.handleheight: 0.7 # the height of the legend handle +#legend.handletextpad: 0.8 # the space between the legend line and legend text +#legend.borderaxespad: 0.5 # the border between the axes and legend edge +#legend.columnspacing: 2.0 # column separation + + +## *************************************************************************** +## * FIGURE * +## *************************************************************************** +## See https://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure +#figure.titlesize: large # size of the figure title (``Figure.suptitle()``) +#figure.titleweight: normal # weight of the figure title +#figure.labelsize: large # size of the figure label (``Figure.sup[x|y]label()``) +#figure.labelweight: normal # weight of the figure label +#figure.figsize: 6.4, 4.8 # figure size in inches +#figure.dpi: 100 # figure dots per inch +#figure.facecolor: white # figure face color +#figure.edgecolor: white # figure edge color +#figure.frameon: True # enable figure frame +#figure.max_open_warning: 20 # The maximum number of figures to open through + # the pyplot interface before emitting a warning. + # If less than one this feature is disabled. +#figure.raise_window : True # Raise the GUI window to front when show() is called. + +## The figure subplot parameters. All dimensions are a fraction of the figure width and height. +#figure.subplot.left: 0.125 # the left side of the subplots of the figure +#figure.subplot.right: 0.9 # the right side of the subplots of the figure +#figure.subplot.bottom: 0.11 # the bottom of the subplots of the figure +#figure.subplot.top: 0.88 # the top of the subplots of the figure +#figure.subplot.wspace: 0.2 # the amount of width reserved for space between subplots, + # expressed as a fraction of the average axis width +#figure.subplot.hspace: 0.2 # the amount of height reserved for space between subplots, + # expressed as a fraction of the average axis height + +## Figure layout +#figure.autolayout: False # When True, automatically adjust subplot + # parameters to make the plot fit the figure + # using `tight_layout` +#figure.constrained_layout.use: False # When True, automatically make plot + # elements fit on the figure. (Not + # compatible with `autolayout`, above). +#figure.constrained_layout.h_pad: 0.04167 # Padding around axes objects. Float representing +#figure.constrained_layout.w_pad: 0.04167 # inches. Default is 3/72 inches (3 points) +#figure.constrained_layout.hspace: 0.02 # Space between subplot groups. Float representing +#figure.constrained_layout.wspace: 0.02 # a fraction of the subplot widths being separated. + + +## *************************************************************************** +## * IMAGES * +## *************************************************************************** +#image.aspect: equal # {equal, auto} or a number +#image.interpolation: antialiased # see help(imshow) for options +#image.cmap: viridis # A colormap name (plasma, magma, etc.) +#image.lut: 256 # the size of the colormap lookup table +#image.origin: upper # {lower, upper} +#image.resample: True +#image.composite_image: True # When True, all the images on a set of axes are + # combined into a single composite image before + # saving a figure as a vector graphics file, + # such as a PDF. + + +## *************************************************************************** +## * CONTOUR PLOTS * +## *************************************************************************** +#contour.negative_linestyle: dashed # string or on-off ink sequence +#contour.corner_mask: True # {True, False} +#contour.linewidth: None # {float, None} Size of the contour line + # widths. If set to None, it falls back to + # `line.linewidth`. +#contour.algorithm: mpl2014 # {mpl2005, mpl2014, serial, threaded} + + +## *************************************************************************** +## * ERRORBAR PLOTS * +## *************************************************************************** +#errorbar.capsize: 0 # length of end cap on error bars in pixels + + +## *************************************************************************** +## * HISTOGRAM PLOTS * +## *************************************************************************** +#hist.bins: 10 # The default number of histogram bins or 'auto'. + + +## *************************************************************************** +## * SCATTER PLOTS * +## *************************************************************************** +#scatter.marker: o # The default marker type for scatter plots. +#scatter.edgecolors: face # The default edge colors for scatter plots. + + +## *************************************************************************** +## * AGG RENDERING * +## *************************************************************************** +## Warning: experimental, 2008/10/10 +#agg.path.chunksize: 0 # 0 to disable; values in the range + # 10000 to 100000 can improve speed slightly + # and prevent an Agg rendering failure + # when plotting very large data sets, + # especially if they are very gappy. + # It may cause minor artifacts, though. + # A value of 20000 is probably a good + # starting point. + + +## *************************************************************************** +## * PATHS * +## *************************************************************************** +#path.simplify: True # When True, simplify paths by removing "invisible" + # points to reduce file size and increase rendering + # speed +#path.simplify_threshold: 0.111111111111 # The threshold of similarity below + # which vertices will be removed in + # the simplification process. +#path.snap: True # When True, rectilinear axis-aligned paths will be snapped + # to the nearest pixel when certain criteria are met. + # When False, paths will never be snapped. +#path.sketch: None # May be None, or a 3-tuple of the form: + # (scale, length, randomness). + # - *scale* is the amplitude of the wiggle + # perpendicular to the line (in pixels). + # - *length* is the length of the wiggle along the + # line (in pixels). + # - *randomness* is the factor by which the length is + # randomly scaled. +#path.effects: + + +## *************************************************************************** +## * SAVING FIGURES * +## *************************************************************************** +## The default savefig parameters can be different from the display parameters +## e.g., you may want a higher resolution, or to make the figure +## background white +#savefig.dpi: figure # figure dots per inch or 'figure' +#savefig.facecolor: auto # figure face color when saving +#savefig.edgecolor: auto # figure edge color when saving +#savefig.format: png # {png, ps, pdf, svg} +#savefig.bbox: standard # {tight, standard} + # 'tight' is incompatible with pipe-based animation + # backends (e.g. 'ffmpeg') but will work with those + # based on temporary files (e.g. 'ffmpeg_file') +#savefig.pad_inches: 0.1 # padding to be used, when bbox is set to 'tight' +#savefig.directory: ~ # default directory in savefig dialog, gets updated after + # interactive saves, unless set to the empty string (i.e. + # the current directory); use '.' to start at the current + # directory but update after interactive saves +#savefig.transparent: False # whether figures are saved with a transparent + # background by default +#savefig.orientation: portrait # orientation of saved figure, for PostScript output only + +### tk backend params +#tk.window_focus: False # Maintain shell focus for TkAgg + +### ps backend params +#ps.papersize: letter # {auto, letter, legal, ledger, A0-A10, B0-B10} +#ps.useafm: False # use of AFM fonts, results in small files +#ps.usedistiller: False # {ghostscript, xpdf, None} + # Experimental: may produce smaller files. + # xpdf intended for production of publication quality files, + # but requires ghostscript, xpdf and ps2eps +#ps.distiller.res: 6000 # dpi +#ps.fonttype: 3 # Output Type 3 (Type3) or Type 42 (TrueType) + +### PDF backend params +#pdf.compression: 6 # integer from 0 to 9 + # 0 disables compression (good for debugging) +#pdf.fonttype: 3 # Output Type 3 (Type3) or Type 42 (TrueType) +#pdf.use14corefonts: False +#pdf.inheritcolor: False + +### SVG backend params +#svg.image_inline: True # Write raster image data directly into the SVG file +#svg.fonttype: path # How to handle SVG fonts: + # path: Embed characters as paths -- supported + # by most SVG renderers + # None: Assume fonts are installed on the + # machine where the SVG will be viewed. +#svg.hashsalt: None # If not None, use this string as hash salt instead of uuid4 + +### pgf parameter +## See https://matplotlib.org/tutorials/text/pgf.html for more information. +#pgf.rcfonts: True +#pgf.preamble: # See text.latex.preamble for documentation +#pgf.texsystem: xelatex + +### docstring params +#docstring.hardcopy: False # set this when you want to generate hardcopy docstring + + +## *************************************************************************** +## * INTERACTIVE KEYMAPS * +## *************************************************************************** +## Event keys to interact with figures/plots via keyboard. +## See https://matplotlib.org/stable/users/explain/interactive.html for more +## details on interactive navigation. Customize these settings according to +## your needs. Leave the field(s) empty if you don't need a key-map. (i.e., +## fullscreen : '') +#keymap.fullscreen: f, ctrl+f # toggling +#keymap.home: h, r, home # home or reset mnemonic +#keymap.back: left, c, backspace, MouseButton.BACK # forward / backward keys +#keymap.forward: right, v, MouseButton.FORWARD # for quick navigation +#keymap.pan: p # pan mnemonic +#keymap.zoom: o # zoom mnemonic +#keymap.save: s, ctrl+s # saving current figure +#keymap.help: f1 # display help about active tools +#keymap.quit: ctrl+w, cmd+w, q # close the current figure +#keymap.quit_all: # close all figures +#keymap.grid: g # switching on/off major grids in current axes +#keymap.grid_minor: G # switching on/off minor grids in current axes +#keymap.yscale: l # toggle scaling of y-axes ('log'/'linear') +#keymap.xscale: k, L # toggle scaling of x-axes ('log'/'linear') +#keymap.copy: ctrl+c, cmd+c # copy figure to clipboard + + +## *************************************************************************** +## * ANIMATION * +## *************************************************************************** +#animation.html: none # How to display the animation as HTML in + # the IPython notebook: + # - 'html5' uses HTML5 video tag + # - 'jshtml' creates a JavaScript animation +#animation.writer: ffmpeg # MovieWriter 'backend' to use +#animation.codec: h264 # Codec to use for writing movie +#animation.bitrate: -1 # Controls size/quality trade-off for movie. + # -1 implies let utility auto-determine +#animation.frame_format: png # Controls frame format used by temp files + +## Path to ffmpeg binary. Unqualified paths are resolved by subprocess.Popen. +#animation.ffmpeg_path: ffmpeg +## Additional arguments to pass to ffmpeg. +#animation.ffmpeg_args: + +## Path to ImageMagick's convert binary. Unqualified paths are resolved by +## subprocess.Popen, except that on Windows, we look up an install of +## ImageMagick in the registry (as convert is also the name of a system tool). +#animation.convert_path: convert +## Additional arguments to pass to convert. +#animation.convert_args: -layers, OptimizePlus +# +#animation.embed_limit: 20.0 # Limit, in MB, of size of base64 encoded + # animation in HTML (i.e. IPython notebook) +``` diff --git a/website/content/sdk/guides/basics/_category_.json b/website/content/sdk/guides/basics/_category_.json new file mode 100644 index 00000000000..b5650dd9e65 --- /dev/null +++ b/website/content/sdk/guides/basics/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Basics", + "position": 2 +} \ No newline at end of file diff --git a/website/content/sdk/guides/basics/index.md b/website/content/sdk/guides/basics/index.md new file mode 100644 index 00000000000..cd0bbd0a4c9 --- /dev/null +++ b/website/content/sdk/guides/basics/index.md @@ -0,0 +1,183 @@ +--- +title: Basics +sidebar_position: 2 +--- + +### Importing the SDK + +Now that you have the SDK installed, the first step is to import the OpenBB SDK in your preferred code editor. Nearly everything required to interact with any function from the OpenBB Terminal gets imported in one line. Begin a Python script or Notebook file with: + +```python +from openbb_terminal.sdk import openbb +``` + +Example snippets used in the remainder of this guide will assume the code block above is used, and that the `Python kernel` selected is the environment created during the installation process. + +### **Navigation** + +In the same way as operating the OpenBB Terminal, functions are divided into menus which are scrollable after code completion is activated. Entering a period, `.`, after `openbb`, will display the Sub-menus available. + +![Navigation](https://user-images.githubusercontent.com/85772166/202795900-5f1cb00a-a0ff-4899-b6e2-c5af54b653d1.png "Navigation") + +An alternate way to view the contents of a menu is to use Python's built-in help. + +```python +help(openbb.stocks.dd) +``` + +### **Docstrings** + +In addition to Python's built-in help, docstrings are also displayed in the Contextual Help window, within a Jupyter environment or by running `help(openbb.economy.events)` in your code editor. + +```python +help(openbb.economy.events) + +Help on Operation in module openbb_terminal.core.library.operation: + + + Get economic calendar for countries between specified dates + + Parameters + ---------- + countries : [List[str],str] + List of countries to include in calendar. Empty returns all + start_date : str + Start date for calendar + end_date : str + End date for calendar + + Returns + ------- + pd.DataFrame + Economic calendar +``` + +## Requesting and Handling Data + +### Your First Function + +To get started using the OpenBB SDK you can try the below code for your first function. + +```python +openbb.economy.events() +``` + +| | Time (GMT) | Country | Event | actual | consensus | previous | Date | +|---:|:-------------|:---------------|:------------------------------|:---------|:------------|:-----------|:-----------| +| 0 | 01:30 | France | French Unemployment Rate | 7.3% | 7.3% | 7.4% | 2022-11-15 | +| 1 | 02:00 | United Kingdom | Average Earnings ex Bonus | 5.7% | 5.5% | 5.5% | 2022-11-15 | +| 2 | 02:00 | United Kingdom | Average Earnings Index +Bonus | 6.0% | 5.9% | 6.1% | 2022-11-15 | +| 3 | 02:00 | United Kingdom | Claimant Count Change | 3.3K | 17.3K | 3.9K | 2022-11-15 | +| 4 | 02:00 | United Kingdom | Employment Change 3M/3M | -52K | -25K | -109K | 2022-11-15 | + +:::note - The results from data functions are not stored to memory unless explicitly instructed to. Most functions returning data are presented as a Pandas DataFrame. +::: + +Modify the syntax slightly to deliver the output into a DataFrame: + +```python +economic_calendar = openbb.economy.events() +``` + +Defined as a variable, interacting with the results becomes a matter of manipulating tables. For example, the code block below will filter the results of the events function to display only events scheduled at a specific time. + +```python +economic_calendar = openbb.economy.events() +economic_calendar.set_index(keys = ['Time (GMT)'], append = True, inplace = True) +events = economic_calendar.filter(like = '9:00', axis = 0) + +events +``` + +| | Country | Event | actual | consensus | previous | Date | +|:------|:--------------|:---------------------------------------|:---------|:------------|:-----------|:-----------| +| 09:00 | United States | Fed Governor Cook Speaks | - | - | - | 2022-11-15 | +| 09:00 | Germany | German Buba Balz Speaks | - | - | - | 2022-11-15 | +| 09:00 | Germany | German Buba Vice President Buch Speaks | - | - | - | 2022-11-15 | + +### Passing Results to Another Function + +Let's take a look at another example where the input to a function is a list. It may be desireable to derive that list from a different function. This can be useful for screening tickers, or analyzing particular industries or sectors. The Comparison Analysis sub-module, within Stocks, is one set of functions that can benefit from this kind of workflow. Instead of something like: + +```python +openbb.stocks.ca.screener(similar = ['AAPL', 'NFLX', 'META', 'AMZN', 'MSFT', 'GOOGL', 'DIS', 'TSLA'], data_type = 'valuation') +``` + +Try, `openbb.etf.holdings`, to populate a list dynamically: + +```python +symbols = openbb.etf.holdings('DIA') +dia_symbols = list(symbols.index.drop(['N/A'])) +dia_valuation = openbb.stocks.ca.screener(similar = dia_symbols, data_type = 'valuation') +dia_valuation = dia_valuation.sort_values(by = ['Price'], ascending = False).convert_dtypes() + +dia_valuation.head(5) +``` + +| | Ticker | Market Cap | P/E | Fwd P/E | PEG | P/S | P/B | P/C | P/FCF | EPS this Y | EPS next Y | EPS past 5Y | EPS next 5Y | Sales past 5Y | Price | Change | Volume | +|---:|:---------|-------------:|------:|----------:|:------|------:|:--------|-------:|--------:|-------------:|-------------:|--------------:|--------------:|----------------:|--------:|---------:|---------:| +| 25 | UNH | 5.0033e+11 | 25.17 | 20.61 | 1.77 | 1.59 | 6.43 | 12.88 | 19.61 | 0.128 | 0.1315 | 0.201 | 0.1422 | 0.092 | 503.01 | -0.0209 | 5007787 | +| 10 | GS | 1.282e+11 | 10.18 | 10.17 | N/A | 2.08 | 1.24 | 0.45 | 2.98 | 1.403 | 0.0976 | 0.296 | -0.0912 | 0.113 | 382.88 | 0.0014 | 3184768 | +| 11 | HD | 3.1097e+11 | 18.86 | 17.86 | 1.2 | 2 | 1334.43 | 247 | 89.72 | 0.301 | 0.0361 | 0.192 | 0.157 | 0.098 | 311.93 | 0.0163 | 9239159 | +| 1 | AMGN | 1.5543e+11 | 22.86 | 15.4 | 3.38 | 5.9 | 41.77 | 13.54 | 32.04 | -0.165 | 0.0486 | 0.001 | 0.0677 | 0.025 | 283.6 | -0.006 | 2761083 | +| 18 | MCD | 2.0272e+11 | 34.3 | 26.01 | 5.14 | 8.71 | N/A | 71.67 | 118.65 | 0.591 | 0.0522 | 0.13 | 0.0667 | -0.012 | 267.84 | -0.0163 | 5421817 | + + +### Displaying Charts + +The OpenBB SDK has built-in charting libraries for Matplotlib, for any chart available from the Terminal. User style sheets can be added to the folder (more on this in [User Settings](/sdk/guides/advanced/user-settings)), `~/OpenBBUserData/styles/user`. Styles are shared properties between the OpenBB Terminal and the SDK. + +Functions, such as `candle`, exist to display charts. Others, like those within the Technical Analysis module, have the option to return either, a chart or raw data. The next examples will outline a few different scenarios. Lets first get some data : + +```python +spy_daily = openbb.stocks.load( + symbol = 'SPY', + start_date = '1993-11-01', + monthly = True) +``` + +Data from the previous example, `spy_daily`, can feed the inputs to the `openbb.stocks.candle` function, for example: + +```python +openbb.stocks.candle( + data = spy_daily, + asset_type = 'SPY - Monthly Chart from November, 1993', + symbol = '' +) +``` + +![openbb.stocks.candle](https://user-images.githubusercontent.com/85772166/202801049-083ec045-7038-440b-8a54-7a02269e4a40.png "openbb.stocks.candle") + +Where functions in the Terminal display either a chart or raw data, the command will have an additional `_chart` component. For example, Donchian Channels: + +```python +openbb.ta.donchian(openbb.stocks.load('SPY', interval = 15)) +``` + +| date | DCL_20_20 | DCM_20_20 | DCU_20_20 | +|:--------------------|------------:|------------:|------------:| +| 2022-11-15 14:45:00 | 394.49 | 398.33 | 402.17 | +| 2022-11-15 15:00:00 | 394.49 | 398.195 | 401.9 | +| 2022-11-15 15:15:00 | 394.49 | 398.195 | 401.9 | +| 2022-11-15 15:30:00 | 394.49 | 398.105 | 401.72 | +| 2022-11-15 15:45:00 | 394.49 | 398.027 | 401.565 | + + +```python +openbb.ta.donchian_chart( + data = openbb.stocks.load('SPY', interval = 15), + symbol = 'SPY 15 Minute Data' +) +``` + +![openbb.ta.donchian](https://user-images.githubusercontent.com/85772166/202802907-40fa97c8-055d-4ef5-bbc2-7f01a5c5b738.png "openbb.ta.donchian") + +Futures curves are another example where this syntax is applied: + +```python +openbb.futures.curve_chart('GE') +``` + +![openbb.futures.curve](https://user-images.githubusercontent.com/85772166/201583945-18364efa-c305-4c1a-a032-f779e28894c8.png "openbb.futures.curve") + +The guides section for each module explore further functionality and provide sample code snippets. diff --git a/website/content/sdk/guides/guides/_category_.json b/website/content/sdk/guides/guides/_category_.json new file mode 100644 index 00000000000..82e09efaafd --- /dev/null +++ b/website/content/sdk/guides/guides/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Guides", + "position": 2 +} diff --git a/website/content/sdk/guides/guides/alternative.md b/website/content/sdk/guides/guides/alternative.md new file mode 100644 index 00000000000..3d4b2665934 --- /dev/null +++ b/website/content/sdk/guides/guides/alternative.md @@ -0,0 +1,178 @@ +--- +title: Alternative +keywords: ['alts'] +excerpt: "Alternative Menus in the OpenBB Terminal" + +--- + +The Alternative module provides programmatic access to the commands from within the OpenBB Terminal. Import the OpenBB SDK module, and then access the functions similarly to how the Terminal menus are navigated. The code completion will be activated upon entering `.`, after, `openbb.alt` + +## How to Use +​ +The examples provided below will assume that the following import block is included at the beginning of the Python script or Notebook file: +​ +```python +from openbb_terminal.sdk import openbb +import pandas as pd +``` + +A brief description below highlights the main Functions and Modules available in the Alternative SDK + +### OSS + +|Path |Type | Description | +| :--------- | :---------: | ----------: | +|openbb.alt.oss.top |Function |Get top repositories | +|openbb.alt.oss.search |Function |Search repositories | +|openbb.alt.oss.history |Function |Display a repo star history | +|openbb.alt.oss.ross |Function |Startups from ross index | +|openbb.alt.oss.github_data |Function |Get repository stats | +|openbb.alt.oss.summary |Function |Get repository summary | +### Covid + +|Path |Type | Description | +| :--------- | :---------: | ----------: | +|openbb.alt.covid.global_deaths |Function |historical deaths for given country | +|openbb.alt.covid.slopes |Function |Load cases and find slope over period | +|openbb.alt.covid.stat |Function |Show historical cases and deaths by country | +|openbb.alt.covid.global_cases |Function |historical cases for given country | +|openbb.alt.covid.ov |Function | overview historical cases and deaths by country | + + +Alteratively you can print the contents of the ETF SDK with: +​ +```python +help(openbb.alt.covid) +help(openbb.alt.oss) +``` + +## Examples - OSS + + +:::note + +To use some of the OSS SDK commands you will need a GitHub API key - you can get one [here](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) + + +::: +### alt.oss.top +​ +The alt.oss.top SDK command lets you display top repositories - You can pass different parameters like `sortby` `categories` and `limit` to enhance the output. +​ +```python +summary = pd.DataFrame.from_dict(openbb.alt.oss.top(sortby='stars', categories='finance', limit=10)) +print(summary[['full_name', 'open_issues', 'stargazers_count']]) +``` + +|full_name |open_issues |stargazers_count| +| :--------- | :---------: | ----------: | +| vnpy/vnpy | 8 | 19487| +| OpenBB-finance/OpenBBTerminal | 149 | 17645| +| plotly/dash | 707 | 17645| +| waditu/tushare | 556 | 11829| +| wilsonfreitas/awesome-quant | 9 | 10874| +| microsoft/qlib | 232 | 9926| +| firefly-iii/firefly-iii | 103 | 9228| +| ranaroussi/yfinance | 441 | 7938| +| mrjbq7/ta-lib | 181 | 7157| +| QuantConnect/Lean | 417 | 6773| + +### alt.oss.summary + +The alt.oss.summary SDK command gets you some info on a reposity - You just pass the repo path and can see all kinds of interesting information. + +```python +summary = pd.DataFrame.from_dict(openbb.alt.oss.summary(repo="openbb-finance/openbbterminal")) +print(summary) +``` + +|Metric |Value | +| :--------- | ---------: | +| Name | OpenBBTerminal | +| Owner | OpenBB-finance | +| Creation Date | 2020-12-20 | +| Last Update | 2022-11-17 | +| Topics | artificial-intelligence, crypto, cryptocurrenc... | +| Stars | 17643 | +| Forks | 1849 | +| Open Issues | 152 | +| Language | Python | +| License | MIT License | +| Releases | 10 | +| Last Release Downloads | 10201 | +​ +## Examples - Covid + +### alt.covid.global_deaths + +The global_deaths command lets you check quickly the global deaths for any `country` +​ +```python +global_deaths = pd.DataFrame.from_dict(openbb.alt.covid.global_deaths(country="US")) +print(global_deaths) +``` + +|Date |US | +| :--------- | ---------: | +| 2020-01-23 | 0.0| +| 2020-01-24 | 0.0| +| 2020-01-25 | 0.0| +| 2020-01-26 | 0.0| +| 2020-01-27 | 0.0| +| ... | ...| +| 2022-11-12 | -40.0| +| 2022-11-13 | 1.0| +| 2022-11-14 | 216.0| +| 2022-11-15 | 387.0| +| 2022-11-16 | 825.0| + +### alt.covid.slopes + +The slopes command lets you check the slopes per country + +```python +covid_slopes = pd.DataFrame.from_dict(openbb.alt.covid.slopes()) +print(covid_slopes) +``` +|Country |Slope | +| :--------- | ---------: | +|Japan | 52199.941713| +|Korea, South | 42252.945717| +|Germany | 40376.811123| +|US | 38365.586207| +|Taiwan* | 28677.574861| +|France | 24898.053393| +|Italy | 20608.297664| +|Greece | 7841.223359| +|Australia | 6222.661846| +|Russia | 5837.264739| +|Chile | 5792.311457| +|Brazil | 5605.621802| +|United Kingdom | 4755.022692| +|Singapore | 3867.323471| +|Switzerland | 3393.054950| +|Malaysia | 3154.148387| +|... | ... | + + +You can pass `days_back` `limit` and `ascend` to further drill down in your data. + +```python +covid_slopes_params = pd.DataFrame.from_dict( + openbb.alt.covid.slopes(days_back=30, limit=10, ascend=True) +) +print(covid_slopes_params) +``` + +|Country |Slope | +| :--------- | ---------: | +| Colombia | -9917.200222| +| Iran | -4000.273415| +| Slovakia | -3553.934372| +| Poland | -563.439600| +| Lebanon | -364.833815| +| Bangladesh| -175.475640| +| Albania | -96.862736| +| Bulgaria | -39.990656| +| Turkey | -31.636263| +| Belarus | -21.939043| diff --git a/website/content/sdk/guides/guides/crypto.md b/website/content/sdk/guides/guides/crypto.md new file mode 100644 index 00000000000..389706629d9 --- /dev/null +++ b/website/content/sdk/guides/guides/crypto.md @@ -0,0 +1,421 @@ +--- +title: Crypto +sidebar_location: +--- + +The Crypto module wraps the functions of the OpenBB Terminal menu. This allows web applications and dashboards to be built quickly, on top of the existing infrastructure. Navigating the functions is similar to operating the OpenBB Terminal. + +## How to Use + +The list below are all the SDK functions at the `openbb.crypto` level: + +|Path |Type |Description | +|:--------------------|:----------:|-----------------:| +|openbb.crypto.candles |Function |OHLC+V chart | +|openbb.crypto.dd |Sub-Module |Due Dilligence | +|openbb.crypto.defi |Sub-Module |DeFi | +|openbb.crypto.disc |Sub-Module |Discovery | +|openbb.crypto.find |Function |Find Digital Assets | +|openbb.crypto.load |Function |Load Historical Data | +|openbb.crypto.nft |Sub-Module |NFTs | +|openbb.crypto.onchain |Sub-Module |Onchain Metrics | +|openbb.crypto.ov |Sub-Module |Market Overview | +|openbb.crypto.price |Function |Live Prices from Pyth | +|openbb.crypto.tools |Sub-Module |Calculators | + +Alternatively, the contents of a menu is printed by running, `help(openbb.crypto)`. The objective of this guide is to introduce the high-level functions and provide a sample of examples from the sub-modules. Refer to the guides for each sub-module to learn more about them specifically. + +## Examples + +### Import Statements + +The examples in this guide will assume that the code block below is at the beginning of the Python script or Jupyter Notebook file. + +```python +import pandas as pd +from openbb_terminal.sdk import openbb +%matplotlib inline +``` + +### Load + +The `load` function is capable of loading from a variety of sources, one of which is CCXT. When `CCXT` is `source`, an additional argument, `exchange`, is required. + +```python +help(openbb.crypto.load) + +Help on Operation in module openbb_terminal.core.library.operation: + + + Load crypto currency to get data for + + Parameters + ---------- + symbol: str + Coin to get + start_date: str or datetime, optional + Start date to get data from with. - datetime or string format (YYYY-MM-DD) + interval: str + The interval between data points in minutes. + Choose from: 1, 15, 30, 60, 240, 1440, 10080, 43200 + exchange: str: + The exchange to get data from. + vs_currency: str + Quote Currency (Defaults to usdt) + end_date: str or datetime, optional + End date to get data from with. - datetime or string format (YYYY-MM-DD) + source: str + The source of the data + Choose from: CCXT, CoinGecko, YahooFinance + + Returns + ------- + pd.DataFrame + Dataframe consisting of price and volume data +``` + +
+ CCXT Exchange List (expand to see list of exchanges supported by CCXT) + +| |Exchange | +|-----|----------:| +| |aax | +| |ascendex | +| |bequant | +| |bibox | +| |bigone | +| |binance | +| |binancecoinm | +| |binanceus | +| |binanceusdm | +| |bit2c | +| |bitbank | +| |bitbay | +| |bitcoincom | +| |bitfinex | +| |bitfinex2 | +| |bitflyer | +| |bitforex | +| |bitget | +| |bithumb | +| |bitmart | +| |bitmex | +| |bitopro | +| |bitpanda | +| |bitrue | +| |bitso | +| |bitstamp | +| |bitstamp1 | +| |bittrex | +| |bitvavo | +| |bkex | +| |bl3p | +| |btcalpha | +| |btcbox | +| |btcex | +| |btcmarkets | +| |btctradeua | +| |btcturk | +| |buda | +| |bw | +| |bybit | +| |bytetrade | +| |cex | +| |coinbaseprime | +| |coinbasepro | +| |coincheck | +| |coinex | +| |coinfalcon | +| |coinmate | +| |coinone | +| |coinspot | +| |crex24 | +| |cryptocom | +| |currencycom | +| |delta | +| |deribit | +| |digifinex | +| |eqonex | +| |exmo | +| |flowbtc | +| |fmfwio | +| |ftx | +| |ftxus | +| |gate | +| |gateio | +| |gemini | +| |hitbtc | +| |bitbtc3 | +| |hollaex | +| |huobi | +| |huobijp | +| |idex | +| |independentreserve | +| |indodax | +| |itbit | +| |kraken | +| |kucoin | +| |kucoinfutures | +| |kuna | +| |latoken | +| |lbank | +| |lbank2 | +| |liquid | +| |luno | +| |lykke | +| |mercado | +| |mexc | +| |mexc3 | +| |ndax | +| |novadax | +| |oceanex | +| |okcoin | +| |okex | +| |okex5 | +| |okx | +| |paymium | +| |phemex | +| |poloniex | +| |probit | +| |qtrade | +| |ripio | +| |stex | +| |therock | +| |tidebit | +| |tidex | +| |timex | +| |tokocrypto | +| |upbit | +| |wavesexchange | +| |whitebit | +| |woo | +| |yobit | +| |zaif | +| |zb | +| |zipmex | +| |zonda | +
+ +```python +eth_df = openbb.crypto.load('ETH', source = 'CCXT', exchange = 'binance') + +eth_df.tail(5) +``` + +| date | Open | High | Low | Close | Volume | +|:--------------------|--------:|--------:|--------:|--------:|---------:| +| 2022-11-14 00:00:00 | 1221.5 | 1291.2 | 1171.13 | 1243.28 | 934742 | +| 2022-11-15 00:00:00 | 1243.29 | 1291 | 1234.01 | 1253.23 | 632826 | +| 2022-11-16 00:00:00 | 1253.22 | 1268.67 | 1187.06 | 1216.17 | 673340 | +| 2022-11-17 00:00:00 | 1216.16 | 1228.22 | 1181.05 | 1200.43 | 530537 | +| 2022-11-18 00:00:00 | 1200.42 | 1234 | 1199.18 | 1206.11 | 306400 | + +Adding the `interval` argument allows for intraday data or weekly/monthly periods to be loaded. + +```python +eth_df = openbb.crypto.load('ETH', source = 'CCXT', exchange = 'binance', interval = '30') + +eth_df.tail(3) +``` + +| date | Open | High | Low | Close | Volume | +|:--------------------|--------:|--------:|--------:|--------:|---------:| +| 2022-11-18 17:00:00 | 1207.44 | 1208.35 | 1200.36 | 1205.35 | 11359.4 | +| 2022-11-18 17:30:00 | 1205.36 | 1207.12 | 1202.5 | 1204.17 | 5878.59 | +| 2022-11-18 18:00:00 | 1204.17 | 1207.28 | 1203.26 | 1206.37 | 1540.67 | + +Loading monthly OHLC+V data looks like this: + +```python +eth_df = openbb.crypto.load('ETH', source = 'CCXT', exchange = 'binance', interval = '43200') + +eth_df.tail(3) +``` + +| date | Open | High | Low | Close | Volume | +|:--------------------|--------:|--------:|--------:|--------:|------------:| +| 2022-09-01 00:00:00 | 1554.11 | 1789 | 1220 | 1328.72 | 2.25453e+07 | +| 2022-10-01 00:00:00 | 1328.71 | 1663.06 | 1190 | 1572.69 | 1.67681e+07 | +| 2022-11-01 00:00:00 | 1572.69 | 1680 | 1073.53 | 1204.78 | 1.6707e+07 | + +### Candles + +A loaded DataFrame is used as the input for the `candles` function: + +```python +openbb.crypto.candles(eth_df) +``` + +![openbb.crypto.candles](https://user-images.githubusercontent.com/85772166/202791587-d69c7568-69ff-46b3-b41f-146ed8796f7e.png "openbb.crypto.candles") + +Notice that the chart has no title. It can be added using the `title` argument. + +```python +openbb.crypto.candles(eth_df, title = 'ETH/USDT (Monthly)') +``` + +![openbb.crypto.candles](https://user-images.githubusercontent.com/85772166/202791726-b4a775d9-5a00-4d92-8fbc-bd26aeff62d2.png "openbb.crypto.candles") + +### Find + +Find similar coins by name, symbol, or ID. + +```python +results = openbb.crypto.search( + query = 'Genesis', + source = 'CoinPaprika', + key = 'name', +) + +results.head(5) +``` + +| | name | rank | id | symbol | type | +|---:|:--------------|-------:|:-------------------|:---------|:-------| +| 0 | Gnosis | 124 | gno-gnosis | GNO | token | +| 1 | Gene | 4696 | gene-gene | GENE | token | +| 2 | Nemesis | 4246 | nms-nemesis | NMS | token | +| 3 | Genesis Token | 7763 | gent-genesis-token | GENT | token | +| 4 | Alpha Genesis | 4732 | agen-alpha-genesis | AGEN | token | + +### Active Addresses + +Get the historical number of active wallet addresses for a token with: `openbb.crypto.dd.active`. + +```python +active_eth = openbb.crypto.dd.active(symbol = 'ETH', interval = '24h', start_date = '2017-09-01') +active_eth = active_eth.reset_index() +active_eth.rename(columns = {'v': 'Active Addresses', 't': 'Date'}, inplace = True) +active_eth.set_index(keys = ['Date'], inplace = True) + +active_eth.tail(5) +``` + +| Date | Active Addresses | +|:--------------------|-------------------:| +| 2022-11-13 00:00:00 | 426441 | +| 2022-11-14 00:00:00 | 474868 | +| 2022-11-15 00:00:00 | 469880 | +| 2022-11-16 00:00:00 | 448492 | +| 2022-11-17 00:00:00 | 463467 | + +### Trades + +Get trade-level data from a specific exchange with: `openbb.crypto.dd.trades` + +```python +trades_ethusdt = openbb.crypto.dd.trades(exchange_id = 'binance', symbol = 'ETH', to_symbol = 'USDT') + +trades_ethusdt.tail(5) +``` + +| | Date | Price | Amount | Cost | Side | +|----:|:---------------------------------|--------:|---------:|--------:|:-------| +| 495 | 2022-11-18 19:16:15.959000+00:00 | 1204.02 | 2.7033 | 3254.83 | buy | +| 496 | 2022-11-18 19:16:15.959000+00:00 | 1204.03 | 1.1769 | 1417.02 | buy | +| 497 | 2022-11-18 19:16:15.981000+00:00 | 1204.03 | 5.0493 | 6079.51 | buy | +| 498 | 2022-11-18 19:16:15.981000+00:00 | 1204.07 | 2.1126 | 2543.72 | buy | +| 499 | 2022-11-18 19:16:15.981000+00:00 | 1204.08 | 5.2811 | 6358.87 | buy | + +Use the `exchange_id` argument to return data from other venues, such as CoinBase. + +```python +trades_ethusdt = openbb.crypto.dd.trades(exchange_id = 'coinbaseprime', symbol = 'ETH', to_symbol = 'USDT') + +trades_ethusdt.tail(5) +``` + +| | Date | Price | Amount | Cost | Side | +|----:|:---------------------------------|--------:|---------:|---------------:|:-------| +| 995 | 2022-11-18 19:20:15.176000+00:00 | 1204.65 | 3.89878 | 4696.67 | sell | +| 996 | 2022-11-18 19:20:29.524000+00:00 | 1204.78 | 0.41545 | 500.526 | buy | +| 997 | 2022-11-18 19:20:29.931000+00:00 | 1204.78 | 6.2e-07 | 0.000746964 | buy | +| 998 | 2022-11-18 19:20:32.263000+00:00 | 1205.03 | 0.41536 | 500.521 | buy | +| 999 | 2022-11-18 19:20:32.274000+00:00 | 1205.03 | 3.05e-06 | 0.00367534 | buy | + +### Coin_List + +Retrieve a list of all coins available from CoinPaprika with: `openbb.crypto.ov.coin_list()` + +```python +coins = openbb.crypto.ov.coin_list() + +coins.head(10) +``` + +| | rank | id | name | symbol | type | +|---:|-------:|:-----------------|:-------------|:---------|:-------| +| 0 | 1 | btc-bitcoin | Bitcoin | BTC | coin | +| 1 | 2 | eth-ethereum | Ethereum | ETH | coin | +| 2 | 3 | usdt-tether | Tether | USDT | token | +| 3 | 4 | usdc-usd-coin | USD Coin | USDC | token | +| 4 | 5 | bnb-binance-coin | Binance Coin | BNB | coin | +| 5 | 6 | busd-binance-usd | Binance USD | BUSD | token | +| 6 | 7 | xrp-xrp | XRP | XRP | coin | +| 7 | 8 | doge-dogecoin | Dogecoin | DOGE | coin | +| 8 | 9 | ada-cardano | Cardano | ADA | coin | +| 9 | 10 | hex-hex | HEX | HEX | token | + +### BAAS (Historical Bid-Ask Average Spread) + +Measure liquidity over time for an asset with: `openbb.crypto.onchain.baas` + +```python +openbb.crypto.onchain.baas(symbol = 'ETH', to_symbol = 'USDT') +``` + +| | Date | Base currency | Quote currency | Daily spread | Average bid price | Average ask price | +|---:|:-----------|:----------------|:-----------------|---------------:|--------------------:|--------------------:| +| 0 | 2022-11-08 | ETH | USDT | 26.7961 | 1480.72 | 1453.93 | +| 1 | 2022-11-09 | ETH | USDT | 87.9466 | 1255.58 | 1167.63 | +| 2 | 2022-11-10 | ETH | USDT | 24.8262 | 1248.8 | 1273.62 | +| 3 | 2022-11-11 | ETH | USDT | 365.65 | 877.792 | 1243.44 | +| 4 | 2022-11-13 | ETH | USDT | 23.2032 | 1240.23 | 1217.02 | +| 5 | 2022-11-14 | ETH | USDT | 22.5726 | 1221.92 | 1199.35 | + +### Trending + +Discover trending coins on CoinGecko with: `openbb.crypto.disc.trending()` + +```python +openbb.crypto.disc.trending() +``` + +| | Symbol | Name | market_cap Cap Rank | +|---:|:--------------|:--------------------|----------------------:| +| 0 | solana | Solana | 16 | +| 1 | chiliz | Chiliz | 36 | +| 2 | aptos | Aptos | 64 | +| 3 | elrond-erd-2 | MultiversX (Elrond) | 43 | +| 4 | algorand | Algorand | 29 | +| 5 | matic-network | Polygon | 10 | +| 6 | media-network | Media Network | 890 | + +### News + +Get crypto-focussed news with: `openbb.crypto.ov.news` + +```python +openbb.crypto.ov.news(post_kind = 'news',region = 'en', filter_= 'important', ascend = False) +``` + +| | published_at | domain | title | negative_votes | positive_votes | link | +|---:|:---------------|:-------------------|:-------------------------------------------------------------------|-----------------:|-----------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------| +| 0 | 2022-11-18 | decrypt.co | Edward Snowden: Sanctioning of Ethereum Mixer Tornado Cash Was | 0 | 2 | https://cryptopanic.com/news/16935211/Edward-Snowden-Sanctioning-of-Ethereum-Mixer-Tornado-Cash-Was-Deeply-Illiberal-and-Profoundly-Authoritarian | +| | | | 'Deeply Illiberal and Profoundly Authoritarian' | | | | +| 10 | 2022-11-18 | theblockcrypto.com | Cardano developer Emurgo to issue fiat-pegged stablecoin called | 3 | 21 | https://cryptopanic.com/news/16933998/Cardano-developer-Emurgo-to-issue-fiat-pegged-stablecoin-called-USDA | +| | | | USDA | | | | +| 1 | 2022-11-18 | beincrypto.com | SHIB Army Remains Positive as Memecoin Social Sentiment Index | 0 | 3 | https://cryptopanic.com/news/16935115/SHIB-Army-Remains-Positive-as-Memecoin-Social-Sentiment-Index-Remains-Positive | +| | | | Remains Positive | | | | +| 17 | 2022-11-18 | u.today | Is El Salvador's President's Decision to Buy One Bitcoin per Day a | 2 | 48 | https://cryptopanic.com/news/16925762/Is-El-Salvadors-Presidents-Decision-to-Buy-One-Bitcoin-per-Day-a-Good-Idea | +| | | | Good Idea? | | | | +| 15 | 2022-11-18 | dailyhodl.com | ‘Secret’ Altcoin Goes Parabolic After Rumors of European Ban on | 0 | 3 | https://cryptopanic.com/news/16925942/Secret-Altcoin-Goes-Parabolic-After-Rumors-of-European-Ban-on-Privacy-Coins-Swirl | +| | | | Privacy Coins Swirl | | | | +| 74 | 2022-11-15 | cryptopotato.com | OKX Announces $100 Million Fund to Support Distressed Projects | 0 | 4 | https://cryptopanic.com/news/16903760/OKX-Announces-100-Million-Fund-to-Support-Distressed-Projects-Following-FTX-Crash-Report | +| | | | Following FTX Crash (Report) | | | | +| 73 | 2022-11-15 | cointelegraph.com | Thousands petition for congressional investigation of alleged | 1 | 36 | https://cryptopanic.com/news/16904296/Thousands-petition-for-congressional-investigation-of-alleged-GenslerSBF-links | +| | | | Gensler–SBF links | | | | +| 72 | 2022-11-15 | cryptonews.com | XRP Price Forecast as XRP Pumps 9%, Becomes Top Performer | 0 | 13 | https://cryptopanic.com/news/16904392/XRP-Price-Forecast-as-XRP-Pumps-9-Becomes-Top-Performer | +| 71 | 2022-11-15 | theblockcrypto.com | Kraken’s Ogilvie says staking adoption set to skyrocket | 0 | 4 | https://cryptopanic.com/news/16904805/Krakens-Ogilvie-says-staking-adoption-set-to-skyrocket | +| 79 | 2022-11-15 | zycrypto.com | SEC vs. Ripple Case Sees New Twists And Turns As Whale Holdings In | 2 | 15 | https://cryptopanic.com/news/16903258/SEC-vs-Ripple-Case-Sees-New-Twists-And-Turns-As-Whale-Holdings-In-XRP-Skyrocket | +| | | | XRP Skyrocket | | | | diff --git a/website/content/sdk/guides/guides/econometrics.md b/website/content/sdk/guides/guides/econometrics.md new file mode 100644 index 00000000000..c3daa95277c --- /dev/null +++ b/website/content/sdk/guides/guides/econometrics.md @@ -0,0 +1,394 @@ +--- +title: Econometrics +keywords: ['econometrics', 'statistics', 'regression', 'panel data', 'time series', 'research', 'thesis', 'university'] +excerpt: "The Introduction to Econometrics explains how to use the menu" + +--- + +The capabilities of the [Econometrics menu](/terminal/guides/econometrics) from the OpenBB Terminal are wrapped into a powerful SDK, enabling users to work with the data in a flexible environment that can be fully customized to meet the needs of any user. The Econometrics menu's purpose is to provide the user the ability to perform statistical research on custom datasets. The menu allows the user to load in his/her own dataset(s), modify the data by adding columns or setting indices, apply statistical tests (e.g. Breusch-Godfrey autocorrelation tests) as well as OLS regressions and Panel regressions (e.g. Random Effects and Fixed Effects) + +## How to use + +Start a Python script or Notebook file and import the SDK module: + +```python +from openbb_terminal.sdk import openbb +``` + +Below is a brief description of each function within the Portfolio module: + +| Path | Type | Description | +| :----------------------------------------- | :--------: | ---------------------------------------------------------------------: | +| openbb.econometrics.granger | Function | Check time-series for Granger causality (X causes Y) | +| openbb.econometrics.granger_chart | Function | Obtain a nice table of Granger causality | +| openbb.econometrics.fe | Function | Perform a Fixed Effects (fe) regression on Panel data | +| openbb.econometrics.options | Function | Obtain all options that can be used for regression techniques | +| openbb.econometrics.options_chart | Function | Get a nice table of the options | +| openbb.econometrics.dwat | Function | Check for auto-correlation with Durbin Watson | +| openbb.econometrics.dwat_chart | Function | Plot the residuals of the OLS model | +| openbb.econometrics.coint | Function | Check whether time-series are cointegrated | +| openbb.econometrics.coint_chart | Function | Show the error-correction terms plot | +| openbb.econometrics.pols | Function | Perform a Pooled OLS (pols) regression on Panel data | +| openbb.econometrics.root | Function | Check for unit root in the timeseries | +| openbb.econometrics.root_chart | Function | Show a nice table of the unit root test results | +| openbb.econometrics.bgod | Function | Check for autocorrelation with Breusch Godfrey | +| openbb.econometrics.bgod_chart | Function | Show a nice table of the autocorrelation test results | +| openbb.econometrics.re | Function | Perform a Random Effects (re) regression on Panel data | +| openbb.econometrics.bols | Function | Perform a Between OLS (bols) regression on Panel data | +| openbb.econometrics.panel | Function | Obtain the regression results wrapper | +| openbb.econometrics.get_regression_data | Function | Obtain an OLS model wrapper | +| openbb.econometrics.norm | Function | Check wether the time-series is normally distributed | +| openbb.econometrics.norm_chart | Function | Show a histogram of the time-series | +| openbb.econometrics.clean | Function | Apply either a fill or drop method to clean the data | +| openbb.econometrics.bpag | Function | Test for heteroskedasticity with a Breusch-Pagan test | +| openbb.econometrics.bpag_chart | Function | Get a nice table with Breusch-Pagan test results | +| openbb.econometrics.fdols | Function | Perform a First Difference OLS (fdols) regression on Panel data | +| openbb.econometrics.load | Function | Load in a dataset to be used within other functionalities | +| openbb.econometrics.ols | Function | Perform an Ordinary Least Squares (ols) regression on time-series data | +| openbb.econometrics.comparison | Function | Compare different regression models in one table | + +Alteratively you can print the contents of the Econometrics SDK with: + +```python +help(openbb.econometrics) +``` + +## Examples + +### Loading a dataset + +The first step in using this menu is loading a dataset. This can be either an example dataset, see the list below, or any locally stored Excel file. To demonstrate the usage of the menu, the longley +dataset is loaded in. This can be done with the following + +```python +example_load = openbb.econometrics.load("anes96") +file_load = openbb.econometric.load("PATH_TO_FILE/FILE.xlsx") +``` + +| File | Description | +| :----------------- | --------------------------------------------------------: | +| anes96 | American National Election Survey 1996 | +| cancer | Breast Cancer Data | +| ccard | Bill Greene’s credit scoring data. | +| cancer_china | Smoking and lung cancer in eight cities in China. | +| co2 | Mauna Loa Weekly Atmospheric CO2 Data | +| committee | First 100 days of the US House of Representatives 1995 | +| copper | World Copper Market 1951-1975 Dataset | +| cpunish | US Capital Punishment dataset. | +| danish_data | Danish Money Demand Data | +| elnino | El Nino - Sea Surface Temperatures | +| engel | Engel (1857) food expenditure data | +| fair | Affairs dataset | +| fertility | World Bank Fertility Data | +| grunfeld | Grunfeld (1950) Investment Data | +| heart | Transplant Survival Data | +| interest_inflation | (West) German interest and inflation rate 1972-1998 | +| longley | Longley dataset | +| macrodata | United States Macroeconomic data | +| modechoice | Travel Mode Choice | +| nile | Nile River flows at Ashwan 1871-1970 | +| randhie | RAND Health Insurance Experiment Data | +| scotland | Taxation Powers Vote for the Scottish Parliament 1997 | +| spector | Spector and Mazzeo (1980) - Program Effectiveness Data | +| stackloss | Stack loss data | +| star98 | Star98 Educational Dataset | +| statecrim | Statewide Crime Data 2009 | +| strikes | U.S. Strike Duration Data | +| sunspots | Yearly sunspots data 1700-2008 | +| wage_panel | Veila and M. Verbeek (1998): Whose Wages Do Unions Raise? | + + +### Working with Time Series data + +To demonstrate the usage of the Econometrics SDK for time series data, the +longley +dataset is loaded in. + +```python +# Load the data +longley = openbb.econometrics.load("longley") + +# Show the data +longley +``` + +| | TOTEMP | GNPDEFL | GNP | UNEMP | ARMED | POP | YEAR | +|---:|---------:|----------:|-------:|--------:|--------:|-------:|-------:| +| 0 | 60323 | 83 | 234289 | 2356 | 1590 | 107608 | 1947 | +| 1 | 61122 | 88.5 | 259426 | 2325 | 1456 | 108632 | 1948 | +| 2 | 60171 | 88.2 | 258054 | 3682 | 1616 | 109773 | 1949 | +| 3 | 61187 | 89.5 | 284599 | 3351 | 1650 | 110929 | 1950 | +| 4 | 63221 | 96.2 | 328975 | 2099 | 3099 | 112075 | 1951 | +| 5 | 63639 | 98.1 | 346999 | 1932 | 3594 | 113270 | 1952 | +| 6 | 64989 | 99 | 365385 | 1870 | 3547 | 115094 | 1953 | +| 7 | 63761 | 100 | 363112 | 3578 | 3350 | 116219 | 1954 | +| 8 | 66019 | 101.2 | 397469 | 2904 | 3048 | 117388 | 1955 | +| 9 | 67857 | 104.6 | 419180 | 2822 | 2857 | 118734 | 1956 | +| 10 | 68169 | 108.4 | 442769 | 2936 | 2798 | 120445 | 1957 | +| 11 | 66513 | 110.8 | 444546 | 4681 | 2637 | 121950 | 1958 | +| 12 | 68655 | 112.6 | 482704 | 3813 | 2552 | 123366 | 1959 | +| 13 | 69564 | 114.2 | 502601 | 3931 | 2514 | 125368 | 1960 | +| 14 | 69331 | 115.7 | 518173 | 4806 | 2572 | 127852 | 1961 | +| 15 | 70551 | 116.9 | 554894 | 4007 | 2827 | 130081 | 1962 | + + +This can be extended by also showing the descriptive statistics, this can be +done with a native command from Pandas as follows: + +```python +longley.describe() +``` + +| | TOTEMP | GNPDEFL | GNP | UNEMP | ARMED | POP | YEAR | +|:------|---------:|----------:|---------:|---------:|--------:|---------:|-----------:| +| count | 16 | 16 | 16 | 16 | 16 | 16 | 16 | +| mean | 65317 | 101.681 | 387698 | 3193.31 | 2606.69 | 117424 | 1954.5 | +| std | 3511.97 | 10.7916 | 99394.9 | 934.464 | 695.92 | 6956.1 | 4.76095 | +| min | 60171 | 83 | 234289 | 1870 | 1456 | 107608 | 1947 | +| 25% | 62712.5 | 94.525 | 317881 | 2348.25 | 2298 | 111788 | 1950.75 | +| 50% | 65504 | 100.6 | 381427 | 3143.5 | 2717.5 | 116804 | 1954.5 | +| 75% | 68290.5 | 111.25 | 454086 | 3842.5 | 3060.75 | 122304 | 1958.25 | +| max | 70551 | 116.9 | 554894 | 4806 | 3594 | 130081 | 1962 | + +It is possible to check for a variety of assumptions, e.g. normality, unit root, +granger and co-integration. The functions `openbb.econometric.norm` and `openb.econometrics.root` are shown below. Note +that due to the small size of the dataset, many of these tests are not +statistically significant. + +```python +openbb.econometrics.norm(longley['GNP']) +``` + +| | Kurtosis | Skewness | Jarque-Bera | Shapiro-Wilk | Kolmogorov-Smirnov | +|:----------|-----------:|-----------:|--------------:|---------------:|---------------------:| +| Statistic | -1.1944 | 0.0525317 | 0.835092 | 0.962593 | 1 | +| p-value | 0.23232 | 0.95811 | 0.65866 | 0.709 | 0 | + + +```python +openbb.econometrics.root(longley['POP']) +``` + +| | ADF | KPSS | +|:---------------|-----------:|---------:| +| Test Statistic | 2.35204 | 0.324887 | +| P-Value | 0.998986 | 0.1 | +| NLags | 6 | 0 | +| Nobs | 9 | 0 | +| ICBest | 113.054 | 0 | + +The longley dataset is known for the ability to create an OLS regression that results in a R-squared of 1.0 due to the fact that the US macroeconomic variables are known to be highly collinear. See the following regression performed with `openbb.econometrics.ols` as follows: + +```python +# Perform the regression technique. TOTEMP is dependent, all others independent +ols_regression = openbb.econometrics.ols(longley['TOTEMP'], longley.drop('TOTEMP', axis=1)) + +# Show the model summary +ols_regression.summary() +``` + +``` + OLS Regression Results +======================================================================================= +Dep. Variable: TOTEMP R-squared (uncentered): 1.000 +Model: OLS Adj. R-squared (uncentered): 1.000 +Method: Least Squares F-statistic: 5.052e+04 +Date: Mon, 21 Nov 2022 Prob (F-statistic): 8.20e-22 +Time: 10:54:19 Log-Likelihood: -117.56 +No. Observations: 16 AIC: 247.1 +Df Residuals: 10 BIC: 251.8 +Df Model: 6 +Covariance Type: nonrobust +============================================================================== + coef std err t P>|t| [0.025 0.975] +------------------------------------------------------------------------------ +GNPDEFL -52.9936 129.545 -0.409 0.691 -341.638 235.650 +GNP 0.0711 0.030 2.356 0.040 0.004 0.138 +UNEMP -0.4235 0.418 -1.014 0.335 -1.354 0.507 +ARMED -0.5726 0.279 -2.052 0.067 -1.194 0.049 +POP -0.4142 0.321 -1.289 0.226 -1.130 0.302 +YEAR 48.4179 17.689 2.737 0.021 9.003 87.832 +============================================================================== +Omnibus: 1.443 Durbin-Watson: 1.277 +Prob(Omnibus): 0.486 Jarque-Bera (JB): 0.605 +Skew: 0.476 Prob(JB): 0.739 +Kurtosis: 3.031 Cond. No. 4.56e+05 +============================================================================== + +Notes: +[1] R² is computed without centering (uncentered) since the model does not contain a constant. +[2] Standard Errors assume that the covariance matrix of the errors is correctly specified. +[3] The condition number is large, 4.56e+05. This might indicate that there are +strong multicollinearity or other numerical problems. +``` + +After running the regression estimation, it is possible to perform tests on the residuals of the model. E.g. for autocorrelation and heteroscedasity as shown below with the `openbb.econometrics.bgod` and `openbb.econometrics.bpag` functions. + +```python +# Perform Breusch Goodfrey auto-correlation test +openbb.econometrics.bgod(ols_regression) +``` + +| | 0 | +|:---------|-----------:| +| lm-stat | 10.3471 | +| p-value | 0.0158347 | +| f-stat | 0.0970889 | +| fp-value | 0.958799 | + +```python +# Perform Breusch Pagan heteroskedacity test +openbb.econometrics.bpag(ols_regression) +``` + +| | 0 | +|:---------|---------:| +| lm-stat | 7.90331 | +| p-value | 0.161645 | +| f-stat | 1.62686 | +| fp-value | 0.236596 | + +### Working with Panel data + +Within the examples there is one panel dataset available named `wage_panel`. This is a dataset from the paper by Vella and M. Verbeek (1998), “Whose Wages Do Unions Raise? A Dynamic Model of Unionism and Wage Rate Determination for Young Men,” Journal of Applied Econometrics 13, 163-183. This is a well-known dataset also used within Chapter 14 of Introduction to Econometrics by Jeffrey Wooldridge. + +```python +# Load the data +wage_panel = openbb.econometrics.load("wage_panel") + +# Show the data +wage_panel +``` + +| | nr | year | black | exper | hisp | hours | married | educ | union | lwage | expersq | occupation | +|---:|-----:|-------:|--------:|--------:|-------:|--------:|----------:|-------:|--------:|--------:|----------:|-------------:| +| 0 | 13 | 1980 | 0 | 1 | 0 | 2672 | 0 | 14 | 0 | 1.19754 | 1 | 9 | +| 1 | 13 | 1981 | 0 | 2 | 0 | 2320 | 0 | 14 | 1 | 1.85306 | 4 | 9 | +| 2 | 13 | 1982 | 0 | 3 | 0 | 2940 | 0 | 14 | 0 | 1.34446 | 9 | 9 | +| 3 | 13 | 1983 | 0 | 4 | 0 | 2960 | 0 | 14 | 0 | 1.43321 | 16 | 9 | +| 4 | 13 | 1984 | 0 | 5 | 0 | 3071 | 0 | 14 | 0 | 1.56812 | 25 | 5 | + +4360 rows × 12 columns + +To run panel regressions, it is important to define both _entity_ (e.g. company) and _time_ (e.g. year). +Trying to run the `openbb.econometrics.re` function would right now result in the following: + +``` +openbb.econometrics.re(wage_panel['black'], wage_panel.drop('black', axis=1)) + +Error: Series can only be used with a 2-level MultiIndex +``` + +This can be corrected by setting a multi-index, this can be done with the following: + +```python +wage_panel = wage_panel.set_index(['nr', 'year'], drop=False) +``` + +The columns `nr` and `year` still exists within the dataset and could have been dropped with the if desired. However, in this case the `year` column is relevant for generating time effects in Pooled OLS, Fixed Effects and Random Effects estimations. To be able to do this, the type of the year column needs to be changed accordingly to 'category' so it is perceived as categorical data. This can be done with the following: + +```python +# Observe the current types +wage_panel.dtypes +``` + +| | 0 | +|:-----------|:--------| +| nr | int64 | +| year | int64 | +| black | int64 | +| exper | int64 | +| hisp | int64 | +| hours | int64 | +| married | int64 | +| educ | int64 | +| union | int64 | +| lwage | float64 | +| expersq | int64 | +| occupation | int64 | + +```python +# Change the type of year to categorical +wage_panel['year'] = wage_panel['year'].astype('category') + +# Observe the changed types +wage_panel.dtypes +``` + +| | 0 | +|:-----------|:---------| +| nr | int64 | +| year | category | +| black | int64 | +| exper | int64 | +| hisp | int64 | +| hours | int64 | +| married | int64 | +| educ | int64 | +| union | int64 | +| lwage | float64 | +| expersq | int64 | +| occupation | int64 | + +The dataset is now properly configured to allow for proper panel regressions. The Econometrics SDK supports the following regression techniques. + +| Path | Description | +| :------------------------- | ---------------------------------------------------------------------: | +| openbb.econometrics.ols | Perform an Ordinary Least Squares (ols) regression on time-series data | +| openbb.econometrics.pols | Perform a Pooled OLS (pols) regression on Panel data | +| openbb.econometrics.bols | Perform a Between OLS (bols) regression on Panel data | +| openbb.econometrics.fdols | Perform a First Difference OLS (fdols) regression on Panel data | +| openbb.econometrics.fe | Perform a Fixed Effects (fe) regression on Panel data | +| openbb.econometrics.re | Perform a Random Effects (re) regression on Panel data | + +As an example, a **Random Effects** regression is performed. This can be done as follows: + +```python +# Perform the Random Effects regresssion technique +random_effects_regression = openbb.econometrics.re(wage_panel['lwage'], wage_panel[['black', 'hisp', 'exper', 'expersq', 'married', 'educ', 'union','year']]) + +# Show the results +random_effects_regression.summary +``` + +``` + RandomEffects Estimation Summary +================================================================================ +Dep. Variable: lwage R-squared: 0.1806 +Estimator: RandomEffects R-squared (Between): 0.1853 +No. Observations: 4360 R-squared (Within): 0.1799 +Date: Mon, Nov 21 2022 R-squared (Overall): 0.1828 +Time: 11:13:36 Log-likelihood -1622.5 +Cov. Estimator: Unadjusted + F-statistic: 68.409 +Entities: 545 P-value 0.0000 +Avg Obs: 8.0000 Distribution: F(14,4345) +Min Obs: 8.0000 +Max Obs: 8.0000 F-statistic (robust): 68.409 + P-value 0.0000 +Time periods: 8 Distribution: F(14,4345) +Avg Obs: 545.00 +Min Obs: 545.00 +Max Obs: 545.00 + + Parameter Estimates +============================================================================== + Parameter Std. Err. T-stat P-value Lower CI Upper CI +------------------------------------------------------------------------------ +const 0.0234 0.1514 0.1546 0.8771 -0.2735 0.3203 +black -0.1394 0.0480 -2.9054 0.0037 -0.2334 -0.0453 +hisp 0.0217 0.0428 0.5078 0.6116 -0.0622 0.1057 +exper 0.1058 0.0154 6.8706 0.0000 0.0756 0.1361 +expersq -0.0047 0.0007 -6.8623 0.0000 -0.0061 -0.0034 +married 0.0638 0.0168 3.8035 0.0001 0.0309 0.0967 +educ 0.0919 0.0107 8.5744 0.0000 0.0709 0.1129 +union 0.1059 0.0179 5.9289 0.0000 0.0709 0.1409 +year.1981 0.0404 0.0247 1.6362 0.1019 -0.0080 0.0889 +year.1982 0.0309 0.0324 0.9519 0.3412 -0.0327 0.0944 +year.1983 0.0202 0.0417 0.4840 0.6284 -0.0616 0.1020 +year.1984 0.0430 0.0515 0.8350 0.4037 -0.0580 0.1440 +year.1985 0.0577 0.0615 0.9383 0.3482 -0.0629 0.1782 +year.1986 0.0918 0.0716 1.2834 0.1994 -0.0485 0.2321 +year.1987 0.1348 0.0817 1.6504 0.0989 -0.0253 0.2950 +============================================================================== +``` \ No newline at end of file diff --git a/website/content/sdk/guides/guides/economy.md b/website/content/sdk/guides/guides/economy.md new file mode 100644 index 00000000000..e12a7777b78 --- /dev/null +++ b/website/content/sdk/guides/guides/economy.md @@ -0,0 +1,370 @@ +--- +title: Economy +--- + +The Economy module wraps the functions from the Economy menu of the OpenBB Terminal, and provides the user with more control over their workflow. In a Jupyter Notebook environment, it is quick and easy to get going. To get the most out of these functions, it is highly recommended to acquire API keys for: + +- [FRED](https://fred.stlouisfed.org) +- [Quandl/Nasdaq Data Link](https://data.nasdaq.com) +- [AlphaVantage](https://www.alphavantage.co/) + +Define the keys for the OpenBB installation with: + +```python + +obb.keys.fred(key = 'REPLACE_ME', persist = True) +obb.keys.quandl(key = 'REPLACE_ME', persist = True) +obb.keys.av(key = 'REPLACE_ME', persist = True) +``` + +## How to Use + +Below is brief description of each function within the Economy module: + +|Path |Type |Description | +|:------------------------------|:----------:|------------------------------:| +|openbb.economy.available_indices |Dictionary |Curated List of Global Indices | +|openbb.economy.bigmac |Function |The Big Mac Index | +|openbb.economy.bigmac_chart |Function |Chart for `bigmac` | +|openbb.economy.country_codes |Function |List of Three-Letter ISO Country Codes | +|openbb.economy.cpi |Function |Monthly US CPI from AlphaVantage | +|openbb.economy.cpi_chart |Function |Chart for `cpi` | +|openbb.economy.currencies |Function |Currencies from WSJ | +|openbb.economy.events |Function |Economic Calendar | +|openbb.economy.fred_ids |Function |Search for a FRED series ID by keyword | +|openbb.economy.fred_notes |Function |Search by Keyword for Series Information | +|openbb.economy.fred_series |Function |Get Data for a FRED Series ID(s) | +|openbb.economy.fred_series_chart |Function |Chart for `fred_series` | +|openbb.economy.futures |Function |Current Prices of Commodities | +|openbb.economy.gdpc |Function |US GDP per Capita from AlphaVantage | +|openbb.economy.gdpc_chart |Function |Chart for `gdpc` | +|openbb.economy.get_events_countries |List |List of Countries for Events Function | +|openbb.economy.get_groups |List |List of Groups for Performance and Valuation Functions | +|openbb.economy.glbonds |Function |Table of Select 10 Year Sovereign Bonds from WSJ | +|openbb.economy.indices |Function |Top US Indices from WSJ | +|openbb.economy.index |Function |Historical Daily Data for Indices from YahooFinance | +|openbb.economy.index_chart |Function |Chart for `index` | +|openbb.economy.inf |Function |US Inflation Prints from AlphaVantage | +|openbb.economy.inf_chart |Function |Chart for `inf` | +|openbb.economy.macro |Function |Gets Series Data from EconDB | +|openbb.economy.macro_chart |Function |Chart for `macro` | +|openbb.economy.macro_countries |List |List of Countries Accepted by Macro Function | +|openbb.economy.macro_parameters |Dictionary |Dictionary of Parameters & Descriptions for Macro Function | +|openbb.economy.overview |Function |General Market Overview from WSJ | +|openbb.economy.perfmap |Function |Opens a Browser to Performance Map from Finviz | +|openbb.economy.performance |Function |Performance Data (get_groups) | +|openbb.economy.rtps |Function |Real-Time Performance by Sector (US Markets) from AlphaVantage | +|openbb.economy.rtps_chart|Function |Chart of `rtps` | +|openbb.economy.search_index |Function |Search for a Global Index by Name | +|openbb.economy.treasury |Function |US Treasuries Data | +|openbb.economy.treasury_chart |Function |Chart for `treasury` | +|openbb.economy.treasury_maturities |Function |Table of Accepted Values for Maturities Argument in `treasury` | +|openbb.economy.tyld |Function |Historical Treasury Yields from AlphaVantage | +|openbb.economy.tyld_chart |Function |Chart of `tyld` | +|openbb.economy.unemp |Function |Historical US Unemployment Data from AlphaVantage | +|openbb.economy.unemp_chart |Function |Chart of `unemp` | +|openbb.economy.usbonds |Function |Table of Current Rate, Yield, and Yield Change | +|openbb.economy.valuation |Function |Valuation for Group from (get_gropus) | +|openbb.economy.ycrv |Function |Current and Historical US Yield Curve Data from FRED| +|openbb.economy.ycrv_chart |Function |Chart for `ycrv` | + +Alternatively, the contents of the economy, or function docstrings, is printed with: + +```python +help(openbb.economy) +``` + +## Examples + +### Import Statements + +The examples will assume that this code block is included with the import statements: + +```python +from openbb_terminal.sdk import openbb +import pandas as pd +%matplotlib inline +``` + +### Index + +The `index` function can request data using a couple of methods. There is a curated list of global indexes which can be entered by symbol or values from the left column of the table below. + +```python +indexes = pd.DataFrame.from_dict(openbb.economy.available_indices()).transpose() + +indexes +``` + +| | name | ticker | +|:--------|:-------------------------------|:---------| +| sp500 | S&P 500 Index | ^GSPC | +| sp400 | S&P 400 Mid Cap Index | ^SP400 | +| sp600 | S&P 600 Small Cap Index | ^SP600 | +| sp500tr | S&P 500 TR Index | ^SP500TR | +| sp_xsp | S&P 500 Mini SPX Options Index | ^XSP | +| cboe_tyx | CBOE 30 year Treasury Yields | ^TYX | +| cboe_irx | CBOE 13 Week Treasury Bill | ^IRX | +| move | ICE BofAML Move Index | ^MOVE | +| dxy | US Dollar Index | DX-Y.NYB | +| crypto200 | CMC Crypto 200 Index by Solacti | ^CMC200 | + +This list can be filtered: + +```python +indexes.filter(like = 'sp_', axis = 0) +``` + +| | name | ticker | +|:-------------------------|:-------------------------------------------|:--------------| +| sp_xsp | S&P 500 Mini SPX Options Index | ^XSP | +| sp_energy_ig | S&P 500 Energy (Industry Group) Index | ^SP500-1010 | +| sp_energy_equipment | S&P 500 Energy Equipment & Services Industry Index | ^SP500-101010 | +| sp_energy_oil | S&P 500 Oil, Gas & Consumable Fuels Industry Index | ^SP500-101020 | +| sp_materials_sector | S&P 500 Materials Sector Index | ^SP500-15 | +| sp_utilities_sector | S&P 500 Utilities Sector Index | ^SP500-55 | +| sp_utilities_electricity | S&P 500 Electric Utilities Index | ^SP500-551010 | +| sp_utilities_multis | S&P 500 Multi-Utilities Industry Index | ^SP500-551030 | +| sp_re_sector | S&P 500 Real Estate Sector Index | ^SP500-60 | +| sp_re_ig | S&P 500 Real Estate (Industry Group) Index | ^SP500-6010 | + +One index, or multiple, can be requested as a single DataFrame: + +```python +df = openbb.economy.index(indices = ['sp_energy_oil', 'sp_energy_equipment', 'sp_energy_ig']) + +df.tail(3) +``` + +| Date | sp_energy_oil | sp_energy_equipment | sp_energy_ig | +|:--------------------|----------------:|----------------------:|---------------:| +| 2022-11-14 00:00:00 | 800.76 | 330.53 | 712.28 | +| 2022-11-15 00:00:00 | 809.27 | 335.84 | 720.16 | +| 2022-11-16 00:00:00 | 792.32 | 326.49 | 704.68 | + +This can also be displayed as a chart: + +```python +openbb.economy.index_chart(indices = ['sp_energy_oil', 'sp_energy_equipment', 'sp_energy_ig']) +``` + +![openbb.economy.index_chart](https://user-images.githubusercontent.com/85772166/202557572-b67f35e1-a17a-4724-83b3-1b1175e0445d.png "openbb.economy.index_chart") + +### Performance + +Performance metrics for sectors, industries, and regions (US listed) are printed with: + +```python +openbb.economy.performance(group = 'energy') +``` + +| | Name | Week | Month | 3Month | 6Month | 1Year | YTD | Recom | AvgVolume [1M] | RelVolume | Change | Volume [1M] | +|---:|:-------------------------------|--------:|--------:|---------:|---------:|--------:|-------:|--------:|-----------------:|------------:|---------:|--------------:| +| 0 | Oil & Gas Drilling | 0.0106 | 0.2154 | 0.2501 | 0.1534 | 0.711 | 0.8991 | 1.92 | 33.58 | 0.71 | -0.013 | 16.93 | +| 1 | Oil & Gas E&P | 0.0019 | 0.0618 | 0.1188 | 0.15 | 0.6602 | 0.6922 | 2.18 | 287.09 | 0.66 | -0.0059 | 136.36 | +| 2 | Oil & Gas Equipment & Services | -0.0063 | 0.1613 | 0.305 | 0.1219 | 0.493 | 0.5702 | 2.1 | 74.1 | 0.52 | -0.0125 | 27.79 | +| 3 | Oil & Gas Integrated | 0.0166 | 0.0557 | 0.0885 | 0.0462 | 0.4014 | 0.4114 | 2.23 | 122.44 | 0.71 | -0.0079 | 62.12 | +| 4 | Oil & Gas Midstream | -0.0113 | 0.038 | -0.019 | 0.0045 | 0.1551 | 0.2027 | 2.3 | 105.55 | 0.65 | -0.0115 | 48.8 | +| 5 | Oil & Gas Refining & Marketing | 0.0147 | 0.0929 | 0.1562 | 0.1585 | 0.6038 | 0.6084 | 2.13 | 30.59 | 0.61 | -0.0006 | 13.32 | +| 6 | Thermal Coal | -0.0096 | 0.0291 | -0.0494 | 0.1289 | 1.2305 | 1.0504 | 1.97 | 8.74 | 0.69 | -0.0207 | 4.28 | +| 7 | Uranium | -0.0176 | 0.0416 | 0.0856 | 0.0426 | -0.1746 | 0.0267 | 1.61 | 32.44 | 0.54 | -0.0125 | 12.58 | + +Performance by sector: + +```python +openbb.economy.performance(group = 'sector') +``` + +| | Name | Week | Month | 3Month | 6Month | 1Year | YTD | Recom | AvgVolume [1M] | RelVolume | Change | Volume [1M] | +|---:|:-----------------------|--------:|--------:|---------:|---------:|--------:|--------:|--------:|-----------------:|------------:|---------:|--------------:| +| 0 | Basic Materials | -0.0032 | 0.129 | 0.0195 | -0.0572 | -0.0684 | -0.0928 | 2.22 | 469.94 | 0.66 | -0.0116 | 222.2 | +| 1 | Communication Services | 0.0343 | 0.0128 | -0.1444 | -0.1297 | -0.3837 | -0.3529 | 1.97 | 731.34 | 0.72 | 0.0004 | 377.12 | +| 2 | Consumer Cyclical | 0.0111 | 0.0266 | -0.1386 | -0.0182 | -0.3665 | -0.3221 | 2.14 | 1430 | 1.01 | -0.0034 | 1040 | +| 3 | Consumer Defensive | 0.003 | 0.0757 | -0.0302 | 0.0573 | -0.019 | -0.0574 | 2.31 | 298.74 | 0.85 | -0.0019 | 181.95 | +| 4 | Energy | 0.0067 | 0.0629 | 0.0913 | 0.0736 | 0.4208 | 0.4497 | 2.21 | 694.52 | 0.65 | -0.008 | 322.19 | +| 5 | Financial | -0.0095 | 0.0934 | -0.0098 | 0.0339 | -0.1259 | -0.1137 | 2.24 | 861.74 | 0.79 | -0.005 | 489.78 | +| 6 | Healthcare | -0.0121 | 0.0703 | -0.0125 | 0.0177 | -0.1074 | -0.1161 | 2.11 | 1180 | 0.87 | 0.0002 | 736.58 | +| 7 | Industrials | -0.0118 | 0.0969 | -0.0223 | 0.0723 | -0.1138 | -0.101 | 2.32 | 573.08 | 0.7 | -0.005 | 285.24 | +| 8 | Real Estate | -0.0259 | 0.0884 | -0.1441 | -0.0961 | -0.2413 | -0.2738 | 2.18 | 341.84 | 0.55 | -0.0055 | 134.66 | +| 9 | Technology | 0.0149 | 0.0938 | -0.1095 | -0.0044 | -0.3024 | -0.2957 | 2.03 | 1460 | 0.86 | 0.0039 | 904.44 | +| 10 | Utilities | -0.0235 | 0.0485 | -0.1212 | -0.0582 | -0.0054 | -0.0569 | 2.29 | 166.21 | 0.67 | -0.0142 | 79.25 | + +### Events + +A global economic calender is accessible through the `events` function: + +```python +help(openbb.economy.events) + +Help on Operation in module openbb_terminal.core.library.operation: + + + Get economic calendar for countries between specified dates + + Parameters + ---------- + countries : [List[str],str] + List of countries to include in calendar. Empty returns all + start_date : str + Start date for calendar + end_date : str + End date for calendar + + Returns + ------- + pd.DataFrame + Economic calendar +``` + +With no arguments, `events` will return the calendar from today: + +```python +openbb.economy.events() +``` + +| | Time (GMT) | Country | Event | actual | consensus | previous | Date | +|---:|:-------------|:---------------|:-------------------------|:---------|:------------|:-----------|:-----------| +| 0 | 02:00 | United Kingdom | Car Registration | -40.4% | - | 227.2% | 2022-11-17 | +| 1 | 02:00 | United Kingdom | Car Registration | 26.4% | - | 4.6% | 2022-11-17 | +| 2 | 02:00 | Italy | Italian Car Registration | 14.6% | - | 5.4% | 2022-11-17 | +| 3 | 02:00 | Italy | Italian Car Registration | 4.4% | - | 55.9% | 2022-11-17 | +| 4 | 02:00 | Switzerland | Trade Balance | 4.140B | - | 4.193B | 2022-11-17 | +| 56 | 13:00 | United States | 10-Year TIPS Auction | 1.485% | - | 1.248% | 2022-11-17 | +| 57 | 18:30 | Japan | CPI, n.s.a | - | - | 0.4% | 2022-11-17 | +| 58 | 18:30 | Japan | National Core CPI | - | 3.5% | 3.0% | 2022-11-17 | +| 59 | 18:30 | Japan | National CPI | - | - | 3.0% | 2022-11-17 | +| 60 | 19:01 | United Kingdom | GfK Consumer Confidence | - | -52 | -47 | 2022-11-17 | + +Calendar events can be requested for a specific countries and date ranges: + +```python +openbb.economy.events(countries = ['United States'], start_date = '2022-11-18', end_date = '2022-11-18') +``` + +| | Time (GMT) | Country | Event | actual | consensus | previous | Date | +|---:|:-------------|:--------------|:----------------------------------|:---------|:------------|:-----------|:-----------| +| 0 | 10:00 | United States | Existing Home Sales | - | 4.38M | 4.71M | 2022-11-18 | +| 1 | 10:00 | United States | Existing Home Sales | - | - | -1.5% | 2022-11-18 | +| 2 | 10:00 | United States | US Leading Index | - | -0.4% | -0.4% | 2022-11-18 | +| 3 | 13:00 | United States | U.S. Baker Hughes Oil Rig Count | - | - | 622 | 2022-11-18 | +| 4 | 13:00 | United States | U.S. Baker Hughes Total Rig Count | - | - | 779 | 2022-11-18 | + +### FRED + +Search the FRED database for a series titles containing keywords: + +```python +series_ids = openbb.economy.fred_ids(search_query = 'Oil and Gas') + +series_ids.head(5) +``` + +| id | title | +|:----------------|:----------------------------------------------------------------------------------------------------| +| PCU333132333132 | Producer Price Index by Industry: Oil and Gas Field Machinery and Equipment Manufacturing | +| CES1021100001 | All Employees, Oil and Gas Extraction | +| IPG211111CS | Industrial Production: Mining, Quarrying, and Oil and Gas Extraction: Crude Oil (NAICS = 211111pt.) | +| A33DNO | Manufacturers' New Orders: Mining, Oil, and Gas Field Machinery Manufacturing | +| PCU21112111 | Producer Price Index by Industry: Oil and Gas Extraction | + +Request the data for a series ID, or a list of IDs: + +```python +data,titles = openbb.economy.fred_series(series_ids=['A33DNO', 'PCU21112111']) + +data.tail(5) +``` + +| | A33DNO | PCU21112111 | +|:--------------------|---------:|--------------:| +| 2022-05-01 00:00:00 | 1509 | 339.024 | +| 2022-06-01 00:00:00 | 1534 | 374.936 | +| 2022-07-01 00:00:00 | 1516 | 315.785 | +| 2022-08-01 00:00:00 | 1661 | 350.329 | +| 2022-09-01 00:00:00 | 1551 | 339.109 | + +Series can also be plotted together: + +```python +openbb.economy.fred_series_chart(series_ids=['A33DNO', 'PCU21112111']) +``` + +![openbb.economy.fred_series_chart](https://user-images.githubusercontent.com/85772166/202557759-322a05ed-2740-4abf-8055-82a4abe0cc0d.png) + +### Macro + +The `macro` function will return a Tuple. See refer to the docstring below to see the input arguments: + +```python +help(openbb.economy.macro) + +Help on Operation in module openbb_terminal.core.library.operation: + + + Use 'economy.macro_chart' to access the view. + This functions groups the data queried from the EconDB database [Source: EconDB] + + Parameters + ---------- + parameters: list + The type of data you wish to download. Available parameters can be accessed through economy.macro_parameters(). + countries : list + The selected country or countries. Available countries can be accessed through economy.macro_countries(). + transform : str + The selected transform. Available transforms can be accessed through get_macro_transform(). + start_date : str + The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. + end_date : str + The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. + symbol : str + In what currency you wish to convert all values. + + Returns + ------- + Tuple[pd.DataFrame, Dict[Any, Dict[Any, Any]], str] + A DataFrame with the requested macro data of all chosen countries, + A dictionary containing the units of each country's parameter (e.g. EUR), + A string denomination which can be Trillions, Billions, Millions, Thousands + + Examples + -------- + >>> from openbb_terminal.sdk import openbb + >>> macro_df = openbb.economy.macro() +``` + +`openbb.economy.macro_parameters()` will return a list of dictionaries. Read it as a DataFrame with: + +```python +parameters = pd.DataFrame.from_dict(openbb.economy.macro_parameters()).transpose() + +parameters.tail(5) +``` + +| | name | period | description | +|:--------|:--------------------------|:---------|:-------------------------------------------------------------------------------------------------------------------------------------| +| Y10YD | Long term yield (10-year) | Monthly | The 10-year yield is used as a proxy for mortgage rates. It's also seen as a sign of investor sentiment about the country's economy. | +| M3YD | 3 month yield | Monthly | The yield received for investing in a government issued treasury security that has a maturity of 3 months | +| HOU | House price index | Monthly | House price index defined with base 2015 for Europe with varying bases for others. See: https://www.econdb.com/main-indicators | +| OILPROD | Oil production | Monthly | The amount of oil barrels produced per day in a month within a country. | +| POP | Population | Monthly | The population of a country. This can be in thousands or, when relatively small, in actual units. | + +The data from the `macro` function is unpacked like: + +```python +data,units,denomination = openbb.economy.macro(parameters = ['Y10YD'], countries = ['United States', 'Poland', 'France', 'Italy', 'Spain', 'Germany']) + +data.tail(10) +``` + +| date | France | Germany | Italy | Poland | Spain | United States | +|:--------------------|----------------------:|-----------------------:|---------------------:|----------------------:|---------------------:|-----------------------------:| +| 2022-01-01 00:00:00 | 0.31 | -0.12 | 1.35 | 4 | 0.66 | 1.76 | +| 2022-02-01 00:00:00 | 0.68 | 0.15 | 1.79 | 3.95 | 1.11 | 1.93 | +| 2022-03-01 00:00:00 | 0.78 | 0.28 | 1.85 | 4.83 | 1.22 | 2.13 | +| 2022-04-01 00:00:00 | 1.28 | 0.75 | 2.44 | 5.96 | 1.69 | 2.75 | +| 2022-05-01 00:00:00 | 1.52 | 0.95 | 2.99 | 6.64 | 2.04 | 2.9 | +| 2022-06-01 00:00:00 | 2.06 | 1.45 | 3.64 | 7.14 | 2.63 | 3.14 | +| 2022-07-01 00:00:00 | 1.71 | 1.08 | 3.36 | 6.37 | 2.31 | 2.9 | +| 2022-08-01 00:00:00 | 1.69 | 1.03 | 3.3 | 5.8 | 2.15 | 2.9 | +| 2022-09-01 00:00:00 | 2.41 | 1.8 | 4.14 | 6.28 | 2.92 | 3.52 | +| 2022-10-01 00:00:00 | 2.77 | 2.19 | 4.53 | 7.82 | 3.29 | 3.98 | diff --git a/website/content/sdk/guides/guides/etf.md b/website/content/sdk/guides/guides/etf.md new file mode 100644 index 00000000000..76faf8ba394 --- /dev/null +++ b/website/content/sdk/guides/guides/etf.md @@ -0,0 +1,185 @@ +--- +title: ETF +keywords: + [ + "stocks, stock, options, option, call, put, earnings, calendar, how-to, guide, scripts, fundamental, analysis, technical, behavioural, analyst, equity, research, api, sdk, application, python, notebook, jupyter", + ] +excerpt: "This guide introduces the ETF SDK in the context of the OpenBB SDK." +--- + +The ETF module provides programmatic access to the commands from within the OpenBB Terminal. Import the OpenBB SDK module, and then access the functions similarly to how the Terminal menus are navigated. The code completion will be activated upon entering `.`, after, `openbb.etf` +​ + +## How to Use + +​The examples provided below will assume that the following import block is included at the beginning of the Python script or Notebook file: +​ + +```python +from openbb_terminal.sdk import openbb +import pandas as pd +``` + +​Below is a brief description of each function within the ETF module: + +|Path |Type |Description | +|:---------|:---------:|------------------------------:| +|openbb.etf.candle |Function |Chart OHLC + Volume + Moving Averages | +|openbb.etf.disc |Sub-Module |Best/Worst/Highest Volume ETFs Today | +|openbb.etf.etf_by_category |Function |Lookup by Category | +|openbb.etf.etf_by_name |Function |Lookup by Name | +|openbb.etf.holdings |Function |Holdings and Weights | +|openbb.etf.ld |Function |Lookup by Description | +|openbb.etf.load |Function |Get Historical Price Data | +|openbb.etf.ln |Function |Lookup by Name (More Details Than `by_name`) | +|openbb.etf.news |Function |News Headlines for a Ticker | +|openbb.etf.overview |Function |Basic Statistics for an ETF | +|openbb.etf.scr |Sub-Module |ETF Screener | +|openbb.etf.summary |Function |Text Description and Summary of an ETF | +|openbb.etf.symbols |Dictionary |Dictionary of {Ticker:Name} | +|openbb.etf.weights |Function |Table or Pie Graph of Sector Weightings | + +Alteratively you can print the contents of the ETF SDK with: +​ + +```python +help(openbb.etf) +``` + +## Examples + +### etf_by_category + +​ +ETFs are categorized into different buckets. Use the code block below as a way to generate a list of all categories: +​ + +```python +etf_list = pd.DataFrame.from_dict(openbb.etf.etf_by_category('')).transpose() +categories = list(etf_list['category'].drop_duplicates()) +categories = pd.DataFrame(categories[1::], columns = ['Type']) +​ +categories.head(6) +``` + +| | Type | +| --: | :------------------------ | +| 0 | Pacific/Asia ex-Japan Stk | +| 1 | Large Value | +| 2 | Equity Energy | +| 3 | Foreign Large Blend | +| 4 | Large Blend | +| 5 | Multisector Bond | + +​Replacing the empty category in the syntax above will return the ETFs within that category: +​ + +```python +etf_category = pd.DataFrame.from_dict(openbb.etf.etf_by_category('Foreign Large Blend')).transpose() +etf_category = etf_category.sort_values(by=['total_assets'], ascending = False) +​ +etf_category.head(2) +``` + +| | short_name | long_name | currency | summary | category | family | exchange | market | total_assets | +| :--- | :------------------------------ | :------------------------------------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------ | :------- | :------- | :-------- | -----------: | +| VXUS | Vanguard Total International St | Vanguard Total International Stock Index Fund ETF Shares | USD | The investment seeks to track the performance of a benchmark index that measures the investment return of stocks issued by companies located in developed and emerging markets, excluding the United States. | Foreign Large Blend | Vanguard | NGM | us_market | 379067924480 | +| | | | | The fund employs an indexing investment approach designed to track the performance of the FTSE Global All Cap ex US Index, a float-adjusted market-capitalization-weighted index designed to measure equity market performance of companies located in developed and emerging markets, excluding the United States. It invests all, or substantially all, of its assets in the common stocks included in its target index. | | | | | | +| VEA | Vanguard FTSE Developed Markets | Vanguard FTSE Developed Markets Index Fund ETF Shares | USD | The investment seeks to track the performance of the FTSE Developed All Cap ex US Index. | Foreign Large Blend | Vanguard | PCX | us_market | 150540566528 | +| | | | | The fund employs an indexing investment approach designed to track the performance of the FTSE Developed All Cap ex US Index, a market-capitalization-weighted index that is made up of approximately 3865 common stocks of large-, mid-, and small-cap companies located in Canada and the major markets of Europe and the Pacific region. The adviser attempts to replicate the target index by investing all, or substantially all, of its assets in the stocks that make up the index, holding each stock in approximately the same proportion as its weighting in the index. | | | | | | + +​ +### ETF Tickers + +A list of all tickers in the specific category can be generated from the index of the above DataFrame, `etf_category`: + +```python +symbols = etf_category.index.to_list() +``` + +### Performance Metrics + +This list of tickers can then be used for comparison analysis, or portfolio optimization. For example, comparing the performance metrics of the Foreign Large Blend category: + +```python +performance = openbb.stocks.ca.screener(similar = symbols, data_type = 'performance') +performance = performance.sort_values(by=['Perf Quart']) +performance.head(5) +``` + +| | Ticker | Perf Week | Perf Month | Perf Quart | Perf Half | Perf Year | Perf YTD | Volatility W | Volatility M | Recom | Avg Volume | Rel Volume | Price | Change | Volume | +|---:|:---------|------------:|-------------:|-------------:|------------:|------------:|-----------:|---------------:|---------------:|:--------|-------------:|-------------:|--------:|---------:|---------:| +| 22 | IFV | 0.0057 | 0.0531 | -0.0873 | -0.122 | -0.2817 | -0.2657 | 0.0188 | 0.0194 | | 26410 | 1.44 | 16.78 | -0.0158 | 13090 | +| 20 | IDLV | 0.0326 | 0.0814 | -0.0836 | -0.1162 | -0.1756 | -0.1758 | 0.0113 | 0.0121 | | 152070 | 0.57 | 26.39 | 0.003 | 29698 | +| 18 | HDMV | 0.0456 | 0.0873 | -0.0728 | -0.1071 | -0.1709 | -0.1683 | 0.0087 | 0.0081 | | 4330 | 1.35 | 26.44 | 0.0006 | 2011 | +| 7 | DEEF | 0.0457 | 0.1061 | -0.0612 | -0.0997 | -0.2099 | -0.2071 | 0.0067 | 0.0122 | | 8350 | 0.08 | 25 | -0.0031 | 244 | +| 38 | RODM | 0.0424 | 0.1106 | -0.0428 | -0.1012 | -0.2015 | -0.1827 | 0.0141 | 0.0139 | | 345640 | 1.05 | 24.64 | 0.0011 | 125217 | + +### Holdings + +To peer into the holdings of a specific ETF: + +```python +holdings = openbb.etf.holdings('DIA').reset_index() +holdings.head(5) +``` + +| | Symbol | Name | % Of Etf | Shares | +|---:|:---------|:--------------------------------|:-----------|---------:| +| 0 | UNH | UnitedHealth Group Incorporated | 10.09% | 5985297 | +| 1 | GS | The Goldman Sachs Group, Inc. | 7.51% | 5985297 | +| 2 | HD | The Home Depot, Inc. | 6.03% | 5985297 | +| 3 | AMGN | Amgen Inc. | 5.61% | 5985297 | +| 4 | MCD | McDonald's Corporation | 5.35% | 5985297 | + +### ETF Screener + +The ETF screener is also accessible through the SDK. Variables for the screener are set in preset files. The path to their location will depend on the type of installation and operating system; it will be similar to: + +- For a pip/PyPi installation: `~/path_to/miniconda3/envs/obb/Lib/site-packages/openbb_terminal/etf/screener/presets/etf_config.ini` +- For a Git Clone & Conda installation: `~/path_to/cloned_folder/OpenBBTerminal/openbb_terminal/etf/screener/presets/etf_config.ini` +- For a the EXE/DMG installer bundles: `~/path_to_installation/OpenBB Terminal/.OpenBB/openbb_terminal/etf/screener/etf_config.ini` + +This file can be copied to the user data folder, `~/OpenBBUserData/presets/etf/screener/`, along with any other user-generated screener presets. + +```python +results = openbb.etf.scr.screen(preset='etf_config.ini') +results.head(5) +``` + +In this example, the configuration file is set to return results with a maximum Beta value of -2. + +| | index | Assets | NAV | Expense | PE | SharesOut | Div | DivYield | Volume | Open | PrevClose | YrLow | YrHigh | Beta | N_Hold | +|---:|:--------|---------:|------:|----------:|-----:|:------------|-------:|-----------:|---------------:|-------:|------------:|--------:|---------:|-------:|---------:| +| 0 | CLDS | 14.15 | 28.3 | 0.99 | N/A | 500,000 | N/A | N/A | 7815 | 28.58 | 28.05 | 14.79 | 46.43 | -2.12 | 6 | +| 1 | CTEX | 3.95 | 39.52 | 0.58 | N/A | 100,000 | N/A | N/A | 1161 | 39.56 | 39.48 | 24.48 | 51.3 | -2.07 | 31 | +| 2 | KLNE | 5.7 | 22.81 | 1.29 | N/A | 250,000 | 0.08 | 0.37 | 5580 | 21.55 | 21.7 | 12 | 31.38 | -2.79 | 5 | +| 3 | LABD | 97.16 | 18.61 | 1 | N/A | 5.22 | N/A | N/A | 8.12293e+06 | 22.26 | 21.35 | 15.7 | 85.28 | -2.67 | 17 | +| 4 | MJIN | 2.79 | 17.45 | 0.95 | N/A | 160,000 | 0.88 | 4.45 | 282 | 19.81 | 19.07 | 7.87 | 26.73 | -3.23 | 2 | + +### Disc + +The current top gainers, losers, and volume for ETFs is returned with: + +```python +openbb.etf.disc.mover(sort_type = 'decliners') + +openbb.etf.disc.mover(sort_type = 'gainers') + +openbb.etf.disc.mover(sort_type = 'active') +``` + +With no `sort_type` chosen, it will default to `gainers`: + +```python +movers = openbb.etf.disc.mover() +movers.head(5) +``` + +| | | Price | Chg | %Chg | Vol | +|---:|:---------------------------------------------------------|--------:|-------:|-------:|:-------| +| 0 | Direxion Daily Semiconductor Bear 3X Shares | 35.3101 | 3.3101 | 10.34 | 24.5M | +| 1 | ProShares UltraShort Bloomberg Natural Gas | 18.09 | 1.19 | 7.04 | 4.4M | +| 2 | MicroSectors FANG & Innovation -3x Inverse Leveraged ETN | 28.98 | 1.83 | 6.74 | 160.1K | +| 3 | Direxion Daily Dow Jones Internet Bear 3X Shares | 32.14 | 1.91 | 6.32 | 554.2K | +| 4 | Direxion Daily S&P 500 High Beta Bear 3X Shares | 6.4652 | 0.3752 | 6.16 | 1.2M | diff --git a/website/content/sdk/guides/guides/forecast.md b/website/content/sdk/guides/guides/forecast.md new file mode 100644 index 00000000000..b76cc56f86b --- /dev/null +++ b/website/content/sdk/guides/guides/forecast.md @@ -0,0 +1,103 @@ +--- +title: Forecast +keywords: ["machine, learning, prediction, forecasting, neural, network, linear, regression, time, series, scripts, data, mining, cleaning, transformer, analyst, equity, research, api, sdk, application, python, notebook, jupyter"] +excerpt: "This guide introduces the Forecast SDK in the context of the OpenBB SDK." + +--- + +The Forecast module provides programmatic access to the commands from within the OpenBB Terminal. Import the OpenBB SDK module, and then access the functions similarly to how the Terminal menus are navigated. The code completion will be activated upon entering `.`, after, `openbb.forecast` +​ +## How to Use +​ +The examples provided below will assume that the following import block is included at the beginning of the Python script or Notebook file: +​ +```python +from openbb_terminal.sdk import openbb +import pandas as pd +%matplotlib inline +``` +​ +A brief description below highlights the main Functions and Modules available in the ETF SDK + +|Path |Type | Description | +| :--------- | :---------: | ----------: | +|openbb.forecast.load |Function |Show the data selected data on a chart | +|openbb.forecast.plot |Function |Plot a specific column of a loaded dataset | +|openbb.forecast.clean |Function |Clean a dataset by filling or dropping NaNs | +|openbb.forecast.combine |Function |Combine columns from different datasets | +|openbb.forecast.desc |Function |Show descriptive statistics of a dataset | +|openbb.forecast.corr |Function |Plot the correlation coefficients for dataset features | +|openbb.forecast.season |Function |Plot the seasonality for a dataset column | +|openbb.forecast.delete |Function |Delete columns from dataset | +|openbb.forecast.rename |Function |Rename columns from dataset | +|openbb.forecast.export |Function |Export a processed dataset | +|openbb.forecast.signal |Function |Add Price Signal (short vs. long term) | +|openbb.forecast.atr |Function |Add Average True Range | +|openbb.forecast.ema |Function |Add Exponentially Weighted Moving Average | +|openbb.forecast.sto |Function |Add Stochastic Oscillator %K and %D | +|openbb.forecast.rsi |Function |Add Relative Strength Index | +|openbb.forecast.roc |Function |Add Rate of Change | +|openbb.forecast.mom |Function |Add Momentum | +|openbb.forecast.delta |Function |Add % Change | +|openbb.forecast.autoces |Function |Automatic Complex Exponential Smoothing Model | +|openbb.forecast.autoets |Function |Automatic ETS (Error, Trend, Seasonality) Model | +|openbb.forecast.seasonalnaive |Function |Seasonal Naive Model | +|openbb.forecast.expo |Function |Probabilistic Exponential Smoothing | +|openbb.forecast.theta |Function |Theta Method | +|openbb.forecast.linregr |Function |Probabilistic Linear Regression (feat. Past covariates and Explainability) | +|openbb.forecast.regr |Function |Regression (feat. Past covariates and Explainability) | +|openbb.forecast.rnn |Function |Probabilistic Recurrent Neural Network (RNN, LSTM, GRU) | +|openbb.forecast.brnn |Function |Block Recurrent Neural Network (RNN, LSTM, GRU) (feat. Past covariates) | +|openbb.forecast.nbeats |Function |Neural Bayesian Estimation (feat. Past covariates) | +|openbb.forecast.tcn |Function |Temporal Convolutional Neural Network (feat. Past covariates) | +|openbb.forecast.trans |Function |Transformer Network (feat. Past covariates) | +|openbb.forecast.tft |Function |Temporal Fusion Transformer Network(feat. Past covariates) | +|openbb.forecast.nhits |Function |Neural Hierarchical Interpolation (feat. Past covariates) | +|openbb.forecast.rwd |Function |Random Walk with Drift Model | +|openbb.forecast.autoselect |Function |Select best statistical model from AutoARIMA, AutoETS, AutoCES, MSTL, etc. | + +Alteratively you can print the contents of the Forecast SDK with: +​ +```python +help(openbb.forecast) +``` + +## Examples + +### corr +​ +Shows a correlation matrix between columns in dataset +​ +```python +df = pd.read_csv(ANDREW_REPLACE) +openbb.forecast.corr_view(df) +``` +![Corr View](https://user-images.githubusercontent.com/72827203/202424217-b549b6e7-b121-4273-a7d9-b478e89cd65a.png) + +​ +### season +​ +This command allows you to see seasonality patterns in your data + +```python +df = pd.read_csv(ANDREW_REPLACE) +openbb.forecast.season(df, "Close") +``` +​ + +![Season View](https://user-images.githubusercontent.com/72827203/202426763-ae0b5e49-a570-47d8-9558-3b3530e72b0d.png) +​ +### expo + +Predicts the future value of time series data using exponential smoothing +​ +```python +df = pd.read_csv(ANDREW_REPLACE) +openbb.forecast.expo(df, "Close") +``` +​ +Here was can now see a chart and table with the expected values, and historic data. The chart also tells us how our backtesing performed, so that we can know the accuracy of our prediction. +​ + +![Expo View](https://user-images.githubusercontent.com/72827203/202429347-b3ab488d-d4f6-42bb-80d1-c66b3c5a92df.png) +​ diff --git a/website/content/sdk/guides/guides/forex.md b/website/content/sdk/guides/guides/forex.md new file mode 100644 index 00000000000..adc976dbb6b --- /dev/null +++ b/website/content/sdk/guides/guides/forex.md @@ -0,0 +1,156 @@ +--- +title: Forex +--- +The Forex module provides a way for users to get currency pair data, from a number of sources. API keys for them are handled by the Keys module. After importing the entire OpenBB SDK, no further action is required to authorize the sources. This module also provides Oanda account holders with broker integration. + +## How to Use + +Below is a brief description of each function within the Forex module: + +|Path |Type |Description | +|:------------------------------|:----------:|------------------------------:| +|openbb.forex.candle |Function |OHLC Chart & Optional Moving Averages | +|openbb.forex.fwd |Function |Forward Rates of Currency Pairs | +|openbb.forex.get_currency_list |List |List of Currency Symbols | +|openbb.forex.load |Function |Load Historical OHLC Data for Currency Pairs | +|openbb.forex.oanda |Sub-Module |Oanda Broker Integration | +|openbb.forex.quote |Function |Realtime Currency Exchange Rate | + +The contents of the menu is printed with: + +```python +help(openbb.forex) +``` + +## Examples + +### Import Statements + +The examples in this guide will assume that the import statements below are present: + +```python +from openbb_terminal.sdk import openbb +import pandas as pd +%matplotlib inline +``` + +### Load + +The `load` function has the ability to request data from multiple sources: + +- AlphaVantage +- Oanda +- Polygon +- YahooFinance (default) + +Using the default source: + +```python +currency_pair = openbb.forex.load( + from_symbol='USD', + to_symbol='EUR', + start_date = '2000-01-01', + interval = '1week') + +currency_pair.head(3) +``` + +| date | Open | High | Low | Close | Adj Close | Volume | +|:--------------------|--------:|--------:|--------:|--------:|------------:|---------:| +| 2003-12-01 00:00:00 | 0.83098 | 0.83724 | 0.82028 | 0.82163 | 0.82163 | 0 | +| 2003-12-08 00:00:00 | 0.82183 | 0.82488 | 0.81261 | 0.82068 | 0.82068 | 0 | +| 2003-12-15 00:00:00 | 0.82055 | 0.82115 | 0.80373 | 0.80919 | 0.80919 | 0 | + +To use an alternate source, add the `source` argument to the syntax: + +```python +currency_pair = openbb.forex.load( + from_symbol= 'USD', + to_symbol= 'EUR', + source = 'Polygon', + start_date = '2000-01-01', + interval = '1week') + +currency_pair.head(3) +``` + +| date | Volume | vw | Open | Close | High | Low | Transactions | +|:--------------------|---------:|-------:|-------:|--------:|--------:|--------:|---------------:| +| 2012-01-29 00:00:00 | 3758 | 0.761 | 0.7565 | 0.7597 | 0.7676 | 0.7565 | 3758 | +| 2012-02-05 00:00:00 | 5605 | 0.7566 | 0.762 | 0.7581 | 0.7672 | 0.75081 | 5605 | +| 2012-02-12 00:00:00 | 9045 | 0.7611 | 0.757 | 0.7603 | 0.77053 | 0.75278 | 9045 | + +The amount and granularity of historical data available will vary by source. The two tables above illustrate some of those differences. + +### Average True Range + +The loaded data can now be used as inputs for other functions and calculations, such as the average true range over a four week window. + +```python +weekly_atr = openbb.ta.atr(data = currency_pair, window = 4) +currency_pair = currency_pair.join(weekly_atr) + +currency_pair.tail(1) +``` + +| date | Volume | vw | Open | Close | High | Low | Transactions | ATRe_4 | +|:--------------------|---------:|------:|--------:|--------:|--------:|------:|---------------:|----------:| +| 2022-11-13 00:00:00 | 481918 | 0.965 | 0.96479 | 0.96205 | 0.97351 | 0.954 | 481918 | 0.0281756 | + +### Forward Rates + +```python +fwd_usdeur = openbb.forex.fwd('EUR', 'USD') + +fwd_usdeur +``` + +| Expiration | Ask | Bid | Mid | Points | +|:--------------|--------:|--------:|--------:|---------:| +| Overnight | 0.96194 | 0.96188 | 0.96191 | -0.645 | +| Tomorrow Next | 0.96194 | 0.96187 | 0.9619 | -0.655 | +| Spot Next | 0.9618 | 0.96174 | 0.96177 | -1.97 | +| One Week | 0.96154 | 0.96148 | 0.96151 | -4.61 | +| Two Weeks | 0.96108 | 0.96101 | 0.96104 | -9.265 | +| Two Years | 0.92285 | 0.92237 | 0.92261 | -393.605 | + +Currency pairs will have different term structure composition in the other direction: + +```python +fwd_eurusd = openbb.forex.fwd('USD', 'EUR') + +fwd_eurusd +``` + +| Expiration | Ask | Bid | Mid | Points | +|:-------------|--------:|--------:|--------:|---------:| +| One Year | 1.06639 | 1.06589 | 1.06614 | 263.9 | +| Two Years | 1.0874 | 1.0867 | 1.08705 | 473 | +| Three Years | 1.10033 | 1.09933 | 1.09983 | 600.8 | +| Four Years | 1.10774 | 1.10544 | 1.10659 | 668.4 | +| Five Years | 1.11918 | 1.11588 | 1.11753 | 777.8 | +| Six Years | 1.1267 | 1.1239 | 1.1253 | 855.5 | +| Seven Years | 1.1372 | 1.1334 | 1.1353 | 955.5 | +| Ten Years | 1.1652 | 1.1584 | 1.1618 | 1220.5 | + +Not all currency pairs will have the same length of term structure. + +```python +fwd_jpyeur = openbb.forex.oanda.fwd('JPY', 'EUR') +fwd_pairs = fwd_jpyeur.join(fwd_usdeur, on = ['Expiration'], lsuffix = ' JPY/EUR', rsuffix=' USD/EUR') + +fwd_pairs +``` + +| Expiration | Ask JPY/EUR | Bid JPY/EUR | Mid JPY/EUR | Points JPY/EUR | Ask USD/EUR | Bid USD/EUR | Mid USD/EUR | Points USD/EUR | +|:--------------|--------------:|--------------:|--------------:|-----------------:|--------------:|--------------:|--------------:|-----------------:| +| Overnight | 144.994 | 144.982 | 144.988 | -0.565 | 0.96194 | 0.96188 | 0.96191 | -0.645 | +| Tomorrow Next | 144.994 | 144.982 | 144.988 | -1.775 | 0.96194 | 0.96187 | 0.9619 | -0.655 | +| Spot Next | 144.994 | 144.982 | 144.988 | -0.585 | 0.9618 | 0.96174 | 0.96177 | -1.97 | +| One Week | 144.994 | 144.982 | 144.988 | -4.23 | 0.96154 | 0.96148 | 0.96151 | -4.61 | +| Two Weeks | 144.993 | 144.981 | 144.987 | -8.73 | 0.96108 | 0.96101 | 0.96104 | -9.265 | +| Three Weeks | 144.993 | 144.981 | 144.987 | -13.08 | 0.96061 | 0.96055 | 0.96058 | -13.905 | +| One Month | 144.992 | 144.98 | 144.986 | -18.6865 | 0.95989 | 0.95982 | 0.95985 | -21.155 | +| Two Months | 144.989 | 144.977 | 144.983 | -46.995 | 0.95697 | 0.95689 | 0.95693 | -50.445 | +| Three Months | 144.987 | 144.974 | 144.981 | -73.347 | 0.95468 | 0.95459 | 0.95463 | -73.39 | +| Four Months | 144.984 | 144.972 | 144.978 | -103.125 | 0.95291 | 0.95281 | 0.95286 | -91.11 | diff --git a/website/content/sdk/guides/guides/futures.md b/website/content/sdk/guides/guides/futures.md new file mode 100644 index 00000000000..9663ae8051e --- /dev/null +++ b/website/content/sdk/guides/guides/futures.md @@ -0,0 +1,118 @@ +--- +title: Futures +--- + +The functions from the OpenBB Terminal Futures menu is part of the SDK layer, and provides methods for programmatically accessing the data and charts associated with them. Get started by importing the OpenBB SDK to the Python script or Jupyter Notebook file. + + +## How to Use + +Below is a brief description of each function within the Futures module: + +|Path |Type |Description | +|:---------|:---------:|------------------------------:| +|openbb.futures.curve |Function |Futures Forward Curve Data +|openbb.futures.curve_chart |Function |Futures Forward Curve Chart +|openbb.futures.search |Function |Search Available Futures +|openbb.futures.historical |Function |Historical OHLC+V Data +|openbb.futures.historical_chart |Function |Chart Historical Price of Individual Contracts + +## Examples + +### Import Statements + +The examples here will assume that the block below is included at the top of the file: + +```python +from openbb_terminal.sdk import openbb +import pandas as pd +%matplotlib inline +``` + +### Search + +Futures can be searched by description, exchange, or category. + +```python +obb.futures.search(description = 'Eurodollar') +``` + +| | Ticker | Description | Exchange | Category | +|----:|:---------|:-------------------------------------|:-----------|:-----------| +| 66 | GE | Eurodollar Futures | CME | currency | +| 67 | GLB | One-Month Eurodollar Futures | CME | currency | +| 152 | SED | SED (SOFR-Eurodollar) Spread Futures | CME | bonds | + +The historical front-month price is captured to a DataFrame with: + +### Curve + +The forward curve data for a symbol is fetched with: + +```python +eurodollar = openbb.futures.curve('GE') +``` + +|Expiration | Futures | +|:--------------------|----------:| +| 2022-11-01 00:00:00 | 95.3561 | +| 2022-12-01 00:00:00 | 94.9925 | +| 2023-01-01 00:00:00 | 94.985 | +| 2023-02-01 00:00:00 | 94.9 | +| 2023-03-01 00:00:00 | 94.825 | +...continued + +To display a chart of the data, use `curve_chart`: + +```python +openbb.futures.curve_chart(symbol = 'GE') +``` + +![openbb.futures.curve_chart](https://user-images.githubusercontent.com/85772166/202352342-eecf872d-8934-42e7-8b53-4e3415bc2993.png "openbb.futures.curve_chart") + +### Historical + +The `historical` function can fetch the historical front-month price: + +```python +wti_continuous = obb.futures.historical('CL') +``` + +Or, while actively trading, individual contracts. The example below requests historical data for the December WTI contract from 2023 to 2030, starting at the first recorded trading day of the December 2030 contract. + +```python +cl_2312 = openbb.futures.historical(symbols = ['CL'], expiry = '2023-12') +cl_2312 = cl_2312.rename(columns={'Adj Close':'2023-12'}) +cl_2412 = openbb.futures.historical(symbols = ['CL'], expiry = '2024-12') +cl_2412 = cl_2412.rename(columns={'Adj Close':'2024-12'}) +cl_2512 = openbb.futures.historical(symbols = ['CL'], expiry = '2025-12') +cl_2512 = cl_2512.rename(columns={'Adj Close':'2025-12'}) +cl_2612 = openbb.futures.historical(symbols = ['CL'], expiry = '2026-12') +cl_2612 = cl_2612.rename(columns={'Adj Close':'2026-12'}) +cl_2712 = openbb.futures.historical(symbols = ['CL'], expiry = '2027-12') +cl_2712 = cl_2712.rename(columns={'Adj Close':'2027-12'}) +cl_2812 = openbb.futures.historical(symbols = ['CL'], expiry = '2028-12') +cl_2812 = cl_2812.rename(columns={'Adj Close':'2028-12'}) +cl_2912 = openbb.futures.historical(symbols = ['CL'], expiry = '2029-12') +cl_2912 = cl_2912.rename(columns={'Adj Close':'2029-12'}) +cl_3012 = openbb.futures.historical(symbols = ['CL'], expiry = '2030-12') +cl_3012 = cl_3012.rename(columns={'Adj Close':'2030-12'}) + +historical = pd.DataFrame(data = [cl_2312['2023-12'],cl_2412['2024-12'],cl_2512['2025-12'],cl_2612['2026-12'],cl_2712['2027-12'],cl_2812['2028-12'],cl_2912['2029-12'],cl_3012['2030-12']]).transpose() +historical = historical.dropna() + +historical +``` + +| Date | 2023-12 | 2024-12 | 2025-12 | 2026-12 | 2027-12 | 2028-12 | 2029-12 | 2030-12 | +|:--------------------|----------:|----------:|----------:|----------:|----------:|----------:|----------:|----------:| +| 2020-01-24 00:00:00 | 49.61 | 50.14 | 50.7 | 51.56 | 51.63 | 51.63 | 51.63 | 51.63 | +| 2020-01-27 00:00:00 | 49.94 | 50.6 | 51.18 | 51.05 | 51.12 | 51.12 | 51.12 | 51.12 | +| 2020-01-28 00:00:00 | 50.17 | 50.78 | 51.23 | 51.55 | 51.62 | 51.62 | 51.62 | 51.62 | +| 2020-01-29 00:00:00 | 50.07 | 50.64 | 51.13 | 51.6 | 51.67 | 51.67 | 51.67 | 51.67 | +| 2020-01-30 00:00:00 | 50.27 | 50.91 | 51.44 | 51.49 | 51.56 | 51.56 | 51.56 | 51.56 | +| 2022-11-09 00:00:00 | 76.69 | 71.62 | 68.01 | 65.1 | 62.52 | 60.17 | 58.12 | 56.49 | +| 2022-11-10 00:00:00 | 77 | 71.64 | 67.89 | 64.86 | 62.26 | 59.91 | 57.86 | 56.23 | +| 2022-11-11 00:00:00 | 78.81 | 73.1 | 69.22 | 66.19 | 63.6 | 61.25 | 59.2 | 57.57 | +| 2022-11-14 00:00:00 | 77.4 | 72.35 | 68.89 | 66.15 | 63.62 | 61.25 | 59.13 | 57.5 | +| 2022-11-15 00:00:00 | 78.82 | 73.66 | 70.14 | 67.36 | 64.94 | 62.62 | 60.49 | 58.68 | diff --git a/website/content/sdk/guides/guides/portfolio.md b/website/content/sdk/guides/guides/portfolio.md new file mode 100644 index 00000000000..b79f84d6e3a --- /dev/null +++ b/website/content/sdk/guides/guides/portfolio.md @@ -0,0 +1,217 @@ +--- +title: Portfolio +keywords: ["portfolio", "attribution", "optimization", "pnl", "benchmark", "return", "volatility", "metrics", "broker", "integration", "report"] +excerpt: "The Introduction to Portfolio explains how to use the +menu and provides a brief description of its sub-menus" + +--- + +The capabilities of the [Portfolio menu](/terminal/guides/portfolio) from the OpenBB Terminal are wrapped into a powerful SDK, enabling users to work with the data in a flexible environment that can be fully customized to meet the needs of any user. This menu is dedicated to properly explaining and optimizing your own portfolio with features to load your own orderbook (transactions) it is possible to compare your results to that of a benchmark. For example, you are able to load both your portfolio and a benchmark, then have the option to look into the performance compared to the benchmark asking the question "_What if I invested all my money in the benchmark instead?_" as well as see a wide variety of statistics and metrics. Next to that, with these findings you can apply optimization techniques to your portfolio through functionalities which can be found in the `openbb.portfolio.po` sub-module. + +## How to use + +Start a Python script or Notebook file by importing the module: + +```python +from openbb_terminal.sdk import openbb +``` + +Below is a brief description of each function within the Portfolio module: + +| Path | Type | Description | +| :------------------------- | :--------: | -------------------------------------------: | +| openbb.portfolio.summary | Function | Portfolio and benchmark returns summary | +| openbb.portfolio.po | Sub-Module | Portfolio Optimization Sub Menu | +| openbb.portfolio.dret | Function | Get daily returns | +| openbb.portfolio.holdp | Function | Get holdings of assets in % | +| openbb.portfolio.yret | Function | Get yearly returns | +| openbb.portfolio.rbeta | Function | Rolling beta using portfolio and benchmark returns | +| openbb.portfolio.rsharpe | Function | Rolling sharpe ratio | +| openbb.portfolio.distr | Function | Distribution of daily returns | +| openbb.portfolio.om | Function | Omega ratio | +| openbb.portfolio.es | Function | Expected shortfall | +| openbb.portfolio.perf | Function | Portfolio performance vs the benchmark | +| openbb.portfolio.rsort | Function | Rolling sortino | +| openbb.portfolio.bench | Function | Load benchmark into portfolio | +| openbb.portfolio.metric | Sub-Module | Metric functions you can apply | +| openbb.portfolio.alloc | Function | Region allocation compared to the benchmark | +| openbb.portfolio.rvol | Function | Rolling volatility | +| openbb.portfolio.var | Function | Get portfolio VaR | +| openbb.portfolio.load | Function | Load portfolio using a file | +| openbb.portfolio.show | Function | Get portfolio transactions | +| openbb.portfolio.mret | Function | Get monthly returns | +| openbb.portfolio.holdv | Function | Get holdings of assets (absolute value) | + +Alteratively you can print the contents of the Porfolio SDK with: + +```python +help(openbb.portfolio) +``` + +## Examples + +### Loading a Portfolio + +The first step in using this menu is loading a portfolio. Here, we provide an +example titled "Public_Equity_Orderbook.xlsx" which can be loaded in. This file +also serves as a template when you wish to fill in your own orders. This results +in the following: + +```python +from openbb_terminal.sdk import Portfolio + +# Define your own orderbook location here +orderbook_path = "Public_Equity_Orderbook.xlsx" + +# Load in the transactions +transactions = Portfolio.read_orderbook(orderbook_path) +P = Portfolio(transactions) +P.generate_portfolio_data() + +# Load in the benchmark, by default this is the SPY ETF +P.load_benchmark() +``` + +### Excel Sheet Format + +Note that the Excel sheet requires the following columns: + +- **Date** - The date the trade occurred +- **Name** - The name of the security +- **Type** - The type of the security. Use Cash/Stock/Crypto/ETF as appropriate +- **Price** - The price the security was added or removed at, on a per-unit + basis +- **Quantity** - How much of the security in question was added or removed +- **Side** - Whether you bought or sold. Use Buy/Deposit/1 to add to the + portfolio or Sell/Withdrawal/0 to remove from the portfolio a search criteria, + country, sector or industry. + +Furthermore, the chosen Excel sheet above also has additional columns but these +are _optional_. The OpenBB Terminal can figure out by itself what industry, +sector, country and region belongs to the loaded in equity. You can see this in +action by loading in the "Public_Equity_Orderbook_No_Categorization.xlsx" Excel +sheet. + +### get_orderbook + +With the `get_orderbook` on the `Portfolio` class command we can show how the +data has been loaded in: + +```python +P.get_orderbook() +``` + +This returns the following (a portion of the data): + +| | Date | Type | Ticker | Side | Price | Quantity | Fees | Investment | Currency | Sector | Industry | Country | Region | +| --: | :--------- | :---- | :----- | :--- | -----: | -------: | ---: | ---------: | :------- | :---------------- | :--------------------- | :------------ | :------------ | +| 38 | 2022-05-02 | STOCK | YUM | Buy | 115.76 | 11 | 40 | 1313.36 | USD | Consumer Cyclical | Restaurants | United States | North America | +| 37 | 2022-04-12 | STOCK | DGX | Buy | 137.27 | 10 | 30 | 1402.7 | USD | Healthcare | Diagnostics & Research | United States | North America | +| 36 | 2022-03-04 | STOCK | TSM | Buy | 105.06 | 30 | 0 | 3151.8 | USD | Technology | Semiconductors | Taiwan | Asia | +| 35 | 2022-02-02 | STOCK | BABA | Buy | 122.88 | 30 | 0 | 3686.4 | USD | Consumer Cyclical | Internet Retail | China | Asia | +| 34 | 2021-12-28 | STOCK | NKE | Buy | 166.42 | 13 | 20 | 2183.46 | USD | Consumer Cyclical | Footwear & Accessories | Germany | Europe | + +### perf + +With the portfolio and benchmark loaded in, we can see how the portfolio +performed compared to if you invested the same amount of money into the +benchmark instead. This reflects the capabilities of you, as an investor, to +outperform a passive strategy. + +```python +openbb.portfolio.perf(P) +``` + +| | Portfolio | Benchmark | Difference | +| :--------------- | :-------- | :-------- | :--------- | +| Total Investment | 48693.95 | 48693.95 | - | +| Total Value | 54591.70 | 60379.68 | -5787.97 | +| Total % Return | 12.11% | 24.00% | -11.89% | +| Total Abs Return | 5897.75 | 11685.73 | -5787.97 | + +Compliment this by showing the volatility of the portfolio for different time +periods with the volatility measure. + +### volatility + +```python +openbb.portfolio.volatility(P) +``` + +| | Portfolio [%] | Benchmark [%] | +| :-- | ------------: | ------------: | +| mtd | 7.024 | 3.589 | +| qtd | 13.515 | 8.823 | +| ytd | 34.853 | 22.489 | +| 3m | 18.119 | 12.562 | +| 6m | 26.216 | 17.64 | +| 1y | 36.341 | 23.303 | +| 3y | 54.114 | 42.435 | +| 5y | 62.103 | 47.383 | +| 10y | 72.617 | 54.408 | +| all | 91.162 | 62.297 | + +### Further Examples - No Categorization + +Instead of loading the "Public_Equity_Orderbook.xlsx" file, we now load in +"Public_Equity_Orderbook_No_Categorization.xlsx" which does not include +categorization of the stocks by industry, sector, country and region. Therefore, +we let the OpenBB Terminal figure this out. This takes a bit longer to load. + +```python +from openbb_terminal.sdk import Portfolio + +# Define your own orderbook location here +orderbook_path = "Public_Equity_Orderbook_No_Categorization.xlsx" + +# Load in the transactions +transactions = Portfolio.read_orderbook(orderbook_path) +P = Portfolio(transactions) +P.generate_portfolio_data() + +# Load in the benchmark, by default this is the SPY ETF +P.load_benchmark() +``` + +Then, we can show our performance compared to that of the benchmark. + +```python +openbb.portfolio.perf(P) +``` + +| | Portfolio | Benchmark | Difference | +| :--------------- | :-------- | :-------- | :--------- | +| Total Investment | 48693.95 | 48693.95 | - | +| Total Value | 54795.03 | 60472.14 | -5677.11 | +| Total % Return | 12.53% | 24.19% | -11.66% | +| Total Abs Return | 6101.08 | 11778.19 | -5677.11 | + +Furthermore, we can also show the rolling beta. + +```python +openbb.portfolio.rbeta(P, chart=True) +``` + +![Rolling Beta of the Portfolio](https://user-images.githubusercontent.com/46355364/180178392-96efb6e1-60a1-4f76-92d8-434fb3637c21.png) + +This helps in understanding that, even though you achieved a superior return, +this also came at a greater risk compared to that of the benchmark. With the +available functionalities you can further look into these results, e.g. by +looking at the sharpe ratio: + +```python +openbb.portfolio.sharpe(P) +``` + +| | Portfolio | Benchmark | +| :-- | --------: | --------: | +| mtd | 0.193 | -0.207 | +| qtd | 0.144 | 0.132 | +| ytd | -0.077 | -0.058 | +| 3m | -0.069 | -0.071 | +| 6m | -0.013 | -0.013 | +| 1y | -0.073 | -0.046 | +| 3y | 0.021 | 0.029 | +| 5y | 0.026 | 0.035 | +| 10y | 0.044 | 0.049 | +| all | 0.03 | 0.045 | diff --git a/website/content/sdk/guides/guides/stocks/behavioral-analysis.md b/website/content/sdk/guides/guides/stocks/behavioral-analysis.md new file mode 100644 index 00000000000..8de5c897b0f --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/behavioral-analysis.md @@ -0,0 +1,8 @@ +--- +title: Behavioral Analysis +keywords: + [ + "stocks", "stock", "options", "option", "call", "put" + ] +excerpt: "This guide introduces the Stocks menu in the context of the OpenBB SDK." +--- diff --git a/website/content/sdk/guides/guides/stocks/comparison-analysis.md b/website/content/sdk/guides/guides/stocks/comparison-analysis.md new file mode 100644 index 00000000000..4e17ce1a2be --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/comparison-analysis.md @@ -0,0 +1,130 @@ +--- +title: Comparison Analysis +keywords: + [ + "stocks, stock, options, option, comparison, analysis, tickers, stocks, insight" + ] +excerpt: "This guide introduces the CA SDK in the context of the OpenBB SDK." +--- + +The CA module provides programmatic access to the commands from within the OpenBB Terminal. Import the OpenBB SDK module, and then access the functions similarly to how the Terminal menus are navigated. The code completion will be activated upon entering `.`, after, `openbb.ca` +​ + +## How to Use + +​ +The examples provided below will assume that the following import block is included at the beginning of the Python script or Notebook file: +​ + +```python +from openbb_terminal.sdk import openbb +``` + +​ +A brief description below highlights the main Functions and Modules available in the ETF SDK + +| Path | Type | Description | +| :------------------------- | :--------: | -------------------------------------------: | +| openbb.ca.balance | Function | Balance Financials Comparison | +| openbb.ca.hcorr | Function | Historical Price Correlation | +| openbb.ca.volume | Function | Historical Volume Data Comparison | +| openbb.ca.scorr | Function | Sentiment Correlation | +| openbb.ca.hist | Function | Historical Price Data Comparison | +| openbb.ca.sentiment | Function | Sentiment Analysis Comparison | +| openbb.ca.polygon_peers | Function | Similar Tickers from Polygon | +| openbb.ca.finviz_peers | Function | Similar Tickers from Finvix | +| openbb.ca.income | Function | Income Financials Comparison | +| openbb.ca.cashflow | Function | Cashflow Financials Comparison | +| openbb.ca.screener | Function | Screener Overview | + +Alteratively you can print the contents of the ETF SDK with: + +```python +help(openbb.ca) +``` + +## Examples + +### balance + +The balance commands allows use to compare the balance sheets for various companies + +```python +openbb.stocks.ca.balance(["TSLA","F", "GE"]) +``` + +| Item | TSLA | F | GE | +|:-------------------------------------|:-------|:--------|:--------| +| Cash & Short Term Investments | 18.05B | 49.59B | 28.07B | +| Cash & Short Term Investments Growth | -8.00% | -0.74% | -35.99% | +| Cash Only | 17.92B | 20.54B | 15.77B | +| Short-Term Investments | - | - | - | +| Cash & ST Investments / Total Assets | 29.05% | 19.29% | 14.11% | +| Total Accounts Receivable | 1.91B | 44.04B | 20.5B | +| Total Accounts Receivable Growth | 1.43% | -16.24% | -8.70% | +| Accounts Receivables, Net | 1.91B | 43.91B | 20.5B | +| Accounts Receivables, Gross | 1.91B | 44.28B | 21.58B | +| Bad Debt/Doubtful Accounts | - | (366M) | (1.07B) | +| Other Receivable | - | - | - | +| Accounts Receivable Turnover | 28.14 | 3.10 | 3.62 | +| Inventories | 5.76B | 12.07B | 15.85B | +| Finished Goods | 1.28B | 6.28B | 4.93B | +| Work in Progress | 1.09B | - | - | +| Raw Materials | 3.39B | 5.79B | 8.71B | +| Progress Payments & Other | - | - | 2.21B | +| Other Current Assets | 1.38B | 3.3B | 1.93B | +| Miscellaneous Current Assets | 1.38B | 3.3B | 1.93B | +| Total Current Assets | 27.1B | 109B | 66.35B | +| Net Property, Plant & Equipment | 31.18B | 64.84B | 15.61B | +| Property, Plant & Equipment - Gross | 39.87B | 101.99B | 31.9B | +| Buildings | 4.68B | 12.44B | 8.31B | +| Land & Improvements | - | 450M | 585M | +| Computer Software and Equipment | 1.41B | 4.6B | - | +| Other Property, Plant & Equipment | 18.73B | 11.4B | - | +| Accumulated Depreciation | 8.69B | 37.16B | 16.3B | +| Total Investments and Advances | 223M | 5.64B | 42.21B | +| Other Long-Term Investments | 223M | 197M | 42.21B | +| Long-Term Note Receivables | 299M | 51.26B | - | +| Intangible Assets | 1.72B | 619M | 35.51B | +| Net Goodwill | 200M | 619M | 26.18B | +| Net Other Intangibles | - | - | - | +| Other Assets | 1.62B | 11.89B | 28.34B | +| Total Assets | 62.13B | 257.04B | 198.87B | +| Total Assets Growth | 19.14% | -3.83% | -22.38% | + +### sentiment + +Produces a table with sentiment over time for a given list of tickers + +```python +openbb.stocks.ca.sentiment(["tsla", "aapl"]) +``` + +| | TSLA | F | GE | +|:-----------|-------:|------:|------:| +| 2022-11-08 | -0.028 | 0.382 | 0.328 | +| 2022-11-09 | 0.209 | 0.199 | 0.242 | +| 2022-11-10 | -0.025 | 0.178 | 0.112 | +| 2022-11-11 | 0.027 | 0.086 | 0.056 | +| 2022-11-14 | -0.402 | 0.105 | 0.104 | +| 2022-11-15 | -0.122 | 0.081 | 0.075 | +| 2022-11-16 | -0.35 | 0.179 | 0.086 | +| 2022-11-17 | 0.156 | 0.387 | 0.025 | +| 2022-11-18 | 0.216 | 0.093 | 0.019 | +| 2022-11-21 | -0.071 | 0.069 | 0.01 | + +​ + +### scr + +Show a high-level overview of company information for tickers in a given list + +```python +openbb.stocks.ca.screener(["tsla", "aapl"]) +``` + +| | Ticker | Company | Sector | Industry | Country | Market Cap | P/E | Price | Change | Volume | +|---:|:---------|:-------------------------|:------------------|:-------------------------------|:----------|-------------:|-------:|--------:|---------:|------------:| +| 0 | F | Ford Motor Company | Consumer Cyclical | Auto Manufacturers | USA | 5.577e+10 | 6.31 | 13.95 | -0.0029 | 3.40871e+07 | +| 1 | GE | General Electric Company | Industrials | Specialty Industrial Machinery | USA | 9.375e+10 | nan | 85.89 | 0.0048 | 3.26976e+06 | +| 2 | TSLA | Tesla, Inc. | Consumer Cyclical | Auto Manufacturers | USA | 5.3886e+11 | 51.72 | 167.87 | -0.0684 | 9.28827e+07 | diff --git a/website/content/sdk/guides/guides/stocks/due-diligence.md b/website/content/sdk/guides/guides/stocks/due-diligence.md new file mode 100644 index 00000000000..2403b89234b --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/due-diligence.md @@ -0,0 +1,8 @@ +--- +title: Due Diligence +keywords: + [ + "stocks", "stock", "options", "option", "call", "put" + ] +excerpt: "This guide introduces the Stocks menu in the context of the OpenBB SDK." +--- diff --git a/website/content/sdk/guides/guides/stocks/fundamental-analysis.md b/website/content/sdk/guides/guides/stocks/fundamental-analysis.md new file mode 100644 index 00000000000..e463f5226a4 --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/fundamental-analysis.md @@ -0,0 +1,8 @@ +--- +title: Fundamental Analysis +keywords: + [ + "stocks, stock, options, option, call, put, earnings, calendar, how-to, guide, scripts, fundamental, analysis, technical, behavioural, analyst, equity, research, api, sdk, application, python, notebook, jupyter", + ] +excerpt: "This guide introduces the Stocks menu in the context of the OpenBB SDK." +--- diff --git a/website/content/sdk/guides/guides/stocks/index.md b/website/content/sdk/guides/guides/stocks/index.md new file mode 100644 index 00000000000..dab72d39aca --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/index.md @@ -0,0 +1,387 @@ +--- +title: Stocks +--- + +The capabilities of the Stocks menu from the OpenBB Terminal are wrapped into a powerful SDK, enabling users to work with the data in a flexible environment that can be fully customized to meet the needs of any user. Code completion and contextual help makes it easy to use. Navigating is very similar to operating the CLI Terminal Application. + +## How to use + +The list below are the SDK functions within the Stocks module and a short description: + +|Path |Type |Description | +|:----|:---------------------:|---------------------------------------------:| +|openbb.stocks.ba | Sub-Module| Behavioural Analysis| +|openbb.stocks.ca | Sub-Module| Comparison Analysis| +|openbb.stocks.candle | Function| OHLC + Volume + Moving Averages Chart| +|openbb.stocks.dd | Sub-Module| Due Dilligence| +|openbb.stocks.disc | Sub-Module| Stock Discovery| +|openbb.stocks.dps | Sub-Module| Dark Pools & Shorts| +|openbb.stocks.fa | Sub-Module| Fundamental Analysis| +|openbb.stocks.gov | Sub-Module| US Government, Lobbying & Representative Activity| +|openbb.stocks.ins | Sub-Module| Corporate Insider Activity (SEC Form 4)| +|openbb.stocks.load | Function| Load Data| +|openbb.stocks.options | Sub-Module| Options| +|openbb.stocks.qa | Sub-Module| Stocks-Only Quantitative Analysis| +|openbb.stocks.quote | Function| Last Price (yFinance)| +|openbb.stocks.screener | Sub-Module| Stock Screener| +|openbb.stocks.search | Function| Find Stocks| +|openbb.stocks.sia | Sub-Module| Sector & Industry Analysis| +|openbb.stocks.ta | Sub-Module| Stocks-Only Technical Analysis| +|openbb.stocks.th | Sub-Module| Trading Hours (Market Status)| +|openbb.stocks.tob | Function| Top of Book (CBOE)| + +Alternatively, contents of the menu is printed by running: + +```python +help(openbb.stocks) +``` + +Most items in `openbb.stocks` are sub-modules. The objective of this guide is to introduce the functions at the top-level and to demonstrate a selection of functions from the sub-modules. + +## Examples + +The code snippets in the following section will assume that the import block contains: + +```python +import pandas as pd +from datetime import datetime +from openbb_terminal.sdk import openbb +%matplotlib inline +``` + +### Load + +The first step in a workflow might be to collect historical price data. The `load` function has the ability to request data from multiple sources. The choices for `source` are currently: + +- YahooFinance (default) +- IEXCloud +- AlphaVantage +- Polygon +- EODHD + +```python +spy_monthly = openbb.stocks.load( + symbol = 'SPY', + start_date = '1990-01-01', + end_date = '', + interval = 1440, + prepost = False, + source = 'YahooFinance', + weekly = False, + monthly = True, +) +spy_monthly.head(3) +``` + +| date | Open | High | Low | Close | Adj Close | Volume | +|:--------------------|--------:|--------:|--------:|--------:|------------:|-----------:| +| 1993-02-01 00:00:00 | 43.9688 | 45.125 | 42.8125 | 44.4062 | 25.6043 | 5.4176e+06 | +| 1993-03-01 00:00:00 | 44.5625 | 45.8438 | 44.2188 | 45.1875 | 26.0548 | 3.0192e+06 | +| 1993-04-01 00:00:00 | 45.25 | 45.25 | 43.2812 | 44.0312 | 25.508 | 2.6972e+06 | + +There are source-dependent differences to the DataFrame returned. For example, compare the above with below: + +```python +spy_monthly = openbb.stocks.load( + symbol = 'SPY', + start_date = '1990-01-01', + end_date = '', + interval = 1440, + prepost = False, + source = 'Polygon', + weekly = False, + monthly = True, +) +spy_monthly.head(3) +``` + +| date | Volume | vw | Open | Adj Close | High | Low | Transactions | Close | +|:--------------------|------------:|--------:|-------:|------------:|-------:|-------:|---------------:|--------:| +| 2022-09-01 04:00:00 | 1.99492e+09 | 382.507 | 392.89 | 357.18 | 411.73 | 357.04 | 1.35653e+07 | 357.18 | +| 2022-10-01 04:00:00 | 2.02389e+09 | 370.918 | 361.08 | 386.21 | 389.52 | 348.11 | 1.38047e+07 | 386.21 | +| 2022-11-01 04:00:00 | 1.17559e+09 | 386.119 | 390.14 | 394.28 | 402.31 | 368.79 | 8.34067e+06 | 394.28 | + +### Candle + +OHLC DataFrames can be passed through the `Candle` function to display a chart. + +```python +openbb.stocks.candle(data = spy_monthly, symbol = 'SPY - Monthly Candles') +``` + +![openbb.stocks.candle](https://user-images.githubusercontent.com/85772166/201727311-e42f5ec3-bfdd-4d5d-ae4d-7e113f4b455d.png "openbb.stocks.candle") + +The `candle` function is also aware if a ticker is being passed. This makes it unneccessary to create a DataFrame if the objective is only to display the chart. + +```python +openbb.stocks.candle('SPY') +``` + +![openbb.stocks.candle](https://user-images.githubusercontent.com/85772166/202576993-08bfb90c-2254-423e-b599-8c86a1ea1e12.png "openbb.stocks.candle") + +Add moving averages to the chart with: + +```python +openbb.stocks.candle('SPY', ma = [50,150]) +``` + +![openbb.stocks.candle](https://user-images.githubusercontent.com/85772166/202576848-27e86f9a-e9bd-49b4-9008-2ad374e07abb.png "openbb.stocks.candle") + +### Search + +Search for companies by name with the `search` function, with optional filters for sector, industry, and region: + +```python +openbb.stocks.search(sector = 'Energy', country = 'United Kingdom', query = 'oil') +``` + +| | | long_name | country | sector | industry | exchange | +|---:|:-------------|:--------------------------------|:---------------|:---------|:--------------|-----------:| +| 0 | 3NO.F | Nostrum Oil & Gas PLC | United Kingdom | Energy | Oil & Gas E&P | nan | +| 1 | BOIL.L | Baron Oil Plc | United Kingdom | Energy | Oil & Gas E&P | nan | +| 2 | EGN.F | Europa Oil & Gas (Holdings) plc | United Kingdom | Energy | Oil & Gas E&P | nan | +| 3 | EOG.L | Europa Oil & Gas (Holdings) plc | United Kingdom | Energy | Oil & Gas E&P | nan | +| 4 | GHA.F | Baron Oil Plc | United Kingdom | Energy | Oil & Gas E&P | nan | +...continued + +### Quote + +Watchlists are easy to make. Get the last price and performance data for multiple tickers by looping the `quote` function: + +```python +spdr_sectors = ['SPY', 'XLE', 'XLB', 'XLI', 'XLP', 'XLY', 'XLV', 'XLF', 'XLK', 'XLC', 'XLU', 'XLRE'] + +quotes: object = [] +symbols = spdr_sectors +for symbols in spdr_sectors: + quote = openbb.stocks.quote(symbols).transpose() + quotes.append(quote) + +quotes = pd.concat(quotes) + +quotes +``` + +| Symbol | Name | Price | Open | High | Low | Previous Close | Volume | 52 Week High | 52 Week Low | Change | Change % | +|:---------|:--------------------------------|--------:|-------:|-------:|-------:|-----------------:|:-----------|---------------:|--------------:|---------:|:-----------| +| SPY | SPDR S&P 500 | 399.62 | 396.66 | 400.18 | 395.92 | 398.51 | 42,786,020 | 479.98 | 348.11 | 1.11 | 0.28% | +| XLE | SPDR Select Sector Fund - Energ | 94 | 92.86 | 94.7 | 92.86 | 93.13 | 14,593,450 | 94.7 | 51.66 | 0.87 | 0.93% | +| XLB | Materials Select Sector SPDR | 81.97 | 80.98 | 82.25 | 80.9 | 81.25 | 4,544,573 | 92.31 | 66.85 | 0.72 | 0.89% | +| XLI | SPDR Select Sector Fund - Indus | 100.07 | 99.24 | 100.26 | 99.16 | 99.53 | 6,186,242 | 107.88 | 82.75 | 0.54 | 0.54% | +| XLP | SPDR Select Sector Fund - Consu | 73.81 | 73.45 | 74.11 | 73.48 | 73.52 | 9,557,986 | 81.34 | 66.18 | 0.29 | 0.39% | +| XLY | SPDR Select Sector Fund - Consu | 144.43 | 143.83 | 145.08 | 142.68 | 145.09 | 3,614,077 | 215.06 | 131.9 | -0.66 | -0.45% | +| XLV | SPDR Select Sector Fund - Healt | 134.67 | 133.53 | 134.84 | 133.53 | 133.13 | 7,913,382 | 143.42 | 118.75 | 1.54 | 1.16% | +| XLF | SPDR Select Sector Fund - Finan | 35.67 | 35.77 | 35.8 | 35.54 | 35.87 | 22,587,218 | 41.7 | 29.59 | -0.2 | -0.56% | +| XLK | SPDR Select Sector Fund - Techn | 133.42 | 132.09 | 133.65 | 131.37 | 133.14 | 4,010,764 | 177.04 | 112.97 | 0.28 | 0.21% | +| XLC | The Communication Services Sele | 50.44 | 49.66 | 50.56 | 49.62 | 50.02 | 3,220,128 | 81.91 | 44.86 | 0.41 | 0.83% | +| XLU | SPDR Select Sector Fund - Utili | 67.91 | 68.12 | 68.49 | 67.75 | 68.08 | 6,871,930 | 78.22 | 60.35 | -0.17 | -0.25% | +| XLRE | Real Estate Select Sector SPDR | 38.09 | 38.52 | 38.55 | 38.03 | 38.74 | 4,769,207 | 52.17 | 33.12 | -0.65 | -1.68% | + +### TOB + +Top of Book gets the size and price at the top of the order book. + +```python +bid,ask = openbb.stocks.tob('SPY') +quote_tob = bid.join(ask, lsuffix= ': Bid', rsuffix = ': Ask') + +quote_tob +``` + +| | Size: Bid | Price: Bid | Size: Ask | Price: Ask | +|---:|------------:|-------------:|------------:|-------------:| +| 0 | 100 | 394.85 | 100 | 395 | +| 1 | 100 | 394.8 | 300 | 395.05 | +| 2 | 100 | 394.7 | 100 | 395.07 | +| 3 | 100 | 394.68 | 200 | 395.25 | +| 4 | 100 | 394.65 | 100 | 395.29 | + +### Upcoming Earnings + +The upcoming earnings calendar is part of the `Discovery` sub-module. The results can be easily filtered to use as inputs for another function. + +```python +earnings = openbb.stocks.disc.upcoming() +earnings.index = earnings.index.strftime('%Y-%m-%d') +earnings_today = earnings.filter(like = datetime.now().strftime('%Y-%m-%d'), axis = 0) + +earnings_today.head(5) +``` + +| Date | Ticker | Name | +|:-----------|:---------|:---------------------------| +| 2022-11-17 | DXLG | Destination XL Group, Inc. | +| 2022-11-17 | CAMT | Camtek Ltd. | +| 2022-11-17 | CLBT | Cellebrite DI Ltd. | +| 2022-11-17 | HAYN | Haynes International, Inc. | +| 2022-11-17 | ROST | Ross Stores, Inc. | +...continued + +### Screener + +Grab the list of filtered tickers and put them through the comparison analysis screener for valuation data: + +```python +earnings_tickers = earnings_today['Ticker'].to_list() +screener_results = openbb.stocks.ca.screener(similar = earnings_tickers, data_type = 'valuation') +screener_results.sort_values(by = ['EPS next Y'], ascending = False, inplace = True) + +screener_results.head(5) +``` + +| | Ticker | Market Cap | P/E | Fwd P/E | PEG | P/S | P/B | P/C | P/FCF | EPS this Y | EPS next Y | EPS past 5Y | EPS next 5Y | Sales past 5Y | Price | Change | Volume | +|---:|:---------|-------------:|-------:|----------:|-------:|------:|------:|------:|--------:|-------------:|-------------:|--------------:|--------------:|----------------:|--------:|---------:|-----------------:| +| 2 | CLBT | 8.8396e+08 | 6.18 | 31.91 | 1.21 | 3.42 | 37.31 | 8.22 | nan | -0.708 | 1.1111 | nan | 0.051 | nan | 4.85 | -0.0122 | 105214 | +| 6 | GAMB | 3.4528e+08 | 34.84 | 18.92 | nan | 6.18 | 4.02 | 11.1 | 37.53 | -0.177 | 1.04 | nan | nan | nan | 9.65 | 0.0354 | 34618 | +| 13 | STNE | 2.85e+09 | nan | 3.57 | nan | 1.69 | 1.31 | 2.43 | 5.05 | -2.513 | 0.9624 | -0.598 | 0.2815 | 0.694 | 9.87 | -0.0573 | 9.54896e+06 | +| 0 | AMSWA | 5.415e+08 | 46.52 | 32.4 | 2.91 | 4.18 | 4.12 | 4.71 | 71.25 | 0.527 | 0.4318 | -0.04 | 0.16 | 0.037 | 16.33 | -0.0337 | 126062 | +| 14 | WWD | 5.9e+09 | 37.68 | 27.41 | 3.66 | 2.55 | 3.11 | 59.37 | 43.51 | -0.15 | 0.3407 | 0.023 | 0.103 | 0.021 | 98.04 | 0.0007 | 455047 | +...continued + +Along with the variety of screeners, the OpenBB SDK can create custom screeners. For example, the most popular tickers on Stocktwits: + +```python +stocktwits = openbb.stocks.ba.trending() +stocktwits = pd.DataFrame(stocktwits).sort_values(by = 'Watchlist Count', ascending = False) +tickers = stocktwits['Ticker'].to_list() +stocktwits.head(10) +``` + +| | Ticker | Watchlist Count | Name | +|---:|:---------|------------------:|:-------------------------------| +| 18 | NVDA | 409301 | NVIDIA Corp | +| 12 | AMC | 406952 | AMC Entertainment Holdings Inc | +| 5 | WMT | 109864 | Walmart Inc | +| 6 | MRNA | 100705 | Moderna Inc | +| 21 | PFE | 87229 | Pfizer Inc. | +| 4 | DWAC | 66122 | Digital World Acquisition Corp | +| 29 | CSCO | 54458 | Cisco Systems, Inc. | +| 0 | SAVA | 49063 | Cassava Sciences Inc | +| 8 | TDOC | 38657 | Teladoc Health Inc | +| 16 | PENN | 38277 | Penn National Gaming, Inc. | + +Filter the results by market cap: + +```python +screener_results = openbb.stocks.ca.screener(similar = tickers, data_type = 'overview') +screener_results = screener_results.sort_values(by = ['Market Cap'], ascending = False) + +screener_results.head(5) +``` + +| | Ticker | Company | Sector | Industry | Country | Market Cap | P/E | Price | Change | Volume | +|---:|:---------|:----------------------------------------------------------------------------------|:-------------------|:-----------------------------|:----------|-------------:|-------:|--------:|---------:|-----------------:| +| 15 | NVDA | NVIDIA Corporation | Technology | Semiconductors | USA | 3.9217e+11 | 53.53 | 163.66 | 0.0024 | 3.16641e+07 | +| 26 | WMT | Walmart Inc. | Consumer Defensive | Discount Stores | USA | 3.864e+11 | 28.46 | 140.5 | -0.0146 | 5.33372e+06 | +| 18 | PFE | Pfizer Inc. | Healthcare | Drug Manufacturers - General | USA | 2.6591e+11 | 9.03 | 49.36 | 0.037 | 1.07892e+07 | +| 4 | BLK | BlackRock, Inc. | Financial | Asset Management | USA | 1.1412e+11 | 21.34 | 747.95 | -0.0346 | 742602 | +| 25 | TGT | Target Corporation | Consumer Defensive | Discount Stores | USA | 7.566e+10 | 19.68 | 175.67 | 0.0136 | 2.45293e+06 | + ...continued + +### SEC + +Get the links for SEC filings belonging to a company: + +```python +openbb.stocks.dd.sec(symbol = 'WMT') +``` + +| Filing Date | Document Date | Type | Category | Amended | Link | +|:--------------|:----------------|:---------|:------------------------|:----------|:-------------------------------------------------------------------------------------| +| 09/09/2022 | 09/06/2022 | 8-K | Special Events | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=16074059 | +| 09/02/2022 | 07/31/2022 | 10-Q | Quarterly Reports | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=16064659 | +| 08/17/2022 | 08/17/2022 | 8-K | Special Events | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=16026629 | +| 08/17/2022 | 08/17/2022 | 8-K | Special Events | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=16025172 | +| 08/16/2022 | 08/16/2022 | 8-K | Special Events | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=16021891 | +| 07/25/2022 | 07/25/2022 | 8-K | Special Events | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=15964414 | +| 07/21/2022 | N/A | SC 13D/A | N/A | * | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=15959675 | +| 06/28/2022 | 06/28/2022 | 8-K | Special Events | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=15918852 | +| 06/21/2022 | N/A | SC 13D | N/A | | https://www.marketwatch.com/investing/stock/wmt/financials/secfilings?docid=15900809 | +...continued + +### Insiders Trading + +View insider activity on the stock: + +```python +openbb.stocks.ins.lins(symbol = 'WMT') +``` + +| Date | Relationship | Transaction | #Shares | Cost | Value ($) | #Shares Total | Insider Trading | SEC Form 4 | +|:-------|:-------------------------|:--------------|:----------|-------:|:------------|:----------------|:-------------------|:----------------| +| Oct 27 | President and CEO | Sale | 9,708 | 141.18 | 1,370,617 | 1,478,337 | McMillon C Douglas | Oct 28 06:14 PM | +| Oct 27 | Executive Vice President | Sale | 4,375 | 140.94 | 616,612 | 263,809 | Furner John R. | Oct 28 06:11 PM | +| Sep 22 | Executive Vice President | Sale | 4,375 | 134.38 | 587,912 | 268,183 | Furner John R. | Sep 23 05:21 PM | +| Sep 22 | President and CEO | Sale | 9,708 | 134.04 | 1,301,309 | 1,488,043 | McMillon C Douglas | Sep 23 05:18 PM | +| Aug 25 | Director | Sale | 347,542 | 135.66 | 47,145,880 | 282,330,635 | WALTON S ROBSON | Aug 26 06:36 PM | +...continued + +### Income Statement Comparison + +Income statements from multiple companies can be easily referenced: + +```python +openbb.stocks.ca.income(similar = ['WMT', 'TGT', 'AMZN'], quarter = True) +``` + +| Item | 31-Jul-2022: WMT | 31-Jul-2022: TGT | 30-Sep-2022: AMZN | +|:------------------------------------------|:-------------------------|:-------------------------|:--------------------------| +| Sales/Revenue | 152.86B | 26.04B | 127.1B | +| Sales Growth | 7.97% | 3.44% | 4.84% | +| Cost of Goods Sold (COGS) incl. D&A | 115.84B | 20.71B | 70.27B | +| COGS Growth | 8.41% | 8.67% | 5.79% | +| COGS excluding D&A | 113.14B | 20.06B | 60.06B | +| Depreciation & Amortization Expense | 2.7B | 650M | 10.2B | +| Depreciation | 2.7B | - | - | +| Amortization of Intangibles | - | - | - | +| Gross Income | 37.02B | 5.32B | 56.83B | +| Gross Income Growth | 6.62% | -12.85% | 3.69% | +| Gross Profit Margin | 24.22% | 20.44% | 44.71% | +| SG&A Expense | 30.17B | 4.98B | 54.14B | +| SGA Growth | 3.30% | 4.98% | 5.33% | +| Research & Development | - | - | 19.49B | +| Other SG&A | - | - | - | +| Other Operating Expense | - | - | - | +| Unusual Expense | (238M) | 27M | (2.04B) | +| EBIT after Unusual Expense | 238M | (27M) | 2.04B | +| Non Operating Income/Expense | - | 8M | (1.45B) | +| Non-Operating Interest Income | 31M | - | 277M | +...continued + +### Ratios + +Get historical fundamental ratios for a company: + +```python +openbb.stocks.fa.ratios(symbol = 'WMT') +``` + +| | 2022 | 2021 | 2020 | 2019 | 2018 | +|:-----------------------------------------|:-------|:-------|:-------|:-------|:-------| +| Period | FY | FY | FY | FY | FY | +| Current ratio | 0.928 | 0.972 | 0.795 | 0.799 | 0.760 | +| Quick ratio | 0.264 | 0.262 | 0.202 | 0.181 | 0.158 | +| Cash ratio | 0.169 | 0.191 | 0.122 | 0.100 | 0.086 | +| Days of sales outstanding | 5.277 | 4.253 | 4.378 | 4.458 | 4.095 | +| Days of inventory outstanding | 48.080 | 39.034 | 41.101 | 41.937 | 42.799 | +| Operating cycle | 53.357 | 43.287 | 45.479 | 46.395 | 46.894 | +| Days of payables outstanding | 47.017 | 42.674 | 43.449 | 44.580 | 45.056 | +| Cash conversion cycle | 6.340 | 0.613 | 2.030 | 1.814 | 1.838 | +| Gross profit margin | 0.251 | 0.248 | 0.247 | 0.251 | 0.254 | +| Operating profit margin | 0.045 | 0.040 | 0.039 | 0.043 | 0.041 | +| Pretax profit margin | 0.033 | 0.037 | 0.038 | 0.022 | 0.030 | +| Net profit margin | 0.024 | 0.024 | 0.028 | 0.013 | 0.020 | +...continued + +Take just the ratio needed by filtering the index: + +```python +ratios = openbb.stocks.fa.ratios(symbol = 'WMT', limit = 20) +ratios.filter(like = 'Price earnings to growth ratio', axis = 0) +``` + +| | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | +|:-------------------------------|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:| +| Price earnings to growth ratio | 10.202 | -3.163 | 0.16 | -1.401 | -1.069 | -4.092 | -1.501 | 4.777 | -5.487 | 1.293 | 9.68 | 0.559 | 1.585 | 1.637 | 1.022 | 15.761 | 1.498 | 1.358 | 1.953 | 1.233 | + +Be sure to check out the introduction guides for each sub-module as well. diff --git a/website/content/sdk/guides/guides/stocks/options.md b/website/content/sdk/guides/guides/stocks/options.md new file mode 100644 index 00000000000..eea3de049e7 --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/options.md @@ -0,0 +1,8 @@ +--- +title: Options +keywords: + [ + "stocks", "stock", "options", "option", "call", "put" + ] +excerpt: "This guide introduces the Stocks menu in the context of the OpenBB SDK." +--- diff --git a/website/content/sdk/guides/guides/stocks/quantitative-analysis.md b/website/content/sdk/guides/guides/stocks/quantitative-analysis.md new file mode 100644 index 00000000000..844bd449b83 --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/quantitative-analysis.md @@ -0,0 +1,161 @@ +--- +title: Quantitative Analysis +--- + +The `qa` module is the Terminal's Quantitative Analysis menu for the SDK environment. It provides users with more ways to interact with the library of functions, and provides cross-disciplinary utility. To activate the code completion for the menu, enter `.` after, `openbb.qa`. + +## How to Use + +The functions of the `qa` module are grouped into categories, listed below along with a short description. + +|Path |Type |Description | +|:----------|:----------:|--------------------:| +|openbb.qa.bw |Plot |Box and Whisker Plot | +|openbb.qa.decompose |Plot |Decomposition in Cyclic-Trend, Season & Residuals of Prices | +|openbb.qa.es |Statistics |Expected Shortfall per percentile | +|openbb.qa.kurtosis |Rolling Metrics |Rolling Kurtosis of Distribution of Prices | +|openbb.qa.normality |Statistics |Normality Statistics and Tests | +|openbb.qa.omega |Risk |Omega Ratio (Risk/Return Performance Measure) | +|openbb.qa.quantile |Rolling Metrics |Rolling Median and Quantile of Prices | +|openbb.qa.rolling |Rolling Metrics |Rolling Mean and Standard Deviation of Prices | +|openbb.qa.sharpe |Risk |Sharpe Ratio (Measure of Risk-Adjusted Return) | +|openbb.qa.skew |Rolling Metrics |Rolling Skewness of Distribution of Prices | +|openbb.qa.spread |Rolling Metrics |Rolling Variance and Standard Deviation of Prices | +|openbb.qa.so |Risk |Sortino Ratio Risk Adjustment Metric | +|openbb.qa.summary |Statistics |A Brief Summary of Statistics for the DataFrame | +|openbb.qa.unitroot |Statistics |Normality Statistics and Tests | +|openbb.qa.var |Risk |Value at Risk | + +## Examples + +### Import Statements + +The examples below will assume that the following statements are included in the first block of code: + +```python +import quandl +import pandas as pd +from openbb_terminal.sdk import openbb +from openbb_terminal import config_terminal as cfg + +%matplotlib inline +``` + +### Get Data + +This example collects data from Nasdaq Data Link, and requires registering for a free API key. Qunadl is the Python client for the Nasdaq Data Link API. + +```python +shiller_pe_rdiff = quandl.get('MULTPL/SHILLER_PE_RATIO_MONTH', collapse = 'monthly', transform = 'rdiff', api_key = cfg.API_KEY_QUANDL) +shiller_pe_rdiff.rename(columns={'Value':'P/E % Change'}, inplace = True) +shiller_pe_ratio = quandl.get('MULTPL/SHILLER_PE_RATIO_MONTH', collapse = 'monthly', api_key = cfg.API_KEY_QUANDL) +shiller_pe_ratio.rename(columns={'Value':'P/E Ratio'}, inplace = True) + +sp500_inf_adj = quandl.get('MULTPL/SP500_INFLADJ_MONTH', collapse = 'monthly', api_key = cfg.API_KEY_QUANDL) +sp500_inf_adj.rename(columns = {'Value': 'S&P Inflation-Adjusted Value'}, inplace = True) +sp500_inf_adj_rdiff = quandl.get('MULTPL/SP500_INFLADJ_MONTH', collapse = 'monthly', transform = 'rdiff', api_key = cfg.API_KEY_QUANDL) +sp500_inf_adj_rdiff.rename(columns = {'Value':'S&P 500 % Change'}, inplace = True) + +shiller_pe = shiller_pe_ratio.join(shiller_pe_rdiff) +sp500_inf_adj = sp500_inf_adj.join(sp500_inf_adj_rdiff) + +sp500_df = sp500_inf_adj.join(shiller_pe) + +sp500_df +``` + +| Date | S&P Inflation-Adjusted Value | S&P 500 % Change | P/E Ratio | P/E % Change | +|:--------------------|-------------------------------:|-------------------:|------------:|---------------:| +| 1871-01-31 00:00:00 | 105.76 | nan | nan | nan | +| 1871-02-28 00:00:00 | 104.02 | -0.0164523 | 10.92 | nan | +| 1871-03-31 00:00:00 | 105.01 | 0.0095174 | 11.19 | 0.0247253 | +| 1871-04-30 00:00:00 | 112.01 | 0.0666603 | 12.05 | 0.0768543 | +...continued... +| 2022-08-31 00:00:00 | 3955 | 0.0092504 | 29.64 | 0.022069 | +| 2022-09-30 00:00:00 | 3585.62 | -0.0933957 | 26.84 | -0.0944669 | +| 2022-10-31 00:00:00 | 3871.98 | 0.0798635 | 28.53 | 0.0629657 | +| 2022-11-30 00:00:00 | 3856.1 | -0.00410126 | 28.37 | -0.00560813 | + +This particular data series contains 150 years of monthly values. It is among the longest uninterrupted timeseries available in the public domain, and it is cited frequently in macroeconomic research. + +### Summary + +Get a summary of statistics for each column with `qa.summary`: + +```python +openbb.qa.summary(sp500_df) +``` + +| | S&P Inflation-Adjusted Value | S&P 500 % Change | P/E Ratio | P/E % Change | +|:------|-------------------------------:|-------------------:|------------:|---------------:| +| count | 1823 | 1822 | 1822 | 1821 | +| mean | 697.396 | 0.0028703 | 16.9914 | 0.00137084 | +| std | 834.501 | 0.0424378 | 7.07094 | 0.0412196 | +| min | 80.31 | -0.264738 | 4.78 | -0.268992 | +| 10% | 152.404 | -0.0447494 | 9.31 | -0.0449735 | +| 25% | 203.47 | -0.0172803 | 11.7 | -0.0183028 | +| 50% | 309.83 | 0.00553122 | 15.895 | 0.00446999 | +| 75% | 778.42 | 0.0260009 | 20.5575 | 0.0246575 | +| 90% | 1907.87 | 0.04505 | 26.467 | 0.0426357 | +| max | 4786.79 | 0.514085 | 44.19 | 0.511986 | +| var | 696392 | 0.00180097 | 49.9982 | 0.00169906 | + +### Spread + +Add the variance and standard deviation, over a specified window (three-months), to the DataFrame: + +```python +std,variance = openbb.qa.spread(data = sp500_df['S&P 500 % Change'], window = 3) +std.rename(columns = {'STDEV_3':'Three-Month Standard Deviation'}, inplace = True) +variance.rename(columns = {'VAR_3': 'Three-Month Variance'}, inplace =True) +sp500_df = sp500_df.join([std,variance]) +sp500_df.rename_axis('date', inplace = True) +sp500_df.tail(2) +``` + +| date | S&P Inflation-Adjusted Value | S&P 500 % Change | P/E Ratio | P/E % Change | Three-Month Standard Deviation | Three-Month Variance | +|:--------------------|-------------------------------:|-------------------:|------------:|---------------:|---------------------------------:|-----------------------:| +| 2022-10-31 00:00:00 | 3871.98 | 0.0798635 | 28.53 | 0.0629657 | 0.0871217 | 0.00759019 | +| 2022-11-30 00:00:00 | 3856.1 | -0.00410126 | 28.37 | -0.00560813 | 0.0866432 | 0.00750705 | + +The rolling mean average and standard deviation is calculated with the `rolling` command. Adding, `_chart`, to this will return an inline chart within a Jupyter Notebook. For the example below, window, `60`, represents a five-year period. + +### Rolling + +```python +openbb.qa.rolling_chart(sp500_df, target = 'P/E Ratio', window = 60, symbol = '') +``` + +![openbb.qa.rolling_chart](https://user-images.githubusercontent.com/85772166/202975615-4400ae87-9cd7-4481-94f1-dfb69de784d6.png "openbb.qa.rolling_chart") + +### Unit Root Test + +Perform a unit root test with `unitroot`: + +```python +help(openbb.qa.unitroot) + + Parameters + ---------- + data : pd.DataFrame + DataFrame of target variable + fuller_reg : str + Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order + kpss_reg : str + Type of regression for KPSS test. Can be ‘c’,’ct' + + Returns + ------- + pd.DataFrame + Dataframe with results of ADF test and KPSS test + +openbb.qa.unitroot(sp500_df['P/E % Change']) +``` + +| | ADF | KPSS | +|:---------------|---------------:|:--------------------| +| Test Statistic | -10.7075 | 0.34061374135067696 | +| P-Value | 3.3972e-19 | 0.1 | +| NLags | 20 | 2 | +| Nobs | 1800 | | +| ICBest | -6491.14 | | diff --git a/website/content/sdk/guides/guides/stocks/sia.md b/website/content/sdk/guides/guides/stocks/sia.md new file mode 100644 index 00000000000..78ca8267365 --- /dev/null +++ b/website/content/sdk/guides/guides/stocks/sia.md @@ -0,0 +1,88 @@ +--- +title: Sector and Industry Analysis +keywords: + [ + "sector, stock, industry, analysis, country, pie, chart, analyze", + ] +excerpt: "This guide introduces the SIA SDK in the context of the OpenBB SDK." +--- + +The SIA module provides programmatic access to the commands from within the +OpenBB Terminal. Import the OpenBB SDK module, and then access the functions +similarly to how the Terminal menus are navigated. The code completion will be +activated upon entering `.`, after, `openbb.sia` ​ + +## How to Use + +​ The examples provided below will assume that the following import block is +included at the beginning of the Python script or Notebook file: ​ + +```python +from openbb_terminal.sdk import openbb +``` + +​ A brief description below highlights the main Functions and Modules available +in the SIA SDK + +| Path | Type | Description | +| :----------------------- | :------: | -----------------------------------------------------: | +| openbb.sia.filter_stocks | Function | generates a list of tickers filtered on inputs | +| openbb.sia.cpci | Function | companies per Country based on Industry and Market Cap | +| openbb.sia.cpcs | Function | companies per Country based on Sector and Market Cap | +| openbb.sia.cpic | Function | companies per Industry based on Country and Market Cap | +| openbb.sia.cpis | Function | companies per Industry based on Sector and Market Cap | +| openbb.sia.cps | Function | companies per Sector based on Country and Market Cap | +| openbb.sia.countries | Function | lists all countries valid for selection | +| openbb.sia.industries | Function | lists all industries valid for selection | +| openbb.sia.maketcap | Function | lists all marketcaps valid for selection | +| openbb.sia.sectors | Function | lists all sectors valid for selection | +| openbb.sia.stocks_data | Function | historics financial statement information | + +Alteratively you can print the contents of the SIA SDK with: ​ + +```python +help(openbb.sia) +``` + +## Examples + +### cpci_chart + +​ Creates a pie chart with information about the sector and market cap provided. +This allows you to better understand which countries the sector is centered in ​ + +```python +openbb.stocks.sia.cpci_chart() +``` + +​ + +![CPCI Chart](https://user-images.githubusercontent.com/72827203/202655235-eb4bf75e-852b-4128-8680-d99864358c73.png) + +### industries + +Creates a list of all industries that can be selected for other commands. Also +allows users to filter based on certain characteristics ​ + +```python +openbb.stocks.sia.industries(country="Germany", sector="Healthcare") +``` + +```python +['Biotechnology', 'Diagnostics & Research', 'Drug Manufacturers - General', + 'Drug Manufacturers - Major', 'Drug Manufacturers - Specialty & Generic', 'Drugs - Generic', + 'Health Information Services', 'Hospitals', 'Medical Care Facilities', + 'Medical Devices', 'Medical Distribution', 'Medical Instruments & Supplies'] +``` + +### stocks_data + +Creates a list of tickers filtered based on the given parameters ​ + +```python +openbb.stocks.sia.filter_stocks(country="Germany", industry="Auto Parts") +``` + +```python +['CTTAF', 'CTTAY', 'HLKHF', 'HLLGY', 'KNRRY', 'VOAXF'] +``` diff --git a/website/content/sdk/guides/guides/ta.md b/website/content/sdk/guides/guides/ta.md new file mode 100644 index 00000000000..723e323f73f --- /dev/null +++ b/website/content/sdk/guides/guides/ta.md @@ -0,0 +1,188 @@ +--- +title: Technical Analysis +sidebar_location: +--- + +The Technical Analysis module is a toolkit for analyzing time-series data, at any resolution. The functions are a collection of formulas that fit into broad categories, and they are mostly derived from the pandas_ta library: + +- Momentum +- Overlap (Moving Averages) +- Trend +- Volatility +- Volume +- Other (Fibonacci) + +## How to Use + +Every SDK function also has a secondary `_chart` command. The table below is a brief description of each SDK function within the `ta` module; for simplicity, `_chart` has been ommitted. Technical Analysis functions specific to stocks are included as a sub-module, `openbb.stocks.ta`. + +|Path |Category |Description | +|:----------|:----------:|------------------------------:| +|openbb.ta.ad |Volume |Accumulation/Distribution Line | +|openbb.ta.adosc |Volume |Chaikin Oscillator | +|openbb.ta.adx |Trend |Average Directional Movement Index | +|openbb.ta.aroon |Trend |Aroon Indicator | +|openbb.ta.atr |Volatility |Average True Range | +|openbb.ta.bbands |Voaltility |Bollinger Bands | +|openbb.ta.cci |Momentum |Commodity Channel Index | +|openbb.ta.cg |Momentum |Center of Gravity | +|openbb.ta.clenow |Momentum |Clenow Volatility Adjusted Momentum | +|openbb.ta.demark |Momentum |Tom Demark's Sequential Indicator (Unofficial) | +|openbb.ta.donchian |Volatility |Donchian Channels | +|openbb.ta.ema |Overlap |Exponential Moving Average | +|openbb.ta.fib |Other |Fibonacci Retracement | +|openbb.ta.fisher |Momentum |Fisher Transform | +|openbb.ta.hma |Overlap |Hull Moving Average | +|openbb.ta.kc |Volatility |Keltner Channnels | +|openbb.ta.ma |Overlap |Moving Averages (For Charting) | +|openbb.ta.macd |Momentum |Moving Average Convergence/Divergence | +|openbb.ta.obv |Volume |On-Balance Volumne | +|openbb.ta.rsi |Momentum |Relative Strength Index | +|openbb.ta.sma |Overlap |Simple Moving Average | +|openbb.ta.stoch |Momentum |Stochastic Oscillator | +|openbb.ta.vwap |Overlap |Volume-Weighted Average Price | +|openbb.ta.wma |Overlap |Weighted Moving Average | +|openbb.ta.zlma |Overlap |Zero-Lag Moving Average | + +The syntax for the data argument can be: + +- `data = ohlcv_df` + + Where functions only require a single column, `data = ohlcv_df['Adj Close']` + +- `data = openbb.stocks.load("ticker")` + + Target intraday by adding the `interval` argument to the `load` syntax. + +Best practice is to deploy the first method because the latter will work only with the commands requiring OHLC+V data as inputs. An error message will be returned if this is the case. + +```python +openbb.ta.obv(data = openbb.stocks.load('QQQ')) +``` + +| date | OBV | +|:--------------------|------------------:| +| 2019-11-15 00:00:00 | 1.84279e+07 | +| 2019-11-18 00:00:00 | 3.67938e+07 | +| 2019-11-19 00:00:00 | 5.37171e+07 | +| 2019-11-20 00:00:00 | 1.70881e+07 | +| 2022-11-15 00:00:00 | -1.09017e+08 | +| 2022-11-16 00:00:00 | -1.57876e+08 | +| 2022-11-17 00:00:00 | -2.13339e+08 | +| 2022-11-18 00:00:00 | -1.59987e+08 | + +The error message: + +```python +openbb.ta.rsi(data = openbb.stocks.load('QQQ')) +``` +```console +Please send a series and not a DataFrame. +``` + +### _chart + +To display the chart, instead of raw data, add `_chart` to the syntax before the (`arguments`). + +```python +openbb.ta.obv_chart(data= openbb.stocks.load('QQQ', start_date = '2022-11-18', interval = 5, prepost = True)) +``` + +![openbb.ta.obv_chart](https://user-images.githubusercontent.com/85772166/202889106-4caa882b-5e29-41a8-8cd2-b2a2a01d1fca.png "openbb.ta.obv_chart") + +## Examples + +### Import Statements + +The examples here assume that this code block is at the top of the Python script of Notebook file: + +```python +import pandas as pd +from openbb_terminal.sdk import openbb +%matplotlib inline +``` + +### MA (Moving Averages) + +The different types of moving averages, which also are individual functions (e.g., `openbb.ta.ema`), are available as an argument (`ma_type`) to the `ma` command. There are five accepted arguments, they are listed below in brackets: + +- Simple (SMA) +- Exponential (EMA) +- Hull (HMA) +- Weighted (WMA) +- Zero-Lag (ZLMA) + +The `window` argument anticipates a list of integers representing the interval (minutes, days, weeks, months, etc.) to measure against the timestamp of the DataFrame's index. The example below is a daily timeseries of S&P E-Mini Futures: + +```python +es = openbb.stocks.load("ES=F") + +openbb.ta.ma_chart( + data = es['Adj Close'], + symbol = 'E-Mini S&P Futures', + ma_type = 'SMA', + window = [21, 150]) +``` + +![openbb.ta.ma_chart](https://user-images.githubusercontent.com/85772166/202889200-c6a3e895-f49d-4348-8635-68dd1456340d.png "openbb.ta.ma_chart") + +Changing, `ma_type`, to, `ZLMA`: + +![openbb.ta.ma_chart](https://user-images.githubusercontent.com/85772166/202889214-359d5d37-f8c0-49e0-9dd9-70afe970ae5f.png "openbb.ta.ma_chart") + +### ATR (Average True Range) + +The `atr` command requires OHLC data, the data argument can be the `load` function. + +```python +ticker = 'ES=F' +start = '2000-01-01' + +df_atr = openbb.ta.atr(data = openbb.stocks.load(f"{ticker}", start_date = f"{start}", monthly = True), window = 6) + +df_atr.tail(5) +``` + +| date | ATRe_6 | +|:--------------------|---------:| +| 2022-07-01 00:00:00 | 454.457 | +| 2022-08-01 00:00:00 | 431.612 | +| 2022-09-01 00:00:00 | 469.08 | +| 2022-10-01 00:00:00 | 455.7 | +| 2022-11-01 00:00:00 | 424.5 | + +### Donchian + +To use the same data for multiple functions, it is more efficient to first load to a Pandas DataFrame: + +```python +ticker = 'ES=F' +start = '2000-01-01' +data_df: pd.DataFrame = openbb.stocks.load(f"{ticker}", start_date = f"{start}", monthly = True) + +openbb.ta.donchian_chart(data_df) +``` + +![openbb.ta.donchian_chart](https://user-images.githubusercontent.com/85772166/202889227-a985d788-a320-4193-af96-0357afe9a11d.png "openbb.ta.donchian_chart") + +The output from a function can be joined to the OHLC data: + +```python +ticker = 'ES=F' +start = '2000-01-01' +data_df: pd.DataFrame = openbb.stocks.load(f"{ticker}", start_date = f"{start}", monthly = True) + +donchian = openbb.ta.donchian(data_df) + +data_df = data_df.join(donchian) + +data_df.tail(5) +``` + +| date | Open | High | Low | Close | Adj Close | Volume | DCL_20_20 | DCM_20_20 | DCU_20_20 | +|:--------------------|--------:|--------:|--------:|--------:|------------:|------------:|------------:|------------:|------------:| +| 2022-07-01 00:00:00 | 3782 | 4144 | 3723.75 | 4133.5 | 4133.5 | 3.40941e+07 | 3198 | 4003.12 | 4808.25 | +| 2022-08-01 00:00:00 | 4137.5 | 4327.5 | 3953 | 3956.5 | 3956.5 | 3.84732e+07 | 3225 | 4016.62 | 4808.25 | +| 2022-09-01 00:00:00 | 3958 | 4158 | 3595.25 | 3601.5 | 3601.5 | 4.68698e+07 | 3595.25 | 4201.75 | 4808.25 | +| 2022-10-01 00:00:00 | 3593.25 | 3924.25 | 3502 | 3883 | 3883 | 4.80686e+07 | 3502 | 4155.12 | 4808.25 | +| 2022-11-01 00:00:00 | 3884 | 4050.75 | 3704.25 | 3974 | 3974 | 2.65215e+07 | 3502 | 4155.12 | 4808.25 | diff --git a/website/content/sdk/index.md b/website/content/sdk/index.md new file mode 100644 index 00000000000..a6a3656165d --- /dev/null +++ b/website/content/sdk/index.md @@ -0,0 +1,68 @@ +--- +sidebar_position: 1 +--- + +import Card from "@site/src/components/General/Card"; + +# Introduction + +OpenBB SDK gives you direct and programmatic access to all capabilities from +OpenBB Terminal. You will have the necessary building blocks to create your own +financial tools and applications, whether that be a visualization dashboard or a +custom report on Jupyter Notebook. + +With OpenBB SDK, you can gain access to normalized financial data from dozens of +data providers, without having to develop your own integrations from scratch. On +top of financial data feeds, OpenBB SDK also provides you with a toolbox to +perform financial analysis on a variety of asset classes, including stocks, +crypto, ETFs, funds, and the economy as well as portfolio optimization and +analysis. + +OpenBB SDK is created and maintained by the OpenBB team together with the +contributions from hundreds of community members. This gives us an unrivaled +speed of development and the ability to maintain stable integrations with +numerous third-party data providers. Developing and maintaining a full-blown +investment research infrastructure from the ground up takes a lot of time and +effort. However, it does not have to be this way. By taking advantage of OpenBB +SDK with its out-of-the-box data connectors and financial analysis toolkit, now +you can focus on designing and building your financial reports and applications. + +--- + + + + + +--- + +### Getting Started + +To know more about OpenBB SDK, you can start by reading the +[Installation Guide](/sdk/quickstart/installation). + +### Using OpenBB SDK + +To learn how to use OpenBB SDK, you can start by reading the +[Getting Started Guide](/sdk/guides/basics). + +### SDK Functions + +SDK Reference is a complete list of all functions available in OpenBB SDK. It is +automatically generated and updated every time a new version of OpenBB SDK is +released. It can be found [here](/sdk/reference). + +### Showcase + +OpenBB SDK is used by many financial analysts, data scientists, and developers +to build financial applications and reports. Here are some examples of what you +can do with OpenBB SDK: [Showcase](/sdk/showcase). diff --git a/website/content/sdk/quickstart/_category_.json b/website/content/sdk/quickstart/_category_.json new file mode 100644 index 00000000000..62073edce46 --- /dev/null +++ b/website/content/sdk/quickstart/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Getting Started", + "position": 2 +} diff --git a/website/content/sdk/quickstart/faq.md b/website/content/sdk/quickstart/faq.md new file mode 100644 index 00000000000..baeb8761db0 --- /dev/null +++ b/website/content/sdk/quickstart/faq.md @@ -0,0 +1,81 @@ +--- +title: FAQ +sidebar_position: 3 +--- + +# FAQ + +
Where does the data comes from? +

+ +OpenBB does not provide any data. OpenBB is a data aggregator that connects to +multiple data providers and provides a unified API to access the data. + +

+
+ +
What programs do I need to allow for Windows Firewall? +

+ +Windows Firewall will need to allow the following applications through (if not already): + +- BranchCache +- Hyper-V +- VcXsrv +- Windows Terminal + +From the Windows Security menu, click on the Firewall & Network Protection tab, then click on "Allow an app through firewall". If the applications below are not allowed to communicate through Windows Defender Firewall, change the settings to allow. + +

+
+ +
In what Operating Systems can I run OpenBB SDK? +

+ +OpenBB SDK is compatible with Windows, Linux, and Mac OS. Check the +[installation guide](/sdk/getstarted/installation) and [requirements outline](/sdk/getstarted/requirements) for more details. + +

+
+ +
How much hard drive space is required? +

+ +An installation will use approximately 4GB of space. + +

+
+ +
How do I launch Jupyter Lab for use with the OpenBB SDK? +

+ +From the command line, with the environment active, and from the root of the local installation folder, enter: `jupyter lab`. A browser window will launch. + +

+
+ +
Why is data from today missing when I use the load function? +

+ +By default, the load function requests end-of-day daily data and is not included until the EOD summary has been published. The current day's data is considered intraday and is loaded when the `interval` argument is present. + +

+
+ +
How do I report a bug? +

+ +First, search the open issues for another report. If one already exists, attach any relevant information and screenshots as a comment. If one does not exist, start one with this [link](https://github.com/OpenBB-finance/OpenBBTerminal/issues/new?assignees=&labels=type%3Abug&template=bug_report.md&title=%5BBug%5D) + +

+
+ +
How can I get help with OpenBB SDK? +

+ +You can get help with OpenBB SDK by joining our +[Discord server](https://openbb.co/discord) or contact us in our support form +[here](https://openbb.co/support). + +

+
diff --git a/website/content/sdk/quickstart/installation.md b/website/content/sdk/quickstart/installation.md new file mode 100644 index 00000000000..3b252277e60 --- /dev/null +++ b/website/content/sdk/quickstart/installation.md @@ -0,0 +1,37 @@ +--- +title: Installation +sidebar_position: 2 +--- + +### Steps + +1. **Install [Miniconda](https://docs.conda.io/en/latest/miniconda.html)** + + Download the `x86_64` Miniconda for your respective system and follow along + with it's installation instructions. The Miniconda architecture MUST be + `x86_64` in order to use certain features. + +2. **Create Environment** + + ```shell + conda create -n python=3.9.6 -y + ``` + + :::note (Optional) If you would like machine learning forecast features: + + ```shell + conda install -c conda-forge u8darts-torch=0.22.0 -y + conda install -c conda-forge pytorch-lightning=1.6.5 -y + ``` + +3. **Install OpenBB Terminal** + + ```shell + pip install openbbterminal + ``` + + :::note (Optional) If you would like machine learning forecast features: + + ```shell + pip install "openbbterminal[prediction]" + ``` diff --git a/website/content/sdk/quickstart/requirements.md b/website/content/sdk/quickstart/requirements.md new file mode 100644 index 00000000000..0564b7db6fe --- /dev/null +++ b/website/content/sdk/quickstart/requirements.md @@ -0,0 +1,154 @@ +--- +title: Requirements +sidebar_position: 1 +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +The OpenBB SDK is a set of tools for financial and data analysis. We recommend starting out with some experience in finance, markets, and Python. The purpose of this page is to outline some of the background information required to get the most out of the software. + +### Recommended System Requirements + +- 16GB RAM or more +- Dedicated graphics card +- 5GB free storage +- A code editor, such as VS Code, with some extensions: + + - Jupyter + - Jupyter Power Toys + - Python Environment Manager + - Python Extension Pack + - mplstyle + +- Chrome or Firefox +- Open Office + +### Minumum System Requirements + +- 8GB RAM or more +- 5GB free storage +- A code editor, such as VS Code +- Chrome or Firefox + + +:::info OS Specific Requirements + + + +
+ +

The OpenBB platform requires MacOS Catalina or higher. The oldest Mac configuration known to work is a MacPro 3,1 (OS Catalina) and functions relying on the Intel Math Kernel (Forecast models like RNN) are not compatible with the CPU.

+
+ +
+ +
+ +
+ +

Windows 10 or higher is required, and the user account should be have administrator priviliges. + +Additionaly, its reccomended Windows users also install [Git for Windows](https://git-scm.com/download/win) and use `Git Bash` as the terminal application instead of CMD or PowerShell. +

+
+ +
+
+ +
+ +

The OpenBB platform can be installed on a variety of Linux distributions. Due to the large number of system configuration variables, we are unable to verify compatibility across all distributions. It is known to work with up-do-date versions of Ubuntu, Debian and Raspberry Pi. Any 32-bit distributions are incompatible. Generally, if the system installs Miniconda3 then the OpenBB Terminal should also be installable. +

+
+ +
+
+
+::: + +## Python + +### Virtual Environments + +- [Miniconda3](https://docs.conda.io/en/latest/miniconda.html) +- [Installing Python Packages](https://packaging.python.org/en/latest/tutorials/installing-packages/) + +Virtual Python environments are containers for Python applications, and allows the operating system to remain unchanged. The OpenBB SDK is built on top of 300+ open-source libraries. The dependency tree is complex and the components are carefully selected to work with each other. This makes it critical to install the OpenBB SDK in an isolated, dedicated, virtual environment. We recommend a Conda virtual environment because this is currently the only package manager compatible with every function. Consequently, installations within a `venv` or other container will lack the ML and forecast features. The Forecast menu will not be installed unless: + +- Miniconda3 is installed and the version is specifically x86/x64 architecture, regardless of the CPU-type. +- CMake must be installed within the environment created for the OpenBB installation. + - `conda install -c conda-forge cmake` + +It is not recommended to install in a Global environment, such as Homebrew or `usr/local/bin/python3`. Create and activate a new environment before installing the OpenBB SDK. + +### Common Python Libraries + +A good way to learn about the Python language is to recognize the libraries which are frequently used and attempt to understand how they form the foundations for workflows. A working knowledge of the libraries listed below is recommended: + +- Datetime +- JSON +- Math +- Matplotlib +- Numpy +- Pandas +- Plotly +- Quandl +- Requests +- URLlib3 + +The best way to learn is to get involved. Tinkering with the code from an open-source project is an excellent way to dabble. +### GitHub + +[GitHub](https://github.com/OpenBB-finance/OpenBBTerminal) is where the OpenBB source code is maintained. Cloning the [repository](https://github.com/OpenBB-finance/OpenBBTerminal.git) is recommended for those wishing to develop functions, inspect the source code, or be on the bleeding-edge of development. Syncing the local folder - `git pull` - to the main branch of the repository will keep the installation up-to-date, and `git checkout` provides a way to test development or contributor branchs. GitHub can also be used as a personal storage vault and take advantage of automated actions. It's a great place to build, store, and maintain small databases for free. + +Users encountering bugs are encouraged to report them [here](https://github.com/OpenBB-finance/OpenBBTerminal/issues/new/choose) by creating a new issue, if no open issue for the bug already exists. + +### View-Model-Control + +OpenBB uses a [View-Model-Control](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) format for creating functionality in the terminal. + +For example: + +``` +openbb.economy.ycrv() +``` +| | Maturity | Rate | +|---:|-----------:|-------:| +| 0 | 0.0833333 | 3.93 | +| 1 | 0.25 | 4.34 | +| 2 | 0.5 | 4.61 | +| ...| ... | ... | +| 8 | 10 | 3.82 | +| 9 | 20 | 4.13 | +| 10 | 30 | 3.92 | + + +Then the view: + +``` +openbb.economy.ycrv_chart() +``` + +![Screenshot 2022-11-21 at 4 29 17 PM](https://user-images.githubusercontent.com/85772166/203185342-f019414d-24e2-4d8a-a718-10eeedb59e8c.png) + +Users should have some experience working with Python and be comfortable working from the command line. There are many online resources dedicated to learning the Python language, such as: + +- [Python.org](https://www.python.org/about/gettingstarted/) +- [W3 Schools](https://www.w3schools.com/python/) +- [Python Wiki](https://wiki.python.org/moin/BeginnersGuide) +## Resources for Finance + +Below is a collection of useful websites: + +- [Investopedia](https://www.investopedia.com/) +- [The Federal Reserve Economic Database](https://fred.stlouisfed.org/) +- [Options Industry Council](https://www.optionseducation.org/) +- [DTCC Learning](https://dtcclearning.com/) +- [Nasdaqtrader](https://nasdaqtrader.com/Trader.aspx?id=symbollookup) +- [EDGAR Full Text Search](https://www.sec.gov/edgar/search/#) +- [EDGAR Historical Documents](https://www.sec.gov/cgi-bin/srch-edgar) +- [US Government Open Data](https://data.gov/) +- [ECB Statistical Warehouse](https://sdw.ecb.europa.eu/) +- [AlphaVantage Academy](https://www.alphavantage.co/academy/) +- [FINRA](https://otce.finra.org/otce/home) diff --git a/website/content/sdk/reference/_category_.json b/website/content/sdk/reference/_category_.json new file mode 100644 index 00000000000..0d35d5b8380 --- /dev/null +++ b/website/content/sdk/reference/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "SDK Reference", + "position": 4 +} \ No newline at end of file diff --git a/website/content/sdk/reference/alt/covid/global_cases.md b/website/content/sdk/reference/alt/covid/global_cases.md new file mode 100644 index 00000000000..87b713352fc --- /dev/null +++ b/website/content/sdk/reference/alt/covid/global_cases.md @@ -0,0 +1,55 @@ +--- +title: global_cases +description: OpenBB SDK Function +--- + +# global_cases + +Get historical cases for given country. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_model.py#L26)] + +```python +openbb.alt.covid.global_cases(country: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Country to search for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of historical cases | +--- + +## Examples +Dataframe of historical cases for United States + + +```python +df = get_global_cases("United States") +``` + +Dataframe of historical cases for Portugal + + +```python +df = get_global_cases("Portugal") +``` + +Dataframe of historical cases for Spain +```python +df = get_global_cases("Spain") +``` + +--- + diff --git a/website/content/sdk/reference/alt/covid/global_deaths.md b/website/content/sdk/reference/alt/covid/global_deaths.md new file mode 100644 index 00000000000..b741c044d1b --- /dev/null +++ b/website/content/sdk/reference/alt/covid/global_deaths.md @@ -0,0 +1,33 @@ +--- +title: global_deaths +description: OpenBB SDK Function +--- + +# global_deaths + +Get historical deaths for given country. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_model.py#L73)] + +```python +openbb.alt.covid.global_deaths(country: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Country to search for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of historical deaths | +--- + diff --git a/website/content/sdk/reference/alt/covid/ov.md b/website/content/sdk/reference/alt/covid/ov.md new file mode 100644 index 00000000000..6eaf22adcf6 --- /dev/null +++ b/website/content/sdk/reference/alt/covid/ov.md @@ -0,0 +1,78 @@ +--- +title: ov +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ov + + + + +Get historical cases and deaths by country. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_model.py#L105)] + +```python +openbb.alt.covid.ov(country: str, limit: int = 100) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Country to get data for | None | False | +| limit | int | Number of raw data to show | 100 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of historical cases and deaths | +--- + + + + + + +Prints table showing historical cases and deaths by country. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_view.py#L131)] + +```python +openbb.alt.covid.ov_chart(country: str, raw: bool = False, limit: int = 10, export: str = "", plot: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Country to get data for | None | False | +| raw | bool | Flag to display raw data | False | True | +| limit | int | Number of raw data to show | 10 | True | +| export | str | Format to export data | | True | +| plot | bool | Flag to display historical plot | True | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/alt/covid/slopes.md b/website/content/sdk/reference/alt/covid/slopes.md new file mode 100644 index 00000000000..e1b5dfb10b1 --- /dev/null +++ b/website/content/sdk/reference/alt/covid/slopes.md @@ -0,0 +1,80 @@ +--- +title: slopes +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# slopes + + + + +Load cases and find slope over period. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_model.py#L173)] + +```python +openbb.alt.covid.slopes(days_back: int = 30, limit: int = 50, threshold: int = 10000, ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| days_back | int | Number of historical days to consider | 30 | True | +| limit | int | Number of rows to show | 50 | True | +| threshold | int | Threshold for total number of cases | 10000 | True | +| ascend | bool | Flag to sort in ascending order | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing slopes | +--- + + + + + + +Prints table showing countries with the highest case slopes. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_view.py#L220)] + +```python +openbb.alt.covid.slopes_chart(days_back: int = 30, limit: int = 10, threshold: int = 10000, ascend: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| days_back | int | Number of historical days to get slope for | 30 | True | +| limit | int | Number to show in table | 10 | True | +| ascend | bool | Flag to sort in ascending order | False | True | +| threshold | int | Threshold for total cases over period | 10000 | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/alt/covid/stat.md b/website/content/sdk/reference/alt/covid/stat.md new file mode 100644 index 00000000000..210136fcac2 --- /dev/null +++ b/website/content/sdk/reference/alt/covid/stat.md @@ -0,0 +1,80 @@ +--- +title: stat +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stat + + + + +Show historical cases and deaths by country. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_model.py#L136)] + +```python +openbb.alt.covid.stat(country: str, stat: str = "cases", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Country to get data for | None | False | +| stat | str | Statistic to get. Either "cases", "deaths" or "rates" | cases | True | +| limit | int | Number of raw data to show | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of data for given country and statistic | +--- + + + + + + +Prints table showing historical cases and deaths by country. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/covid/covid_view.py#L172)] + +```python +openbb.alt.covid.stat_chart(country: str, stat: str = "cases", raw: bool = False, limit: int = 10, export: str = "", plot: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Country to get data for | None | False | +| stat | str | Statistic to get. Either "cases", "deaths" or "rates" | cases | True | +| raw | bool | Flag to display raw data | False | True | +| limit | int | Number of raw data to show | 10 | True | +| export | str | Format to export data | | True | +| plot | bool | Flag to plot data | True | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/alt/oss/_make_request.md b/website/content/sdk/reference/alt/oss/_make_request.md new file mode 100644 index 00000000000..42dbc147fd5 --- /dev/null +++ b/website/content/sdk/reference/alt/oss/_make_request.md @@ -0,0 +1,33 @@ +--- +title: _make_request +description: OpenBB SDK Function +--- + +# _make_request + +Helper method to scrap. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/runa_model.py#L67)] + +```python +openbb.alt.oss._make_request(url: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| url | str | url to scrape | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[BeautifulSoup, None] | BeautifulSoup object or None | +--- + diff --git a/website/content/sdk/reference/alt/oss/_retry_session.md b/website/content/sdk/reference/alt/oss/_retry_session.md new file mode 100644 index 00000000000..0755998dcbe --- /dev/null +++ b/website/content/sdk/reference/alt/oss/_retry_session.md @@ -0,0 +1,35 @@ +--- +title: _retry_session +description: OpenBB SDK Function +--- + +# _retry_session + +Helper methods that retries to make request. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/runa_model.py#L32)] + +```python +openbb.alt.oss._retry_session(url: str, retries: int = 3, backoff_factor: float = 1.0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| url | str | Url to mount a session | None | False | +| retries | int | How many retries | 3 | True | +| backoff_factor | float | Backoff schema - time periods between retry | 1.0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| requests.Session | Mounted session | +--- + diff --git a/website/content/sdk/reference/alt/oss/github_data.md b/website/content/sdk/reference/alt/oss/github_data.md new file mode 100644 index 00000000000..cbc603410e5 --- /dev/null +++ b/website/content/sdk/reference/alt/oss/github_data.md @@ -0,0 +1,34 @@ +--- +title: github_data +description: OpenBB SDK Function +--- + +# github_data + +Get repository stats. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_model.py#L21)] + +```python +openbb.alt.oss.github_data(url: str, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| url | str | github api endpoint | None | False | +| params | dict | params to pass to api endpoint | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Any] | Dictionary with data | +--- + diff --git a/website/content/sdk/reference/alt/oss/history.md b/website/content/sdk/reference/alt/oss/history.md new file mode 100644 index 00000000000..42d0a343f35 --- /dev/null +++ b/website/content/sdk/reference/alt/oss/history.md @@ -0,0 +1,75 @@ +--- +title: history +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# history + + + + +Get repository star history. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_model.py#L88)] + +```python +openbb.alt.oss.history(repo: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| repo | str | Repo to search for Format: org/repo, e.g., openbb-finance/openbbterminal | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with star history - Columns: Date, Stars | +--- + + + + + + +Plots repo summary [Source: https://api.github.com]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_view.py#L28)] + +```python +openbb.alt.oss.history_chart(repo: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| repo | str | Repository to display star history. Format: org/repo, e.g., openbb-finance/openbbterminal | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/alt/oss/ross.md b/website/content/sdk/reference/alt/oss/ross.md new file mode 100644 index 00000000000..c96c6d2ad61 --- /dev/null +++ b/website/content/sdk/reference/alt/oss/ross.md @@ -0,0 +1,77 @@ +--- +title: ross +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ross + + + + +Get startups from ROSS index [Source: https://runacap.com/]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/runa_model.py#L104)] + +```python +openbb.alt.oss.ross() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | list of startups | +--- + + + + + + +Plots list of startups from ross index [Source: https://runacap.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/runa_view.py#L25)] + +```python +openbb.alt.oss.ross_chart(limit: int = 10, sortby: str = "Stars AGR [%]", ascend: bool = False, show_chart: bool = False, show_growth: bool = True, chart_type: str = "stars", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of startups to search | 10 | True | +| sortby | str | Key by which to sort data. Default: Stars AGR [%] | Stars AGR [%] | True | +| ascend | bool | Flag to sort data descending | False | True | +| show_chart | bool | Flag to show chart with startups | False | True | +| show_growth | bool | Flag to show growth line chart | True | True | +| chart_type | str | Chart type {stars,forks} | stars | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/alt/oss/search.md b/website/content/sdk/reference/alt/oss/search.md new file mode 100644 index 00000000000..77be7b551f2 --- /dev/null +++ b/website/content/sdk/reference/alt/oss/search.md @@ -0,0 +1,35 @@ +--- +title: search +description: OpenBB SDK Function +--- + +# search + +Get repos sorted by stars or forks. Can be filtered by categories. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_model.py#L56)] + +```python +openbb.alt.oss.search(sortby: str = "stars", page: int = 1, categories: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Sort repos by {stars, forks} | stars | True | +| categories | str | Check for repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None | | True | +| page | int | Page number to get repos | 1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with repos | +--- + diff --git a/website/content/sdk/reference/alt/oss/summary.md b/website/content/sdk/reference/alt/oss/summary.md new file mode 100644 index 00000000000..46ccc951894 --- /dev/null +++ b/website/content/sdk/reference/alt/oss/summary.md @@ -0,0 +1,74 @@ +--- +title: summary +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# summary + + + + +Get repository summary. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_model.py#L179)] + +```python +openbb.alt.oss.summary(repo: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| repo | str | Repo to search for Format: org/repo, e.g., openbb-finance/openbbterminal | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with repo summary - Columns: Metric, Value | +--- + + + + + + +Prints table showing repo summary [Source: https://api.github.com]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_view.py#L123)] + +```python +openbb.alt.oss.summary_chart(repo: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| repo | str | Repository to display summary. Format: org/repo, e.g., openbb-finance/openbbterminal | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/alt/oss/top.md b/website/content/sdk/reference/alt/oss/top.md new file mode 100644 index 00000000000..44f8b29becb --- /dev/null +++ b/website/content/sdk/reference/alt/oss/top.md @@ -0,0 +1,79 @@ +--- +title: top +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# top + + + + +Get repos sorted by stars or forks. Can be filtered by categories. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_model.py#L135)] + +```python +openbb.alt.oss.top(sortby: str, limit: int = 50, categories: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Sort repos by {stars, forks} | None | False | +| categories | str | Check for repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None | | True | +| limit | int | Number of repos to search for | 50 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with repos | +--- + + + + + + +Plots repo summary [Source: https://api.github.com]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/alternative/oss/github_view.py#L65)] + +```python +openbb.alt.oss.top_chart(sortby: str, categories: str = "", limit: int = 10, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Sort repos by {stars, forks} | None | False | +| categories | str | Check for repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None | | True | +| limit | int | Number of repos to look at | 10 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/candles.md b/website/content/sdk/reference/crypto/candles.md new file mode 100644 index 00000000000..5f920f76854 --- /dev/null +++ b/website/content/sdk/reference/crypto/candles.md @@ -0,0 +1,37 @@ +--- +title: candles +description: OpenBB SDK Function +--- + +# candles + +Plot candle chart from dataframe. [Source: Binance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/cryptocurrency_helpers.py#L800)] + +```python +openbb.crypto.candles(candles_df: pd.DataFrame, volume: bool = True, ylabel: str = "", title: str = "", external_axes: list[matplotlib.axes._axes.Axes] | None = None, yscale: str = "linear") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| candles_df | pd.DataFrame | Dataframe containing time and OHLCV | None | False | +| volume | bool | If volume data shall be plotted, by default True | True | True | +| ylabel | str | Y-label of the graph, by default "" | | True | +| title | str | Title of graph, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | +| yscale | str | Scaling for y axis. Either linear or log | linear | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/crypto/chart.md b/website/content/sdk/reference/crypto/chart.md new file mode 100644 index 00000000000..d64e077c0bc --- /dev/null +++ b/website/content/sdk/reference/crypto/chart.md @@ -0,0 +1,35 @@ +--- +title: chart +description: OpenBB SDK Function +--- + +# chart + +Load data for Technical Analysis + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/cryptocurrency_helpers.py#L748)] + +```python +openbb.crypto.chart(prices_df: pd.DataFrame, to_symbol: str = "", from_symbol: str = "", source: str = "", exchange: str = "", interval: str = "", external_axes: list[matplotlib.axes._axes.Axes] | None = None, yscale: str = "linear") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| prices_df | pd.DataFrame | Cryptocurrency | None | False | +| to_symbol | str | Coin (only used for chart title), by default "" | | True | +| from_symbol | str | Currency (only used for chart title), by default "" | | True | +| yscale | str | Scale for y axis of plot Either linear or log | linear | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/crypto/dd/active.md b/website/content/sdk/reference/crypto/dd/active.md new file mode 100644 index 00000000000..a30d90a1cad --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/active.md @@ -0,0 +1,81 @@ +--- +title: active +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# active + + + + +Returns active addresses of a certain symbol + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_model.py#L310)] + +```python +openbb.crypto.dd.active(symbol: str, interval: str = "24h", start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search active addresses (e.g., BTC) | None | False | +| interval | str | Interval frequency (e.g., 24h) | 24h | True | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | active addresses over time | +--- + + + + + + +Plots active addresses of a certain symbol over time + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_view.py#L32)] + +```python +openbb.crypto.dd.active_chart(symbol: str, start_date: str = "2010-01-01", end_date: str = None, interval: str = "24h", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search active addresses (e.g., BTC) | None | False | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| interval | str | Interval frequency (possible values are: 24h, 1w, 1month) | 24h | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/all_binance_trading_pairs.md b/website/content/sdk/reference/crypto/dd/all_binance_trading_pairs.md new file mode 100644 index 00000000000..2356ba70034 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/all_binance_trading_pairs.md @@ -0,0 +1,30 @@ +--- +title: all_binance_trading_pairs +description: OpenBB SDK Function +--- + +# all_binance_trading_pairs + +Returns all available pairs on Binance in DataFrame format. DataFrame has 3 columns symbol, baseAsset, quoteAsset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/binance_model.py#L58)] + +```python +openbb.crypto.dd.all_binance_trading_pairs() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | All available pairs on Binance
Columns: symbol, baseAsset, quoteAsset | +--- + diff --git a/website/content/sdk/reference/crypto/dd/balance.md b/website/content/sdk/reference/crypto/dd/balance.md new file mode 100644 index 00000000000..35172210980 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/balance.md @@ -0,0 +1,76 @@ +--- +title: balance +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# balance + + + + +Get account holdings for asset. [Source: Binance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/binance_model.py#L179)] + +```python +openbb.crypto.dd.balance(from_symbol: str, to_symbol: str = "USDT") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| from_symbol | str | Cryptocurrency | None | False | +| to_symbol | str | Cryptocurrency | USDT | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with account holdings for an asset | +--- + + + + + + +Prints table showing account holdings for asset. [Source: Binance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/binance_view.py#L64)] + +```python +openbb.crypto.dd.balance_chart(from_symbol: str, to_symbol: str = "USDT", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| from_symbol | str | Cryptocurrency | None | False | +| to_symbol | str | Cryptocurrency | USDT | True | +| export | str | Export dataframe data to csv,json,xlsx | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/basic.md b/website/content/sdk/reference/crypto/dd/basic.md new file mode 100644 index 00000000000..c1cb6bb2b7d --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/basic.md @@ -0,0 +1,74 @@ +--- +title: basic +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# basic + + + + +Basic coin information [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L379)] + +```python +openbb.crypto.dd.basic(symbol: str = "BTC") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Metric, Value | +--- + + + + + + +Prints table showing basic information for coin. Like: + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_view.py#L325)] + +```python +openbb.crypto.dd.basic_chart(symbol: str = "BTC", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| export | str | Export dataframe data to csv,json,xlsx | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/binance_available_quotes_for_each_coin.md b/website/content/sdk/reference/crypto/dd/binance_available_quotes_for_each_coin.md new file mode 100644 index 00000000000..049478ae178 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/binance_available_quotes_for_each_coin.md @@ -0,0 +1,30 @@ +--- +title: binance_available_quotes_for_each_coin +description: OpenBB SDK Function +--- + +# binance_available_quotes_for_each_coin + +Helper methods that for every coin available on Binance add all quote assets. [Source: Binance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/binance_model.py#L77)] + +```python +openbb.crypto.dd.binance_available_quotes_for_each_coin() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | All quote assets for given coin
{'ETH' : ['BTC', 'USDT' ...], 'UNI' : ['ETH', 'BTC','BUSD', ...] | +--- + diff --git a/website/content/sdk/reference/crypto/dd/candles.md b/website/content/sdk/reference/crypto/dd/candles.md new file mode 100644 index 00000000000..eb99e209760 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/candles.md @@ -0,0 +1,76 @@ +--- +title: candles +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# candles + + + + +Get candles for chosen trading pair and time interval. [Source: Coinbase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinbase_model.py#L143)] + +```python +openbb.crypto.dd.candles(symbol: str, interval: str = "24h") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH | None | False | +| interval | str | Time interval. One from 1min, 5min ,15min, 1hour, 6hour, 24hour | 24h | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Candles for chosen trading pair. | +--- + + + + + + +Prints table showing candles for chosen trading pair and time interval. [Source: Coinbase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinbase_view.py#L76)] + +```python +openbb.crypto.dd.candles_chart(symbol: str, interval: str = "24h", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH | None | False | +| interval | str | Time interval. One from 1m, 5m ,15m, 1h, 6h, 24h | 24h | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/change.md b/website/content/sdk/reference/crypto/dd/change.md new file mode 100644 index 00000000000..9a622311130 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/change.md @@ -0,0 +1,81 @@ +--- +title: change +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# change + + + + +Returns 30d change of the supply held in exchange wallets of a certain symbol. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_model.py#L538)] + +```python +openbb.crypto.dd.change(symbol: str, exchange: str = "binance", start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset symbol to search supply (e.g., BTC) | None | False | +| exchange | str | Exchange to check net position change (e.g., binance) | binance | True | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | supply change in exchange wallets of a certain symbol over time | +--- + + + + + + +Plots 30d change of the supply held in exchange wallets. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_view.py#L157)] + +```python +openbb.crypto.dd.change_chart(symbol: str, exchange: str = "binance", start_date: str = "2010-01-01", end_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search active addresses (e.g., BTC) | None | False | +| exchange | str | Exchange to check net position change (possible values are: aggregated, binance,
bittrex, coinex, gate.io, gemini, huobi, kucoin, poloniex, bibox, bigone, bitfinex,
hitbtc, kraken, okex, bithumb, zb.com, cobinhood, bitmex, bitstamp, coinbase, coincheck, luno) | binance | True | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/check_valid_binance_str.md b/website/content/sdk/reference/crypto/dd/check_valid_binance_str.md new file mode 100644 index 00000000000..9f6f05273b4 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/check_valid_binance_str.md @@ -0,0 +1,30 @@ +--- +title: check_valid_binance_str +description: OpenBB SDK Function +--- + +# check_valid_binance_str + +Check if symbol is in defined binance. [Source: Binance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/binance_model.py#L96)] + +```python +openbb.crypto.dd.check_valid_binance_str(symbol: str) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Symbol | +--- + diff --git a/website/content/sdk/reference/crypto/dd/close.md b/website/content/sdk/reference/crypto/dd/close.md new file mode 100644 index 00000000000..1b2e76aa83f --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/close.md @@ -0,0 +1,36 @@ +--- +title: close +description: OpenBB SDK Function +--- + +# close + +Returns the price of a cryptocurrency + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_model.py#L180)] + +```python +openbb.crypto.dd.close(symbol: str, start_date: str = "2010-01-01", end_date: str = None, print_errors: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto to check close price (BTC or ETH) | None | False | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| print_errors | bool | Flag to print errors. Default: True | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | price over time | +--- + diff --git a/website/content/sdk/reference/crypto/dd/coin.md b/website/content/sdk/reference/crypto/dd/coin.md new file mode 100644 index 00000000000..5e3b3a7ea12 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/coin.md @@ -0,0 +1,33 @@ +--- +title: coin +description: OpenBB SDK Function +--- + +# coin + +Get coin by id [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L427)] + +```python +openbb.crypto.dd.coin(symbol: str = "eth-ethereum") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | id of coin from coinpaprika e.g. Ethereum - > 'eth-ethereum' | eth-ethereum | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Coin response | +--- + diff --git a/website/content/sdk/reference/crypto/dd/coin_market_chart.md b/website/content/sdk/reference/crypto/dd/coin_market_chart.md new file mode 100644 index 00000000000..4bae067de9d --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/coin_market_chart.md @@ -0,0 +1,35 @@ +--- +title: coin_market_chart +description: OpenBB SDK Function +--- + +# coin_market_chart + +Get prices for given coin. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/pycoingecko_model.py#L222)] + +```python +openbb.crypto.dd.coin_market_chart(symbol: str = "", vs_currency: str = "usd", days: int = 30, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| vs_currency | str | currency vs which display data | usd | True | +| days | int | number of days to display the data | 30 | True | +| kwargs | None | unspecified keyword arguments | None | None | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Prices for given coin
Columns: time, price, currency | +--- + diff --git a/website/content/sdk/reference/crypto/dd/eb.md b/website/content/sdk/reference/crypto/dd/eb.md new file mode 100644 index 00000000000..d1e40364b90 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/eb.md @@ -0,0 +1,82 @@ +--- +title: eb +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# eb + + + + +Returns the total amount of coins held on exchange addresses in units and percentage. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_model.py#L452)] + +```python +openbb.crypto.dd.eb(symbol: str, exchange: str = "binance", start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search active addresses (e.g., BTC) | None | False | +| exchange | str | Exchange to check net position change (e.g., binance) | binance | True | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | total amount of coins in units/percentage and symbol price over time | +--- + + + + + + +Plots total amount of coins held on exchange addresses in units and percentage. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_view.py#L238)] + +```python +openbb.crypto.dd.eb_chart(symbol: str, exchange: str = "binance", start_date: str = "2010-01-01", end_date: str = None, percentage: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search active addresses (e.g., BTC) | None | False | +| exchange | str | Exchange to check net position change (possible values are: aggregated, binance, bittrex,
coinex, gate.io, gemini, huobi, kucoin, poloniex, bibox, bigone, bitfinex, hitbtc, kraken,
okex, bithumb, zb.com, cobinhood, bitmex, bitstamp, coinbase, coincheck, luno) | binance | True | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| percentage | bool | Show percentage instead of stacked value. | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/events.md b/website/content/sdk/reference/crypto/dd/events.md new file mode 100644 index 00000000000..d16684eaf1f --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/events.md @@ -0,0 +1,80 @@ +--- +title: events +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# events + + + + +Get all events related to given coin like conferences, start date of futures trading etc. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L74)] + +```python +openbb.crypto.dd.events(symbol: str = "BTC", sortby: str = "date", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| sortby | str | Key by which to sort data. Every column name is valid
(see for possible values:
https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1events/get). | date | True | +| ascend | bool | Flag to sort data ascending | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Events found for given coin
Columns: id, date , date_to, name, description, is_conference, link, proof_image_link | +--- + + + +
+ + +Prints table showing all events for given coin id. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_view.py#L132)] + +```python +openbb.crypto.dd.events_chart(symbol: str = "BTC", limit: int = 10, sortby: str = "date", ascend: bool = False, links: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data. Every column name is valid
(see for possible values:
https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1events/get). | date | True | +| ascend | bool | Flag to sort data ascending | False | True | +| links | bool | Flag to display urls | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/ex.md b/website/content/sdk/reference/crypto/dd/ex.md new file mode 100644 index 00000000000..67ebd5751d7 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/ex.md @@ -0,0 +1,79 @@ +--- +title: ex +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ex + + + + +Get all exchanges for given coin id. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L137)] + +```python +openbb.crypto.dd.ex(symbol: str = "BTC", sortby: str = "adjusted_volume_24h_share", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| sortby | str | Key by which to sort data. Every column name is valid (see for possible values:
https://api.coinpaprika.com/v1). | adjusted_volume_24h_share | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | All exchanges for given coin
Columns: id, name, adjusted_volume_24h_share, fiats | +--- + + + +
+ + +Prints table showing all exchanges for given coin id. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_view.py#L185)] + +```python +openbb.crypto.dd.ex_chart(symbol: str = "btc", limit: int = 10, sortby: str = "adjusted_volume_24h_share", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | btc | True | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data. Every column name is valid (see for possible values:
https://api.coinpaprika.com/v1). | adjusted_volume_24h_share | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/exchanges.md b/website/content/sdk/reference/crypto/dd/exchanges.md new file mode 100644 index 00000000000..541124aad77 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/exchanges.md @@ -0,0 +1,30 @@ +--- +title: exchanges +description: OpenBB SDK Function +--- + +# exchanges + +Helper method to get all the exchanges supported by ccxt + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/ccxt_model.py#L10)] + +```python +openbb.crypto.dd.exchanges() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str] | list of all the exchanges supported by ccxt | +--- + diff --git a/website/content/sdk/reference/crypto/dd/fr.md b/website/content/sdk/reference/crypto/dd/fr.md new file mode 100644 index 00000000000..18c7ffff892 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/fr.md @@ -0,0 +1,75 @@ +--- +title: fr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# fr + + + + +Returns coin fundraising + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L637)] + +```python +openbb.crypto.dd.fr(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check fundraising | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[str, pd.DataFrame, pd.DataFrame, pd.DataFrame] | Launch summary,
Sales rounds,
Treasury Accounts,
Metric Value launch details | +--- + + + +
+ + +Display coin fundraising + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L639)] + +```python +openbb.crypto.dd.fr_chart(symbol: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check coin fundraising | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/get_mt.md b/website/content/sdk/reference/crypto/dd/get_mt.md new file mode 100644 index 00000000000..3d4c97da07d --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/get_mt.md @@ -0,0 +1,76 @@ +--- +title: get_mt +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# get_mt + + + + +Returns available messari timeseries + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L34)] + +```python +openbb.crypto.dd.get_mt(only_free: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| only_free | bool | Display only timeseries available for free | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | available timeseries | +--- + + + + + + +Prints table showing messari timeseries list + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L49)] + +```python +openbb.crypto.dd.get_mt_chart(limit: int = 10, query: str = "", only_free: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | number to show | 10 | True | +| query | str | Query to search across all messari timeseries | | True | +| only_free | bool | Display only timeseries available for free | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/gh.md b/website/content/sdk/reference/crypto/dd/gh.md new file mode 100644 index 00000000000..edbdb3bbae5 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/gh.md @@ -0,0 +1,83 @@ +--- +title: gh +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gh + + + + +Returns a list of developer activity for a given coin and time interval. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/santiment_model.py#L28)] + +```python +openbb.crypto.dd.gh(symbol: str, dev_activity: bool = False, interval: str = "1d", start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check github activity | None | False | +| dev_activity | bool | Whether to filter only for development activity | False | True | +| interval | str | Interval frequency (e.g., 1d) | 1d | True | +| start_date | int | Initial date like string (e.g., 2021-10-01) | None | True | +| end_date | int | End date like string (e.g., 2021-10-01) | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | developer activity over time | +--- + + + + + + +Returns a list of github activity for a given coin and time interval. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/santiment_view.py#L25)] + +```python +openbb.crypto.dd.gh_chart(symbol: str, start_date: str = None, dev_activity: bool = False, end_date: str = None, interval: str = "1d", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check github activity | None | False | +| dev_activity | bool | Whether to filter only for development activity | False | True | +| start_date | int | Initial date like string (e.g., 2021-10-01) | None | True | +| end_date | int | End date like string (e.g., 2021-10-01) | None | True | +| interval | str | Interval frequency (some possible values are: 1h, 1d, 1w) | 1d | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/gov.md b/website/content/sdk/reference/crypto/dd/gov.md new file mode 100644 index 00000000000..7c7bada38f2 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/gov.md @@ -0,0 +1,74 @@ +--- +title: gov +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gov + + + + +Returns coin governance + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L567)] + +```python +openbb.crypto.dd.gov(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check governance | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[str, pd.DataFrame] | Governance summary,
Metric Value with governance details | +--- + + + +
+ + +Prints table showing coin governance + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L602)] + +```python +openbb.crypto.dd.gov_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check coin governance | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/headlines.md b/website/content/sdk/reference/crypto/dd/headlines.md new file mode 100644 index 00000000000..87f68f07f30 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/headlines.md @@ -0,0 +1,76 @@ +--- +title: headlines +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# headlines + + + + +Gets Sentiment analysis provided by FinBrain's API [Source: finbrain]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/finbrain_model.py#L15)] + +```python +openbb.crypto.dd.headlines(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get the sentiment analysis from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Empty if there was an issue with data retrieval | +--- + + + + + + +Sentiment analysis from FinBrain for Cryptocurrencies + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/finbrain_crypto_view.py#L39)] + +```python +openbb.crypto.dd.headlines_chart(symbol: str, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency | None | False | +| raw | False | Display raw table data | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/inv.md b/website/content/sdk/reference/crypto/dd/inv.md new file mode 100644 index 00000000000..8d22b1033f9 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/inv.md @@ -0,0 +1,74 @@ +--- +title: inv +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# inv + + + + +Returns coin investors + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L494)] + +```python +openbb.crypto.dd.inv(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check investors | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Individuals,
Organizations | +--- + + + +
+ + +Prints table showing coin investors + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L510)] + +```python +openbb.crypto.dd.inv_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check coin investors | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/links.md b/website/content/sdk/reference/crypto/dd/links.md new file mode 100644 index 00000000000..6f0b6e1317d --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/links.md @@ -0,0 +1,75 @@ +--- +title: links +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# links + + + + +Returns asset's links + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L197)] + +```python +openbb.crypto.dd.links(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check links | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | asset links | +--- + + + + + + +Prints table showing coin links + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L249)] + +```python +openbb.crypto.dd.links_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check links | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/mcapdom.md b/website/content/sdk/reference/crypto/dd/mcapdom.md new file mode 100644 index 00000000000..1dcff2af86a --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/mcapdom.md @@ -0,0 +1,81 @@ +--- +title: mcapdom +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mcapdom + + + + +Returns market dominance of a coin over time + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L81)] + +```python +openbb.crypto.dd.mcapdom(symbol: str, interval: str = "1d", start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check market cap dominance | None | False | +| interval | str | Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) | 1d | True | +| start_date | int | Initial date like string (e.g., 2021-10-01) | None | True | +| end_date | int | End date like string (e.g., 2021-10-01) | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | market dominance percentage over time | +--- + + + + + + +Plots market dominance of a coin over time + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L181)] + +```python +openbb.crypto.dd.mcapdom_chart(symbol: str, start_date: str = None, end_date: str = None, interval: str = "1d", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check market cap dominance | None | False | +| start_date | int | Initial date like string (e.g., 2021-10-01) | None | True | +| end_date | int | End date like string (e.g., 2021-10-01) | None | True | +| interval | str | Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) | 1d | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/mkt.md b/website/content/sdk/reference/crypto/dd/mkt.md new file mode 100644 index 00000000000..8e3ed891769 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/mkt.md @@ -0,0 +1,82 @@ +--- +title: mkt +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mkt + + + + +All markets for given coin and currency [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L176)] + +```python +openbb.crypto.dd.mkt(symbol: str = "BTC", quotes: str = "USD", sortby: str = "pct_volume_share", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| quotes | str | Comma separated list of quotes to return.
Example: quotes=USD,BTC
Allowed values:
BTC, ETH, USD, EUR, PLN, KRW, GBP, CAD, JPY, RUB, TRY, NZD, AUD, CHF, UAH, HKD, SGD, NGN,
PHP, MXN, BRL, THB, CLP, CNY, CZK, DKK, HUF, IDR, ILS, INR, MYR, NOK, PKR, SEK, TWD, ZAR,
VND, BOB, COP, PEN, ARS, ISK | USD | True | +| sortby | str | Key by which to sort data. Every column name is valid (see for possible values:
https://api.coinpaprika.com/v1). | pct_volume_share | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | All markets for given coin and currency | +--- + + + +
+ + +Prints table showing all markets for given coin id. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_view.py#L230)] + +```python +openbb.crypto.dd.mkt_chart(from_symbol: str = "BTC", to_symbol: str = "USD", limit: int = 20, sortby: str = "pct_volume_share", ascend: bool = True, links: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| from_symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| to_symbol | str | Quoted currency | USD | True | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key by which to sort data. Every column name is valid (see for possible values:
https://api.coinpaprika.com/v1). | pct_volume_share | True | +| ascend | bool | Flag to sort data ascending | True | True | +| links | bool | Flag to display urls | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/mt.md b/website/content/sdk/reference/crypto/dd/mt.md new file mode 100644 index 00000000000..60f7a10e6cd --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/mt.md @@ -0,0 +1,83 @@ +--- +title: mt +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mt + + + + +Returns messari timeseries + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L124)] + +```python +openbb.crypto.dd.mt(symbol: str, timeseries_id: str, interval: str = "1d", start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check messari timeseries | None | False | +| timeseries_id | str | Messari timeserie id | None | False | +| interval | str | Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) | 1d | True | +| start | int | Initial date like string (e.g., 2021-10-01) | None | True | +| end | int | End date like string (e.g., 2021-10-01) | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, str] | Messari timeseries over time,
Timeseries title | +--- + + + +
+ + +Plots messari timeseries + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L103)] + +```python +openbb.crypto.dd.mt_chart(symbol: str, timeseries_id: str, start_date: str = None, end_date: str = None, interval: str = "1d", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check market cap dominance | None | False | +| timeseries_id | str | Obtained by api.crypto.dd.get_mt command | None | False | +| start_date | int | Initial date like string (e.g., 2021-10-01) | None | True | +| end_date | int | End date like string (e.g., 2021-10-01) | None | True | +| interval | str | Interval frequency (possible values are: 5m, 15m, 30m, 1h, 1d, 1w) | 1d | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/news.md b/website/content/sdk/reference/crypto/dd/news.md new file mode 100644 index 00000000000..2d86c571807 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/news.md @@ -0,0 +1,83 @@ +--- +title: news +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# news + + + + +Get recent posts from CryptoPanic news aggregator platform. [Source: https://cryptopanic.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/cryptopanic_model.py#L158)] + +```python +openbb.crypto.dd.news(limit: int = 60, post_kind: str = "news", filter_: Optional[str] = None, region: str = "en", source: Optional[str] = None, symbol: Optional[str] = None, sortby: str = "published_at", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | number of news to fetch | 60 | True | +| post_kind | str | Filter by category of news. Available values: news or media. | news | True | +| filter_ | Optional[str] | Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol | None | True | +| region | str | Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch),
es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) | en | True | +| sortby | str | Key to sort by. | published_at | True | +| ascend | bool | Sort in ascend order. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with recent news from different sources filtered by provided parameters. | +--- + + + +
+ + +Prints table showing recent posts from CryptoPanic news aggregator platform. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/cryptopanic_view.py#L18)] + +```python +openbb.crypto.dd.news_chart(post_kind: str = "news", region: str = "en", filter_: Optional[str] = None, source: Optional[str] = None, symbol: Optional[str] = None, limit: int = 25, ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | number of news to display | 25 | True | +| post_kind | str | Filter by category of news. Available values: news or media. | news | True | +| filter_ | Optional[str] | Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol | None | True | +| region | str | Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch),
es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) | en | True | +| ascend | bool | Sort in ascending order. | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/nonzero.md b/website/content/sdk/reference/crypto/dd/nonzero.md new file mode 100644 index 00000000000..761eb6abf2d --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/nonzero.md @@ -0,0 +1,79 @@ +--- +title: nonzero +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# nonzero + + + + +Returns addresses with non-zero balance of a certain symbol + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_model.py#L248)] + +```python +openbb.crypto.dd.nonzero(symbol: str, start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search (e.g., BTC) | None | False | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | addresses with non-zero balances | +--- + + + + + + +Plots addresses with non-zero balance of a certain symbol + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_view.py#L96)] + +```python +openbb.crypto.dd.nonzero_chart(symbol: str, start_date: str = "2010-01-01", end_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Asset to search (e.g., BTC) | None | False | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/ob.md b/website/content/sdk/reference/crypto/dd/ob.md new file mode 100644 index 00000000000..0343f819ec3 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/ob.md @@ -0,0 +1,78 @@ +--- +title: ob +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ob + + + + +Returns orderbook for a coin in a given exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/ccxt_model.py#L46)] + +```python +openbb.crypto.dd.ob(exchange: str, symbol: str, to_symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange | str | exchange id | None | False | +| symbol | str | coin symbol | None | False | +| to_symbol | str | currency to compare coin against | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Any] | With bids and asks | +--- + + + + + + +Plots order book for a coin in a given exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/ccxt_view.py#L19)] + +```python +openbb.crypto.dd.ob_chart(exchange: str, symbol: str, to_symbol: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange | str | exchange id | None | False | +| symbol | str | coin symbol | None | False | +| vs | str | currency to compare coin against | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/oi.md b/website/content/sdk/reference/crypto/dd/oi.md new file mode 100644 index 00000000000..77968e48b2b --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/oi.md @@ -0,0 +1,76 @@ +--- +title: oi +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# oi + + + + +Returns open interest by exchange for a certain symbol + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinglass_model.py#L148)] + +```python +openbb.crypto.dd.oi(symbol: str, interval: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto Symbol to search open interest futures (e.g., BTC) | None | False | +| interval | int | Frequency (possible values are: 0 for ALL, 2 for 1H, 1 for 4H, 4 for 12H), by default 0 | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | open interest by exchange and price | +--- + + + + + + +Plots open interest by exchange for a certain cryptocurrency + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinglass_view.py#L55)] + +```python +openbb.crypto.dd.oi_chart(symbol: str, interval: int = 0, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to search open interest (e.g., BTC) | None | False | +| interval | int | Frequency (possible values are: 0 for ALL, 2 for 1H, 1 for 4H, 4 for 12H), by default 0 | 0 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/pi.md b/website/content/sdk/reference/crypto/dd/pi.md new file mode 100644 index 00000000000..7b5b7535a57 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/pi.md @@ -0,0 +1,74 @@ +--- +title: pi +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pi + + + + +Returns coin product info + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L353)] + +```python +openbb.crypto.dd.pi(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check product info | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame, pd.DataFrame] | Metric, Value with project and technology details,
Coin public repos,
Coin audits,
Coin known exploits/vulns | +--- + + + +
+ + +Prints table showing project info + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L470)] + +```python +openbb.crypto.dd.pi_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check project info | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/pr.md b/website/content/sdk/reference/crypto/dd/pr.md new file mode 100644 index 00000000000..b32bdea8467 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/pr.md @@ -0,0 +1,80 @@ +--- +title: pr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pr + + + + +Fetch data to calculate potential returns of a certain coin. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/pycoingecko_model.py#L63)] + +```python +openbb.crypto.dd.pr(main_coin: str, to_symbol: Optional[str] = None, limit: Optional[int] = None, price: Optional[int] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| main_coin | str | Coin loaded to check potential returns for (e.g., algorand) | None | False | +| to_symbol | str | None | Coin to compare main_coin with (e.g., bitcoin) | None | True | +| limit | int | None | Number of coins with highest market cap to compare main_coin with (e.g., 5) | None | True | +| price | None | Target price of main_coin to check potential returns (e.g., 5) | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Potential returns data
Columns: Coin, Current Price, Target Coin, Potential Price, Potential Market Cap ($), Change (%) | +--- + + + +
+ + +Prints table showing potential returns of a certain coin. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/pycoingecko_view.py#L20)] + +```python +openbb.crypto.dd.pr_chart(to_symbol: str, from_symbol: Optional[str] = None, limit: Optional[int] = None, price: Optional[int] = None, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| to_symbol | str | Coin loaded to check potential returns for (e.g., algorand) | None | False | +| from_symbol | str | None | Coin to compare main_coin with (e.g., bitcoin) | None | True | +| limit | int | None | Number of coins with highest market cap to compare main_coin with (e.g., 5) | None | True | +| price | None | Target price of main_coin to check potential returns (e.g., 5) | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/ps.md b/website/content/sdk/reference/crypto/dd/ps.md new file mode 100644 index 00000000000..cf33ab95b8b --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/ps.md @@ -0,0 +1,76 @@ +--- +title: ps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ps + + + + +Get all most important ticker related information for given coin id [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L290)] + +```python +openbb.crypto.dd.ps(symbol: str = "BTC", quotes: str = "USD") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| quotes | str | Comma separated quotes to return e.g quotes = USD, BTC | USD | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most important ticker related information
Columns: Metric, Value | +--- + + + +
+ + +Prints table showing ticker information for single coin [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_view.py#L287)] + +```python +openbb.crypto.dd.ps_chart(from_symbol: str = "BTC", to_symbol: str = "USD", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| from_symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| to_symbol | str | Quoted currency | USD | True | +| export | str | Export dataframe data to csv,json,xlsx | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/rm.md b/website/content/sdk/reference/crypto/dd/rm.md new file mode 100644 index 00000000000..e060c95b70a --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/rm.md @@ -0,0 +1,78 @@ +--- +title: rm +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rm + + + + +Returns coin roadmap + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L236)] + +```python +openbb.crypto.dd.rm(symbol: str, ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check roadmap | None | False | +| ascend | bool | reverse order | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | roadmap | +--- + + + + + + +Plots coin roadmap + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L284)] + +```python +openbb.crypto.dd.rm_chart(symbol: str, ascend: bool = True, limit: int = 5, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check roadmap | None | False | +| ascend | bool | reverse order | True | True | +| limit | int | number to show | 5 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/show_available_pairs_for_given_symbol.md b/website/content/sdk/reference/crypto/dd/show_available_pairs_for_given_symbol.md new file mode 100644 index 00000000000..040e38f08c8 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/show_available_pairs_for_given_symbol.md @@ -0,0 +1,33 @@ +--- +title: show_available_pairs_for_given_symbol +description: OpenBB SDK Function +--- + +# show_available_pairs_for_given_symbol + +Return all available quoted assets for given symbol. [Source: Coinbase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinbase_model.py#L21)] + +```python +openbb.crypto.dd.show_available_pairs_for_given_symbol(symbol: str = "ETH") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Uppercase symbol of coin e.g BTC, ETH, UNI, LUNA, DOT ... | ETH | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[str, list] | Symbol and list of available pairs | +--- + diff --git a/website/content/sdk/reference/crypto/dd/stats.md b/website/content/sdk/reference/crypto/dd/stats.md new file mode 100644 index 00000000000..35d1400f4a4 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/stats.md @@ -0,0 +1,74 @@ +--- +title: stats +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stats + + + + +Get 24 hr stats for the product. Volume is in base currency units. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinbase_model.py#L202)] + +```python +openbb.crypto.dd.stats(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | 24h stats for chosen trading pair | +--- + + + + + + +Prints table showing 24 hr stats for the product. Volume is in base currency units. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinbase_view.py#L99)] + +```python +openbb.crypto.dd.stats_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/team.md b/website/content/sdk/reference/crypto/dd/team.md new file mode 100644 index 00000000000..fbe511a5572 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/team.md @@ -0,0 +1,74 @@ +--- +title: team +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# team + + + + +Returns coin team + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L419)] + +```python +openbb.crypto.dd.team(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check team | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Individuals,
Organizations | +--- + + + +
+ + +Prints table showing coin team + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L556)] + +```python +openbb.crypto.dd.team_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check coin team | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/tk.md b/website/content/sdk/reference/crypto/dd/tk.md new file mode 100644 index 00000000000..359c2f48c6a --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/tk.md @@ -0,0 +1,76 @@ +--- +title: tk +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tk + + + + +Returns coin tokenomics + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_model.py#L283)] + +```python +openbb.crypto.dd.tk(symbol: str, coingecko_id: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check tokenomics | None | False | +| coingecko_id | str | ID from coingecko | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Metric Value tokenomics,
Circulating supply overtime | +--- + + + +
+ + +Plots coin tokenomics + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/messari_view.py#L386)] + +```python +openbb.crypto.dd.tk_chart(symbol: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Crypto symbol to check tokenomics | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/tokenomics.md b/website/content/sdk/reference/crypto/dd/tokenomics.md new file mode 100644 index 00000000000..1de5aaf36d9 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/tokenomics.md @@ -0,0 +1,33 @@ +--- +title: tokenomics +description: OpenBB SDK Function +--- + +# tokenomics + +Get tokenomics for given coin. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/pycoingecko_model.py#L253)] + +```python +openbb.crypto.dd.tokenomics(symbol: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | coin symbol to check tokenomics | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Metric, Value with tokenomics | +--- + diff --git a/website/content/sdk/reference/crypto/dd/trades.md b/website/content/sdk/reference/crypto/dd/trades.md new file mode 100644 index 00000000000..dd4597b538d --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/trades.md @@ -0,0 +1,79 @@ +--- +title: trades +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# trades + + + + +Returns trades for a coin in a given exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/ccxt_model.py#L70)] + +```python +openbb.crypto.dd.trades(exchange_id: str, symbol: str, to_symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange_id | str | exchange id | None | False | +| symbol | str | coin symbol | None | False | +| to_symbol | str | currency to compare coin against | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | trades for a coin in a given exchange | +--- + + + + + + +Prints table showing trades for a coin in a given exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/ccxt_view.py#L63)] + +```python +openbb.crypto.dd.trades_chart(exchange: str, symbol: str, to_symbol: str, limit: int = 10, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange | str | exchange id | None | False | +| symbol | str | coin symbol | None | False | +| to_symbol | str | currency to compare coin against | None | False | +| limit | int | number of trades to display | 10 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/dd/trading_pair_info.md b/website/content/sdk/reference/crypto/dd/trading_pair_info.md new file mode 100644 index 00000000000..3c4daa2d7d6 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/trading_pair_info.md @@ -0,0 +1,33 @@ +--- +title: trading_pair_info +description: OpenBB SDK Function +--- + +# trading_pair_info + +Get information about chosen trading pair. [Source: Coinbase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinbase_model.py#L48)] + +```python +openbb.crypto.dd.trading_pair_info(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Trading pair of coins on Coinbase e.g ETH-USDT or UNI-ETH | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Basic information about given trading pair | +--- + diff --git a/website/content/sdk/reference/crypto/dd/trading_pairs.md b/website/content/sdk/reference/crypto/dd/trading_pairs.md new file mode 100644 index 00000000000..8ea76d473d9 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/trading_pairs.md @@ -0,0 +1,30 @@ +--- +title: trading_pairs +description: OpenBB SDK Function +--- + +# trading_pairs + +Helper method that return all trading pairs on binance. Methods ause this data for input for e.g + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/binance_model.py#L21)] + +```python +openbb.crypto.dd.trading_pairs() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[dict] | list of dictionaries in format:
[
{'symbol': 'ETHBTC', 'status': 'TRADING', 'baseAsset': 'ETH', 'baseAssetPrecision': 8,
'quoteAsset': 'BTC', 'quotePrecision': 8, 'quoteAssetPrecision': 8,
'baseCommissionPrecision': 8, 'quoteCommissionPrecision': 8,
'orderTypes': ['LIMIT', 'LIMIT_MAKER', 'MARKET', 'STOP_LOSS_LIMIT', 'TAKE_PROFIT_LIMIT'],
'icebergAllowed': True,
'ocoAllowed': True,
'quoteOrderQtyMarketAllowed': True,
'isSpotTradingAllowed': True,
'isMarginTradingAllowed': True,
'filters': [{'filterType': 'PRICE_FILTER', 'minPrice': '0.00000100',
'maxPrice': '922327.00000000', 'tickSize': '0.00000100'},
{'filterType': 'PERCENT_PRICE', 'multiplierUp': '5', 'multiplierDown': '0.2', 'avgPriceMins': 5},
{'filterType': 'LOT_SIZE', 'minQty': '0.00100000', 'maxQty': '100000.00000000', 'stepSize': '0.00100000'},
{'filterType': 'MIN_NOTIONAL', 'minNotional': '0.00010000', 'applyToMarket': True, 'avgPriceMins': 5},
{'filterType': 'ICEBERG_PARTS', 'limit': 10}, {'filterType': 'MARKET_LOT_SIZE', 'minQty': '0.00000000',
'maxQty': '930.49505347', 'stepSize': '0.00000000'}, {'filterType': 'MAX_NUM_ORDERS', 'maxNumOrders': 200},
{'filterType': 'MAX_NUM_ALGO_ORDERS', 'maxNumAlgoOrders': 5}], 'permissions': ['SPOT', 'MARGIN']},
...
] | +--- + diff --git a/website/content/sdk/reference/crypto/dd/twitter.md b/website/content/sdk/reference/crypto/dd/twitter.md new file mode 100644 index 00000000000..50a76621db1 --- /dev/null +++ b/website/content/sdk/reference/crypto/dd/twitter.md @@ -0,0 +1,79 @@ +--- +title: twitter +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# twitter + + + + +Get twitter timeline for given coin id. Not more than last 50 tweets [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L23)] + +```python +openbb.crypto.dd.twitter(symbol: str = "BTC", sortby: str = "date", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| sortby | str | Key by which to sort data. Every column name is valid
(see for possible values:
https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1twitter/get). | date | True | +| ascend | bool | Flag to sort data descending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Twitter timeline for given coin.
Columns: date, user_name, status, retweet_count, like_count | +--- + + + +
+ + +Prints table showing twitter timeline for given coin id. Not more than last 50 tweets [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_view.py#L86)] + +```python +openbb.crypto.dd.twitter_chart(symbol: str = "BTC", limit: int = 10, sortby: str = "date", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency symbol (e.g. BTC) | BTC | True | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data. Every column name is valid
(see for possible values:
https://api.coinpaprika.com/docs#tag/Coins/paths/~1coins~1%7Bcoin_id%7D~1twitter/get). | date | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/anchor_data.md b/website/content/sdk/reference/crypto/defi/anchor_data.md new file mode 100644 index 00000000000..2faaefbd779 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/anchor_data.md @@ -0,0 +1,77 @@ +--- +title: anchor_data +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# anchor_data + + + + +Returns anchor protocol earnings data of a certain terra address + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/cryptosaurio_model.py#L17)] + +```python +openbb.crypto.defi.anchor_data(address: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Terra address. Valid terra addresses start with 'terra' | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame, str] | - pd.DataFrame: Earnings over time in UST
- pd.DataFrame: History of transactions
- str: Overall statistics | +--- + + + +
+ + +Plots anchor protocol earnings data of a certain terra address + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/cryptosaurio_view.py#L25)] + +```python +openbb.crypto.defi.anchor_data_chart(address: str = "", export: str = "", show_transactions: bool = False, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| asset | str | Terra asset {ust,luna,sdt} | None | True | +| address | str | Terra address. Valid terra addresses start with 'terra' | | True | +| show_transactions | bool | Flag to show history of transactions in Anchor protocol for address. Default False | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/aterra.md b/website/content/sdk/reference/crypto/defi/aterra.md new file mode 100644 index 00000000000..da5a6645bf5 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/aterra.md @@ -0,0 +1,77 @@ +--- +title: aterra +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# aterra + + + + +Returns historical data of an asset in a certain terra address + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terraengineer_model.py#L19)] + +```python +openbb.crypto.defi.aterra(asset: str = "ust", address: str = "terra1tmnqgvg567ypvsvk6rwsga3srp7e3lg6u0elp8") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| asset | str | Terra asset {ust,luna,sdt} | ust | True | +| address | str | Terra address. Valid terra addresses start with 'terra' | terra1tmnqgvg567ypvsvk6rwsga3srp7e3lg6u0elp8 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | historical data | +--- + + + + + + +Plots the 30-day history of specified asset in terra address + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terraengineer_view.py#L29)] + +```python +openbb.crypto.defi.aterra_chart(asset: str = "", address: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| asset | str | Terra asset {ust,luna,sdt} | | True | +| address | str | Terra address. Valid terra addresses start with 'terra' | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/ayr.md b/website/content/sdk/reference/crypto/defi/ayr.md new file mode 100644 index 00000000000..78cb625983c --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/ayr.md @@ -0,0 +1,71 @@ +--- +title: ayr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ayr + + + + +Displays the 30-day history of the Anchor Yield Reserve. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terraengineer_model.py#L63)] + +```python +openbb.crypto.defi.ayr() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing historical data | +--- + + + + + + +Plots the 30-day history of the Anchor Yield Reserve. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terraengineer_view.py#L85)] + +```python +openbb.crypto.defi.ayr_chart(export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file, by default False | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/dtvl.md b/website/content/sdk/reference/crypto/defi/dtvl.md new file mode 100644 index 00000000000..a01afa9135f --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/dtvl.md @@ -0,0 +1,75 @@ +--- +title: dtvl +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# dtvl + + + + +Returns information about historical tvl of a defi protocol. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_model.py#L124)] + +```python +openbb.crypto.defi.dtvl(protocol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| protocol | str | Name of the protocol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Historical tvl | +--- + + + + + + +Plots historical TVL of different dApps + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_view.py#L131)] + +```python +openbb.crypto.defi.dtvl_chart(dapps: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dapps | str | dApps to search historical TVL. Should be split by , e.g.: anchor,sushiswap,pancakeswap | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/gacc.md b/website/content/sdk/reference/crypto/defi/gacc.md new file mode 100644 index 00000000000..e8f9a2a9856 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/gacc.md @@ -0,0 +1,77 @@ +--- +title: gacc +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gacc + + + + +Get terra blockchain account growth history [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_model.py#L263)] + +```python +openbb.crypto.defi.gacc(cumulative: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| cumulative | bool | distinguish between periodical and cumulative account growth data | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | historical data of accounts growth | +--- + + + + + + +Plots terra blockchain account growth history [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_view.py#L139)] + +```python +openbb.crypto.defi.gacc_chart(kind: str = "total", cumulative: bool = False, limit: int = 90, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 90 | True | +| kind | str | display total account count or active account count. One from list [active, total] | total | True | +| cumulative | bool | Flag to show cumulative or discrete values. For active accounts only discrete value are available. | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/gdapps.md b/website/content/sdk/reference/crypto/defi/gdapps.md new file mode 100644 index 00000000000..f33a303a436 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/gdapps.md @@ -0,0 +1,75 @@ +--- +title: gdapps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gdapps + + + + +Display top dApps (in terms of TVL) grouped by chain. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_model.py#L149)] + +```python +openbb.crypto.defi.gdapps(limit: int = 50) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of top dApps to display | 50 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Information about DeFi protocols grouped by chain | +--- + + + + + + +Plots top dApps (in terms of TVL) grouped by chain. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_view.py#L28)] + +```python +openbb.crypto.defi.gdapps_chart(limit: int = 50, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| num | int | Number of top dApps to display | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/gov_proposals.md b/website/content/sdk/reference/crypto/defi/gov_proposals.md new file mode 100644 index 00000000000..bdfac6929a1 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/gov_proposals.md @@ -0,0 +1,80 @@ +--- +title: gov_proposals +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gov_proposals + + + + +Get terra blockchain governance proposals list [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_model.py#L197)] + +```python +openbb.crypto.defi.gov_proposals(status: str = "", sortby: str = "id", ascend: bool = True, limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| status | str | status of proposal, one from list: ['Voting','Deposit','Passed','Rejected'] | | True | +| sortby | str | Key by which to sort data | id | True | +| ascend | bool | Flag to sort data ascending | True | True | +| limit | int | Number of records to display | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Terra blockchain governance proposals list | +--- + + + + + + +Prints table showing terra blockchain governance proposals list [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_view.py#L108)] + +```python +openbb.crypto.defi.gov_proposals_chart(limit: int = 10, status: str = "all", sortby: str = "id", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| status | str | status of proposal, one from list: ['Voting','Deposit','Passed','Rejected'] | all | True | +| sortby | str | Key by which to sort data | id | True | +| ascend | bool | Flag to sort data ascend | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/ldapps.md b/website/content/sdk/reference/crypto/defi/ldapps.md new file mode 100644 index 00000000000..305fdfeda33 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/ldapps.md @@ -0,0 +1,81 @@ +--- +title: ldapps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ldapps + + + + +Returns information about listed DeFi protocols, their current TVL and changes to it in the last hour/day/week. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_model.py#L35)] + +```python +openbb.crypto.defi.ldapps(limit: int = 100, sortby: str = "", ascend: bool = False, description: bool = False, drop_chain: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | The number of dApps to display | 100 | True | +| sortby | str | Key by which to sort data | | True | +| ascend | bool | Flag to sort data descending | False | True | +| description | bool | Flag to display description of protocol | False | True | +| drop_chain | bool | Whether to drop the chain column | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Information about DeFi protocols | +--- + + + + + + +Prints table showing information about listed DeFi protocols, their current TVL and changes to it in + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_view.py#L94)] + +```python +openbb.crypto.defi.ldapps_chart(sortby: str, limit: int = 20, ascend: bool = False, description: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key by which to sort data | None | False | +| ascend | bool | Flag to sort data descending | False | True | +| description | bool | Flag to display description of protocol | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/luna_supply.md b/website/content/sdk/reference/crypto/defi/luna_supply.md new file mode 100644 index 00000000000..3f20ba0550f --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/luna_supply.md @@ -0,0 +1,78 @@ +--- +title: luna_supply +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# luna_supply + + + + +Get supply history of the Terra ecosystem + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/smartstake_model.py#L14)] + +```python +openbb.crypto.defi.luna_supply(supply_type: str = "lunaSupplyChallengeStats", days: int = 30) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| supply_type | str | Supply type to unpack json | lunaSupplyChallengeStats | True | +| days | int | Day count to fetch data | 30 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of supply history data | +--- + + + + + + +Plots and prints table showing Luna circulating supply stats + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/smartstake_view.py#L29)] + +```python +openbb.crypto.defi.luna_supply_chart(days: int = 30, export: str = "", supply_type: str = "lunaSupplyChallengeStats", limit: int = 5, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| days | int | Number of days | 30 | True | +| supply_type | str | Supply type to unpack json | lunaSupplyChallengeStats | True | +| export | str | Export type | | True | +| limit | int | Number of results display on the terminal
Default: 5 | 5 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/newsletters.md b/website/content/sdk/reference/crypto/defi/newsletters.md new file mode 100644 index 00000000000..9db1afa6e5f --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/newsletters.md @@ -0,0 +1,71 @@ +--- +title: newsletters +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# newsletters + + + + +Scrape all substack newsletters from url list. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/substack_model.py#L54)] + +```python +openbb.crypto.defi.newsletters() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with recent news from most popular DeFi related newsletters. | +--- + + + + + + +Prints table showing DeFi related substack newsletters. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/substack_view.py#L16)] + +```python +openbb.crypto.defi.newsletters_chart(limit: int = 10, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/pairs.md b/website/content/sdk/reference/crypto/defi/pairs.md new file mode 100644 index 00000000000..0ce06e6bcac --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/pairs.md @@ -0,0 +1,83 @@ +--- +title: pairs +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pairs + + + + +Get lastly added trade-able pairs on Uniswap with parameters like: + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_model.py#L164)] + +```python +openbb.crypto.defi.pairs(last_days: int = 14, min_volume: int = 100, min_liquidity: int = 0, min_tx: int = 100) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| last_days | int | How many days back to look for added pairs. | 14 | True | +| min_volume | int | Minimum volume | 100 | True | +| min_liquidity | int | Minimum liquidity | 0 | True | +| min_tx | int | Minimum number of transactions done in given pool. | 100 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Lastly added pairs on Uniswap DEX. | +--- + + + + + + +Prints table showing Lastly added pairs on Uniswap DEX. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_view.py#L102)] + +```python +openbb.crypto.defi.pairs_chart(limit: int = 20, days: int = 7, min_volume: int = 20, min_liquidity: int = 0, min_tx: int = 100, sortby: str = "created", ascend: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 20 | True | +| days | int | Number of days the pair has been active, | 7 | True | +| min_volume | int | Minimum trading volume, | 20 | True | +| min_liquidity | int | Minimum liquidity | 0 | True | +| min_tx | int | Minimum number of transactions | 100 | True | +| sortby | str | Key by which to sort data | created | True | +| ascend | bool | Flag to sort data descending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/pools.md b/website/content/sdk/reference/crypto/defi/pools.md new file mode 100644 index 00000000000..35c5a8686fd --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/pools.md @@ -0,0 +1,73 @@ +--- +title: pools +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pools + + + + +Get uniswap pools by volume. [Source: https://thegraph.com/en/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_model.py#L253)] + +```python +openbb.crypto.defi.pools() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Trade-able pairs listed on Uniswap by top volume. | +--- + + + + + + +Prints table showing uniswap pools by volume. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_view.py#L170)] + +```python +openbb.crypto.defi.pools_chart(limit: int = 20, sortby: str = "volumeUSD", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key by which to sort data. The table can be sorted by every of its columns
(see https://bit.ly/3ORagr1 then press ctrl-enter or execute the query). | volumeUSD | True | +| ascend | bool | Flag to sort data descending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/sinfo.md b/website/content/sdk/reference/crypto/defi/sinfo.md new file mode 100644 index 00000000000..057b2ee6aef --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/sinfo.md @@ -0,0 +1,75 @@ +--- +title: sinfo +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sinfo + + + + +Get staking info for provided terra account [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_model.py#L105)] + +```python +openbb.crypto.defi.sinfo(address: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | terra blockchain address e.g. terra1jvwelvs7rdk6j3mqdztq5tya99w8lxk6l9hcqg | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, str] | luna delegations and summary report for given address | +--- + + + + + + +Prints table showing staking info for provided terra account address [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_view.py#L32)] + +```python +openbb.crypto.defi.sinfo_chart(address: str = "", limit: int = 10, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | terra blockchain address e.g. terra1jvwelvs7rdk6j3mqdztq5tya99w8lxk6l9hcqg | | True | +| limit | int | Number of records to display | 10 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/sratio.md b/website/content/sdk/reference/crypto/defi/sratio.md new file mode 100644 index 00000000000..8b06f1ac2cc --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/sratio.md @@ -0,0 +1,75 @@ +--- +title: sratio +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sratio + + + + +Get terra blockchain staking ratio history [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_model.py#L287)] + +```python +openbb.crypto.defi.sratio(limit: int = 200) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | The number of ratios to show | 200 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | historical staking ratio | +--- + + + + + + +Plots terra blockchain staking ratio history [Source: https://fcd.terra.dev/v1] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_view.py#L207)] + +```python +openbb.crypto.defi.sratio_chart(limit: int = 90, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 90 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/sreturn.md b/website/content/sdk/reference/crypto/defi/sreturn.md new file mode 100644 index 00000000000..451b4be318d --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/sreturn.md @@ -0,0 +1,75 @@ +--- +title: sreturn +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sreturn + + + + +Get terra blockchain staking returns history [Source: https://fcd.terra.dev/v1] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_model.py#L312)] + +```python +openbb.crypto.defi.sreturn(limit: int = 200) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | The number of returns to show | 200 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | historical staking returns | +--- + + + + + + +Plots terra blockchain staking returns history [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_view.py#L254)] + +```python +openbb.crypto.defi.sreturn_chart(limit: int = 90, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 90 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/stats.md b/website/content/sdk/reference/crypto/defi/stats.md new file mode 100644 index 00000000000..3c8be8c9c97 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/stats.md @@ -0,0 +1,70 @@ +--- +title: stats +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stats + + + + +Get base statistics about Uniswap DEX. [Source: https://thegraph.com/en/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_model.py#L124)] + +```python +openbb.crypto.defi.stats() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Uniswap DEX statistics like liquidity, volume, number of pairs, number of transactions. | +--- + + + + + + +Prints table showing base statistics about Uniswap DEX. [Source: https://thegraph.com/en/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_view.py#L72)] + +```python +openbb.crypto.defi.stats_chart(export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/stvl.md b/website/content/sdk/reference/crypto/defi/stvl.md new file mode 100644 index 00000000000..8b1f38b037c --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/stvl.md @@ -0,0 +1,72 @@ +--- +title: stvl +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stvl + + + + +Returns historical values of the total sum of TVLs from all listed protocols. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_model.py#L170)] + +```python +openbb.crypto.defi.stvl() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Historical values of total sum of Total Value Locked from all listed protocols. | +--- + + + + + + +Plots historical values of the total sum of TVLs from all listed protocols. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/llama_view.py#L188)] + +```python +openbb.crypto.defi.stvl_chart(limit: int = 5, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display, by default 5 | 5 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/swaps.md b/website/content/sdk/reference/crypto/defi/swaps.md new file mode 100644 index 00000000000..97473b7ef4c --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/swaps.md @@ -0,0 +1,78 @@ +--- +title: swaps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# swaps + + + + +Get the last 100 swaps done on Uniswap [Source: https://thegraph.com/en/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_model.py#L296)] + +```python +openbb.crypto.defi.swaps(limit: int = 100, sortby: str = "timestamp", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of swaps to return. Maximum possible number: 1000. | 100 | True | +| sortby | str | Key by which to sort data. The table can be sorted by every of its columns
(see https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2). | timestamp | True | +| ascend | bool | Flag to sort data descending | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Last 100 swaps on Uniswap | +--- + + + +
+ + +Prints table showing last swaps done on Uniswap + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_view.py#L218)] + +```python +openbb.crypto.defi.swaps_chart(limit: int = 10, sortby: str = "timestamp", ascend: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data. The table can be sorted by every of its columns
(see https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2). | timestamp | True | +| ascend | bool | Flag to sort data descending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/tokens.md b/website/content/sdk/reference/crypto/defi/tokens.md new file mode 100644 index 00000000000..17f7dd6e818 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/tokens.md @@ -0,0 +1,80 @@ +--- +title: tokens +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tokens + + + + +Get list of tokens trade-able on Uniswap DEX. [Source: https://thegraph.com/en/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_model.py#L81)] + +```python +openbb.crypto.defi.tokens(skip: int = 0, limit: int = 100, sortby: str = "index", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| skip | int | Skip n number of records. | 0 | True | +| limit | int | Show n number of records. | 100 | True | +| sortby | str | The column to sort by | index | True | +| ascend | bool | Whether to sort in ascending order | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Uniswap tokens with trading volume, transaction count, liquidity. | +--- + + + + + + +Prints table showing tokens trade-able on Uniswap DEX. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/graph_view.py#L18)] + +```python +openbb.crypto.defi.tokens_chart(skip: int = 0, limit: int = 20, sortby: str = "index", ascend: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| skip | int | Number of records to skip | 0 | True | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key by which to sort data | index | True | +| ascend | bool | Flag to sort data descending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/validators.md b/website/content/sdk/reference/crypto/defi/validators.md new file mode 100644 index 00000000000..9df82dfff81 --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/validators.md @@ -0,0 +1,73 @@ +--- +title: validators +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# validators + + + + +Get information about terra validators [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_model.py#L155)] + +```python +openbb.crypto.defi.validators(sortby: str = "votingPower", ascend: bool = True) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | terra validators details | +--- + + + + + + +Prints table showing information about terra validators [Source: https://fcd.terra.dev/swagger] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/terramoney_fcd_view.py#L64)] + +```python +openbb.crypto.defi.validators_chart(limit: int = 10, sortby: str = "votingPower", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data. Choose from:
validatorName, tokensAmount, votingPower, commissionRate, status, uptime | votingPower | True | +| ascend | bool | Flag to sort data descending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/defi/vaults.md b/website/content/sdk/reference/crypto/defi/vaults.md new file mode 100644 index 00000000000..19cd797a6ab --- /dev/null +++ b/website/content/sdk/reference/crypto/defi/vaults.md @@ -0,0 +1,82 @@ +--- +title: vaults +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# vaults + + + + +Get DeFi Vaults Information. DeFi Vaults are pools of funds with an assigned strategy which main goal is to + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/coindix_model.py#L107)] + +```python +openbb.crypto.defi.vaults(chain: Optional[str] = None, protocol: Optional[str] = None, kind: Optional[str] = None, ascend: bool = True, sortby: str = "apy") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| chain | str | Blockchain - one from list [
'ethereum', 'polygon', 'avalanche', 'bsc', 'terra', 'fantom',
'moonriver', 'celo', 'heco', 'okex', 'cronos', 'arbitrum', 'eth',
'harmony', 'fuse', 'defichain', 'solana', 'optimism'
] | None | True | +| protocol | str | DeFi protocol - one from list: [
'aave', 'acryptos', 'alpaca', 'anchor', 'autofarm', 'balancer', 'bancor',
'beefy', 'belt', 'compound', 'convex', 'cream', 'curve', 'defichain', 'geist',
'lido', 'liquity', 'mirror', 'pancakeswap', 'raydium', 'sushi', 'tarot', 'traderjoe',
'tulip', 'ubeswap', 'uniswap', 'venus', 'yearn'
] | None | True | +| kind | str | Kind/type of vault - one from list: ['lp','single','noimploss','stable'] | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Top 100 DeFi Vaults for given chain/protocol sorted by APY. | +--- + + + +
+ + +Prints table showing Top DeFi Vaults - pools of funds with an assigned strategy which main goal is to + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/defi/coindix_view.py#L19)] + +```python +openbb.crypto.defi.vaults_chart(chain: Optional[str] = None, protocol: Optional[str] = None, kind: Optional[str] = None, limit: int = 10, sortby: str = "apy", ascend: bool = True, link: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| chain | str | Blockchain - one from list [
'ethereum', 'polygon', 'avalanche', 'bsc', 'terra', 'fantom',
'moonriver', 'celo', 'heco', 'okex', 'cronos', 'arbitrum', 'eth',
'harmony', 'fuse', 'defichain', 'solana', 'optimism'
] | None | True | +| protocol | str | DeFi protocol - one from list: [
'aave', 'acryptos', 'alpaca', 'anchor', 'autofarm', 'balancer', 'bancor',
'beefy', 'belt', 'compound', 'convex', 'cream', 'curve', 'defichain', 'geist',
'lido', 'liquity', 'mirror', 'pancakeswap', 'raydium', 'sushi', 'tarot', 'traderjoe',
'tulip', 'ubeswap', 'uniswap', 'venus', 'yearn'
] | None | True | +| kind | str | Kind/type of vault - one from list: ['lp','single','noimploss','stable'] | None | True | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | apy | True | +| ascend | bool | Flag to sort data descending | True | True | +| link | bool | Flag to show links | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/categories_keys.md b/website/content/sdk/reference/crypto/disc/categories_keys.md new file mode 100644 index 00000000000..1eea11e3de3 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/categories_keys.md @@ -0,0 +1,30 @@ +--- +title: categories_keys +description: OpenBB SDK Function +--- + +# categories_keys + +Get list of categories keys + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L115)] + +```python +openbb.crypto.disc.categories_keys() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str] | List of categories keys | +--- + diff --git a/website/content/sdk/reference/crypto/disc/coin_list.md b/website/content/sdk/reference/crypto/disc/coin_list.md new file mode 100644 index 00000000000..64f0dd36167 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/coin_list.md @@ -0,0 +1,30 @@ +--- +title: coin_list +description: OpenBB SDK Function +--- + +# coin_list + +Get list of coins available on CoinGecko [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L339)] + +```python +openbb.crypto.disc.coin_list() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Coins available on CoinGecko
Columns: id, symbol, name | +--- + diff --git a/website/content/sdk/reference/crypto/disc/coins.md b/website/content/sdk/reference/crypto/disc/coins.md new file mode 100644 index 00000000000..c730f8b1c6a --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/coins.md @@ -0,0 +1,80 @@ +--- +title: coins +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# coins + + + + +Get N coins from CoinGecko [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L128)] + +```python +openbb.crypto.disc.coins(limit: int = 250, category: str = "", sortby: str = "Symbol", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of top coins to grab from CoinGecko | 250 | True | +| category | str | Category of the coins we want to retrieve | | True | +| sortby | str | Key to sort data | Symbol | True | +| ascend | bool | Sort data in ascending order | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | N coins | +--- + + + + + + +Prints table showing top coins [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_view.py#L35)] + +```python +openbb.crypto.disc.coins_chart(category: str, limit: int = 250, sortby: str = "Symbol", export: str = "", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| category | str | If no category is passed it will search for all coins. (E.g., smart-contract-platform) | None | False | +| limit | int | Number of records to display | 250 | True | +| sortby | str | Key to sort data | Symbol | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| ascend | bool | Sort data in ascending order | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/coins_for_given_exchange.md b/website/content/sdk/reference/crypto/disc/coins_for_given_exchange.md new file mode 100644 index 00000000000..fbf95baf8bc --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/coins_for_given_exchange.md @@ -0,0 +1,34 @@ +--- +title: coins_for_given_exchange +description: OpenBB SDK Function +--- + +# coins_for_given_exchange + +Helper method to get all coins available on binance exchange [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L357)] + +```python +openbb.crypto.disc.coins_for_given_exchange(exchange_id: str = "binance", page: int = 1) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange_id | str | id of exchange | binance | True | +| page | int | number of page. One page contains 100 records | 1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | dictionary with all trading pairs on binance | +--- + diff --git a/website/content/sdk/reference/crypto/disc/cpsearch.md b/website/content/sdk/reference/crypto/disc/cpsearch.md new file mode 100644 index 00000000000..b5218d952d6 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/cpsearch.md @@ -0,0 +1,82 @@ +--- +title: cpsearch +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cpsearch + + + + +Search CoinPaprika. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/coinpaprika_model.py#L27)] + +```python +openbb.crypto.disc.cpsearch(query: str, category: Optional[Any] = None, modifier: Optional[Any] = None, sortby: str = "id", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| query | str | phrase for search | None | False | +| category | Optional[Any] | one or more categories (comma separated) to search.
Available options: currencies|exchanges|icos|people|tags
Default: currencies,exchanges,icos,people,tags | None | True | +| modifier | Optional[Any] | set modifier for search results. Available options: symbol_search -
search only by symbol (works for currencies only) | None | True | +| sortby | str | Key to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see https://api.coinpaprika.com/docs#tag/Tools/paths/~1search/get) | id | True | +| ascend | bool | Flag to sort data descending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Search Results
Columns: Metric, Value | +--- + + + +
+ + +Prints table showing Search over CoinPaprika. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/coinpaprika_view.py#L16)] + +```python +openbb.crypto.disc.cpsearch_chart(query: str, category: str = "all", limit: int = 10, sortby: str = "id", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| query | str | Search query | None | False | +| category | str | Categories to search: currencies|exchanges|icos|people|tags|all. Default: all | all | True | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see https://api.coinpaprika.com/docs#tag/Tools/paths/~1search/get) | id | True | +| ascend | bool | Flag to sort data descending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/gainers.md b/website/content/sdk/reference/crypto/disc/gainers.md new file mode 100644 index 00000000000..98ba576ebdb --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/gainers.md @@ -0,0 +1,78 @@ +--- +title: gainers +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gainers + + + + +Shows Largest Gainers - coins which gain the most in given period. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L260)] + +```python +openbb.crypto.disc.gainers(interval: str = "1h", limit: int = 50, sortby: str = "market_cap_rank") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Time interval by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] | 1h | True | +| limit | int | Number of records to display | 50 | True | +| sortby | str | Key to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) | market_cap_rank | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Top Gainers - coins which gain most in price in given period of time.
Columns: Symbol, Name, Volume, Price, %Change_{interval}, Url | +--- + + + +
+ + +Prints table showing Largest Gainers - coins which gain the most in given period. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_view.py#L100)] + +```python +openbb.crypto.disc.gainers_chart(interval: str = "1h", limit: int = 20, sortby: str = "market_cap_rank", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Time period by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] | 1h | True | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) | market_cap_rank | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/losers.md b/website/content/sdk/reference/crypto/disc/losers.md new file mode 100644 index 00000000000..ef2c950280b --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/losers.md @@ -0,0 +1,78 @@ +--- +title: losers +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# losers + + + + +Shows Largest Losers - coins which lose the most in given period. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L288)] + +```python +openbb.crypto.disc.losers(interval: str = "1h", limit: int = 50, sortby: str = "market_cap_rank") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Time interval by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] | 1h | True | +| limit | int | Number of records to display | 50 | True | +| sortby | str | Key to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) | market_cap_rank | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Top Losers - coins which lost most in price in given period of time.
Columns: Symbol, Name, Volume, Price, %Change_{interval}, Url | +--- + + + +
+ + +Prints table showing Largest Losers - coins which lost the most in given period of time. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_view.py#L146)] + +```python +openbb.crypto.disc.losers_chart(interval: str = "1h", limit: int = 20, export: str = "", sortby: str = "Market Cap Rank") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Time period by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y] | 1h | True | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation) | Market Cap Rank | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/top_coins.md b/website/content/sdk/reference/crypto/disc/top_coins.md new file mode 100644 index 00000000000..a1a3ea941d5 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/top_coins.md @@ -0,0 +1,44 @@ +--- +title: top_coins +description: OpenBB SDK Function +--- + +# top_coins + +Get top cryptp coins. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/sdk_helpers.py#L11)] + +```python +openbb.crypto.disc.top_coins(source: str = "CoinGecko", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| source | str | Source of data, by default "CoinGecko" | CoinGecko | True | +| limit | int | Number of coins to return, by default 10 | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with top coins | +--- + +## Examples + +To get 30 results from coinmarketcap, use the source parameter and the limit parameter: +```python +from openbb_terminal.sdk import openbb +top_coins = openbb.crypto.disc.top_coins() +``` + +--- + diff --git a/website/content/sdk/reference/crypto/disc/top_dapps.md b/website/content/sdk/reference/crypto/disc/top_dapps.md new file mode 100644 index 00000000000..db1693394f0 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/top_dapps.md @@ -0,0 +1,75 @@ +--- +title: top_dapps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# top_dapps + + + + +Get top decentralized applications by daily volume and users [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_model.py#L209)] + +```python +openbb.crypto.disc.top_dapps(sortby: str = "", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Top decentralized exchanges.
Columns: Name, Category, Protocols, Daily Users, Daily Volume [$] | +--- + + + +
+ + +Prints table showing top decentralized exchanges [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_view.py#L133)] + +```python +openbb.crypto.disc.top_dapps_chart(limit: int = 10, export: str = "", sortby: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/top_dexes.md b/website/content/sdk/reference/crypto/disc/top_dexes.md new file mode 100644 index 00000000000..92d709decf0 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/top_dexes.md @@ -0,0 +1,75 @@ +--- +title: top_dexes +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# top_dexes + + + + +Get top dexes by daily volume and users [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_model.py#L124)] + +```python +openbb.crypto.disc.top_dexes(sortby: str = "", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Top decentralized exchanges. Columns: Name, Daily Users, Daily Volume [$] | +--- + + + + + + +Prints table showing top decentralized exchanges [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_view.py#L97)] + +```python +openbb.crypto.disc.top_dexes_chart(limit: int = 10, export: str = "", sortby: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/top_games.md b/website/content/sdk/reference/crypto/disc/top_games.md new file mode 100644 index 00000000000..674cb9dd2fb --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/top_games.md @@ -0,0 +1,76 @@ +--- +title: top_games +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# top_games + + + + +Get top blockchain games by daily volume and users [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_model.py#L165)] + +```python +openbb.crypto.disc.top_games(sortby: str = "", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Top blockchain games. Columns: Name, Daily Users, Daily Volume [$] | +--- + + + + + + +Prints table showing top blockchain games [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_view.py#L61)] + +```python +openbb.crypto.disc.top_games_chart(limit: int = 10, export: str = "", sortby: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/top_nfts.md b/website/content/sdk/reference/crypto/disc/top_nfts.md new file mode 100644 index 00000000000..ebcdb122a36 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/top_nfts.md @@ -0,0 +1,75 @@ +--- +title: top_nfts +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# top_nfts + + + + +Get top nft collections [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_model.py#L79)] + +```python +openbb.crypto.disc.top_nfts(sortby: str = "", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | NFTs Columns: Name, Protocols, Floor Price [$], Avg Price [$], Market Cap [$], Volume [$] | +--- + + + + + + +Prints table showing top nft collections [Source: https://dappradar.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/dappradar_view.py#L20)] + +```python +openbb.crypto.disc.top_nfts_chart(limit: int = 10, sortby: str = "", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/disc/trending.md b/website/content/sdk/reference/crypto/disc/trending.md new file mode 100644 index 00000000000..b3278b58af8 --- /dev/null +++ b/website/content/sdk/reference/crypto/disc/trending.md @@ -0,0 +1,70 @@ +--- +title: trending +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# trending + + + + +Returns trending coins [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L317)] + +```python +openbb.crypto.disc.trending() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Trending Coins | +--- + + + + + + +Prints table showing trending coins [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_view.py#L192)] + +```python +openbb.crypto.disc.trending_chart(export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/find.md b/website/content/sdk/reference/crypto/find.md new file mode 100644 index 00000000000..2b543b2c53f --- /dev/null +++ b/website/content/sdk/reference/crypto/find.md @@ -0,0 +1,36 @@ +--- +title: find +description: OpenBB SDK Function +--- + +# find + +Find similar coin by coin name,symbol or id. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/crypto_models.py#L9)] + +```python +openbb.crypto.find(query: str, source: str = "CoinGecko", key: str = "symbol", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| query | str | Cryptocurrency | None | False | +| source | str | Data source of coins. CoinGecko or CoinPaprika or Binance or Coinbase | CoinGecko | True | +| key | str | Searching key (symbol, id, name) | symbol | True | +| limit | int | Number of records to display | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with 'limit' similar coins | +--- + diff --git a/website/content/sdk/reference/crypto/load.md b/website/content/sdk/reference/crypto/load.md new file mode 100644 index 00000000000..5e925d14988 --- /dev/null +++ b/website/content/sdk/reference/crypto/load.md @@ -0,0 +1,39 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load crypto currency to get data for + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/cryptocurrency_helpers.py#L489)] + +```python +openbb.crypto.load(symbol: str, start_date: datetime.datetime | str | None = None, interval: str | int = "1440", exchange: str = "binance", vs_currency: str = "usdt", end_date: datetime.datetime | str | None = None, source: str = "CCXT") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Coin to get | None | False | +| start_date | str or datetime | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| interval | str|int | The interval between data points in minutes.
Choose from: 1, 15, 30, 60, 240, 1440, 10080, 43200 | 1440 | True | +| exchange | str: | The exchange to get data from. | binance | True | +| vs_currency | str | Quote Currency (Defaults to usdt) | usdt | True | +| end_date | str or datetime | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| source | str | The source of the data
Choose from: CCXT, CoinGecko, YahooFinance | CCXT | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe consisting of price and volume data | +--- + diff --git a/website/content/sdk/reference/crypto/nft/collections.md b/website/content/sdk/reference/crypto/nft/collections.md new file mode 100644 index 00000000000..6c68b43b6fd --- /dev/null +++ b/website/content/sdk/reference/crypto/nft/collections.md @@ -0,0 +1,72 @@ +--- +title: collections +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# collections + + + + +Get nft collections [Source: https://nftpricefloor.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/nft/nftpricefloor_model.py#L24)] + +```python +openbb.crypto.nft.collections() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | nft collections | +--- + + + + + + +Display NFT collections. [Source: https://nftpricefloor.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/nft/nftpricefloor_view.py#L27)] + +```python +openbb.crypto.nft.collections_chart(show_fp: bool = False, show_sales: bool = False, limit: int = 5, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| show_fp | bool | Show NFT Price Floor for top collections | False | True | +| limit | int | Number of NFT collections to display | 5 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/nft/fp.md b/website/content/sdk/reference/crypto/nft/fp.md new file mode 100644 index 00000000000..ad760412f1a --- /dev/null +++ b/website/content/sdk/reference/crypto/nft/fp.md @@ -0,0 +1,77 @@ +--- +title: fp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# fp + + + + +Get nft collections [Source: https://nftpricefloor.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/nft/nftpricefloor_model.py#L46)] + +```python +openbb.crypto.nft.fp(slug: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| slug | str | nft collection slug | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | nft collections | +--- + + + + + + +Display NFT collection floor price over time. [Source: https://nftpricefloor.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/nft/nftpricefloor_view.py#L88)] + +```python +openbb.crypto.nft.fp_chart(slug: str, limit: int = 10, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, raw: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| slug | str | NFT collection slug | None | False | +| raw | bool | Flag to display raw data | False | True | +| limit | int | Number of raw data to show | 10 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/nft/stats.md b/website/content/sdk/reference/crypto/nft/stats.md new file mode 100644 index 00000000000..07cc7864ef4 --- /dev/null +++ b/website/content/sdk/reference/crypto/nft/stats.md @@ -0,0 +1,74 @@ +--- +title: stats +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stats + + + + +Get stats of a nft collection [Source: opensea.io] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/nft/opensea_model.py#L17)] + +```python +openbb.crypto.nft.stats(slug: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| slug | str | Opensea collection slug. If the name of the collection is Mutant Ape Yacht Club the slug is mutant-ape-yacht-club | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | collection stats | +--- + + + + + + +Prints table showing collection stats. [Source: opensea.io] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/nft/opensea_view.py#L15)] + +```python +openbb.crypto.nft.stats_chart(slug: str, export: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| slug | str | Opensea collection slug.
If the name of the collection is Mutant Ape Yacht Club the slug is mutant-ape-yacht-club | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/baas.md b/website/content/sdk/reference/crypto/onchain/baas.md new file mode 100644 index 00000000000..49faa1c53d4 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/baas.md @@ -0,0 +1,83 @@ +--- +title: baas +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# baas + + + + +Get an average bid and ask prices, average spread for given crypto pair for chosen time period. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L725)] + +```python +openbb.crypto.onchain.baas(symbol: str = "WETH", to_symbol: str = "USDT", limit: int = 10, sortby: str = "date", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ERC20 token symbol | WETH | True | +| to_symbol | str | Quoted currency. | USDT | True | +| limit | int | Last n days to query data | 10 | True | +| sortby | str | Key by which to sort data | date | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Average bid and ask prices, spread for given crypto pair for chosen time period | +--- + + + + + + +Prints table showing an average bid and ask prices, average spread for given crypto pair for chosen + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_view.py#L346)] + +```python +openbb.crypto.onchain.baas_chart(symbol: str = "WETH", to_symbol: str = "USDT", limit: int = 10, sortby: str = "date", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ERC20 token symbol | WETH | True | +| to_symbol | str | Quoted currency. | USDT | True | +| limit | int | Last n days to query data | 10 | True | +| sortby | str | Key by which to sort data | date | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Average bid and ask prices, spread for given crypto pair for chosen time period | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/balance.md b/website/content/sdk/reference/crypto/onchain/balance.md new file mode 100644 index 00000000000..0f57f4a7320 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/balance.md @@ -0,0 +1,79 @@ +--- +title: balance +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# balance + + + + +Get info about tokens on you ethereum blockchain balance. Eth balance, balance of all tokens which + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L196)] + +```python +openbb.crypto.onchain.balance(address: str, sortby: str = "index", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Blockchain balance e.g. 0x3cD751E6b0078Be393132286c442345e5DC49699 | None | False | +| sortby | str | Key to sort by. | index | True | +| ascend | str | Sort in descending order. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with list of tokens and their balances. | +--- + + + + + + +Display info about tokens for given ethereum blockchain balance e.g. ETH balance, + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L21)] + +```python +openbb.crypto.onchain.balance_chart(address: str, limit: int = 15, sortby: str = "index", ascend: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Ethereum balance. | None | False | +| limit | int | Limit of transactions. Maximum 100 | 15 | True | +| sortby | str | Key to sort by. | index | True | +| ascend | str | Sort in descending order. | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/btc_supply.md b/website/content/sdk/reference/crypto/onchain/btc_supply.md new file mode 100644 index 00000000000..8d1cc024370 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/btc_supply.md @@ -0,0 +1,73 @@ +--- +title: btc_supply +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# btc_supply + + + + +Returns BTC circulating supply [Source: https://api.blockchain.info/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/blockchain_model.py#L43)] + +```python +openbb.crypto.onchain.btc_supply() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | BTC circulating supply | +--- + + + + + + +Returns BTC circulating supply [Source: https://api.blockchain.info/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/blockchain_view.py#L28)] + +```python +openbb.crypto.onchain.btc_supply_chart(start_date: str = "2010-01-01", end_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/btc_transac.md b/website/content/sdk/reference/crypto/onchain/btc_transac.md new file mode 100644 index 00000000000..51e7133dfda --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/btc_transac.md @@ -0,0 +1,73 @@ +--- +title: btc_transac +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# btc_transac + + + + +Returns BTC confirmed transactions [Source: https://api.blockchain.info/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/blockchain_model.py#L62)] + +```python +openbb.crypto.onchain.btc_transac() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | BTC confirmed transactions | +--- + + + + + + +Returns BTC confirmed transactions [Source: https://api.blockchain.info/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/blockchain_view.py#L88)] + +```python +openbb.crypto.onchain.btc_transac_chart(start_date: str = "2010-01-01", end_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/dex_trades_monthly.md b/website/content/sdk/reference/crypto/onchain/dex_trades_monthly.md new file mode 100644 index 00000000000..fc638567f2d --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/dex_trades_monthly.md @@ -0,0 +1,35 @@ +--- +title: dex_trades_monthly +description: OpenBB SDK Function +--- + +# dex_trades_monthly + +Get list of trades on Decentralized Exchanges monthly aggregated. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L333)] + +```python +openbb.crypto.onchain.dex_trades_monthly(trade_amount_currency: str = "USD", limit: int = 90, ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| trade_amount_currency | str | Currency of displayed trade amount. Default: USD | USD | True | +| limit | int | Last n days to query data. Maximum 365 (bigger numbers can cause timeouts
on server side) | 90 | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Trades on Decentralized Exchanges monthly aggregated | +--- + diff --git a/website/content/sdk/reference/crypto/onchain/dvcp.md b/website/content/sdk/reference/crypto/onchain/dvcp.md new file mode 100644 index 00000000000..38fc11b4ba1 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/dvcp.md @@ -0,0 +1,83 @@ +--- +title: dvcp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# dvcp + + + + +Get daily volume for given pair [Source: https://graphql.bitquery.io/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L400)] + +```python +openbb.crypto.onchain.dvcp(limit: int = 100, symbol: str = "UNI", to_symbol: str = "USDT", sortby: str = "date", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Last n days to query data | 100 | True | +| symbol | str | ERC20 token symbol | UNI | True | +| to_symbol | str | Quote currency. | USDT | True | +| sortby | str | Key by which to sort data | date | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Daily volume for given pair | +--- + + + + + + +Prints table showing daily volume for given pair + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_view.py#L87)] + +```python +openbb.crypto.onchain.dvcp_chart(symbol: str = "WBTC", to_symbol: str = "USDT", limit: int = 20, sortby: str = "date", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ERC20 token symbol or address | WBTC | True | +| to_symbol | str | Quote currency. | USDT | True | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key by which to sort data | date | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Token volume on different decentralized exchanges | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/erc20_tokens.md b/website/content/sdk/reference/crypto/onchain/erc20_tokens.md new file mode 100644 index 00000000000..3cf540f191e --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/erc20_tokens.md @@ -0,0 +1,30 @@ +--- +title: erc20_tokens +description: OpenBB SDK Function +--- + +# erc20_tokens + +Helper method that loads ~1500 most traded erc20 token. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L210)] + +```python +openbb.crypto.onchain.erc20_tokens() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | ERC20 tokens with address, symbol and name | +--- + diff --git a/website/content/sdk/reference/crypto/onchain/gwei.md b/website/content/sdk/reference/crypto/onchain/gwei.md new file mode 100644 index 00000000000..3c561194a52 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/gwei.md @@ -0,0 +1,70 @@ +--- +title: gwei +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gwei + + + + +Returns the most recent Ethereum gas fees in gwei + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethgasstation_model.py#L13)] + +```python +openbb.crypto.onchain.gwei() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | four gas fees and durations
(fees for slow, average, fast and
fastest transactions in gwei and
its average durations in seconds) | +--- + + + +
+ + +Current gwei fees + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethgasstation_view.py#L14)] + +```python +openbb.crypto.onchain.gwei_chart(export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/hist.md b/website/content/sdk/reference/crypto/onchain/hist.md new file mode 100644 index 00000000000..997e5851c79 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/hist.md @@ -0,0 +1,79 @@ +--- +title: hist +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hist + + + + +Get information about balance historical transactions. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L336)] + +```python +openbb.crypto.onchain.hist(address: str, sortby: str = "timestamp", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Blockchain balance e.g. 0x3cD751E6b0078Be393132286c442345e5DC49699 | None | False | +| sortby | str | Key to sort by. | timestamp | True | +| ascend | str | Sort in ascending order. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with balance historical transactions (last 100) | +--- + + + + + + +Display information about balance historical transactions. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L158)] + +```python +openbb.crypto.onchain.hist_chart(address: str, limit: int = 10, sortby: str = "timestamp", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Ethereum blockchain balance e.g. 0x3cD751E6b0078Be393132286c442345e5DC49699 | None | False | +| limit | int | Limit of transactions. Maximum 100 | 10 | True | +| sortby | str | Key to sort by. | timestamp | True | +| ascend | str | Sort in ascending order. | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/holders.md b/website/content/sdk/reference/crypto/onchain/holders.md new file mode 100644 index 00000000000..71953363514 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/holders.md @@ -0,0 +1,79 @@ +--- +title: holders +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# holders + + + + +Get info about top token holders. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L305)] + +```python +openbb.crypto.onchain.holders(address: str, sortby: str = "balance", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 | None | False | +| sortby | str | Key to sort by. | balance | True | +| ascend | str | Sort in descending order. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with list of top token holders. | +--- + + + + + + +Display info about top ERC20 token holders. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L114)] + +```python +openbb.crypto.onchain.holders_chart(address: str, limit: int = 10, sortby: str = "balance", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 | None | False | +| limit | int | Limit of transactions. Maximum 100 | 10 | True | +| sortby | str | Key to sort by. | balance | True | +| ascend | str | Sort in descending order. | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/hr.md b/website/content/sdk/reference/crypto/onchain/hr.md new file mode 100644 index 00000000000..3006376feb9 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/hr.md @@ -0,0 +1,81 @@ +--- +title: hr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hr + + + + +Returns dataframe with mean hashrate of btc or eth blockchain and symbol price + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_model.py#L374)] + +```python +openbb.crypto.onchain.hr(symbol: str, interval: str = "24h", start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Blockchain to check hashrate (BTC or ETH) | None | False | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| interval | str | Interval frequency (e.g., 24h) | 24h | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | mean hashrate and symbol price over time | +--- + + + + + + +Plots dataframe with mean hashrate of btc or eth blockchain and symbol price. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/glassnode_view.py#L318)] + +```python +openbb.crypto.onchain.hr_chart(symbol: str, start_date: str = "2010-01-01", end_date: str = None, interval: str = "24h", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Blockchain to check mean hashrate (BTC or ETH) | None | False | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| interval | str | Interval frequency (possible values are: 24, 1w, 1month) | 24h | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/info.md b/website/content/sdk/reference/crypto/onchain/info.md new file mode 100644 index 00000000000..4043e1f4593 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/info.md @@ -0,0 +1,75 @@ +--- +title: info +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# info + + + + +Get info about ERC20 token. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L380)] + +```python +openbb.crypto.onchain.info(address: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with information about provided ERC20 token. | +--- + + + + + + +Display info about ERC20 token. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L206)] + +```python +openbb.crypto.onchain.info_chart(address: str, social: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 | None | False | +| social | bool | Flag to display social media links | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/lt.md b/website/content/sdk/reference/crypto/onchain/lt.md new file mode 100644 index 00000000000..f3c1985623d --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/lt.md @@ -0,0 +1,82 @@ +--- +title: lt +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# lt + + + + +Get trades on Decentralized Exchanges aggregated by DEX [Source: https://graphql.bitquery.io/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L266)] + +```python +openbb.crypto.onchain.lt(trade_amount_currency: str = "USD", limit: int = 90, sortby: str = "tradeAmount", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| trade_amount_currency | str | Currency of displayed trade amount. Default: USD | USD | True | +| limit | int | Last n days to query data. Maximum 365 (bigger numbers can cause timeouts
on server side) | 90 | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Trades on Decentralized Exchanges aggregated by DEX | +--- + + + +
+ + +Prints table showing Trades on Decentralized Exchanges aggregated by DEX or Month + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_view.py#L22)] + +```python +openbb.crypto.onchain.lt_chart(trade_amount_currency: str = "USD", kind: str = "dex", limit: int = 20, days: int = 90, sortby: str = "tradeAmount", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| kind | str | Aggregate trades by dex or time | dex | True | +| trade_amount_currency | str | Currency of displayed trade amount. Default: USD | USD | True | +| limit | int | Number of records to display | 20 | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | +| days | int | Last n days to query data. Maximum 365 (bigger numbers can cause timeouts
on server side) | 90 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/prices.md b/website/content/sdk/reference/crypto/onchain/prices.md new file mode 100644 index 00000000000..17496dafa7e --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/prices.md @@ -0,0 +1,79 @@ +--- +title: prices +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# prices + + + + +Get token historical prices with volume and market cap, and average price. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L545)] + +```python +openbb.crypto.onchain.prices(address: str, sortby: str = "date", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token e.g. 0xf3db5fa2c66b7af3eb0c0b782510816cbe4813b8 | None | False | +| sortby | str | Key to sort by. | date | True | +| ascend | str | Sort in descending order. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with token historical prices. | +--- + + + + + + +Display token historical prices with volume and market cap, and average price. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L334)] + +```python +openbb.crypto.onchain.prices_chart(address: str, limit: int = 30, sortby: str = "date", ascend: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 | None | False | +| limit | int | Limit of transactions. Maximum 100 | 30 | True | +| sortby | str | Key to sort by. | date | True | +| ascend | str | Sort in descending order. | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/query_graph.md b/website/content/sdk/reference/crypto/onchain/query_graph.md new file mode 100644 index 00000000000..5ec49eaf2a8 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/query_graph.md @@ -0,0 +1,34 @@ +--- +title: query_graph +description: OpenBB SDK Function +--- + +# query_graph + +Helper methods for querying graphql api. [Source: https://bitquery.io/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L159)] + +```python +openbb.crypto.onchain.query_graph(url: str, query: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| url | str | Endpoint url | None | False | +| query | str | Graphql query | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary with response data | +--- + diff --git a/website/content/sdk/reference/crypto/onchain/th.md b/website/content/sdk/reference/crypto/onchain/th.md new file mode 100644 index 00000000000..6aa73fea7f3 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/th.md @@ -0,0 +1,80 @@ +--- +title: th +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# th + + + + +Get info about token historical transactions. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L489)] + +```python +openbb.crypto.onchain.th(address: str, sortby: str = "timestamp", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token e.g. 0xf3db5fa2c66b7af3eb0c0b782510816cbe4813b8 | None | False | +| sortby | str | Key to sort by. | timestamp | True | +| ascend | str | Sort in descending order. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with token historical transactions. | +--- + + + + + + +Display info about token history. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L276)] + +```python +openbb.crypto.onchain.th_chart(address: str, limit: int = 10, sortby: str = "timestamp", ascend: bool = False, hash_: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Token balance e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 | None | False | +| limit | int | Limit of transactions. Maximum 100 | 10 | True | +| sortby | str | Key to sort by. | timestamp | True | +| ascend | str | Sort in descending order. | False | True | +| hash_ | bool, | Flag to show transaction hash. | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/token_decimals.md b/website/content/sdk/reference/crypto/onchain/token_decimals.md new file mode 100644 index 00000000000..66c4780b14e --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/token_decimals.md @@ -0,0 +1,33 @@ +--- +title: token_decimals +description: OpenBB SDK Function +--- + +# token_decimals + +Helper methods that gets token decimals number. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L176)] + +```python +openbb.crypto.onchain.token_decimals(address: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| address | str | Blockchain balance e.g. 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Optional[int] | Number of decimals for given token. | +--- + diff --git a/website/content/sdk/reference/crypto/onchain/top.md b/website/content/sdk/reference/crypto/onchain/top.md new file mode 100644 index 00000000000..450bfcd4d9d --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/top.md @@ -0,0 +1,77 @@ +--- +title: top +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# top + + + + +Get top 50 tokens. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L268)] + +```python +openbb.crypto.onchain.top(sortby: str = "rank", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key to sort by. | rank | True | +| ascend | str | Sort in descending order. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with list of top 50 tokens. | +--- + + + + + + +Display top ERC20 tokens [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L70)] + +```python +openbb.crypto.onchain.top_chart(limit: int = 15, sortby: str = "rank", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Limit of transactions. Maximum 100 | 15 | True | +| sortby | str | Key to sort by. | rank | True | +| ascend | str | Sort in descending order. | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/ttcp.md b/website/content/sdk/reference/crypto/onchain/ttcp.md new file mode 100644 index 00000000000..d6b1158556f --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/ttcp.md @@ -0,0 +1,82 @@ +--- +title: ttcp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ttcp + + + + +Get most traded crypto pairs on given decentralized exchange in chosen time period. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L658)] + +```python +openbb.crypto.onchain.ttcp(network: str = "ethereum", exchange: str = "Uniswap", limit: int = 90, sortby: str = "tradeAmount", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| network | str | EVM network. One from list: bsc (binance smart chain), ethereum or matic | ethereum | True | +| exchange | st | Decentralized exchange name | Uniswap | True | +| limit | int | Number of days taken into calculation account. | 90 | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most traded crypto pairs on given decentralized exchange in chosen time period. | +--- + + + + + + +Prints table showing most traded crypto pairs on given decentralized exchange in chosen time period. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_view.py#L286)] + +```python +openbb.crypto.onchain.ttcp_chart(exchange: str = "Uniswap", days: int = 10, limit: int = 10, sortby: str = "tradeAmount", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange | str | Decentralized exchange name | Uniswap | True | +| days | int | Number of days taken into calculation account. | 10 | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most traded crypto pairs on given decentralized exchange in chosen time period. | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/tv.md b/website/content/sdk/reference/crypto/onchain/tv.md new file mode 100644 index 00000000000..70ffe328935 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/tv.md @@ -0,0 +1,82 @@ +--- +title: tv +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tv + + + + +Get token volume on different Decentralized Exchanges. [Source: https://graphql.bitquery.io/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L513)] + +```python +openbb.crypto.onchain.tv(symbol: str = "UNI", trade_amount_currency: str = "USD", sortby: str = "tradeAmount", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ERC20 token symbol. | UNI | True | +| trade_amount_currency | str | Currency to display trade amount in. | USD | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Token volume on Decentralized Exchanges | +--- + + + + + + +Prints table showing token volume on different Decentralized Exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_view.py#L160)] + +```python +openbb.crypto.onchain.tv_chart(symbol: str = "WBTC", trade_amount_currency: str = "USD", limit: int = 10, sortby: str = "tradeAmount", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ERC20 token symbol or address | WBTC | True | +| trade_amount_currency | str | Currency of displayed trade amount. Default: USD | USD | True | +| limit | int | Number of records to display | 10 | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Token volume on different decentralized exchanges | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/tx.md b/website/content/sdk/reference/crypto/onchain/tx.md new file mode 100644 index 00000000000..b1db30a4798 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/tx.md @@ -0,0 +1,74 @@ +--- +title: tx +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tx + + + + +Get info about transaction. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_model.py#L444)] + +```python +openbb.crypto.onchain.tx(tx_hash: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| tx_hash | str | Transaction hash e.g. 0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6 | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with information about ERC20 token transaction. | +--- + + + + + + +Display info about transaction. [Source: Ethplorer] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/ethplorer_view.py#L249)] + +```python +openbb.crypto.onchain.tx_chart(tx_hash: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| tx_hash | str | Transaction hash e.g. 0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6 | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/ueat.md b/website/content/sdk/reference/crypto/onchain/ueat.md new file mode 100644 index 00000000000..ee59881a22e --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/ueat.md @@ -0,0 +1,81 @@ +--- +title: ueat +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ueat + + + + +Get number of unique ethereum addresses which made a transaction in given time interval. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_model.py#L584)] + +```python +openbb.crypto.onchain.ueat(interval: str = "day", limit: int = 90, sortby: str = "tradeAmount", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Time interval in which count unique ethereum addresses which made transaction. day,
month or week. | day | True | +| limit | int | Number of records for data query. | 90 | True | +| sortby | str | Key by which to sort data | tradeAmount | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Unique ethereum addresses which made a transaction | +--- + + + +
+ + +Prints table showing number of unique ethereum addresses which made a transaction in given time interval + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/bitquery_view.py#L225)] + +```python +openbb.crypto.onchain.ueat_chart(interval: str = "days", limit: int = 10, sortby: str = "date", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Time interval in which ethereum address made transaction. month, week or day | days | True | +| limit | int | Number of records to display. It's calculated base on provided interval.
If interval is month then calculation is made in the way: limit * 30 = time period,
in case if interval is set to week, then time period is calculated as limit * 7.
For better user experience maximum time period in days is equal to 90. | 10 | True | +| sortby | str | Key by which to sort data | date | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Number of unique ethereum addresses which made a transaction in given time interval | +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/onchain/whales.md b/website/content/sdk/reference/crypto/onchain/whales.md new file mode 100644 index 00000000000..c0575b68ac3 --- /dev/null +++ b/website/content/sdk/reference/crypto/onchain/whales.md @@ -0,0 +1,81 @@ +--- +title: whales +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# whales + + + + +Whale Alert's API allows you to retrieve live and historical transaction data from major blockchains. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/whale_alert_model.py#L86)] + +```python +openbb.crypto.onchain.whales(min_value: int = 800000, limit: int = 100, sortby: str = "date", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| min_value | int | Minimum value of trade to track. | 800000 | True | +| limit | int | Limit of transactions. Max 100 | 100 | True | +| sortby | str | Key to sort by. | date | True | +| ascend | str | Sort in ascending order. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Crypto wales transactions | +--- + + + + + + +Display huge value transactions from major blockchains. [Source: https://docs.whale-alert.io/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/onchain/whale_alert_view.py#L21)] + +```python +openbb.crypto.onchain.whales_chart(min_value: int = 800000, limit: int = 100, sortby: str = "date", ascend: bool = False, show_address: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| min_value | int | Minimum value of trade to track. | 800000 | True | +| limit | int | Limit of transactions. Maximum 100 | 100 | True | +| sortby | str | Key to sort by. | date | True | +| ascend | str | Sort in ascending order. | False | True | +| show_address | bool | Flag to show addresses of transactions. | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/altindex.md b/website/content/sdk/reference/crypto/ov/altindex.md new file mode 100644 index 00000000000..3a422297312 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/altindex.md @@ -0,0 +1,79 @@ +--- +title: altindex +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# altindex + + + + +Get altcoin index overtime + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/blockchaincenter_model.py#L19)] + +```python +openbb.crypto.ov.altindex(period: int = 30, start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| period | int | Number of days {30,90,365} to check performance of coins and calculate the altcoin index.
E.g., 365 checks yearly performance, 90 will check seasonal performance (90 days),
30 will check monthly performance (30 days). | 30 | True | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Date, Value (Altcoin Index) | +--- + + + +
+ + +Displays altcoin index overtime + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/blockchaincenter_view.py#L27)] + +```python +openbb.crypto.ov.altindex_chart(period: int = 365, start_date: str = "2010-01-01", end_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| period | int | Number of days to check the performance of coins and calculate the altcoin index.
E.g., 365 will check yearly performance , 90 will check seasonal performance (90 days),
30 will check monthly performance (30 days). | 365 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/btcrb.md b/website/content/sdk/reference/crypto/ov/btcrb.md new file mode 100644 index 00000000000..efcb233412c --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/btcrb.md @@ -0,0 +1,77 @@ +--- +title: btcrb +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# btcrb + + + + +Get bitcoin price data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/glassnode_model.py#L18)] + +```python +openbb.crypto.ov.btcrb(start_date: str = "2010-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | price over time | +--- + + + + + + +Displays bitcoin rainbow chart + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/glassnode_view.py#L29)] + +```python +openbb.crypto.ov.btcrb_chart(start_date: str = "2010-01-01", end_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | 2010-01-01 | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/categories.md b/website/content/sdk/reference/crypto/ov/categories.md new file mode 100644 index 00000000000..724a4d77a28 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/categories.md @@ -0,0 +1,76 @@ +--- +title: categories +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# categories + + + + +Returns top crypto categories [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L157)] + +```python +openbb.crypto.ov.categories(sort_filter: str = "market_cap_desc") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sort_filter | str | Can be one of - "market_cap_desc", "market_cap_asc", "name_desc", "name_asc",
"market_cap_change_24h_desc", "market_cap_change_24h_asc" | market_cap_desc | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rank, Name, Change_1h, Change_7d, Market_Cap, Volume_24h,Coins, Url | +--- + + + +
+ + +Shows top cryptocurrency categories by market capitalization + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L433)] + +```python +openbb.crypto.ov.categories_chart(sortby: str = "market_cap_desc", limit: int = 15, export: str = "", pie: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | market_cap_desc | True | +| limit | int | Number of records to display | 15 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| pie | bool | Whether to show the pie chart | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/cbpairs.md b/website/content/sdk/reference/crypto/ov/cbpairs.md new file mode 100644 index 00000000000..cf459d5d2fd --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/cbpairs.md @@ -0,0 +1,78 @@ +--- +title: cbpairs +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cbpairs + + + + +Get a list of available currency pairs for trading. [Source: Coinbase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinbase_model.py#L24)] + +```python +openbb.crypto.ov.cbpairs(limit: int = 50, sortby: str = "quote_increment", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Top n of pairs | 50 | True | +| sortby | str | Key to sortby data | quote_increment | True | +| ascend | bool | Sort descending flag | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Available trading pairs on Coinbase | +--- + + + + + + +Displays a list of available currency pairs for trading. [Source: Coinbase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinbase_view.py#L19)] + +```python +openbb.crypto.ov.cbpairs_chart(limit: int = 20, sortby: str = "quote_increment", ascend: bool = True, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Top n of pairs | 20 | True | +| sortby | str | Key to sortby data | quote_increment | True | +| ascend | bool | Sort ascending flag | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/coin_list.md b/website/content/sdk/reference/crypto/ov/coin_list.md new file mode 100644 index 00000000000..dbfb69e82a1 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/coin_list.md @@ -0,0 +1,30 @@ +--- +title: coin_list +description: OpenBB SDK Function +--- + +# coin_list + +Get list of all available coins on CoinPaprika [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/due_diligence/coinpaprika_model.py#L452)] + +```python +openbb.crypto.ov.coin_list() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pandas.DataFrame | Available coins on CoinPaprika
rank, id, name, symbol, type | +--- + diff --git a/website/content/sdk/reference/crypto/ov/contracts.md b/website/content/sdk/reference/crypto/ov/contracts.md new file mode 100644 index 00000000000..b4e9e4cdce7 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/contracts.md @@ -0,0 +1,79 @@ +--- +title: contracts +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# contracts + + + + +Gets all contract addresses for given platform [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_model.py#L400)] + +```python +openbb.crypto.ov.contracts(platform_id: str = "eth-ethereum", sortby: str = "active", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| platform_id | str | Blockchain platform like eth-ethereum | eth-ethereum | True | +| sortby | str | Key by which to sort data | active | True | +| ascend | bool | Flag to sort data ascend | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | id, type, active | +--- + + + + + + +Gets all contract addresses for given platform. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_view.py#L349)] + +```python +openbb.crypto.ov.contracts_chart(symbol: str, sortby: str = "active", ascend: bool = True, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| platform | str | Blockchain platform like eth-ethereum | None | True | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | active | True | +| ascend | bool | Flag to sort data ascending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/cr.md b/website/content/sdk/reference/crypto/ov/cr.md new file mode 100644 index 00000000000..2025cb9b19a --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/cr.md @@ -0,0 +1,77 @@ +--- +title: cr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cr + + + + +Returns crypto {borrow,supply} interest rates for cryptocurrencies across several platforms + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/loanscan_model.py#L267)] + +```python +openbb.crypto.ov.cr(rate_type: str = "borrow") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| rate_type | str | Interest rate type: {borrow, supply}. Default: supply | borrow | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | crypto interest rates per platform | +--- + + + + + + +Displays crypto {borrow,supply} interest rates for cryptocurrencies across several platforms + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/loanscan_view.py#L24)] + +```python +openbb.crypto.ov.cr_chart(symbols: str, platforms: str, rate_type: str = "borrow", limit: int = 10, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| rate_type | str | Interest rate type: {borrow, supply}. Default: supply | borrow | True | +| symbols | str | Crypto separated by commas. Default: BTC,ETH,USDT,USDC | None | False | +| platforms | str | Platforms separated by commas. Default: BlockFi,Ledn,SwissBorg,Youhodler | None | False | +| limit | int | Number of records to show | 10 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/crypto_hack.md b/website/content/sdk/reference/crypto/ov/crypto_hack.md new file mode 100644 index 00000000000..a5cc8d5471b --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/crypto_hack.md @@ -0,0 +1,33 @@ +--- +title: crypto_hack +description: OpenBB SDK Function +--- + +# crypto_hack + +Get crypto hack + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/rekt_model.py#L139)] + +```python +openbb.crypto.ov.crypto_hack(slug: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| slug | str | slug of crypto hack | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[str, None] | Crypto hack | +--- + diff --git a/website/content/sdk/reference/crypto/ov/crypto_hack_slugs.md b/website/content/sdk/reference/crypto/ov/crypto_hack_slugs.md new file mode 100644 index 00000000000..dc35b06e2a6 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/crypto_hack_slugs.md @@ -0,0 +1,30 @@ +--- +title: crypto_hack_slugs +description: OpenBB SDK Function +--- + +# crypto_hack_slugs + +Get all crypto hack slugs + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/rekt_model.py#L182)] + +```python +openbb.crypto.ov.crypto_hack_slugs() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str] | List with slugs | +--- + diff --git a/website/content/sdk/reference/crypto/ov/crypto_hacks.md b/website/content/sdk/reference/crypto/ov/crypto_hacks.md new file mode 100644 index 00000000000..3d5792567df --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/crypto_hacks.md @@ -0,0 +1,78 @@ +--- +title: crypto_hacks +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# crypto_hacks + + + + +Get major crypto-related hacks + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/rekt_model.py#L93)] + +```python +openbb.crypto.ov.crypto_hacks(sortby: str = "Platform", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data {Platform,Date,Amount [$],Audit,Slug,URL} | Platform | True | +| ascend | bool | Flag to sort data ascending | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Hacks with columns {Platform,Date,Amount [$],Audited,Slug,URL} | +--- + + + + + + +Display list of major crypto-related hacks. If slug is passed + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/rekt_view.py#L18)] + +```python +openbb.crypto.ov.crypto_hacks_chart(limit: int = 15, sortby: str = "Platform", ascend: bool = False, slug: str = "polyntwork-rekt", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| slug | str | Crypto hack slug to check (e.g., polynetwork-rekt) | polyntwork-rekt | True | +| limit | int | Number of hacks to search | 15 | True | +| sortby | str | Key by which to sort data {Platform,Date,Amount [$],Audit,Slug,URL} | Platform | True | +| ascend | bool | Flag to sort data ascending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/defi.md b/website/content/sdk/reference/crypto/ov/defi.md new file mode 100644 index 00000000000..fd89d56f0fd --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/defi.md @@ -0,0 +1,70 @@ +--- +title: defi +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# defi + + + + +Get global statistics about Decentralized Finances [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L489)] + +```python +openbb.crypto.ov.defi() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Metric, Value | +--- + + + + + + +Shows global statistics about Decentralized Finances. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L301)] + +```python +openbb.crypto.ov.defi_chart(export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/derivatives.md b/website/content/sdk/reference/crypto/ov/derivatives.md new file mode 100644 index 00000000000..0904daf5e84 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/derivatives.md @@ -0,0 +1,77 @@ +--- +title: derivatives +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# derivatives + + + + +Get list of crypto derivatives from CoinGecko API [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L350)] + +```python +openbb.crypto.ov.derivatives(sortby: str = "Rank", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | Rank | True | +| ascend | bool | Flag to sort data descending | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rank, Market, Symbol, Price, Pct_Change_24h, Contract_Type, Basis, Spread,
Funding_Rate, Volume_24h, | +--- + + + +
+ + +Shows list of crypto derivatives. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L662)] + +```python +openbb.crypto.ov.derivatives_chart(sortby: str = "Rank", ascend: bool = False, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | Rank | True | +| ascend | bool | Flag to sort data descending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/ewf.md b/website/content/sdk/reference/crypto/ov/ewf.md new file mode 100644 index 00000000000..e44266b98f5 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/ewf.md @@ -0,0 +1,70 @@ +--- +title: ewf +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ewf + + + + +Scrapes exchange withdrawal fees + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/withdrawalfees_model.py#L182)] + +```python +openbb.crypto.ov.ewf() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Exchange, Coins, Lowest, Average, Median, Highest | +--- + + + + + + +Exchange withdrawal fees + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/withdrawalfees_view.py#L53)] + +```python +openbb.crypto.ov.ewf_chart(export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/exchanges.md b/website/content/sdk/reference/crypto/ov/exchanges.md new file mode 100644 index 00000000000..5ea7873992b --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/exchanges.md @@ -0,0 +1,33 @@ +--- +title: exchanges +description: OpenBB SDK Function +--- + +# exchanges + +Show top crypto exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/sdk_helpers.py#L42)] + +```python +openbb.crypto.ov.exchanges(source: str = "CoinGecko") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| source | str | Source to get exchanges, by default "CoinGecko" | CoinGecko | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with top crypto exchanges | +--- + diff --git a/website/content/sdk/reference/crypto/ov/exmarkets.md b/website/content/sdk/reference/crypto/ov/exmarkets.md new file mode 100644 index 00000000000..9392d4c8335 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/exmarkets.md @@ -0,0 +1,81 @@ +--- +title: exmarkets +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# exmarkets + + + + +List markets by exchange ID [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_model.py#L328)] + +```python +openbb.crypto.ov.exmarkets(exchange_id: str = "binance", symbols: str = "USD", sortby: str = "pair", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange_id | str | identifier of exchange e.g for Binance Exchange -> binance | binance | True | +| symbols | str | Comma separated quotes to return e.g quotes=USD,BTC | USD | True | +| sortby | str | Key by which to sort data | pair | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | pair, base_currency_name, quote_currency_name, market_url,
category, reported_volume_24h_share, trust_score, | +--- + + + +
+ + +Get all markets for given exchange [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_view.py#L267)] + +```python +openbb.crypto.ov.exmarkets_chart(exchange: str = "binance", sortby: str = "pair", ascend: bool = True, limit: int = 15, links: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| exchange | str | Exchange identifier e.g Binance | binance | True | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | pair | True | +| ascend | bool | Flag to sort data descending | True | True | +| links | bool | Flag to display urls | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/exrates.md b/website/content/sdk/reference/crypto/ov/exrates.md new file mode 100644 index 00000000000..468cb3695f9 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/exrates.md @@ -0,0 +1,77 @@ +--- +title: exrates +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# exrates + + + + +Get list of crypto, fiats, commodity exchange rates from CoinGecko API [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L398)] + +```python +openbb.crypto.ov.exrates(sortby: str = "Name", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | Name | True | +| ascend | bool | Flag to sort data ascending | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Index, Name, Unit, Value, Type | +--- + + + + + + +Shows list of crypto, fiats, commodity exchange rates. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L200)] + +```python +openbb.crypto.ov.exrates_chart(sortby: str = "Name", ascend: bool = False, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | Name | True | +| ascend | bool | Flag to sort data ascending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/globe.md b/website/content/sdk/reference/crypto/ov/globe.md new file mode 100644 index 00000000000..a82ddd5e3cc --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/globe.md @@ -0,0 +1,43 @@ +--- +title: globe +description: OpenBB SDK Function +--- + +# globe + +Get global crypto market data. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/sdk_helpers.py#L11)] + +```python +openbb.crypto.ov.globe(source: str = "CoinGecko") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| source | str | Source of data, by default "CoinGecko" | CoinGecko | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with global crypto market data | +--- + +## Examples + +To get data from CoinPaprika, use the source parameter: +```python +from openbb_terminal.sdk import openbb +global_market_data = openbb.crypto.ov.globals() +``` + +--- + diff --git a/website/content/sdk/reference/crypto/ov/hm.md b/website/content/sdk/reference/crypto/ov/hm.md new file mode 100644 index 00000000000..bc376765ad0 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/hm.md @@ -0,0 +1,79 @@ +--- +title: hm +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hm + + + + +Get N coins from CoinGecko [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/discovery/pycoingecko_model.py#L128)] + +```python +openbb.crypto.ov.hm(limit: int = 250, category: str = "", sortby: str = "Symbol", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of top coins to grab from CoinGecko | 250 | True | +| category | str | Category of the coins we want to retrieve | | True | +| sortby | str | Key to sort data | Symbol | True | +| ascend | bool | Sort data in ascending order | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | N coins | +--- + + + + + + +Shows cryptocurrencies heatmap [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L36)] + +```python +openbb.crypto.ov.hm_chart(category: str = "", limit: int = 15, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| caterogy | str | Category (e.g., stablecoins). Empty for no category (default: ) | None | True | +| limit | int | Number of top cryptocurrencies to display | 15 | True | +| export | str | Export dataframe data to csv,json,xlsx | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/hold.md b/website/content/sdk/reference/crypto/ov/hold.md new file mode 100644 index 00000000000..6cb03b14676 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/hold.md @@ -0,0 +1,76 @@ +--- +title: hold +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hold + + + + +Returns public companies that holds ethereum or bitcoin [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L102)] + +```python +openbb.crypto.ov.hold(endpoint: str = "bitcoin") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| endpoint | str | "bitcoin" or "ethereum" | bitcoin | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[Union[str, pd.DataFrame]] | - str: Overall statistics
- pd.DataFrame: Companies holding crypto | +--- + + + +
+ + +Shows overview of public companies that holds ethereum or bitcoin. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L135)] + +```python +openbb.crypto.ov.hold_chart(symbol: str, show_bar: bool = False, export: str = "", limit: int = 15) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Cryptocurrency: ethereum or bitcoin | None | False | +| show_bar | bool | Whether to show a bar graph for the data | False | True | +| export | str | Export dataframe data to csv,json,xlsx | | True | +| limit | int | The number of rows to show | 15 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/indexes.md b/website/content/sdk/reference/crypto/ov/indexes.md new file mode 100644 index 00000000000..c32ca9266a3 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/indexes.md @@ -0,0 +1,77 @@ +--- +title: indexes +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# indexes + + + + +Get list of crypto indexes from CoinGecko API [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L325)] + +```python +openbb.crypto.ov.indexes(sortby: str = "Name", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | Name | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Name, Id, Market, Last, MultiAsset | +--- + + + + + + +Shows list of crypto indexes. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L625)] + +```python +openbb.crypto.ov.indexes_chart(sortby: str = "Name", ascend: bool = True, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | Name | True | +| ascend | bool | Flag to sort data descending | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/info.md b/website/content/sdk/reference/crypto/ov/info.md new file mode 100644 index 00000000000..4612160cc4f --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/info.md @@ -0,0 +1,80 @@ +--- +title: info +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# info + + + + +Returns basic coin information for all coins from CoinPaprika API [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_model.py#L183)] + +```python +openbb.crypto.ov.info(symbols: str = "USD", sortby: str = "rank", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | str | Comma separated quotes to return e.g quotes=USD,BTC | USD | True | +| sortby | str | Key by which to sort data | rank | True | +| ascend | bool | Flag to sort data descending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | rank, name, symbol, price, volume_24h, circulating_supply, total_supply,
max_supply, market_cap, beta_value, ath_price, | +--- + + + +
+ + +Displays basic coin information for all coins from CoinPaprika API. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_view.py#L159)] + +```python +openbb.crypto.ov.info_chart(symbol: str, sortby: str = "rank", ascend: bool = True, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Quoted currency | None | False | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | rank | True | +| ascend | bool | Flag to sort data descending | True | True | +| links | bool | Flag to display urls | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/markets.md b/website/content/sdk/reference/crypto/ov/markets.md new file mode 100644 index 00000000000..dcfdebc02fd --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/markets.md @@ -0,0 +1,80 @@ +--- +title: markets +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# markets + + + + +Returns basic coin information for all coins from CoinPaprika API [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_model.py#L223)] + +```python +openbb.crypto.ov.markets(symbols: str = "USD", sortby: str = "rank", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | str | Comma separated quotes to return e.g quotes=USD,BTC | USD | True | +| sortby | str | Key by which to sort data | rank | True | +| ascend | bool | Flag to sort data ascend | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | rank, name, symbol, price, volume_24h, mcap_change_24h,
pct_change_1h, pct_change_24h, ath_price, pct_from_ath, | +--- + + + +
+ + +Displays basic market information for all coins from CoinPaprika API. [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_view.py#L105)] + +```python +openbb.crypto.ov.markets_chart(symbol: str, sortby: str = "rank", ascend: bool = True, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Quoted currency | None | False | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | rank | True | +| ascend | bool | Flag to sort data ascending | True | True | +| links | bool | Flag to display urls | None | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/news.md b/website/content/sdk/reference/crypto/ov/news.md new file mode 100644 index 00000000000..0b154dc00e8 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/news.md @@ -0,0 +1,85 @@ +--- +title: news +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# news + + + + +Get recent posts from CryptoPanic news aggregator platform. [Source: https://cryptopanic.com/] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/cryptopanic_model.py#L158)] + +```python +openbb.crypto.ov.news(limit: int = 60, post_kind: str = "news", filter_: Optional[str] = None, region: str = "en", source: Optional[str] = None, symbol: Optional[str] = None, sortby: str = "published_at", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | number of news to fetch | 60 | True | +| post_kind | str | Filter by category of news. Available values: news or media. | news | True | +| filter_ | Optional[str] | Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol | None | True | +| region | str | Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch),
es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) | en | True | +| sortby | str | Key to sort by. | published_at | True | +| ascend | bool | Sort in ascend order. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with recent news from different sources filtered by provided parameters. | +--- + + + +
+ + +Display recent posts from CryptoPanic news aggregator platform. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/cryptopanic_view.py#L17)] + +```python +openbb.crypto.ov.news_chart(post_kind: str = "news", region: str = "en", filter_: Optional[str] = None, limit: int = 25, sortby: str = "published_at", ascend: bool = False, links: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | number of news to display | 25 | True | +| post_kind | str | Filter by category of news. Available values: news or media. | news | True | +| filter_ | Optional[str] | Filter by kind of news. One from list: rising|hot|bullish|bearish|important|saved|lol | None | True | +| region | str | Filter news by regions. Available regions are: en (English), de (Deutsch), nl (Dutch),
es (Español), fr (Français), it (Italiano), pt (Português), ru (Русский) | en | True | +| sortby | str | Key to sort by. | published_at | True | +| ascend | bool | Sort in ascending order. | False | True | +| links | bool | Show urls for news | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/platforms.md b/website/content/sdk/reference/crypto/ov/platforms.md new file mode 100644 index 00000000000..06aceaf0f9e --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/platforms.md @@ -0,0 +1,70 @@ +--- +title: platforms +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# platforms + + + + +List all smart contract platforms like ethereum, solana, cosmos, polkadot, kusama ... [Source: CoinPaprika] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_model.py#L379)] + +```python +openbb.crypto.ov.platforms() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | index, platform_id | +--- + + + + + + +List all smart contract platforms like ethereum, solana, cosmos, polkadot, kusama. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/coinpaprika_view.py#L324)] + +```python +openbb.crypto.ov.platforms_chart(export: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| export | str | Export dataframe data to csv,json,xlsx file | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/products.md b/website/content/sdk/reference/crypto/ov/products.md new file mode 100644 index 00000000000..2c33d851929 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/products.md @@ -0,0 +1,77 @@ +--- +title: products +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# products + + + + +Get list of financial products from CoinGecko API + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L292)] + +```python +openbb.crypto.ov.products(sortby: str = "Name", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Key by which to sort data | Name | True | +| ascend | bool | Flag to sort data ascending | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rank, Platform, Identifier, Supply_Rate, Borrow_Rate | +--- + + + + + + +Shows list of financial products. [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L587)] + +```python +openbb.crypto.ov.products_chart(sortby: str = "Platform", ascend: bool = False, limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | Platform | True | +| ascend | bool | Flag to sort data descending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/stables.md b/website/content/sdk/reference/crypto/ov/stables.md new file mode 100644 index 00000000000..f97f774bd87 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/stables.md @@ -0,0 +1,79 @@ +--- +title: stables +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stables + + + + +Returns top stable coins [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L191)] + +```python +openbb.crypto.ov.stables(limit: int = 20, sortby: str = "rank", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | How many rows to show | 20 | True | +| sortby | str | Key by which to sort data | rank | True | +| ascend | bool | Flag to sort data ascending | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rank, Name, Symbol, Price, Change_24h, Exchanges, Market_Cap, Change_30d, Url | +--- + + + + + + +Shows stablecoins data [Source: CoinGecko] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L331)] + +```python +openbb.crypto.ov.stables_chart(limit: int = 15, export: str = "", sortby: str = "rank", ascend: bool = False, pie: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of records to display | 15 | True | +| sortby | str | Key by which to sort data | rank | True | +| ascend | bool | Flag to sort data ascending | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| pie | bool | Whether to show a pie chart | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/wf.md b/website/content/sdk/reference/crypto/ov/wf.md new file mode 100644 index 00000000000..d0709876787 --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/wf.md @@ -0,0 +1,74 @@ +--- +title: wf +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# wf + + + + +Scrapes top coins withdrawal fees + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/withdrawalfees_model.py#L120)] + +```python +openbb.crypto.ov.wf(limit: int = 100) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of coins to search, by default n=100, one page has 100 coins, so 1 page is scraped. | 100 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Coin, Lowest, Average, Median, Highest, Exchanges Compared | +--- + + + + + + +Top coins withdrawal fees + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/withdrawalfees_view.py#L18)] + +```python +openbb.crypto.ov.wf_chart(limit: int = 15, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of coins to search | 15 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/crypto/ov/wfpe.md b/website/content/sdk/reference/crypto/ov/wfpe.md new file mode 100644 index 00000000000..831cce4eb7f --- /dev/null +++ b/website/content/sdk/reference/crypto/ov/wfpe.md @@ -0,0 +1,74 @@ +--- +title: wfpe +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# wfpe + + + + +Scrapes coin withdrawal fees per exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/withdrawalfees_model.py#L207)] + +```python +openbb.crypto.ov.wfpe(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Coin to check withdrawal fees. By default bitcoin | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List | - str: Overall statistics (exchanges, lowest, average and median)
- pd.DataFrame: Exchange, Withdrawal Fee, Minimum Withdrawal Amount | +--- + + + +
+ + +Coin withdrawal fees per exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/withdrawalfees_view.py#L86)] + +```python +openbb.crypto.ov.wfpe_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Coin to check withdrawal fees | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/price.md b/website/content/sdk/reference/crypto/price.md new file mode 100644 index 00000000000..10a1485514a --- /dev/null +++ b/website/content/sdk/reference/crypto/price.md @@ -0,0 +1,33 @@ +--- +title: price +description: OpenBB SDK Function +--- + +# price + +Returns price and confidence interval from pyth live feed. [Source: Pyth] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/pyth_model.py#L78)] + +```python +openbb.crypto.price(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol of the asset to get price and confidence interval from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[float, float, float] | Price of the asset,
Confidence level,
Previous price of the asset | +--- + diff --git a/website/content/sdk/reference/crypto/tools/apy.md b/website/content/sdk/reference/crypto/tools/apy.md new file mode 100644 index 00000000000..5d9e03b13d5 --- /dev/null +++ b/website/content/sdk/reference/crypto/tools/apy.md @@ -0,0 +1,77 @@ +--- +title: apy +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# apy + + + + +Converts apr into apy + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/tools/tools_model.py#L19)] + +```python +openbb.crypto.tools.apy(apr: float, compounding_times: int) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| apr | float | value in percentage | None | False | +| compounding_times | int | number of compounded periods in a year | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, str] | - pd.DataFrame: dataframe with results
- str: narrative version of results | +--- + + + +
+ + +Displays APY value converted from APR + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/tools/tools_view.py#L16)] + +```python +openbb.crypto.tools.apy_chart(apr: float, compounding_times: int, narrative: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| apr | float | value in percentage | None | False | +| compounding_times | int | number of compounded periods in a year | None | False | +| narrative | str | display narrative version instead of dataframe | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/crypto/tools/il.md b/website/content/sdk/reference/crypto/tools/il.md new file mode 100644 index 00000000000..7c11d0e5786 --- /dev/null +++ b/website/content/sdk/reference/crypto/tools/il.md @@ -0,0 +1,81 @@ +--- +title: il +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# il + + + + +Calculates Impermanent Loss in a custom liquidity pool + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/tools/tools_model.py#L57)] + +```python +openbb.crypto.tools.il(price_changeA: float, price_changeB: float, proportion: float, initial_pool_value: float) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| price_changeA | float | price change of crypto A in percentage | None | False | +| price_changeB | float | price change of crypto B in percentage | None | False | +| proportion | float | percentage of first token in pool | None | False | +| initial_pool_value | float | initial value that pool contains | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, str] | - pd.DataFrame: dataframe with results
- str: narrative version of results | +--- + + + +
+ + +Displays Impermanent Loss in a custom liquidity pool + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/tools/tools_view.py#L56)] + +```python +openbb.crypto.tools.il_chart(price_changeA: int, price_changeB: int, proportion: int, initial_pool_value: int, narrative: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| price_changeA | float | price change of crypto A in percentage | None | False | +| price_changeB | float | price change of crypto B in percentage | None | False | +| proportion | float | percentage of first token in pool | None | False | +| initial_pool_value | float | initial value that pool contains | None | False | +| narrative | str | display narrative version instead of dataframe | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/bgod.md b/website/content/sdk/reference/econometrics/bgod.md new file mode 100644 index 00000000000..a6fce53b833 --- /dev/null +++ b/website/content/sdk/reference/econometrics/bgod.md @@ -0,0 +1,76 @@ +--- +title: bgod +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# bgod + + + + +Calculate test statistics for autocorrelation + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L537)] + +```python +openbb.econometrics.bgod(model: pd.DataFrame, lags: int = 3) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| model | OLS Model | OLS model that has been fit. | None | False | +| lags | int | The amount of lags. | 3 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Test results from the Breusch-Godfrey Test | +--- + + + + + + +Show Breusch-Godfrey autocorrelation test + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_view.py#L141)] + +```python +openbb.econometrics.bgod_chart(model: statsmodels.regression.linear_model.RegressionResultsWrapper, lags: int = 3, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| model | OLS Model | OLS model that has been fit. | None | False | +| lags | int | The amount of lags included. | 3 | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/bols.md b/website/content/sdk/reference/econometrics/bols.md new file mode 100644 index 00000000000..cb118b1471c --- /dev/null +++ b/website/content/sdk/reference/econometrics/bols.md @@ -0,0 +1,34 @@ +--- +title: bols +description: OpenBB SDK Function +--- + +# bols + +The between estimator is an alternative, usually less efficient estimator, can can be used to + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L321)] + +```python +openbb.econometrics.bols(Y: pd.DataFrame, X: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable. | None | True | +| data | dict | A dictionary containing the datasets. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DataFrame, Any, List[Any], Any] | The dataset used,
Dependent variable,
Independent variable,
Between OLS model. | +--- + diff --git a/website/content/sdk/reference/econometrics/bpag.md b/website/content/sdk/reference/econometrics/bpag.md new file mode 100644 index 00000000000..d707c6870b0 --- /dev/null +++ b/website/content/sdk/reference/econometrics/bpag.md @@ -0,0 +1,74 @@ +--- +title: bpag +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# bpag + + + + +Calculate test statistics for heteroscedasticity + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L562)] + +```python +openbb.econometrics.bpag(model: statsmodels.regression.linear_model.RegressionResultsWrapper) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| model | OLS Model | Model containing residual values. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Test results from the Breusch-Pagan Test | +--- + + + + + + +Show Breusch-Pagan heteroscedasticity test + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_view.py#L182)] + +```python +openbb.econometrics.bpag_chart(model: statsmodels.regression.linear_model.RegressionResultsWrapper, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| model | OLS Model | OLS model that has been fit. | None | False | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/clean.md b/website/content/sdk/reference/econometrics/clean.md new file mode 100644 index 00000000000..22c5a977bc4 --- /dev/null +++ b/website/content/sdk/reference/econometrics/clean.md @@ -0,0 +1,36 @@ +--- +title: clean +description: OpenBB SDK Function +--- + +# clean + +Clean up NaNs from the dataset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_model.py#L65)] + +```python +openbb.econometrics.clean(dataset: pd.DataFrame, fill: str = "", drop: str = "", limit: Optional[int] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to clean | None | False | +| fill | str | The method of filling NaNs. Choose from:
rfill, cfill, rbfill, cbfill, rffill, cffill | | True | +| drop | str | The method of dropping NaNs. Choose from:
rdrop, cdrop | | True | +| limit | int | The maximum limit you wish to apply that can be forward or backward filled | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with cleaned up data | +--- + diff --git a/website/content/sdk/reference/econometrics/coint.md b/website/content/sdk/reference/econometrics/coint.md new file mode 100644 index 00000000000..32b001d245a --- /dev/null +++ b/website/content/sdk/reference/econometrics/coint.md @@ -0,0 +1,78 @@ +--- +title: coint +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# coint + + + + +Calculate cointegration tests between variable number of input series + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_model.py#L249)] + +```python +openbb.econometrics.coint(datasets: pd.Series, return_z: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| datasets | pd.Series | Input series to test cointegration for | None | False | +| return_z | bool | Flag to return the z data to plot | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame,Dict] | Dataframe with results of cointegration tests or a Dict of the z results | +--- + + + + + + +Estimates long-run and short-run cointegration relationship for series y and x and apply + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_view.py#L314)] + +```python +openbb.econometrics.coint_chart(datasets: pd.Series, significant: bool = False, plot: bool = True, export: str = "", external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| datasets | pd.Series | Variable number of series to test for cointegration | None | False | +| significant | float | Show only companies that have p-values lower than this percentage | False | True | +| plot | bool | Whether you wish to plot the z-values of all pairs. | True | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/comparison.md b/website/content/sdk/reference/econometrics/comparison.md new file mode 100644 index 00000000000..e77fe23912b --- /dev/null +++ b/website/content/sdk/reference/econometrics/comparison.md @@ -0,0 +1,34 @@ +--- +title: comparison +description: OpenBB SDK Function +--- + +# comparison + +Compare regression results between Panel Data regressions. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L447)] + +```python +openbb.econometrics.comparison(regressions: Dict, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regressions | Dict | Dictionary with regression results. | None | False | +| export | str | Format to export data | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Returns a PanelModelComparison which shows an overview of the different regression results. | +--- + diff --git a/website/content/sdk/reference/econometrics/dwat.md b/website/content/sdk/reference/econometrics/dwat.md new file mode 100644 index 00000000000..b5fd7517208 --- /dev/null +++ b/website/content/sdk/reference/econometrics/dwat.md @@ -0,0 +1,94 @@ +--- +title: dwat +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# dwat + + + + +Calculate test statistics for Durbin Watson autocorrelation + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L496)] + +```python +openbb.econometrics.dwat(model: statsmodels.regression.linear_model.RegressionResultsWrapper) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| model | statsmodels.regression.linear_model.RegressionResultsWrapper | Previously fit statsmodels OLS. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| float | Test statistic of the Durbin Watson test. | +--- + +## Examples +SDK Snippet: +```python +from openbb_terminal.sdk import openbb +df = openbb.econometrics.load("wage_panel") +Y, X = df["lwage"], df[["exper","educ"]] +model = openbb.econometrics.ols(Y,X) +durbin_watson_value = openbb.econometrics.dwat(model) +``` + +Result: +```python +0.96 +``` + +--- + + + + + + +Show Durbin-Watson autocorrelation tests + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_view.py#L81)] + +```python +openbb.econometrics.dwat_chart(model: statsmodels.regression.linear_model.RegressionResultsWrapper, dependent_variable: pd.Series, plot: bool = True, export: str = "", external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| model | OLS Model | A fit statsmodels OLS model. | None | False | +| dependent_variable | pd.Series | The dependent variable for plotting | None | False | +| plot | bool | Whether to plot the residuals | True | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/fdols.md b/website/content/sdk/reference/econometrics/fdols.md new file mode 100644 index 00000000000..7fcc6216ac3 --- /dev/null +++ b/website/content/sdk/reference/econometrics/fdols.md @@ -0,0 +1,34 @@ +--- +title: fdols +description: OpenBB SDK Function +--- + +# fdols + +First differencing is an alternative to using fixed effects when there might be correlation. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L409)] + +```python +openbb.econometrics.fdols(Y: pd.DataFrame, X: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable. | None | True | +| data | dict | A dictionary containing the datasets. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DataFrame, Any, List[Any], Any] | The dataset used,
Dependent variable,
Independent variable,
First Difference OLS model | +--- + diff --git a/website/content/sdk/reference/econometrics/fe.md b/website/content/sdk/reference/econometrics/fe.md new file mode 100644 index 00000000000..09d61f9eaa7 --- /dev/null +++ b/website/content/sdk/reference/econometrics/fe.md @@ -0,0 +1,36 @@ +--- +title: fe +description: OpenBB SDK Function +--- + +# fe + +When effects are correlated with the regressors the RE and BE estimators are not consistent. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L358)] + +```python +openbb.econometrics.fe(Y: pd.DataFrame, X: pd.DataFrame, entity_effects: bool = False, time_effects: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable. | None | True | +| data | dict | A dictionary containing the datasets. | None | True | +| entity_effects | bool | Whether to include entity effects | False | True | +| time_effects | bool | Whether to include time effects | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DataFrame, Any, List[Any], Any] | The dataset used,
Dependent variable,
Independent variable,
PanelOLS model with Fixed Effects | +--- + diff --git a/website/content/sdk/reference/econometrics/get_regression_data.md b/website/content/sdk/reference/econometrics/get_regression_data.md new file mode 100644 index 00000000000..d987c3be436 --- /dev/null +++ b/website/content/sdk/reference/econometrics/get_regression_data.md @@ -0,0 +1,35 @@ +--- +title: get_regression_data +description: OpenBB SDK Function +--- + +# get_regression_data + +This function creates a DataFrame with the required regression data as + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L114)] + +```python +openbb.econometrics.get_regression_data(regression_variables: List[tuple], data: Dict[str, pd.DataFrame], regression_type: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable. | None | False | +| data | dict | A dictionary containing the datasets. | None | False | +| regression_type | str | The type of regression that is executed. | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DataFrame, Any, List[Any]] | The dataset used,
Dependent variable,
Independent variable,
OLS model. | +--- + diff --git a/website/content/sdk/reference/econometrics/granger.md b/website/content/sdk/reference/econometrics/granger.md new file mode 100644 index 00000000000..fd68b2badd5 --- /dev/null +++ b/website/content/sdk/reference/econometrics/granger.md @@ -0,0 +1,79 @@ +--- +title: granger +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# granger + + + + +Calculate granger tests + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_model.py#L210)] + +```python +openbb.econometrics.granger(dependent_series: pd.Series, independent_series: pd.Series, lags: int = 3) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dependent_series | Series | The series you want to test Granger Causality for. | None | False | +| independent_series | Series | The series that you want to test whether it Granger-causes time_series_y | None | False | +| lags | int | The amount of lags for the Granger test. By default, this is set to 3. | 3 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary containing results of Granger test | +--- + + + + + + +Show granger tests + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_view.py#L247)] + +```python +openbb.econometrics.granger_chart(dependent_series: pd.Series, independent_series: pd.Series, lags: int = 3, confidence_level: float = 0.05, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dependent_series | Series | The series you want to test Granger Causality for. | None | False | +| independent_series | Series | The series that you want to test whether it Granger-causes dependent_series | None | False | +| lags | int | The amount of lags for the Granger test. By default, this is set to 3. | 3 | True | +| confidence_level | float | The confidence level you wish to use. By default, this is set to 0.05. | 0.05 | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/load.md b/website/content/sdk/reference/econometrics/load.md new file mode 100644 index 00000000000..c41785300c7 --- /dev/null +++ b/website/content/sdk/reference/econometrics/load.md @@ -0,0 +1,35 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load custom file into dataframe. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/common_model.py#L53)] + +```python +openbb.econometrics.load(file: str, data_files: Optional[Dict[Any, Any]] = None, data_examples: Optional[Dict[Any, Any]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| file | str | Path to file | None | False | +| data_files | dict | Contains all available data files within the Export folder | None | True | +| data_examples | dict | Contains all available examples from Statsmodels | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with custom data | +--- + diff --git a/website/content/sdk/reference/econometrics/norm.md b/website/content/sdk/reference/econometrics/norm.md new file mode 100644 index 00000000000..c5d3f42a895 --- /dev/null +++ b/website/content/sdk/reference/econometrics/norm.md @@ -0,0 +1,78 @@ +--- +title: norm +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# norm + + + + +The distribution of returns and generate statistics on the relation to the normal curve. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_model.py#L113)] + +```python +openbb.econometrics.norm(data: pd.Series) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | A series or column of a DataFrame to test normality for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing statistics of normality | +--- + + + + + + +Determine the normality of a timeseries. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_view.py#L129)] + +```python +openbb.econometrics.norm_chart(data: pd.Series, dataset: str = "", column: str = "", plot: bool = True, export: str = "", external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series of custom data | None | False | +| dataset | str | Dataset name | | True | +| column | str | Column for y data | | True | +| plot | bool | Whether you wish to plot a histogram | True | True | +| export | str | Format to export data. | | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/ols.md b/website/content/sdk/reference/econometrics/ols.md new file mode 100644 index 00000000000..4c51e62904a --- /dev/null +++ b/website/content/sdk/reference/econometrics/ols.md @@ -0,0 +1,75 @@ +--- +title: ols +description: OpenBB SDK Function +--- + +# ols + +Performs an OLS regression on timeseries data. [Source: Statsmodels] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L178)] + +```python +openbb.econometrics.ols(Y: pd.DataFrame, X: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| Y | pd.DataFrame | Dependent variable series. | None | False | +| X | pd.DataFrame | Dataframe of independent variables series. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| statsmodels.regression.linear_model.RegressionResultsWrapper | Regression model wrapper from statsmodels. | +--- + +## Examples +SDK Snippet: +```python +import openbb_terminal.sdk as openbb +df = openbb.econometrics.load("wage_panel") +OLS_model = openbb.econometrics.OLS(df["lwage"], df[["educ", "exper", "expersq"]]) +print(OLS_model.summary())` +``` + +Results: +```python + OLS Regression Results +======================================================================================= +Dep. Variable: lwage R-squared (uncentered): 0.920 +Model: OLS Adj. R-squared (uncentered): 0.919 +Method: Least Squares F-statistic: 1.659e+04 +Date: Thu, 10 Nov 2022 Prob (F-statistic): 0.00 +Time: 15:28:11 Log-Likelihood: -3091.3 +No. Observations: 4360 AIC: 6189. +Df Residuals: 4357 BIC: 6208. +Df Model: 3 +Covariance Type: nonrobust +============================================================================== + coef std err t P>|t| [0.025 0.975] +------------------------------------------------------------------------------ +educ 0.0986 0.002 39.879 0.000 0.094 0.103 +exper 0.1018 0.009 10.737 0.000 0.083 0.120 +expersq -0.0034 0.001 -4.894 0.000 -0.005 -0.002 +============================================================================== +Omnibus: 1249.642 Durbin-Watson: 0.954 +Prob(Omnibus): 0.000 Jarque-Bera (JB): 9627.436 +Skew: -1.152 Prob(JB): 0.00 +Kurtosis: 9.905 Cond. No. 86.4 +============================================================================== +Notes: +[1] R² is computed without centering (uncentered) since the model does not contain a constant. +[2] Standard Errors assume that the covariance matrix of the errors is correctly specified. +``` + +--- + diff --git a/website/content/sdk/reference/econometrics/options.md b/website/content/sdk/reference/econometrics/options.md new file mode 100644 index 00000000000..0dc240ae87f --- /dev/null +++ b/website/content/sdk/reference/econometrics/options.md @@ -0,0 +1,76 @@ +--- +title: options +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# options + + + + +Obtain columns-dataset combinations from loaded in datasets that can be used in other commands + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_model.py#L23)] + +```python +openbb.econometrics.options(datasets: Dict[str, pd.DataFrame], dataset_name: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| datasets | dict | The available datasets. | None | False | +| dataset_name | str | The dataset you wish to show the options for. | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[Union[str, Any], pd.DataFrame] | A dictionary with a DataFrame for each option. With dataset_name set, only shows one
options table. | +--- + + + +
+ + +Plot custom data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_view.py#L27)] + +```python +openbb.econometrics.options_chart(datasets: Dict[str, pd.DataFrame], dataset_name: str = None, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| datasets | dict | The loaded in datasets | None | False | +| dataset_name | str | The name of the dataset you wish to show options for | None | True | +| export | str | Format to export image | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/panel.md b/website/content/sdk/reference/econometrics/panel.md new file mode 100644 index 00000000000..194e5f111c7 --- /dev/null +++ b/website/content/sdk/reference/econometrics/panel.md @@ -0,0 +1,128 @@ +--- +title: panel +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# panel + + + + +Based on the regression type, this function decides what regression to run. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L34)] + +```python +openbb.econometrics.panel(Y: pd.DataFrame, X: pd.DataFrame, regression_type: str = "OLS", entity_effects: bool = False, time_effects: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| Y | pd.DataFrame | Dataframe containing the dependent variable. | None | False | +| X | pd.DataFrame | Dataframe containing the independent variables. | None | False | +| regression_type | str | The type of regression you wish to execute. | OLS | True | +| entity_effects | bool | Whether to apply Fixed Effects on entities. | False | True | +| time_effects | bool | Whether to apply Fixed Effects on time. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Any | A regression model | +--- + +## Examples +SDK Snippet: +```python +from openbb_terminal.sdk import openbb +df = openbb.econometrics.load("wage_panel") +df = df.set_index(["nr","year"]) +X = df[["exper","educ","union"]] +Y = df["lwage"] +pooled_ols_model = openbb.econometrics.panel(Y,X,"POLS") +print(pooled_ols_model.summary) +``` + +Results: +```python + PooledOLS Estimation Summary +================================================================================ +Dep. Variable: lwage R-squared: 0.1634 +Estimator: PooledOLS R-squared (Between): 0.1686 +No. Observations: 4360 R-squared (Within): 0.1575 +Date: Sun, Nov 13 2022 R-squared (Overall): 0.1634 +Time: 13:04:02 Log-likelihood -3050.4 +Cov. Estimator: Unadjusted + F-statistic: 283.68 +Entities: 545 P-value 0.0000 +Avg Obs: 8.0000 Distribution: F(3,4356) +Min Obs: 8.0000 +Max Obs: 8.0000 F-statistic (robust): 283.68 + P-value 0.0000 +Time periods: 8 Distribution: F(3,4356) +Avg Obs: 545.00 +Min Obs: 545.00 +Max Obs: 545.00 + Parameter Estimates +============================================================================== + Parameter Std. Err. T-stat P-value Lower CI Upper CI +------------------------------------------------------------------------------ +const -0.0308 0.0620 -0.4965 0.6196 -0.1523 0.0908 +exper 0.0561 0.0028 20.220 0.0000 0.0507 0.0616 +educ 0.1080 0.0045 24.034 0.0000 0.0992 0.1168 +union 0.1777 0.0172 10.344 0.0000 0.1441 0.2114 +============================================================================== +``` + +--- + + + + + + +Based on the regression type, this function decides what regression to run. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_view.py#L23)] + +```python +openbb.econometrics.panel_chart(Y: pd.DataFrame, X: pd.DataFrame, regression_type: str = "OLS", entity_effects: bool = False, time_effects: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | dict | A dictionary containing the datasets. | None | True | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable.
each column/dataset combination. | None | True | +| regression_type | str | The type of regression you wish to execute. Choose from:
OLS, POLS, RE, BOLS, FE | OLS | True | +| entity_effects | bool | Whether to apply Fixed Effects on entities. | False | True | +| time_effects | bool | Whether to apply Fixed Effects on time. | False | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| The dataset used, the dependent variable, the independent variable and | | +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/econometrics/pols.md b/website/content/sdk/reference/econometrics/pols.md new file mode 100644 index 00000000000..acb7409261e --- /dev/null +++ b/website/content/sdk/reference/econometrics/pols.md @@ -0,0 +1,34 @@ +--- +title: pols +description: OpenBB SDK Function +--- + +# pols + +PooledOLS is just plain OLS that understands that various panel data structures. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L246)] + +```python +openbb.econometrics.pols(Y: pd.DataFrame, X: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable. | None | True | +| data | dict | A dictionary containing the datasets. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DataFrame, Any, List[Any], Any] | The dataset used,
Dependent variable,
Independent variable,
PooledOLS model | +--- + diff --git a/website/content/sdk/reference/econometrics/re.md b/website/content/sdk/reference/econometrics/re.md new file mode 100644 index 00000000000..e00b0039fcd --- /dev/null +++ b/website/content/sdk/reference/econometrics/re.md @@ -0,0 +1,34 @@ +--- +title: re +description: OpenBB SDK Function +--- + +# re + +The random effects model is virtually identical to the pooled OLS model except that is accounts for the + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/regression_model.py#L283)] + +```python +openbb.econometrics.re(Y: pd.DataFrame, X: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| regression_variables | list | The regressions variables entered where the first variable is
the dependent variable. | None | True | +| data | dict | A dictionary containing the datasets. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DataFrame, Any, List[Any], Any] | The dataset used,
Dependent variable,
Independent variable,
RandomEffects model | +--- + diff --git a/website/content/sdk/reference/econometrics/root.md b/website/content/sdk/reference/econometrics/root.md new file mode 100644 index 00000000000..79ec09b1a60 --- /dev/null +++ b/website/content/sdk/reference/econometrics/root.md @@ -0,0 +1,80 @@ +--- +title: root +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# root + + + + +Calculate test statistics for unit roots + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_model.py#L168)] + +```python +openbb.econometrics.root(data: pd.Series, fuller_reg: str = "c", kpss_reg: str = "c") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series or column of DataFrame of target variable | None | False | +| fuller_reg | str | Type of regression of ADF test | c | True | +| kpss_reg | str | Type of regression for KPSS test | c | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with results of ADF test and KPSS test | +--- + + + + + + +Determine the normality of a timeseries. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/econometrics/econometrics_view.py#L197)] + +```python +openbb.econometrics.root_chart(data: pd.Series, dataset: str = "", column: str = "", fuller_reg: str = "c", kpss_reg: str = "c", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series of target variable | None | False | +| dataset | str | Name of the dataset | | True | +| column | str | Name of the column | | True | +| fuller_reg | str | Type of regression of ADF test. Choose c, ct, ctt, or nc | c | True | +| kpss_reg | str | Type of regression for KPSS test. Choose c or ct | c | True | +| export | str | Format to export data. | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/available_indices.md b/website/content/sdk/reference/economy/available_indices.md new file mode 100644 index 00000000000..b0373beebe8 --- /dev/null +++ b/website/content/sdk/reference/economy/available_indices.md @@ -0,0 +1,30 @@ +--- +title: available_indices +description: OpenBB SDK Function +--- + +# available_indices + +Get available indices + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/yfinance_model.py#L660)] + +```python +openbb.economy.available_indices() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Dict[str, str]] | Dictionary with available indices and respective detail | +--- + diff --git a/website/content/sdk/reference/economy/bigmac.md b/website/content/sdk/reference/economy/bigmac.md new file mode 100644 index 00000000000..da982e51d97 --- /dev/null +++ b/website/content/sdk/reference/economy/bigmac.md @@ -0,0 +1,76 @@ +--- +title: bigmac +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# bigmac + + + + +Display Big Mac Index for given countries + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/nasdaq_model.py#L183)] + +```python +openbb.economy.bigmac(country_codes: List[str] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country_codes | List[str] | List of country codes (ISO-3 letter country code). Codes available through economy.country_codes(). | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with Big Mac indices converted to USD equivalent. | +--- + + + + + + +Display Big Mac Index for given countries + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/nasdaq_view.py#L59)] + +```python +openbb.economy.bigmac_chart(country_codes: List[str] = None, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country_codes | List[str] | List of country codes (ISO-3 letter country code). Codes available through economy.country_codes(). | None | True | +| raw | bool | Flag to display raw data, by default False | False | True | +| export | str | Format data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/country_codes.md b/website/content/sdk/reference/economy/country_codes.md new file mode 100644 index 00000000000..1805101b573 --- /dev/null +++ b/website/content/sdk/reference/economy/country_codes.md @@ -0,0 +1,30 @@ +--- +title: country_codes +description: OpenBB SDK Function +--- + +# country_codes + +Get available country codes for Bigmac index + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/nasdaq_model.py#L125)] + +```python +openbb.economy.country_codes() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str] | List of ISO-3 letter country codes. | +--- + diff --git a/website/content/sdk/reference/economy/cpi.md b/website/content/sdk/reference/economy/cpi.md new file mode 100644 index 00000000000..973f0f908ad --- /dev/null +++ b/website/content/sdk/reference/economy/cpi.md @@ -0,0 +1,78 @@ +--- +title: cpi +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cpi + + + + +Get Consumer Price Index from Alpha Vantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L182)] + +```python +openbb.economy.cpi(interval: str = "m", start_year: int = 2010) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Interval for data. Either "m" or "s" for monthly or semiannual | m | True | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of CPI | +--- + + + + + + +Display US consumer price index (CPI) from AlphaVantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L257)] + +```python +openbb.economy.cpi_chart(interval: str = "m", start_year: int = 2010, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Interval for GDP. Either "m" or "s" | m | True | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | +| raw | bool | Flag to show raw data, by default False | False | True | +| export | str | Format to export data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/currencies.md b/website/content/sdk/reference/economy/currencies.md new file mode 100644 index 00000000000..1cf639087ec --- /dev/null +++ b/website/content/sdk/reference/economy/currencies.md @@ -0,0 +1,30 @@ +--- +title: currencies +description: OpenBB SDK Function +--- + +# currencies + +Scrape data for global currencies + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/wsj_model.py#L242)] + +```python +openbb.economy.currencies() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing name, price, net change and percent change | +--- + diff --git a/website/content/sdk/reference/economy/events.md b/website/content/sdk/reference/economy/events.md new file mode 100644 index 00000000000..3d36d83e233 --- /dev/null +++ b/website/content/sdk/reference/economy/events.md @@ -0,0 +1,47 @@ +--- +title: events +description: OpenBB SDK Function +--- + +# events + +Get economic calendar for countries between specified dates + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/nasdaq_model.py#L21)] + +```python +openbb.economy.events(countries: Union[List[str], str] = "", start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| countries | [List[str],str] | List of countries to include in calendar. Empty returns all | | True | +| start_date | str | Start date for calendar | None | True | +| end_date | str | End date for calendar | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Economic calendar | +--- + +## Examples +Get todays economic calendar for the United States + +To get multiple countries for a given date, pass the same start and end date as well as +a list of countries +```python +from openbb_terminal.sdk import openbb +calendar = openbb.economy.events("United States") +``` + +--- + diff --git a/website/content/sdk/reference/economy/fred.md b/website/content/sdk/reference/economy/fred.md new file mode 100644 index 00000000000..a1e863123b4 --- /dev/null +++ b/website/content/sdk/reference/economy/fred.md @@ -0,0 +1,81 @@ +--- +title: fred +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# fred + + + + +Get Series data. [Source: FRED] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/fred_model.py#L208)] + +```python +openbb.economy.fred(series_ids: List[str], start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| series_ids | List[str] | Series ID to get data from | None | False | +| start_date | str | Start date to get data from, format yyyy-mm-dd | None | True | +| end_date | str | End data to get from, format yyyy-mm-dd | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Series data | +--- + + + + + + +Display (multiple) series from https://fred.stlouisfed.org. [Source: FRED] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/fred_view.py#L76)] + +```python +openbb.economy.fred_chart(series_ids: List[str], start_date: str = None, end_date: str = None, limit: int = 10, get_data: bool = False, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| series_ids | List[str] | FRED Series ID from https://fred.stlouisfed.org. For multiple series use: series1,series2,series3 | None | False | +| start_date | str | Starting date (YYYY-MM-DD) of data | None | True | +| end_date | str | Ending date (YYYY-MM-DD) of data | None | True | +| limit | int | Number of data points to display. | 10 | True | +| raw | bool | Output only raw data | False | True | +| export | str | Export data to csv,json,xlsx or png,jpg,pdf,svg file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/fred_ids.md b/website/content/sdk/reference/economy/fred_ids.md new file mode 100644 index 00000000000..7376bc23042 --- /dev/null +++ b/website/content/sdk/reference/economy/fred_ids.md @@ -0,0 +1,34 @@ +--- +title: fred_ids +description: OpenBB SDK Function +--- + +# fred_ids + +Get Series IDs. [Source: FRED] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/fred_model.py#L126)] + +```python +openbb.economy.fred_ids(search_query: str, limit: int = -1) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| search_query | str | Text query to search on fred series notes database | None | False | +| limit | int | Maximum number of series IDs to output | -1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Dataframe with series IDs and titles | +--- + diff --git a/website/content/sdk/reference/economy/fred_notes.md b/website/content/sdk/reference/economy/fred_notes.md new file mode 100644 index 00000000000..e4f10c5cf59 --- /dev/null +++ b/website/content/sdk/reference/economy/fred_notes.md @@ -0,0 +1,34 @@ +--- +title: fred_notes +description: OpenBB SDK Function +--- + +# fred_notes + +Get series notes. [Source: FRED] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/fred_model.py#L68)] + +```python +openbb.economy.fred_notes(search_query: str, limit: int = -1) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| search_query | str | Text query to search on fred series notes database | None | False | +| limit | int | Maximum number of series notes to display | -1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of matched series | +--- + diff --git a/website/content/sdk/reference/economy/future.md b/website/content/sdk/reference/economy/future.md new file mode 100644 index 00000000000..8bcc3eac4ea --- /dev/null +++ b/website/content/sdk/reference/economy/future.md @@ -0,0 +1,35 @@ +--- +title: future +description: OpenBB SDK Function +--- + +# future + +Get futures data. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/finviz_model.py#L187)] + +```python +openbb.economy.future(future_type: str = "Indices", sortby: str = "ticker", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| future_type | str | From the following: Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies | Indices | True | +| sortby | str | Column to sort by | ticker | True | +| ascend | bool | Flag to sort in ascending order | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies | +--- + diff --git a/website/content/sdk/reference/economy/futures.md b/website/content/sdk/reference/economy/futures.md new file mode 100644 index 00000000000..5ddb01ec6fd --- /dev/null +++ b/website/content/sdk/reference/economy/futures.md @@ -0,0 +1,50 @@ +--- +title: futures +description: OpenBB SDK Function +--- + +# futures + +Get futures data. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/sdk_helpers.py#L8)] + +```python +openbb.economy.futures(source: Any = "WSJ", future_type: str = "Indices") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| source | str | Data source for futures data. From the following: WSJ, Finviz | WSJ | True | +| future_type | str | (Finviz only) Future type to get. Can be: Indices, Energy, Metals, Meats, Grains, Softs, Bonds, Currencies. | Indices | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of futures data. | +--- + +## Examples + +To sort by the largest percent change: +```python +from openbb_terminal.sdk import openbb +wsj_futures = openbb.economy.futures() +``` + + +FinViz provides different options for future types. We can get Meats with the following command: +```python +futures_sorted = openbb.economy.futures().sort_values(by="%Chg", ascending=False) +``` + +--- + diff --git a/website/content/sdk/reference/economy/gdp.md b/website/content/sdk/reference/economy/gdp.md new file mode 100644 index 00000000000..c0cc660fb72 --- /dev/null +++ b/website/content/sdk/reference/economy/gdp.md @@ -0,0 +1,78 @@ +--- +title: gdp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gdp + + + + +Get annual or quarterly Real GDP for US + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L44)] + +```python +openbb.economy.gdp(interval: str = "q", start_year: int = 2010) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Interval for GDP, by default "a" for annual, by default "q" | q | True | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of GDP | +--- + + + + + + +Display US GDP from AlphaVantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L88)] + +```python +openbb.economy.gdp_chart(interval: str = "q", start_year: int = 2010, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Interval for GDP. Either "a" or "q", by default "q" | q | True | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | +| raw | bool | Flag to show raw data, by default False | False | True | +| export | str | Format to export data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/gdpc.md b/website/content/sdk/reference/economy/gdpc.md new file mode 100644 index 00000000000..45fe6a5112d --- /dev/null +++ b/website/content/sdk/reference/economy/gdpc.md @@ -0,0 +1,76 @@ +--- +title: gdpc +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gdpc + + + + +Real GDP per Capita for United States + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L96)] + +```python +openbb.economy.gdpc(start_year: int = 2010) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of GDP per Capita | +--- + + + + + + +Display US GDP per Capita from AlphaVantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L146)] + +```python +openbb.economy.gdpc_chart(start_year: int = 2010, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | +| raw | bool | Flag to show raw data, by default False | False | True | +| export | str | Format to export data, by default | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/get_groups.md b/website/content/sdk/reference/economy/get_groups.md new file mode 100644 index 00000000000..2c74d3cb60d --- /dev/null +++ b/website/content/sdk/reference/economy/get_groups.md @@ -0,0 +1,29 @@ +--- +title: get_groups +description: OpenBB SDK Function +--- + +# get_groups + +Get group available + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/finviz_model.py#L60)] + +```python +openbb.economy.get_groups() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/economy/glbonds.md b/website/content/sdk/reference/economy/glbonds.md new file mode 100644 index 00000000000..e5e40fc3fbe --- /dev/null +++ b/website/content/sdk/reference/economy/glbonds.md @@ -0,0 +1,30 @@ +--- +title: glbonds +description: OpenBB SDK Function +--- + +# glbonds + +Scrape data for global bonds + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/wsj_model.py#L204)] + +```python +openbb.economy.glbonds() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing name, coupon rate, yield and change in yield | +--- + diff --git a/website/content/sdk/reference/economy/index_cmd.md b/website/content/sdk/reference/economy/index_cmd.md new file mode 100644 index 00000000000..79146caf33d --- /dev/null +++ b/website/content/sdk/reference/economy/index_cmd.md @@ -0,0 +1,87 @@ +--- +title: index +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# index + + + + +Get data on selected indices over time [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/yfinance_model.py#L672)] + +```python +openbb.economy.index(indices: list, interval: str = "1d", start_date: int = None, end_date: int = None, column: str = "Adj Close", returns: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| indices | list | A list of indices to get data. Available indices can be accessed through economy.available_indices(). | None | False | +| interval | str | Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo
Intraday data cannot extend last 60 days | 1d | True | +| start_date | str | The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. | None | True | +| end_date | str | The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. | None | True | +| column | str | Which column to load in, by default "Adjusted Close". | Adj Close | True | +| returns | bool | Flag to show cumulative returns on index | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Dataframe with historical data on selected indices. | +--- + + + +
+ + +Load (and show) the selected indices over time [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/yfinance_view.py#L30)] + +```python +openbb.economy.index_chart(indices: list, interval: str = "1d", start_date: int = None, end_date: int = None, column: str = "Adj Close", returns: bool = False, raw: bool = False, external_axes: Optional[List[axes]] = None, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| indices | list | A list of indices you wish to load (and plot).
Available indices can be accessed through economy.available_indices(). | None | False | +| interval | str | Valid intervals: 1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo
Intraday data cannot extend last 60 days | 1d | True | +| start_date | str | The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. | None | True | +| end_date | str | The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. | None | True | +| column | str | Which column to load in, by default this is the Adjusted Close. | Adj Close | True | +| returns | bool | Flag to show cumulative returns on index | False | True | +| raw | bool | Whether to display the raw output. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | +| export | str | Export data to csv,json,xlsx or png,jpg,pdf,svg file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Plots the Series. | | +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/economy/indices.md b/website/content/sdk/reference/economy/indices.md new file mode 100644 index 00000000000..6110f8599b8 --- /dev/null +++ b/website/content/sdk/reference/economy/indices.md @@ -0,0 +1,30 @@ +--- +title: indices +description: OpenBB SDK Function +--- + +# indices + +Get the top US indices + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/wsj_model.py#L16)] + +```python +openbb.economy.indices() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing name, price, net change and percent change | +--- + diff --git a/website/content/sdk/reference/economy/inf.md b/website/content/sdk/reference/economy/inf.md new file mode 100644 index 00000000000..23d522b1432 --- /dev/null +++ b/website/content/sdk/reference/economy/inf.md @@ -0,0 +1,76 @@ +--- +title: inf +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# inf + + + + +Get historical Inflation for United States from AlphaVantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L139)] + +```python +openbb.economy.inf(start_year: int = 2010) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of inflation rates | +--- + + + + + + +Display US Inflation from AlphaVantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L202)] + +```python +openbb.economy.inf_chart(start_year: int = 2010, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | +| raw | bool | Flag to show raw data, by default False | False | True | +| export | str | Format to export data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/macro.md b/website/content/sdk/reference/economy/macro.md new file mode 100644 index 00000000000..706686e9cf8 --- /dev/null +++ b/website/content/sdk/reference/economy/macro.md @@ -0,0 +1,87 @@ +--- +title: macro +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# macro + + + + +This functions groups the data queried from the EconDB database [Source: EconDB] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_model.py#L656)] + +```python +openbb.economy.macro(parameters: list = None, countries: list = None, transform: str = "", start_date: str = "1900-01-01", end_date: str = None, symbol: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| parameters | list | The type of data you wish to download. Available parameters can be accessed through economy.macro_parameters(). | None | True | +| countries | list | The selected country or countries. Available countries can be accessed through economy.macro_countries(). | None | True | +| transform | str | The selected transform. Available transforms can be accessed through get_macro_transform(). | | True | +| start_date | str | The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. | 1900-01-01 | True | +| end_date | str | The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. | None | True | +| symbol | str | In what currency you wish to convert all values. | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict[Any, Dict[Any, Any]], str] | A DataFrame with the requested macro data of all chosen countries,
A dictionary containing the units of each country's parameter (e.g. EUR),
A string denomination which can be Trillions, Billions, Millions, Thousands | +--- + + + +
+ + +Show the received macro data about a company [Source: EconDB] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_view.py#L25)] + +```python +openbb.economy.macro_chart(parameters: list = None, countries: list = None, transform: str = "", start_date: str = "1900-01-01", end_date: str = None, symbol: str = "", raw: bool = False, external_axes: Optional[List[axes]] = None, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| parameters | list | The type of data you wish to display. Available parameters can be accessed through get_macro_parameters(). | None | True | +| countries | list | The selected country or countries. Available countries can be accessed through get_macro_countries(). | None | True | +| transform | str | select data transformation from:
'' - no transformation
'TPOP' - total percentage change on period,
'TOYA' - total percentage since 1 year ago,
'TUSD' - level USD,
'TPGP' - Percentage of GDP,
'TNOR' - Start = 100 | | True | +| start_date | str | The starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. | 1900-01-01 | True | +| end_date | str | The end date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. | None | True | +| symbol | str | In what currency you wish to convert all values. | | True | +| raw | bool | Whether to display the raw output. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | +| export | str | Export data to csv,json,xlsx or png,jpg,pdf,svg file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Plots the Series. | | +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/economy/macro_countries.md b/website/content/sdk/reference/economy/macro_countries.md new file mode 100644 index 00000000000..ae6deb1b7c0 --- /dev/null +++ b/website/content/sdk/reference/economy/macro_countries.md @@ -0,0 +1,30 @@ +--- +title: macro_countries +description: OpenBB SDK Function +--- + +# macro_countries + +This function returns the available countries and respective currencies. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_model.py#L644)] + +```python +openbb.economy.macro_countries() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, str] | A dictionary with the available countries and respective currencies. | +--- + diff --git a/website/content/sdk/reference/economy/macro_parameters.md b/website/content/sdk/reference/economy/macro_parameters.md new file mode 100644 index 00000000000..5baa5fa7814 --- /dev/null +++ b/website/content/sdk/reference/economy/macro_parameters.md @@ -0,0 +1,30 @@ +--- +title: macro_parameters +description: OpenBB SDK Function +--- + +# macro_parameters + +This function returns the available macro parameters with detail. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_model.py#L632)] + +```python +openbb.economy.macro_parameters() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Dict[str, str]] | A dictionary with the available macro parameters. | +--- + diff --git a/website/content/sdk/reference/economy/overview.md b/website/content/sdk/reference/economy/overview.md new file mode 100644 index 00000000000..41c841dbf2d --- /dev/null +++ b/website/content/sdk/reference/economy/overview.md @@ -0,0 +1,30 @@ +--- +title: overview +description: OpenBB SDK Function +--- + +# overview + +Scrape data for market overview + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/wsj_model.py#L62)] + +```python +openbb.economy.overview() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing name, price, net change and percent change | +--- + diff --git a/website/content/sdk/reference/economy/perfmap.md b/website/content/sdk/reference/economy/perfmap.md new file mode 100644 index 00000000000..de8567316b0 --- /dev/null +++ b/website/content/sdk/reference/economy/perfmap.md @@ -0,0 +1,33 @@ +--- +title: perfmap +description: OpenBB SDK Function +--- + +# perfmap + +Opens Finviz map website in a browser. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/finviz_model.py#L42)] + +```python +openbb.economy.perfmap(period: str = "1d", map_filter: str = "sp500") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| period | str | Performance period. Available periods are 1d, 1w, 1m, 3m, 6m, 1y. | 1d | True | +| scope | str | Map filter. Available map filters are sp500, world, full, etf. | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/economy/performance.md b/website/content/sdk/reference/economy/performance.md new file mode 100644 index 00000000000..9169e3df527 --- /dev/null +++ b/website/content/sdk/reference/economy/performance.md @@ -0,0 +1,35 @@ +--- +title: performance +description: OpenBB SDK Function +--- + +# performance + +Get group (sectors, industry or country) performance data. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/finviz_model.py#L112)] + +```python +openbb.economy.performance(group: str = "sector", sortby: str = "Name", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| group | str | Group by category. Available groups can be accessed through get_groups(). | sector | True | +| sortby | str | Column to sort by | Name | True | +| ascend | bool | Flag to sort in ascending order | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | dataframe with performance data | +--- + diff --git a/website/content/sdk/reference/economy/rtps.md b/website/content/sdk/reference/economy/rtps.md new file mode 100644 index 00000000000..4a435183ed0 --- /dev/null +++ b/website/content/sdk/reference/economy/rtps.md @@ -0,0 +1,72 @@ +--- +title: rtps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rtps + + + + +Get real-time performance sector data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L19)] + +```python +openbb.economy.rtps() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Real-time performance data | +--- + + + + + + +Display Real-Time Performance sector. [Source: AlphaVantage] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L27)] + +```python +openbb.economy.rtps_chart(raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| raw | bool | Output only raw data | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/search_index.md b/website/content/sdk/reference/economy/search_index.md new file mode 100644 index 00000000000..f92206457fb --- /dev/null +++ b/website/content/sdk/reference/economy/search_index.md @@ -0,0 +1,34 @@ +--- +title: search_index +description: OpenBB SDK Function +--- + +# search_index + +Search indices by keyword. [Source: FinanceDatabase] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/yfinance_model.py#L725)] + +```python +openbb.economy.search_index(keyword: list, limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| keyword | list | The keyword you wish to search for. This can include spaces. | None | False | +| limit | int | The amount of views you want to show, by default this is set to 10. | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Dataframe with the available options. | +--- + diff --git a/website/content/sdk/reference/economy/spectrum.md b/website/content/sdk/reference/economy/spectrum.md new file mode 100644 index 00000000000..96c56e4b2d3 --- /dev/null +++ b/website/content/sdk/reference/economy/spectrum.md @@ -0,0 +1,33 @@ +--- +title: spectrum +description: OpenBB SDK Function +--- + +# spectrum + +Display finviz spectrum in system viewer [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/finviz_view.py#L111)] + +```python +openbb.economy.spectrum(group: str = "sector", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| group | str | Group by category. Available groups can be accessed through get_groups(). | sector | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/economy/treasury.md b/website/content/sdk/reference/economy/treasury.md new file mode 100644 index 00000000000..1e2a6a70b9c --- /dev/null +++ b/website/content/sdk/reference/economy/treasury.md @@ -0,0 +1,85 @@ +--- +title: treasury +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# treasury + + + + +Get U.S. Treasury rates [Source: EconDB] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_model.py#L737)] + +```python +openbb.economy.treasury(instruments: list = None, maturities: list = None, frequency: str = "monthly", start_date: str = "1900-01-01", end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instruments | list | Type(s) of treasuries, nominal, inflation-adjusted (long term average) or secondary market.
Available options can be accessed through economy.treasury_maturities(). | None | True | +| maturities | list | Treasury maturities to get. Available options can be accessed through economy.treasury_maturities(). | None | True | +| frequency | str | Frequency of the data, this can be annually, monthly, weekly or daily. | monthly | True | +| start_date | str | Starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. | 1900-01-01 | True | +| end_date | str | End date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Holds data of the selected types and maturities | +--- + + + +
+ + +Display U.S. Treasury rates [Source: EconDB] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_view.py#L145)] + +```python +openbb.economy.treasury_chart(instruments: list = None, maturities: list = None, frequency: str = "monthly", start_date: str = "1900-01-01", end_date: str = None, raw: bool = False, external_axes: Optional[List[axes]] = None, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instruments | list | Type(s) of treasuries, nominal, inflation-adjusted or secondary market.
Available options can be accessed through economy.treasury_maturities(). | None | True | +| maturities | list | Treasury maturities to display. Available options can be accessed through economy.treasury_maturities(). | None | True | +| frequency | str | Frequency of the data, this can be daily, weekly, monthly or annually | monthly | True | +| start_date | str | Starting date, format "YEAR-MONTH-DAY", i.e. 2010-12-31. | 1900-01-01 | True | +| end_date | str | End date, format "YEAR-MONTH-DAY", i.e. 2020-06-05. | None | True | +| raw | bool | Whether to display the raw output. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | +| export | str | Export data to csv,json,xlsx or png,jpg,pdf,svg file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Plots the Treasury Series. | | +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/economy/treasury_maturities.md b/website/content/sdk/reference/economy/treasury_maturities.md new file mode 100644 index 00000000000..2886a5e07ae --- /dev/null +++ b/website/content/sdk/reference/economy/treasury_maturities.md @@ -0,0 +1,30 @@ +--- +title: treasury_maturities +description: OpenBB SDK Function +--- + +# treasury_maturities + +Get treasury maturity options [Source: EconDB] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/econdb_model.py#L850)] + +```python +openbb.economy.treasury_maturities() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Contains the name of the instruments and a string containing all options. | +--- + diff --git a/website/content/sdk/reference/economy/tyld.md b/website/content/sdk/reference/economy/tyld.md new file mode 100644 index 00000000000..75f8633defa --- /dev/null +++ b/website/content/sdk/reference/economy/tyld.md @@ -0,0 +1,80 @@ +--- +title: tyld +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tyld + + + + +Get historical yield for a given maturity + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L230)] + +```python +openbb.economy.tyld(interval: str = "m", maturity: str = "10y", start_date: str = "2010-01-01") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Interval for data. Can be "d","w","m" for daily, weekly or monthly, by default "m" | m | True | +| start_date | str | Start date for data. Should be in YYYY-MM-DD format, by default "2010-01-01" | 2010-01-01 | True | +| maturity | str | Maturity timeline. Can be "3mo","5y","10y" or "30y", by default "10y" | 10y | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of historical yields | +--- + + + + + + +Display historical treasury yield for given maturity + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L315)] + +```python +openbb.economy.tyld_chart(interval: str = "m", maturity: str = "10y", start_date: str = "2010-01-01", raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| interval | str | Interval for data. Can be "d","w","m" for daily, weekly or monthly, by default "m" | m | True | +| maturity | str | Maturity timeline. Can be "3mo","5y","10y" or "30y", by default "10y" | 10y | True | +| start_date | str | Start date for data. Should be in YYYY-MM-DD format, by default "2010-01-01" | 2010-01-01 | True | +| raw | bool | Flag to display raw data, by default False | False | True | +| export | str | Format to export data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/unemp.md b/website/content/sdk/reference/economy/unemp.md new file mode 100644 index 00000000000..9ec684b865d --- /dev/null +++ b/website/content/sdk/reference/economy/unemp.md @@ -0,0 +1,76 @@ +--- +title: unemp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# unemp + + + + +Get historical unemployment for United States + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_model.py#L284)] + +```python +openbb.economy.unemp(start_year: int = 2010) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of historical yields | +--- + + + + + + +Display US unemployment AlphaVantage + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/alphavantage_view.py#L377)] + +```python +openbb.economy.unemp_chart(start_year: int = 2010, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_year | int | Start year for plot, by default 2010 | 2010 | True | +| raw | bool | Flag to show raw data, by default False | False | True | +| export | str | Format to export data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/economy/usbonds.md b/website/content/sdk/reference/economy/usbonds.md new file mode 100644 index 00000000000..9e0a898909e --- /dev/null +++ b/website/content/sdk/reference/economy/usbonds.md @@ -0,0 +1,30 @@ +--- +title: usbonds +description: OpenBB SDK Function +--- + +# usbonds + +Scrape data for us bonds + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/wsj_model.py#L161)] + +```python +openbb.economy.usbonds() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing name, coupon rate, yield and change in yield | +--- + diff --git a/website/content/sdk/reference/economy/valuation.md b/website/content/sdk/reference/economy/valuation.md new file mode 100644 index 00000000000..b268bb60181 --- /dev/null +++ b/website/content/sdk/reference/economy/valuation.md @@ -0,0 +1,35 @@ +--- +title: valuation +description: OpenBB SDK Function +--- + +# valuation + +Get group (sectors, industry or country) valuation data. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/finviz_model.py#L66)] + +```python +openbb.economy.valuation(group: str = "sector", sortby: str = "Name", ascend: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| group | str | Group by category. Available groups can be accessed through get_groups(). | sector | True | +| sortby | str | Column to sort by | Name | True | +| ascend | bool | Flag to sort in ascending order | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | dataframe with valuation/performance data | +--- + diff --git a/website/content/sdk/reference/economy/ycrv.md b/website/content/sdk/reference/economy/ycrv.md new file mode 100644 index 00000000000..c53dfee1585 --- /dev/null +++ b/website/content/sdk/reference/economy/ycrv.md @@ -0,0 +1,74 @@ +--- +title: ycrv +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ycrv + + + + +Gets yield curve data from FRED + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/fred_model.py#L255)] + +```python +openbb.economy.ycrv(date: datetime.datetime = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| date | datetime | Date to get curve for. If None, gets most recent date | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, datetime] | Dataframe of yields and maturities,
Date for which the yield curve is obtained | +--- + + + +
+ + +Display yield curve based on US Treasury rates for a specified date. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/economy/fred_view.py#L187)] + +```python +openbb.economy.ycrv_chart(date: datetime.datetime = None, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, raw: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| date | datetime | Date to get yield curve for | None | True | +| external_axes | Optional[List[plt.Axes]] | External axes to plot data on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/etf/candle.md b/website/content/sdk/reference/etf/candle.md new file mode 100644 index 00000000000..681bf36e5b2 --- /dev/null +++ b/website/content/sdk/reference/etf/candle.md @@ -0,0 +1,50 @@ +--- +title: candle +description: OpenBB SDK Function +--- + +# candle + +Show candle plot of loaded ticker. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L443)] + +```python +openbb.etf.candle(symbol: str, data: pd.DataFrame = None, use_matplotlib: bool = True, intraday: bool = False, add_trend: bool = False, ma: Optional[Iterable[int]] = None, asset_type: str = "", start_date: Union[datetime.datetime, str, NoneType] = None, interval: int = 1440, end_date: Union[datetime.datetime, str, NoneType] = None, prepost: bool = False, source: str = "YahooFinance", iexrange: str = "ytd", weekly: bool = False, monthly: bool = False, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, raw: bool = False, yscale: str = "linear") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker name | None | False | +| data | pd.DataFrame | Stock dataframe | None | True | +| use_matplotlib | bool | Flag to use matplotlib instead of interactive plotly chart | True | True | +| intraday | bool | Flag for intraday data for plotly range breaks | False | True | +| add_trend | bool | Flag to add high and low trends to chart | False | True | +| ma | Tuple[int] | Moving averages to add to the candle | None | True | +| asset_type_ | str | String to include in title | None | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | +| asset_type_ | str | String to include in title | None | True | +| start_date | str or datetime | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| interval | int | Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 | 1440 | True | +| end_date | str or datetime | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| prepost | bool | Pre and After hours data | False | True | +| source | str | Source of data extracted | YahooFinance | True | +| iexrange | str | Timeframe to get IEX data. | ytd | True | +| weekly | bool | Flag to get weekly data | False | True | +| monthly | bool | Flag to get monthly data | False | True | +| raw | bool | Flag to display raw data, by default False | False | True | +| yscale | str | Linear or log for yscale | linear | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/etf/disc/mover.md b/website/content/sdk/reference/etf/disc/mover.md new file mode 100644 index 00000000000..2a1f78aec55 --- /dev/null +++ b/website/content/sdk/reference/etf/disc/mover.md @@ -0,0 +1,33 @@ +--- +title: mover +description: OpenBB SDK Function +--- + +# mover + +Scrape data for top etf movers. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/discovery/wsj_model.py#L15)] + +```python +openbb.etf.disc.mover(sort_type: str = "gainers", export: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sort_type | str | Data to get. Can be "gainers", "decliners" or "active" | gainers | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Datafame containing the name, price, change and the volume of the etf | +--- + diff --git a/website/content/sdk/reference/etf/etf_by_category.md b/website/content/sdk/reference/etf/etf_by_category.md new file mode 100644 index 00000000000..fb7c32b5c78 --- /dev/null +++ b/website/content/sdk/reference/etf/etf_by_category.md @@ -0,0 +1,33 @@ +--- +title: etf_by_category +description: OpenBB SDK Function +--- + +# etf_by_category + +Return a selection of ETFs based on category filtered by total assets. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/financedatabase_model.py#L56)] + +```python +openbb.etf.etf_by_category(category: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| category | str | Search by category to find ETFs matching the criteria. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Any] | Dictionary with ETFs that match a certain description | +--- + diff --git a/website/content/sdk/reference/etf/etf_by_name.md b/website/content/sdk/reference/etf/etf_by_name.md new file mode 100644 index 00000000000..b29890c31f5 --- /dev/null +++ b/website/content/sdk/reference/etf/etf_by_name.md @@ -0,0 +1,33 @@ +--- +title: etf_by_name +description: OpenBB SDK Function +--- + +# etf_by_name + +Get an ETF symbol and name based on ETF string to search. [Source: StockAnalysis] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/stockanalysis_model.py#L132)] + +```python +openbb.etf.etf_by_name(name_to_search: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| name_to_search | str | ETF name to match | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Dataframe with symbols and names | +--- + diff --git a/website/content/sdk/reference/etf/holdings.md b/website/content/sdk/reference/etf/holdings.md new file mode 100644 index 00000000000..79d45f86c19 --- /dev/null +++ b/website/content/sdk/reference/etf/holdings.md @@ -0,0 +1,33 @@ +--- +title: holdings +description: OpenBB SDK Function +--- + +# holdings + +Get ETF holdings + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/stockanalysis_model.py#L82)] + +```python +openbb.etf.holdings(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get holdings for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of holdings | +--- + diff --git a/website/content/sdk/reference/etf/ld.md b/website/content/sdk/reference/etf/ld.md new file mode 100644 index 00000000000..9b33374939a --- /dev/null +++ b/website/content/sdk/reference/etf/ld.md @@ -0,0 +1,33 @@ +--- +title: ld +description: OpenBB SDK Function +--- + +# ld + +Return a selection of ETFs based on description filtered by total assets. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/financedatabase_model.py#L35)] + +```python +openbb.etf.ld(description: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| description | str | Search by description to find ETFs matching the criteria. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Any] | Dictionary with ETFs that match a certain description | +--- + diff --git a/website/content/sdk/reference/etf/ln.md b/website/content/sdk/reference/etf/ln.md new file mode 100644 index 00000000000..c100a66a2d9 --- /dev/null +++ b/website/content/sdk/reference/etf/ln.md @@ -0,0 +1,33 @@ +--- +title: ln +description: OpenBB SDK Function +--- + +# ln + +Return a selection of ETFs based on name filtered by total assets. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/financedatabase_model.py#L15)] + +```python +openbb.etf.ln(name: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| name | str | Search by name to find ETFs matching the criteria. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Any] | Dictionary with ETFs that match a certain name | +--- + diff --git a/website/content/sdk/reference/etf/load.md b/website/content/sdk/reference/etf/load.md new file mode 100644 index 00000000000..19ecad9f144 --- /dev/null +++ b/website/content/sdk/reference/etf/load.md @@ -0,0 +1,42 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load a symbol to perform analysis using the string above as a template. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L223)] + +```python +openbb.etf.load(symbol: str, start_date: Union[datetime.datetime, str, NoneType] = None, interval: int = 1440, end_date: Union[datetime.datetime, str, NoneType] = None, prepost: bool = False, source: str = "YahooFinance", iexrange: str = "ytd", weekly: bool = False, monthly: bool = False, verbose: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get data | None | False | +| start_date | str or datetime | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| interval | int | Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 | 1440 | True | +| end_date | str or datetime | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| prepost | bool | Pre and After hours data | False | True | +| source | str | Source of data extracted | YahooFinance | True | +| iexrange | str | Timeframe to get IEX data. | ytd | True | +| weekly | bool | Flag to get weekly data | False | True | +| monthly | bool | Flag to get monthly data | False | True | +| verbose | bool | Display verbose information on what was the symbol that was loaded | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of data | +--- + diff --git a/website/content/sdk/reference/etf/news.md b/website/content/sdk/reference/etf/news.md new file mode 100644 index 00000000000..960fc398331 --- /dev/null +++ b/website/content/sdk/reference/etf/news.md @@ -0,0 +1,81 @@ +--- +title: news +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# news + + + + +Get news for a given term. [Source: NewsAPI] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/newsapi_model.py#L18)] + +```python +openbb.etf.news(query: str, limit: int = 10, start_date: str = None, show_newest: bool = True, sources: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| query | str | term to search on the news articles | None | False | +| start_date | str | date to start searching articles from formatted YYYY-MM-DD | None | True | +| show_newest | bool | flag to show newest articles first | True | True | +| sources | str | sources to exclusively show news from (comma separated) | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[Tuple[pd.DataFrame, dict]] | List of tuples containing news df in first index,
dict containing title of news df. | +--- + + + +
+ + +Prints table showing news for a given term. [Source: NewsAPI] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/newsapi_view.py#L19)] + +```python +openbb.etf.news_chart(query: str, limit: int = 3, start_date: str = None, show_newest: bool = True, sources: str = "", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| query | str | term to search on the news articles | None | False | +| start_date | str | date to start searching articles from formatted YYYY-MM-DD | None | True | +| limit | int | number of articles to display | 3 | True | +| show_newest | bool | flag to show newest articles first | True | True | +| sources | str | sources to exclusively show news from | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/etf/overview.md b/website/content/sdk/reference/etf/overview.md new file mode 100644 index 00000000000..0d13b7be777 --- /dev/null +++ b/website/content/sdk/reference/etf/overview.md @@ -0,0 +1,33 @@ +--- +title: overview +description: OpenBB SDK Function +--- + +# overview + +Get overview data for selected etf + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/stockanalysis_model.py#L48)] + +```python +openbb.etf.overview(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| etf_symbol | str | Etf symbol to get overview for | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of stock overview data | +--- + diff --git a/website/content/sdk/reference/etf/scr/screen.md b/website/content/sdk/reference/etf/scr/screen.md new file mode 100644 index 00000000000..23cdacf4baf --- /dev/null +++ b/website/content/sdk/reference/etf/scr/screen.md @@ -0,0 +1,77 @@ +--- +title: screen +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# screen + + + + +Screens the etfs pulled from my repo (https://github.com/jmaslek/etf_scraper), + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/screener/screener_model.py#L43)] + +```python +openbb.etf.scr.screen(preset: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset | str | Screener to use from presets | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Screened dataframe | +--- + + + + + + +Display screener output + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/screener/screener_view.py#L18)] + +```python +openbb.etf.scr.screen_chart(preset: str, num_to_show: int, sortby: str, ascend: bool, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset | str | Preset to use | None | False | +| num_to_show | int | Number of etfs to show | None | False | +| sortby | str | Column to sort by | None | False | +| ascend | bool | Ascend when sorted | None | False | +| export | str | Output format of export | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/etf/summary.md b/website/content/sdk/reference/etf/summary.md new file mode 100644 index 00000000000..b34b3051563 --- /dev/null +++ b/website/content/sdk/reference/etf/summary.md @@ -0,0 +1,33 @@ +--- +title: summary +description: OpenBB SDK Function +--- + +# summary + +Return summary description of ETF. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/yfinance_model.py#L44)] + +```python +openbb.etf.summary(name: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| name | str | ETF name | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Summary description of the ETF | +--- + diff --git a/website/content/sdk/reference/etf/symbols.md b/website/content/sdk/reference/etf/symbols.md new file mode 100644 index 00000000000..bd4a46efb2c --- /dev/null +++ b/website/content/sdk/reference/etf/symbols.md @@ -0,0 +1,30 @@ +--- +title: symbols +description: OpenBB SDK Function +--- + +# symbols + +Gets all etf names and symbols + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/stockanalysis_model.py#L19)] + +```python +openbb.etf.symbols() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[str], List[str]] | List of all available etf symbols, List of all available etf names | +--- + diff --git a/website/content/sdk/reference/etf/weights.md b/website/content/sdk/reference/etf/weights.md new file mode 100644 index 00000000000..1079a5dece8 --- /dev/null +++ b/website/content/sdk/reference/etf/weights.md @@ -0,0 +1,33 @@ +--- +title: weights +description: OpenBB SDK Function +--- + +# weights + +Return sector weightings allocation of ETF. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/etf/yfinance_model.py#L15)] + +```python +openbb.etf.weights(name: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| name | str | ETF name | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, Any] | Dictionary with sector weightings allocation | +--- + diff --git a/website/content/sdk/reference/forecast/atr.md b/website/content/sdk/reference/forecast/atr.md new file mode 100644 index 00000000000..1910175a141 --- /dev/null +++ b/website/content/sdk/reference/forecast/atr.md @@ -0,0 +1,29 @@ +--- +title: atr +description: OpenBB SDK Function +--- + +# atr + +Calculate the Average True Range of a variable based on a a specific stock ticker. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L337)] + +```python +openbb.forecast.atr(dataset: pd.DataFrame, close_column: str = "close", high_column: str = "high", low_column: str = "low") +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forecast/autoarima.md b/website/content/sdk/reference/forecast/autoarima.md new file mode 100644 index 00000000000..5f9f7ab41a4 --- /dev/null +++ b/website/content/sdk/reference/forecast/autoarima.md @@ -0,0 +1,91 @@ +--- +title: autoarima +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# autoarima + + + + +Performs Automatic ARIMA forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoarima_model.py#L27)] + +```python +openbb.forecast.autoarima(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str] | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], float, StatsForecast] | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision
Fit AutoaRIMA model object. | +--- + + + +
+ + +Display Automatic ARIMA model. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoarima_view.py#L20)] + +```python +openbb.forecast.autoarima_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/autoces.md b/website/content/sdk/reference/forecast/autoces.md new file mode 100644 index 00000000000..b59403c7bfe --- /dev/null +++ b/website/content/sdk/reference/forecast/autoces.md @@ -0,0 +1,91 @@ +--- +title: autoces +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# autoces + + + + +Performs Automatic Complex Exponential Smoothing forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoces_model.py#L28)] + +```python +openbb.forecast.autoces(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], StatsForecast] | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision,
Fit CES model object. | +--- + + + +
+ + +Display Automatic Complex Exponential Smoothing Model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoces_view.py#L20)] + +```python +openbb.forecast.autoces_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/autoets.md b/website/content/sdk/reference/forecast/autoets.md new file mode 100644 index 00000000000..c832f1487a1 --- /dev/null +++ b/website/content/sdk/reference/forecast/autoets.md @@ -0,0 +1,91 @@ +--- +title: autoets +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# autoets + + + + +Performs Automatic ETS forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoets_model.py#L27)] + +```python +openbb.forecast.autoets(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], StatsForecast] | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision,
Fit ETS model object. | +--- + + + +
+ + +Display Automatic ETS (Error, Trend, Sesonality) Model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoets_view.py#L20)] + +```python +openbb.forecast.autoets_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/autoselect.md b/website/content/sdk/reference/forecast/autoselect.md new file mode 100644 index 00000000000..81b3b77e2e7 --- /dev/null +++ b/website/content/sdk/reference/forecast/autoselect.md @@ -0,0 +1,91 @@ +--- +title: autoselect +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# autoselect + + + + +Performs Automatic Statistical forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoselect_model.py#L32)] + +```python +openbb.forecast.autoselect(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], StatsForecast, Union[int, str]] | list[np.ndarray] - Adjusted Data series
list[np.ndarray] - List of historical fcast values
list[np.ndarray] - List of predicted fcast values
Optional[float] - precision
StatsForecast - Fit ETS model object.
Union[int, str] - Best model | +--- + + + +
+ + +Display Automatic Statistical Forecasting Model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/autoselect_view.py#L20)] + +```python +openbb.forecast.autoselect_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/brnn.md b/website/content/sdk/reference/forecast/brnn.md new file mode 100644 index 00000000000..b9986cf83e6 --- /dev/null +++ b/website/content/sdk/reference/forecast/brnn.md @@ -0,0 +1,113 @@ +--- +title: brnn +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# brnn + + + + +Performs Block RNN forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/brnn_model.py#L22)] + +```python +openbb.forecast.brnn(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, train_split: float = 0.85, past_covariates: str = None, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, model_type: str = "LSTM", n_rnn_layers: int = 1, dropout: float = 0.0, batch_size: int = 32, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "brnn_model", force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| model_type | str | Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". | LSTM | True | +| n_rnn_layers | int | Number of layers in the RNN module. Defaults to 1. | 1 | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.0. | 0.0 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 32 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | brnn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset (all checkpoints will be
discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| E501 | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best BRNN Model. | +--- + + + +
+ + +Display BRNN forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/brnn_view.py#L20)] + +```python +openbb.forecast.brnn_chart(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, model_type: str = "LSTM", n_rnn_layers: int = 1, dropout: float = 0.0, batch_size: int = 16, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "rnn_model", force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| model_type | str | Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". | LSTM | True | +| n_rnn_layers | int | Number of layers in the RNN module. Defaults to 1. | 1 | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.0. | 0.0 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 16 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 101. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | rnn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/clean.md b/website/content/sdk/reference/forecast/clean.md new file mode 100644 index 00000000000..ca160abde08 --- /dev/null +++ b/website/content/sdk/reference/forecast/clean.md @@ -0,0 +1,36 @@ +--- +title: clean +description: OpenBB SDK Function +--- + +# clean + +Clean up NaNs from the dataset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L88)] + +```python +openbb.forecast.clean(dataset: pd.DataFrame, fill: Optional[str] = None, drop: Optional[str] = None, limit: Optional[int] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to clean | None | False | +| fill | Optional[str] | The method of filling NaNs | None | True | +| drop | Optional[str] | The method of dropping NaNs | None | True | +| limit | Optional[int] | The maximum limit you wish to apply that can be forward or backward filled | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with cleaned up data | +--- + diff --git a/website/content/sdk/reference/forecast/combine.md b/website/content/sdk/reference/forecast/combine.md new file mode 100644 index 00000000000..6174b91bd32 --- /dev/null +++ b/website/content/sdk/reference/forecast/combine.md @@ -0,0 +1,36 @@ +--- +title: combine +description: OpenBB SDK Function +--- + +# combine + +Adds the given column of df2 to df1 + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L397)] + +```python +openbb.forecast.combine(df1: pd.DataFrame, df2: pd.DataFrame, column: str, dataset: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| df1 | pd.DataFrame | The dataframe to add a column to | None | False | +| df2 | pd.DataFrame | The dataframe to lose a column | None | False | +| column | str | The column to transfer | None | False | +| dataset | str | A name for df2 (shows in name of new column) | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The new dataframe | +--- + diff --git a/website/content/sdk/reference/forecast/corr.md b/website/content/sdk/reference/forecast/corr.md new file mode 100644 index 00000000000..3866efb0e49 --- /dev/null +++ b/website/content/sdk/reference/forecast/corr.md @@ -0,0 +1,75 @@ +--- +title: corr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# corr + + + + +Returns correlation for a given df + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L497)] + +```python +openbb.forecast.corr(data: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | The df to produce statistics for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The df with the new data | +--- + + + + + + +Plot correlation coefficients for dataset features + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L170)] + +```python +openbb.forecast.corr_chart(dataset: pd.DataFrame, export: str = "", external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset fore calculating correlation coefficients | None | False | +| export | str | Format to export image | | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forecast/delete.md b/website/content/sdk/reference/forecast/delete.md new file mode 100644 index 00000000000..bce96db5e68 --- /dev/null +++ b/website/content/sdk/reference/forecast/delete.md @@ -0,0 +1,29 @@ +--- +title: delete +description: OpenBB SDK Function +--- + +# delete + +None + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L442)] + +```python +openbb.forecast.delete(data: pd.DataFrame, column: str) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forecast/delta.md b/website/content/sdk/reference/forecast/delta.md new file mode 100644 index 00000000000..de16d58142d --- /dev/null +++ b/website/content/sdk/reference/forecast/delta.md @@ -0,0 +1,29 @@ +--- +title: delta +description: OpenBB SDK Function +--- + +# delta + +Calculate the %change of a variable based on a specific column + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L323)] + +```python +openbb.forecast.delta(dataset: pd.DataFrame, target_column: str = "close") +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forecast/desc.md b/website/content/sdk/reference/forecast/desc.md new file mode 100644 index 00000000000..35909003ee6 --- /dev/null +++ b/website/content/sdk/reference/forecast/desc.md @@ -0,0 +1,70 @@ +--- +title: desc +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# desc + + + + +Returns statistics for a given df + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L480)] + +```python +openbb.forecast.desc(data: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | The df to produce statistics for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The df with the new data | +--- + + + + + + +None + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L257)] + +```python +openbb.forecast.desc_chart(data: pd.DataFrame, name: str = "", export: str = "") +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forecast/ema.md b/website/content/sdk/reference/forecast/ema.md new file mode 100644 index 00000000000..17059d4b533 --- /dev/null +++ b/website/content/sdk/reference/forecast/ema.md @@ -0,0 +1,35 @@ +--- +title: ema +description: OpenBB SDK Function +--- + +# ema + +A moving average provides an indication of the trend of the price movement + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L147)] + +```python +openbb.forecast.ema(dataset: pd.DataFrame, target_column: str = "close", period: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to clean | None | False | +| target_column | str | The column you wish to add the EMA to | close | True | +| period | int | Time Span | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with added EMA column | +--- + diff --git a/website/content/sdk/reference/forecast/expo.md b/website/content/sdk/reference/forecast/expo.md new file mode 100644 index 00000000000..5e137c93625 --- /dev/null +++ b/website/content/sdk/reference/forecast/expo.md @@ -0,0 +1,97 @@ +--- +title: expo +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# expo + + + + +Performs Probabilistic Exponential Smoothing forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/expo_model.py#L34)] + +```python +openbb.forecast.expo(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", trend: str = "A", seasonal: str = "A", seasonal_periods: int = 7, dampen: str = "F", n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| trend | str | Trend component. One of [N, A, M]
Defaults to ADDITIVE. | A | True | +| seasonal | str | Seasonal component. One of [N, A, M]
Defaults to ADDITIVE. | A | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| dampen | str | Dampen the function | F | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[Union[float, ndarray]], ExponentialSmoothing] | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision,
Fit Prob. Expo model object. | +--- + + + +
+ + +Display Probabilistic Exponential Smoothing forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/expo_view.py#L20)] + +```python +openbb.forecast.expo_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", trend: str = "A", seasonal: str = "A", seasonal_periods: int = 7, dampen: str = "F", n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| trend | str | Trend component. One of [N, A, M]
Defaults to ADDITIVE. | A | True | +| seasonal | str | Seasonal component. One of [N, A, M]
Defaults to ADDITIVE. | A | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| dampen | str | Dampen the function | F | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/export.md b/website/content/sdk/reference/forecast/export.md new file mode 100644 index 00000000000..dacdcba4be1 --- /dev/null +++ b/website/content/sdk/reference/forecast/export.md @@ -0,0 +1,29 @@ +--- +title: export +description: OpenBB SDK Function +--- + +# export + +None + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L270)] + +```python +openbb.forecast.export(data: pd.DataFrame, export: str, name: str = "") +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forecast/linregr.md b/website/content/sdk/reference/forecast/linregr.md new file mode 100644 index 00000000000..dbd9325347e --- /dev/null +++ b/website/content/sdk/reference/forecast/linregr.md @@ -0,0 +1,96 @@ +--- +title: linregr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# linregr + + + + +Perform Linear Regression Forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/linregr_model.py#L22)] + +```python +openbb.forecast.linregr(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, output_chunk_length: int = 5, lags: Union[int, List[int]] = 14, random_state: Optional[int] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 1. | 5 | True | +| lags | Union[int, List[int]] | lagged target values to predict the next time step | 14 | True | +| random_state | Optional[int] | The state for the model | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], float, LinearRegressionModel] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best Linear Regression Model. | +--- + + + +
+ + +Display Linear Regression Forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/linregr_view.py#L20)] + +```python +openbb.forecast.linregr_chart(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, output_chunk_length: int = 1, lags: Union[int, List[int]] = 72, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, explainability_raw: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| target_col | str | Target column to forecast. Defaults to "close". | None | True | +| train_split (float, optional) | | Train/val split. Defaults to 0.85. | None | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 1. | 1 | True | +| lags | Union[int, List[int]] | lagged target values to predict the next time step | 72 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the
same as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/load.md b/website/content/sdk/reference/forecast/load.md new file mode 100644 index 00000000000..d8a4a1dc233 --- /dev/null +++ b/website/content/sdk/reference/forecast/load.md @@ -0,0 +1,35 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load custom file into dataframe. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/common_model.py#L53)] + +```python +openbb.forecast.load(file: str, data_files: Optional[Dict[Any, Any]] = None, data_examples: Optional[Dict[Any, Any]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| file | str | Path to file | None | False | +| data_files | dict | Contains all available data files within the Export folder | None | True | +| data_examples | dict | Contains all available examples from Statsmodels | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with custom data | +--- + diff --git a/website/content/sdk/reference/forecast/mom.md b/website/content/sdk/reference/forecast/mom.md new file mode 100644 index 00000000000..92bc0a6d298 --- /dev/null +++ b/website/content/sdk/reference/forecast/mom.md @@ -0,0 +1,35 @@ +--- +title: mom +description: OpenBB SDK Function +--- + +# mom + +A momentum oscillator, which measures the percentage change between the current + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L296)] + +```python +openbb.forecast.mom(dataset: pd.DataFrame, target_column: str = "close", period: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to calculate with | None | False | +| target_column | str | The column you wish to add the MOM to | close | True | +| period | int | Time Span | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with added MOM column | +--- + diff --git a/website/content/sdk/reference/forecast/mstl.md b/website/content/sdk/reference/forecast/mstl.md new file mode 100644 index 00000000000..3682a09fe5c --- /dev/null +++ b/website/content/sdk/reference/forecast/mstl.md @@ -0,0 +1,91 @@ +--- +title: mstl +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mstl + + + + +Performs MSTL forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/mstl_model.py#L26)] + +```python +openbb.forecast.mstl(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision,
Fit MSTL model object. | +--- + + + +
+ + +Display MSTL Model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/mstl_view.py#L20)] + +```python +openbb.forecast.mstl_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/nbeats.md b/website/content/sdk/reference/forecast/nbeats.md new file mode 100644 index 00000000000..7556315ea33 --- /dev/null +++ b/website/content/sdk/reference/forecast/nbeats.md @@ -0,0 +1,115 @@ +--- +title: nbeats +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# nbeats + + + + +Perform NBEATS Forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/nbeats_model.py#L21)] + +```python +openbb.forecast.nbeats(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, num_stacks: int = 10, num_blocks: int = 3, num_layers: int = 4, layer_widths: int = 512, batch_size: int = 800, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "nbeats_model", force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| num_stacks | int | The number of stacks that make up the whole model. Defaults to 10. | 10 | True | +| num_blocks | int | The number of blocks making up every stack. Defaults to 3. | 3 | True | +| num_layers | int | The number of fully connected layers preceding the final forking layers in each block
of every stack. Defaults to 4. | 4 | True | +| layer_widths | int | Determines the number of neurons that make up each fully connected layer in each block
of every stack. Defaults to 512. | 512 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 800 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | nbeats_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], type[NBEATSModel]] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best NBEATS Model. | +--- + + + +
+ + +Display NBEATS forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/nbeats_view.py#L20)] + +```python +openbb.forecast.nbeats_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, num_stacks: int = 10, num_blocks: int = 3, num_layers: int = 4, layer_widths: int = 512, n_epochs: int = 100, learning_rate: float = 0.001, batch_size: int = 800, model_save_name: str = "nbeats_model", force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| num_stacks | int | The number of stacks that make up the whole model. Defaults to 10. | 10 | True | +| num_blocks | int | The number of blocks making up every stack. Defaults to 3. | 3 | True | +| num_layers | int | The number of fully connected layers preceding the final forking layers in each block
of every stack. Defaults to 4. | 4 | True | +| layer_widths | int | Determines the number of neurons that make up each fully connected layer in each block
of every stack. Defaults to 512. | 512 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults
to 32. | 800 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | nbeats_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset (all
checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/nhits.md b/website/content/sdk/reference/forecast/nhits.md new file mode 100644 index 00000000000..2c4310aa25e --- /dev/null +++ b/website/content/sdk/reference/forecast/nhits.md @@ -0,0 +1,125 @@ +--- +title: nhits +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# nhits + + + + +Performs Nhits forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/nhits_model.py#L22)] + +```python +openbb.forecast.nhits(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, train_split: float = 0.85, past_covariates: str = None, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, num_stacks: int = 3, num_blocks: int = 1, num_layers: int = 2, layer_widths: int = 512, pooling_kernel_sizes: Optional[Tuple[Tuple[int]]] = None, n_freq_downsample: Optional[Tuple[Tuple[int]]] = None, dropout: float = 0.1, activation: str = "ReLU", max_pool_1d: bool = True, batch_size: int = 32, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "brnn_model", force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| num_stacks | int | The number of stacks that make up the whole model. | 3 | True | +| num_blocks | int | The number of blocks making up every stack. | 1 | True | +| num_layers | int | The number of fully connected layers preceding the final forking layers in each block
of every stack. | 2 | True | +| layer_widths | int | Determines the number of neurons that make up each fully connected layer in each
block of every stack. If a list is passed, it must have a length equal to num_stacks
and every entry in that list corresponds to the layer width of the corresponding stack.
If an integer is passed, every stack will have blocks with FC layers of the same width. | 512 | True | +| pooling_kernel_size | Optional[Tuple[Tuple[int]]]: | If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks),
specifying the kernel size for each block in each stack used for the input pooling
layer. If left to None, some default values will be used based on input_chunk_length. | None | True | +| n_freq_downsample | Optional[Tuple[Tuple[int]]] | If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks),
specifying the downsampling factors before interpolation, for each block in each stack.
If left to None, some default values will be used based on output_chunk_length. | None | True | +| dropout | float | The dropout probability to be used in fully connected layers. | 0.1 | True | +| activation | str | Supported activations: [‘ReLU’,’RReLU’, ‘PReLU’, ‘Softplus’, ‘Tanh’, ‘SELU’, ‘LeakyReLU’, ‘Sigmoid’] | ReLU | True | +| max_pool_1d | bool | Use max_pool_1d pooling. False uses AvgPool1d. | True | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 32 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | brnn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset (all checkpoints will be
discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], type[NHiTSModel]] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best BRNN Model. | +--- + + + +
+ + +Display Nhits forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/nhits_view.py#L20)] + +```python +openbb.forecast.nhits_chart(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, num_stacks: int = 3, num_blocks: int = 1, num_layers: int = 2, layer_widths: int = 512, pooling_kernel_sizes: Optional[Tuple[Tuple[int]]] = None, n_freq_downsample: Optional[Tuple[Tuple[int]]] = None, dropout: float = 0.1, activation: str = "ReLU", max_pool_1d: bool = True, batch_size: int = 32, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "rnn_model", force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| num_stacks | int | The number of stacks that make up the whole model. | 3 | True | +| num_blocks | int | The number of blocks making up every stack. | 1 | True | +| num_layers | int | The number of fully connected layers preceding the final forking layers in each block
of every stack. | 2 | True | +| layer_widths | int | Determines the number of neurons that make up each fully connected layer in each
block of every stack. If a list is passed, it must have a length equal to num_stacks
and every entry in that list corresponds to the layer width of the corresponding stack.
If an integer is passed, every stack will have blocks with FC layers of the same width. | 512 | True | +| pooling_kernel_size | Optional[Tuple[Tuple[int]]] | If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks),
specifying the kernel size for each block in each stack used for the input pooling
layer. If left to None, some default values will be used based on input_chunk_length. | None | True | +| n_freq_downsample | Optional[Tuple[Tuple[int]]] | If set, this parameter must be a tuple of tuples, of size (num_stacks x num_blocks),
specifying the downsampling factors before interpolation, for each block in each stack.
If left to None, some default values will be used based on output_chunk_length. | None | True | +| dropout | float | The dropout probability to be used in fully connected layers. | 0.1 | True | +| activation | str | Supported activations: [[‘ReLU’,’RReLU’, ‘PReLU’, ‘Softplus’, ‘Tanh’, ‘SELU’, ‘LeakyReLU’, ‘Sigmoid’] | ReLU | True | +| max_pool_1d | bool | Use max_pool_1d pooling. False uses AvgPool1d. | True | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 32 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | rnn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/plot.md b/website/content/sdk/reference/forecast/plot.md new file mode 100644 index 00000000000..0e835db84ae --- /dev/null +++ b/website/content/sdk/reference/forecast/plot.md @@ -0,0 +1,78 @@ +--- +title: plot +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# plot + + + + +Plot data from a dataset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L74)] + +```python +openbb.forecast.plot(data: pd.DataFrame, columns: List[str], export: str = "", external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | The dataframe to plot | None | False | +| columns | List[str] | The columns to show | None | False | +| export | str | Format to export image | | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +Plot data from a dataset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L74)] + +```python +openbb.forecast.plot_chart(data: pd.DataFrame, columns: List[str], export: str = "", external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | The dataframe to plot | None | False | +| columns | List[str] | The columns to show | None | False | +| export | str | Format to export image | | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forecast/regr.md b/website/content/sdk/reference/forecast/regr.md new file mode 100644 index 00000000000..c7bc797cc93 --- /dev/null +++ b/website/content/sdk/reference/forecast/regr.md @@ -0,0 +1,95 @@ +--- +title: regr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# regr + + + + +Perform Regression Forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/regr_model.py#L22)] + +```python +openbb.forecast.regr(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, output_chunk_length: int = 1, lags: Union[int, List[int]] = 72) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 1. | 1 | True | +| lags | Union[int, List[int]] | lagged target values to predict the next time step | 72 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], float, type[RegressionModel]] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best Regression Model. | +--- + + + +
+ + +Display Regression Forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/regr_view.py#L20)] + +```python +openbb.forecast.regr_chart(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, output_chunk_length: int = 1, lags: Union[int, List[int]] = 72, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, explainability_raw: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 1. | 1 | True | +| lags | Union[int, List[int]] | lagged target values to predict the next time step | 72 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/rename.md b/website/content/sdk/reference/forecast/rename.md new file mode 100644 index 00000000000..c78c010719b --- /dev/null +++ b/website/content/sdk/reference/forecast/rename.md @@ -0,0 +1,35 @@ +--- +title: rename +description: OpenBB SDK Function +--- + +# rename + +Rename a column in a dataframe + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L453)] + +```python +openbb.forecast.rename(data: pd.DataFrame, old_column: str, new_column: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | The dataframe to have a column renamed | None | False | +| old_column | str | The column that will have its name changed | None | False | +| new_column | str | The name to update to | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The dataframe with the renamed column | +--- + diff --git a/website/content/sdk/reference/forecast/rnn.md b/website/content/sdk/reference/forecast/rnn.md new file mode 100644 index 00000000000..befcdb07578 --- /dev/null +++ b/website/content/sdk/reference/forecast/rnn.md @@ -0,0 +1,107 @@ +--- +title: rnn +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rnn + + + + +Perform RNN forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/rnn_model.py#L21)] + +```python +openbb.forecast.rnn(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, train_split: float = 0.85, forecast_horizon: int = 5, model_type: str = "LSTM", hidden_dim: int = 20, dropout: float = 0.0, batch_size: int = 16, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "rnn_model", training_length: int = 20, input_chunk_size: int = 14, force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| model_type | str | Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". | LSTM | True | +| hidden_dim | int | Size for feature maps for each hidden RNN layer.. Defaults to 20. | 20 | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.0. | 0.0 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 16 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | rnn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], type[RNNModel]] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best RNN Model | +--- + + + +
+ + +Display RNN forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/rnn_view.py#L20)] + +```python +openbb.forecast.rnn_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, train_split: float = 0.85, forecast_horizon: int = 5, model_type: str = "LSTM", hidden_dim: int = 20, dropout: float = 0.0, batch_size: int = 16, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "rnn_model", training_length: int = 20, input_chunk_size: int = 14, force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| model_type | str | Either a string specifying the RNN module type ("RNN", "LSTM" or "GRU"). Defaults to "LSTM". | LSTM | True | +| hidden_dim | int | Size for feature maps for each hidden RNN layer.. Defaults to 20. | 20 | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.0. | 0.0 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 16 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | rnn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. | True | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/roc.md b/website/content/sdk/reference/forecast/roc.md new file mode 100644 index 00000000000..abc1c694771 --- /dev/null +++ b/website/content/sdk/reference/forecast/roc.md @@ -0,0 +1,35 @@ +--- +title: roc +description: OpenBB SDK Function +--- + +# roc + +A momentum oscillator, which measures the percentage change between the current + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L267)] + +```python +openbb.forecast.roc(dataset: pd.DataFrame, target_column: str = "close", period: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to calculate with | None | False | +| target_column | str | The column you wish to add the ROC to | close | True | +| period | int | Time Span | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with added ROC column | +--- + diff --git a/website/content/sdk/reference/forecast/rsi.md b/website/content/sdk/reference/forecast/rsi.md new file mode 100644 index 00000000000..555c64667be --- /dev/null +++ b/website/content/sdk/reference/forecast/rsi.md @@ -0,0 +1,35 @@ +--- +title: rsi +description: OpenBB SDK Function +--- + +# rsi + +A momentum indicator that measures the magnitude of recent price changes to evaluate + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L225)] + +```python +openbb.forecast.rsi(dataset: pd.DataFrame, target_column: str = "close", period: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to calculate for | None | False | +| target_column | str | The column you wish to add the RSI to | close | True | +| period | int | Time Span | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with added RSI column | +--- + diff --git a/website/content/sdk/reference/forecast/rwd.md b/website/content/sdk/reference/forecast/rwd.md new file mode 100644 index 00000000000..83c83faf65e --- /dev/null +++ b/website/content/sdk/reference/forecast/rwd.md @@ -0,0 +1,89 @@ +--- +title: rwd +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rwd + + + + +Performs Random Walk with Drift forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/rwd_model.py#L27)] + +```python +openbb.forecast.rwd(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] precision,
Fit RWD model object. | +--- + + + +
+ + +Display Random Walk with Drift Model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/rwd_view.py#L20)] + +```python +openbb.forecast.rwd_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/season.md b/website/content/sdk/reference/forecast/season.md new file mode 100644 index 00000000000..74756d40f31 --- /dev/null +++ b/website/content/sdk/reference/forecast/season.md @@ -0,0 +1,38 @@ +--- +title: season +description: OpenBB SDK Function +--- + +# season + +Plot seasonality from a dataset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L120)] + +```python +openbb.forecast.season_chart(data: pd.DataFrame, column: str = "close", export: str = "", m: Optional[int] = None, max_lag: int = 24, alpha: float = 0.05, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | The dataframe to plot | None | False | +| column | str | The column of the dataframe to analyze | close | True | +| export | str | Format to export image | | True | +| m | Optional[int] | Optionally, a time lag to highlight on the plot. Default is none. | None | True | +| max_lag | int | The maximal lag order to consider. Default is 24. | 24 | True | +| alpha | float | The confidence interval to display. Default is 0.05. | 0.05 | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forecast/seasonalnaive.md b/website/content/sdk/reference/forecast/seasonalnaive.md new file mode 100644 index 00000000000..750e457c363 --- /dev/null +++ b/website/content/sdk/reference/forecast/seasonalnaive.md @@ -0,0 +1,91 @@ +--- +title: seasonalnaive +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# seasonalnaive + + + + +Performs Seasonal Naive forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/seasonalnaive_model.py#L28)] + +```python +openbb.forecast.seasonalnaive(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year (7 for daily data)
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], StatsForecast] | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision,
Fit SeasonalNaive model object. | +--- + + + +
+ + +Display SeasonalNaive Model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/seasonalnaive_view.py#L20)] + +```python +openbb.forecast.seasonalnaive_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/show.md b/website/content/sdk/reference/forecast/show.md new file mode 100644 index 00000000000..ba2d64e426c --- /dev/null +++ b/website/content/sdk/reference/forecast/show.md @@ -0,0 +1,66 @@ +--- +title: show +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# show + + + + +None + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L227)] + +```python +openbb.forecast.show(data: pd.DataFrame, limit: int = 15, limit_col: int = 10, name: str = "", export: str = "") +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +None + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_view.py#L227)] + +```python +openbb.forecast.show_chart(data: pd.DataFrame, limit: int = 15, limit_col: int = 10, name: str = "", export: str = "") +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forecast/signal.md b/website/content/sdk/reference/forecast/signal.md new file mode 100644 index 00000000000..984134b1684 --- /dev/null +++ b/website/content/sdk/reference/forecast/signal.md @@ -0,0 +1,33 @@ +--- +title: signal +description: OpenBB SDK Function +--- + +# signal + +A price signal based on short/long term price. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L362)] + +```python +openbb.forecast.signal(dataset: pd.DataFrame, target_column: str = "close") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to calculate with | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with added signal column | +--- + diff --git a/website/content/sdk/reference/forecast/sto.md b/website/content/sdk/reference/forecast/sto.md new file mode 100644 index 00000000000..6fa856402f2 --- /dev/null +++ b/website/content/sdk/reference/forecast/sto.md @@ -0,0 +1,34 @@ +--- +title: sto +description: OpenBB SDK Function +--- + +# sto + +Stochastic Oscillator %K and %D : A stochastic oscillator is a momentum indicator comparing a particular closing + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/forecast_model.py#L175)] + +```python +openbb.forecast.sto(dataset: pd.DataFrame, close_column: str = "close", high_column: str = "high", low_column: str = "low", period: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| dataset | pd.DataFrame | The dataset you wish to calculate for | None | False | +| period | int | Span | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with added STO K & D columns | +--- + diff --git a/website/content/sdk/reference/forecast/tcn.md b/website/content/sdk/reference/forecast/tcn.md new file mode 100644 index 00000000000..340c5ee3384 --- /dev/null +++ b/website/content/sdk/reference/forecast/tcn.md @@ -0,0 +1,115 @@ +--- +title: tcn +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tcn + + + + +Perform TCN forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/tcn_model.py#L20)] + +```python +openbb.forecast.tcn(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, dropout: float = 0.1, num_filters: int = 6, weight_norm: bool = True, dilation_base: int = 2, n_epochs: int = 100, learning_rate: float = 0.001, batch_size: int = 800, model_save_name: str = "tcn_model", force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.1. | 0.1 | True | +| num_filters | int | The number of filters in a convolutional layer of the TCN. Defaults to 6. | 6 | True | +| weight_norm | bool | Boolean value indicating whether to use weight normalization. Defaults to True. | True | True | +| dilation_base | int | The base of the exponent that will determine the dilation on every level. Defaults to 2. | 2 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 800 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | tcn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], type[TCNModel]] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best TCN Model. | +--- + + + +
+ + +Display TCN forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/tcn_view.py#L20)] + +```python +openbb.forecast.tcn_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, dropout: float = 0.1, num_filters: int = 6, weight_norm: bool = True, dilation_base: int = 2, n_epochs: int = 100, learning_rate: float = 0.001, batch_size: int = 800, model_save_name: str = "tcn_model", force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.1. | 0.1 | True | +| num_filters | int | The number of filters in a convolutional layer of the TCN. Defaults to 6. | 6 | True | +| weight_norm | bool | Boolean value indicating whether to use weight normalization. Defaults to True. | True | True | +| dilation_base | int | The base of the exponent that will determine the dilation on every level. Defaults to 2. | 2 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 800 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | tcn_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. | True | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/tft.md b/website/content/sdk/reference/forecast/tft.md new file mode 100644 index 00000000000..5bf08441d77 --- /dev/null +++ b/website/content/sdk/reference/forecast/tft.md @@ -0,0 +1,116 @@ +--- +title: tft +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# tft + + + + +Performs Temporal Fusion Transformer forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/tft_model.py#L26)] + +```python +openbb.forecast.tft(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, hidden_size: int = 16, lstm_layers: int = 1, num_attention_heads: int = 4, full_attention: bool = False, dropout: float = 0.1, hidden_continuous_size: int = 8, n_epochs: int = 200, batch_size: int = 32, model_save_name: str = "tft_model", force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data (Union[pd.Series, pd.DataFrame]) | | Input Data | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| n_predict (int, optional) | | Days to predict. Defaults to 5. | None | True | +| train_split (float, optional) | | Train/val split. Defaults to 0.85. | None | True | +| past_covariates (str, optional) | | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon (int, optional) | | Forecast horizon when performing historical forecasting. Defaults to 5. | None | True | +| input_chunk_length (int, optional) | | Number of past time steps that are fed to the forecasting module at prediction time.
Defaults to 14. | None | True | +| output_chunk_length (int, optional) | | The length of the forecast of the model. Defaults to 5. | None | True | +| hidden_size (int, optional) | | Hidden state size of the TFT. Defaults to 16. | None | True | +| lstm_layers (int, optional) | | Number of layers for the Long Short Term Memory Encoder and Decoder. Defaults to 16. | None | True | +| num_attention_headers (int, optional) | | Number of attention heads. Defaults to 4. | None | True | +| full_attention (bool, optional) | | Whether to apply a multi-head attention query. Defaults to False> | None | True | +| dropout (float, optional) | | Fraction of neurons affected by dropout. Defaults to 0.1. | None | True | +| hidden_continuous_size (int, optional) | | Default hidden size for processing continuous variables. Defaults to 8. | None | True | +| n_epochs (int, optional) | | Number of epochs to run during training. Defaults to 200. | None | True | +| batch_size (int, optional) | | Number of samples to pass through network during a single epoch. Defaults to 32. | None | True | +| model_save_name (str, optional) | | The name for the model. Defaults to tft_model | None | True | +| force_reset (bool, optional) | | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | None | True | +| save_checkpoints (bool, optional) | | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| | Adjusted Data series,
List of historical fcast values,
List of predicted fcast values,
Optional[float] - precision,
Fit Prob. TFT model object. | +--- + + + +
+ + +Display Temporal Fusion Transformer forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/tft_view.py#L20)] + +```python +openbb.forecast.tft_chart(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, hidden_size: int = 16, lstm_layers: int = 1, num_attention_heads: int = 4, full_attention: bool = False, dropout: float = 0.1, hidden_continuous_size: int = 8, n_epochs: int = 200, batch_size: int = 32, model_save_name: str = "tft_model", force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data (Union[pd.Series, pd.DataFrame]) | | Input Data | None | True | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| n_predict (int, optional) | | Days to predict. Defaults to 5. | None | True | +| train_split (float, optional) | | Train/val split. Defaults to 0.85. | None | True | +| past_covariates (str, optional) | | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon (int, optional) | | Forecast horizon when performing historical forecasting. Defaults to 5. | None | True | +| input_chunk_length (int, optional) | | Number of past time steps that are fed to the forecasting module at prediction time.
Defaults to 14. | None | True | +| output_chunk_length (int, optional) | | The length of the forecast of the model. Defaults to 5. | None | True | +| hidden_size (int, optional) | | Hidden state size of the TFT. Defaults to 16. | None | True | +| lstm_layers (int, optional) | | Number of layers for the Long Short Term Memory Encoder and Decoder. Defaults to 16. | None | True | +| num_attention_headers (int, optional) | | Number of attention heads. Defaults to 4. | None | True | +| full_attention (bool, optional) | | Whether to apply a multi-head attention query. Defaults to False> | None | True | +| dropout (float, optional) | | Fraction of neurons affected by dropout. Defaults to 0.1. | None | True | +| hidden_continuous_size (int, optional) | | Default hidden size for processing continuous variables. Defaults to 8. | None | True | +| n_epochs (int, optional) | | Number of epochs to run during training. Defaults to 200. | None | True | +| batch_size (int, optional) | | Number of samples to pass through network during a single epoch. Defaults to 32. | None | True | +| model_save_name (str, optional) | | The name for the model. Defaults to tft_model | None | True | +| force_reset (bool, optional) | | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | None | True | +| save_checkpoints (bool, optional) | | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | None | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/theta.md b/website/content/sdk/reference/forecast/theta.md new file mode 100644 index 00000000000..b00272050f2 --- /dev/null +++ b/website/content/sdk/reference/forecast/theta.md @@ -0,0 +1,93 @@ +--- +title: theta +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# theta + + + + +Performs Theta forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/theta_model.py#L29)] + +```python +openbb.forecast.theta(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", seasonal: str = "M", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.ndarray] | Input data. | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| seasonal | str | Seasonal component. One of [N, A, M]
Defaults to MULTIPLICATIVE. | M | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], float, float, type[Theta]] | Adjusted Data series,
Historical forecast by best theta,
list of Predictions,
Mean average precision error,
Best Theta,
Theta Model. | +--- + + + +
+ + +Display Theta forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/theta_view.py#L21)] + +```python +openbb.forecast.theta_chart(data: Union[pd.DataFrame, pd.Series], target_column: str = "close", dataset_name: str = "", seasonal: str = "M", seasonal_periods: int = 7, n_predict: int = 5, start_window: float = 0.85, forecast_horizon: int = 5, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, np.array] | Data to forecast | None | False | +| target_column | Optional[str]: | Target column to forecast. Defaults to "close". | close | True | +| dataset_name str | None | The name of the ticker to be predicted | None | True | +| seasonal | str | Seasonal component. One of [N, A, M]
Defaults to MULTIPLICATIVE. | M | True | +| seasonal_periods | int | Number of seasonal periods in a year
If not set, inferred from frequency of the series. | 7 | True | +| n_predict | int | Number of days to forecast | 5 | True | +| start_window | float | Size of sliding window from start of timeseries and onwards | 0.85 | True | +| forecast_horizon | int | Number of days to forecast when backtesting and retraining historical | 5 | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forecast/trans.md b/website/content/sdk/reference/forecast/trans.md new file mode 100644 index 00000000000..16f8e3c4e08 --- /dev/null +++ b/website/content/sdk/reference/forecast/trans.md @@ -0,0 +1,120 @@ +--- +title: trans +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# trans + + + + +Performs Transformer forecasting + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/trans_model.py#L20)] + +```python +openbb.forecast.trans(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", n_predict: int = 5, train_split: float = 0.85, past_covariates: str = None, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, d_model: int = 64, nhead: int = 4, num_encoder_layers: int = 3, num_decoder_layers: int = 3, dim_feedforward: int = 512, activation: str = "relu", dropout: float = 0.0, batch_size: int = 32, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "trans_model", force_reset: bool = True, save_checkpoints: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| d_model | int | The number of expected features in the encoder/decoder inputs. Defaults to 64. | 64 | True | +| nhead | int | The number of heads in the multi-head attention mechanism. Defaults to 4. | 4 | True | +| num_encoder_layers | int | The number of encoder layers in the encoder. Defaults to 3. | 3 | True | +| num_decoder_layers | int | The number of decoder layers in the encoder. Defaults to 3. | 3 | True | +| dim_feedforward | int | The dimension of the feedforward network model. Defaults to 512. | 512 | True | +| activation | str | The activation function of encoder/decoder intermediate layer, ‘relu’ or ‘gelu’. Defaults to 'relu'. | relu | True | +| dropout | float | Fraction of neurons afected by Dropout. Defaults to 0.0. | 0.0 | True | +| batch_size | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | 32 | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| learning_rate | float | Defaults to 1e-3. | 0.001 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | trans_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset (all checkpoints will be
discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training. Defaults to True. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[TimeSeries], List[TimeSeries], List[TimeSeries], Optional[float], type[TransformerModel]] | Adjusted Data series,
Historical forecast by best RNN model,
list of Predictions,
Mean average precision error,
Best transformer Model. | +--- + + + +
+ + +Display Transformer forecast + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forecast/trans_view.py#L20)] + +```python +openbb.forecast.trans_chart(data: Union[pd.Series, pd.DataFrame], target_column: str = "close", dataset_name: str = "", n_predict: int = 5, past_covariates: str = None, train_split: float = 0.85, forecast_horizon: int = 5, input_chunk_length: int = 14, output_chunk_length: int = 5, d_model: int = 64, nhead: int = 4, num_encoder_layers: int = 3, num_decoder_layers: int = 3, dim_feedforward: int = 512, activation: str = "relu", dropout: float = 0.1, batch_size: int = 16, n_epochs: int = 100, learning_rate: float = 0.001, model_save_name: str = "trans_model", force_reset: bool = True, save_checkpoints: bool = True, export: str = "", residuals: bool = False, forecast_only: bool = False, start_date: Optional[datetime.datetime] = None, end_date: Optional[datetime.datetime] = None, naive: bool = False, export_pred_raw: bool = False, external_axes: Optional[List[axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | Union[pd.Series, pd.DataFrame] | Input Data | None | False | +| dataset_name | str | The name of the ticker to be predicted | | True | +| n_predict | int | Days to predict. Defaults to 5. | 5 | True | +| target_column | str | Target column to forecast. Defaults to "close". | close | True | +| train_split | float | Train/val split. Defaults to 0.85. | 0.85 | True | +| past_covariates | str | Multiple secondary columns to factor in when forecasting. Defaults to None. | None | True | +| forecast_horizon | int | Forecast horizon when performing historical forecasting. Defaults to 5. | 5 | True | +| input_chunk_length | int | Number of past time steps that are fed to the forecasting module at prediction time. Defaults to 14. | 14 | True | +| output_chunk_length | int | The length of the forecast of the model. Defaults to 5. | 5 | True | +| d_model | int | The number of expected features in the encoder/decoder inputs. Defaults to 64. | 64 | True | +| nhead | int | The number of heads in the multi-head attention mechanism. Defaults to 4. | 4 | True | +| num_encoder_layers | int | The number of encoder layers in the encoder. Defaults to 3. | 3 | True | +| num_decoder_layers | int | The number of decoder layers in the encoder. Defaults to 3. | 3 | True | +| dim_feedforward | int | The dimension of the feedforward network model. Defaults to 512. | 512 | True | +| activation | str | The activation function of encoder/decoder intermediate layer, ‘relu’ or ‘gelu’. Defaults to 'relu'. | relu | True | +| dropout | float | Fraction of neurons affected by Dropout. Defaults to 0.1. | 0.1 | True | +| batch_size_ | int | Number of time series (input and output sequences) used in each training pass. Defaults to 32. | None | True | +| n_epochs | int | Number of epochs over which to train the model. Defaults to 100. | 100 | True | +| model_save_name | str | Name for model. Defaults to "brnn_model". | trans_model | True | +| force_reset | bool | If set to True, any previously-existing model with the same name will be reset
(all checkpoints will be discarded). Defaults to True. | True | True | +| save_checkpoints | bool | Whether or not to automatically save the untrained model and checkpoints from training.
Defaults to True. | True | True | +| export | str | Format to export data | | True | +| residuals | bool | Whether to show residuals for the model. Defaults to False. | False | True | +| forecast_only | bool | Whether to only show dates in the forecasting range. Defaults to False. | False | True | +| start_date | Optional[datetime] | The starting date to perform analysis, data before this is trimmed. Defaults to None. | None | True | +| end_date | Optional[datetime] | The ending date to perform analysis, data after this is trimmed. Defaults to None. | None | True | +| naive | bool | Whether to show the naive baseline. This just assumes the closing price will be the same
as the previous day's closing price. Defaults to False. | False | True | +| external_axes | Optional[List[plt.axes]] | External axes to plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forex/candle.md b/website/content/sdk/reference/forex/candle.md new file mode 100644 index 00000000000..df6c1004462 --- /dev/null +++ b/website/content/sdk/reference/forex/candle.md @@ -0,0 +1,36 @@ +--- +title: candle +description: OpenBB SDK Function +--- + +# candle + +Show candle plot for fx data. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/forex_helper.py#L235)] + +```python +openbb.forex.candle(data: pd.DataFrame, to_symbol: str = "", from_symbol: str = "", ma: Optional[Iterable[int]] = None, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, use_matplotlib: bool = True, add_trend: bool = False, yscale: str = "linear") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Loaded fx historical data | None | False | +| to_symbol | str | To forex symbol | | True | +| from_symbol | str | From forex symbol | | True | +| ma | Optional[Iterable[int]] | Moving averages | None | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forex/fwd.md b/website/content/sdk/reference/forex/fwd.md new file mode 100644 index 00000000000..bdae739c58d --- /dev/null +++ b/website/content/sdk/reference/forex/fwd.md @@ -0,0 +1,34 @@ +--- +title: fwd +description: OpenBB SDK Function +--- + +# fwd + +Gets forward rates from fxempire + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/fxempire_model.py#L14)] + +```python +openbb.forex.fwd(to_symbol: str = "USD", from_symbol: str = "EUR") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| to_symbol | str | To currency | USD | True | +| from_symbol | str | From currency | EUR | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing forward rates | +--- + diff --git a/website/content/sdk/reference/forex/get_currency_list.md b/website/content/sdk/reference/forex/get_currency_list.md new file mode 100644 index 00000000000..aeaf6dfc485 --- /dev/null +++ b/website/content/sdk/reference/forex/get_currency_list.md @@ -0,0 +1,29 @@ +--- +title: get_currency_list +description: OpenBB SDK Function +--- + +# get_currency_list + +Load AV currency codes from a local file. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/av_model.py#L19)] + +```python +openbb.forex.get_currency_list() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/forex/load.md b/website/content/sdk/reference/forex/load.md new file mode 100644 index 00000000000..ad5b881102a --- /dev/null +++ b/website/content/sdk/reference/forex/load.md @@ -0,0 +1,39 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load forex for two given symbols. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/forex_helper.py#L95)] + +```python +openbb.forex.load(to_symbol: str, from_symbol: str, resolution: str = "d", interval: str = "1day", start_date: str = None, source: str = "YahooFinance", verbose: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| to_symbol | str | The from currency symbol. Ex: USD, EUR, GBP, YEN | None | False | +| from_symbol | str | The from currency symbol. Ex: USD, EUR, GBP, YEN | None | False | +| resolution | str | The resolution for the data, by default "d" | d | True | +| interval | str | What interval to get data for, by default "1day" | 1day | True | +| start_date | str | When to begin loading in data, by default last_year.strftime("%Y-%m-%d") | None | True | +| source | str | Where to get data from, by default "YahooFinance" | YahooFinance | True | +| verbose | bool | Display verbose information on what was the pair that was loaded, by default True | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The loaded data | +--- + diff --git a/website/content/sdk/reference/forex/oanda/calendar.md b/website/content/sdk/reference/forex/oanda/calendar.md new file mode 100644 index 00000000000..08e2c6978cc --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/calendar.md @@ -0,0 +1,75 @@ +--- +title: calendar +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# calendar + + + + +Request data of significant events calendar. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L645)] + +```python +openbb.forex.oanda.calendar(days: int = 14, instrument: Optional[str] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | Union[str, None] | The loaded currency pair, by default None | None | True | +| days | int | Number of days in advance | 14 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Calendar events data or False | +--- + + + + + + +View calendar of significant events. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L383)] + +```python +openbb.forex.oanda.calendar_chart(instrument: str, days: int = 7) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | str | The loaded currency pair | None | False | +| days | int | Number of days in advance | 7 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/cancel.md b/website/content/sdk/reference/forex/oanda/cancel.md new file mode 100644 index 00000000000..5057055d7a0 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/cancel.md @@ -0,0 +1,74 @@ +--- +title: cancel +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cancel + + + + +Request cancellation of a pending order. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L346)] + +```python +openbb.forex.oanda.cancel(orderID: str, accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| orderID | str | The pending order ID to cancel. | None | False | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +Cancel a Pending Order. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L197)] + +```python +openbb.forex.oanda.cancel_chart(accountID: str, orderID: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | +| orderID | str | The pending order ID to cancel. | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/candles.md b/website/content/sdk/reference/forex/oanda/candles.md new file mode 100644 index 00000000000..f8fdd45aca6 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/candles.md @@ -0,0 +1,79 @@ +--- +title: candles +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# candles + + + + +Request data for candle chart. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L581)] + +```python +openbb.forex.oanda.candles(instrument: Optional[str] = None, granularity: str = "D", candlecount: int = 180) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | str | Loaded currency pair code | None | True | +| granularity | str | Data granularity, by default "D" | D | True | +| candlecount | int | Limit for the number of data points, by default 180 | 180 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Candle chart data or False | +--- + + + + + + +Show candle chart. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L294)] + +```python +openbb.forex.oanda.candles_chart(instrument: str = "", granularity: str = "D", candlecount: int = 180, additional_charts: Optional[Dict[str, bool]] = None, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | str | The loaded currency pair | | True | +| granularity | str | The timeframe to get for the candle chart. Seconds: S5, S10, S15, S30
Minutes: M1, M2, M4, M5, M10, M15, M30 Hours: H1, H2, H3, H4, H6, H8, H12
Day (default): D, Week: W Month: M, | D | True | +| candlecount | int | Limit for the number of data points | 180 | True | +| additional_charts | Dict[str, bool] | A dictionary of flags to include additional charts | None | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/close.md b/website/content/sdk/reference/forex/oanda/close.md new file mode 100644 index 00000000000..159894412e8 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/close.md @@ -0,0 +1,77 @@ +--- +title: close +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# close + + + + +Close a trade. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L526)] + +```python +openbb.forex.oanda.close(orderID: str, units: Optional[int] = 0, accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| orderID | str | ID of the order to close | None | False | +| units | Union[int, None] | Number of units to close. If empty default to all. | 0 | True | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Close trades data or False | +--- + + + + + + +Close a trade. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L271)] + +```python +openbb.forex.oanda.close_chart(accountID: str, orderID: str = "", units: Optional[int] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | +| orderID | str | ID of the order to close | | True | +| units | Union[int, None] | Number of units to close. If empty default to all. | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/listorders.md b/website/content/sdk/reference/forex/oanda/listorders.md new file mode 100644 index 00000000000..87d19fa5717 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/listorders.md @@ -0,0 +1,76 @@ +--- +title: listorders +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# listorders + + + + +Request the orders list from Oanda. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L225)] + +```python +openbb.forex.oanda.listorders(order_state: str = "PENDING", order_count: int = 0, accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| order_state | str | Filter orders by a specific state ("PENDING", "CANCELLED", etc.) | PENDING | True | +| order_count | int | Limit the number of orders to retrieve | 0 | True | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +List order history. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L153)] + +```python +openbb.forex.oanda.listorders_chart(accountID: str, order_state: str = "PENDING", order_count: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | +| order_state | str | Filter orders by a specific state ("PENDING", "CANCELLED", etc.) | PENDING | True | +| order_count | int | Limit the number of orders to retrieve | 0 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/openpositions.md b/website/content/sdk/reference/forex/oanda/openpositions.md new file mode 100644 index 00000000000..43113d71757 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/openpositions.md @@ -0,0 +1,72 @@ +--- +title: openpositions +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# openpositions + + + + +Request information on open positions. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L378)] + +```python +openbb.forex.oanda.openpositions(accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +Get information about open positions. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L216)] + +```python +openbb.forex.oanda.openpositions_chart(accountID: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/opentrades.md b/website/content/sdk/reference/forex/oanda/opentrades.md new file mode 100644 index 00000000000..2e84503dd02 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/opentrades.md @@ -0,0 +1,73 @@ +--- +title: opentrades +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# opentrades + + + + +Request open trades data. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L470)] + +```python +openbb.forex.oanda.opentrades(accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Open trades data or False | +--- + + + + + + +View open trades. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L252)] + +```python +openbb.forex.oanda.opentrades_chart(accountID: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/order.md b/website/content/sdk/reference/forex/oanda/order.md new file mode 100644 index 00000000000..9862683f9f6 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/order.md @@ -0,0 +1,79 @@ +--- +title: order +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# order + + + + +Request creation of buy/sell trade order. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L270)] + +```python +openbb.forex.oanda.order(price: int = 0, units: int = 0, instrument: Optional[str] = None, accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | Union[str, None] | The loaded currency pair, by default None | None | True | +| price | int | The price to set for the limit order. | 0 | True | +| units | int | The number of units to place in the order request. | 0 | True | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Orders data or False | +--- + + + + + + +Create a buy/sell order. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L174)] + +```python +openbb.forex.oanda.order_chart(accountID: str, instrument: str = "", price: int = 0, units: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | +| instrument | str | The loaded currency pair | | True | +| price | int | The price to set for the limit order. | 0 | True | +| units | int | The number of units to place in the order request. | 0 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/orderbook.md b/website/content/sdk/reference/forex/oanda/orderbook.md new file mode 100644 index 00000000000..c260bddac43 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/orderbook.md @@ -0,0 +1,76 @@ +--- +title: orderbook +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# orderbook + + + + +Request order book data for plotting. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L137)] + +```python +openbb.forex.oanda.orderbook(instrument: Optional[str] = None, accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | Union[str, None] | The loaded currency pair, by default None | None | True | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Order book data or False | +--- + + + + + + +Plot the orderbook for the instrument if Oanda provides one. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L79)] + +```python +openbb.forex.oanda.orderbook_chart(accountID: str, instrument: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | +| instrument | str | The loaded currency pair | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/pending.md b/website/content/sdk/reference/forex/oanda/pending.md new file mode 100644 index 00000000000..6d1892c9dfa --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/pending.md @@ -0,0 +1,73 @@ +--- +title: pending +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pending + + + + +Request information on pending orders. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L421)] + +```python +openbb.forex.oanda.pending(accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Pending orders data or False | +--- + + + + + + +Get information about pending orders. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L233)] + +```python +openbb.forex.oanda.pending_chart(accountID: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/positionbook.md b/website/content/sdk/reference/forex/oanda/positionbook.md new file mode 100644 index 00000000000..7a36d9f4aab --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/positionbook.md @@ -0,0 +1,76 @@ +--- +title: positionbook +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# positionbook + + + + +Request position book data for plotting. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L182)] + +```python +openbb.forex.oanda.positionbook(instrument: Optional[str] = None, accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| instrument | Union[str, None] | The loaded currency pair, by default None | None | True | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Position book data or False | +--- + + + + + + +Plot a position book for an instrument if Oanda provides one. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L116)] + +```python +openbb.forex.oanda.positionbook_chart(accountID: str, instrument: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | +| instrument | str | The loaded currency pair | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/price.md b/website/content/sdk/reference/forex/oanda/price.md new file mode 100644 index 00000000000..7bbb30c19dd --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/price.md @@ -0,0 +1,75 @@ +--- +title: price +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# price + + + + +Request price for a forex pair. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L36)] + +```python +openbb.forex.oanda.price(accountID: str = "REPLACE_ME", instrument: Optional[str] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | +| instrument | Union[str, None] | The loaded currency pair, by default None | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[Dict[str, str], bool] | The currency pair price or False | +--- + + + + + + +View price for loaded currency pair. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L40)] + +```python +openbb.forex.oanda.price_chart(account: str, instrument: Optional[str] = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda account ID | None | True | +| instrument | Union[str, None] | Instrument code or None | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/oanda/summary.md b/website/content/sdk/reference/forex/oanda/summary.md new file mode 100644 index 00000000000..c19cbb3aed5 --- /dev/null +++ b/website/content/sdk/reference/forex/oanda/summary.md @@ -0,0 +1,73 @@ +--- +title: summary +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# summary + + + + +Request Oanda account summary. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_model.py#L74)] + +```python +openbb.forex.oanda.summary(accountID: str = "REPLACE_ME") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, bool] | Account summary data or False | +--- + + + + + + +Print Oanda account summary. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/oanda/oanda_view.py#L62)] + +```python +openbb.forex.oanda.summary_chart(accountID: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| accountID | str | Oanda user account ID | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/forex/quote.md b/website/content/sdk/reference/forex/quote.md new file mode 100644 index 00000000000..e082a6c0008 --- /dev/null +++ b/website/content/sdk/reference/forex/quote.md @@ -0,0 +1,44 @@ +--- +title: quote +description: OpenBB SDK Function +--- + +# quote + +Get forex quote. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/forex/sdk_helpers.py#L9)] + +```python +openbb.forex.quote(symbol: str, source: str = "YahooFinance") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Forex symbol to get quote for. | None | False | +| source | str | Source to get quote from, by default "YahooFinance" | YahooFinance | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of quote data. | +--- + +## Examples + +This also supports AlphaVantage and will handle different conventions +```python +from openbb_terminal.sdk import openbb +EUR_USD_quote = openbb.forex.quote("EURUSD") +``` + +--- + diff --git a/website/content/sdk/reference/futures/curve.md b/website/content/sdk/reference/futures/curve.md new file mode 100644 index 00000000000..bd0be75ecc3 --- /dev/null +++ b/website/content/sdk/reference/futures/curve.md @@ -0,0 +1,76 @@ +--- +title: curve +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# curve + + + + +Get curve futures [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/futures/yfinance_model.py#L118)] + +```python +openbb.futures.curve(symbol: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | symbol to get forward curve | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dictionary with sector weightings allocation | +--- + + + + + + +Display curve futures [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/futures/yfinance_view.py#L232)] + +```python +openbb.futures.curve_chart(symbol: str, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Curve future symbol to display | None | False | +| raw | bool | Display futures timeseries in raw format | False | True | +| export | str | Type of format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/futures/historical.md b/website/content/sdk/reference/futures/historical.md new file mode 100644 index 00000000000..e8ea297b343 --- /dev/null +++ b/website/content/sdk/reference/futures/historical.md @@ -0,0 +1,79 @@ +--- +title: historical +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# historical + + + + +Get historical futures [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/futures/yfinance_model.py#L79)] + +```python +openbb.futures.historical(symbols: List[str], expiry: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | List[str] | List of future timeseries symbols to display | None | False | +| expiry | str | Future expiry date with format YYYY-MM | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dictionary with sector weightings allocation | +--- + + + + + + +Display historical futures [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/futures/yfinance_view.py#L65)] + +```python +openbb.futures.historical_chart(symbols: List[str], expiry: str = "", start_date: str = None, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | List[str] | List of future timeseries symbols to display | None | False | +| expiry | str | Future expiry date with format YYYY-MM | | True | +| start_date | str | Initial date like string (e.g., 2021-10-01) | None | True | +| raw | bool | Display futures timeseries in raw format | False | True | +| export | str | Type of format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/futures/search.md b/website/content/sdk/reference/futures/search.md new file mode 100644 index 00000000000..0418c5f428c --- /dev/null +++ b/website/content/sdk/reference/futures/search.md @@ -0,0 +1,34 @@ +--- +title: search +description: OpenBB SDK Function +--- + +# search + +Get search futures [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/futures/yfinance_model.py#L50)] + +```python +openbb.futures.search(category: str = "", exchange: str = "", description: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| category | str | Select the category where the future exists | | True | +| exchange | str | Select the exchange where the future exists | | True | +| description | str | Select the description where the future exists | | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/index.md b/website/content/sdk/reference/index.md new file mode 100644 index 00000000000..bbea1e2c218 --- /dev/null +++ b/website/content/sdk/reference/index.md @@ -0,0 +1,632 @@ +# OpenBB SDK Reference + +## alt +### covid +- [slopes](/sdk/functions/alt/covid/slopes) +- [global_cases](/sdk/functions/alt/covid/global_cases) +- [global_deaths](/sdk/functions/alt/covid/global_deaths) +- [ov](/sdk/functions/alt/covid/ov) +- [stat](/sdk/functions/alt/covid/stat) +### oss +- [github_data](/sdk/functions/alt/oss/github_data) +- [summary](/sdk/functions/alt/oss/summary) +- [history](/sdk/functions/alt/oss/history) +- [top](/sdk/functions/alt/oss/top) +- [search](/sdk/functions/alt/oss/search) +- [_make_request](/sdk/functions/alt/oss/_make_request) +- [_retry_session](/sdk/functions/alt/oss/_retry_session) +- [ross](/sdk/functions/alt/oss/ross) +## stocks +### ba +- [headlines](/sdk/functions/stocks/ba/headlines) +- [mentions](/sdk/functions/stocks/ba/mentions) +- [queries](/sdk/functions/stocks/ba/queries) +- [regions](/sdk/functions/stocks/ba/regions) +- [rise](/sdk/functions/stocks/ba/rise) +- [getdd](/sdk/functions/stocks/ba/getdd) +- [popular](/sdk/functions/stocks/ba/popular) +- [redditsent](/sdk/functions/stocks/ba/redditsent) +- [text_sent](/sdk/functions/stocks/ba/text_sent) +- [spac](/sdk/functions/stocks/ba/spac) +- [spacc](/sdk/functions/stocks/ba/spacc) +- [watchlist](/sdk/functions/stocks/ba/watchlist) +- [wsb](/sdk/functions/stocks/ba/wsb) +- [hist](/sdk/functions/stocks/ba/hist) +- [trend](/sdk/functions/stocks/ba/trend) +- [bullbear](/sdk/functions/stocks/ba/bullbear) +- [messages](/sdk/functions/stocks/ba/messages) +- [stalker](/sdk/functions/stocks/ba/stalker) +- [trending](/sdk/functions/stocks/ba/trending) +- [infer](/sdk/functions/stocks/ba/infer) +- [sentiment](/sdk/functions/stocks/ba/sentiment) +- [cnews](/sdk/functions/stocks/ba/cnews) +- [snews](/sdk/functions/stocks/ba/snews) +### ca +- [similar](/sdk/functions/stocks/ca/similar) +- [sentiment](/sdk/functions/stocks/ca/sentiment) +- [scorr](/sdk/functions/stocks/ca/scorr) +- [screener](/sdk/functions/stocks/ca/screener) +- [balance](/sdk/functions/stocks/ca/balance) +- [cashflow](/sdk/functions/stocks/ca/cashflow) +- [income](/sdk/functions/stocks/ca/income) +- [hist](/sdk/functions/stocks/ca/hist) +- [hcorr](/sdk/functions/stocks/ca/hcorr) +- [volume](/sdk/functions/stocks/ca/volume) +### dps +- [prom](/sdk/functions/stocks/dps/prom) +- [dpotc](/sdk/functions/stocks/dps/dpotc) +- [ctb](/sdk/functions/stocks/dps/ctb) +- [volexch](/sdk/functions/stocks/dps/volexch) +- [psi_q](/sdk/functions/stocks/dps/psi_q) +- [ftd](/sdk/functions/stocks/dps/ftd) +- [hsi](/sdk/functions/stocks/dps/hsi) +- [pos](/sdk/functions/stocks/dps/pos) +- [spos](/sdk/functions/stocks/dps/spos) +- [sidtc](/sdk/functions/stocks/dps/sidtc) +- [psi_sg](/sdk/functions/stocks/dps/psi_sg) +- [shorted](/sdk/functions/stocks/dps/shorted) +### disc +- [arkord](/sdk/functions/stocks/disc/arkord) +- [ipo](/sdk/functions/stocks/disc/ipo) +- [pipo](/sdk/functions/stocks/disc/pipo) +- [fipo](/sdk/functions/stocks/disc/fipo) +- [dividends](/sdk/functions/stocks/disc/dividends) +- [rtat](/sdk/functions/stocks/disc/rtat) +- [news](/sdk/functions/stocks/disc/news) +- [upcoming](/sdk/functions/stocks/disc/upcoming) +- [trending](/sdk/functions/stocks/disc/trending) +- [lowfloat](/sdk/functions/stocks/disc/lowfloat) +- [hotpenny](/sdk/functions/stocks/disc/hotpenny) +- [active](/sdk/functions/stocks/disc/active) +- [asc](/sdk/functions/stocks/disc/asc) +- [gainers](/sdk/functions/stocks/disc/gainers) +- [gtech](/sdk/functions/stocks/disc/gtech) +- [losers](/sdk/functions/stocks/disc/losers) +- [ugs](/sdk/functions/stocks/disc/ugs) +- [ulc](/sdk/functions/stocks/disc/ulc) +### dd +- [arktrades](/sdk/functions/stocks/dd/arktrades) +- [est](/sdk/functions/stocks/dd/est) +- [pt](/sdk/functions/stocks/dd/pt) +- [customer](/sdk/functions/stocks/dd/customer) +- [supplier](/sdk/functions/stocks/dd/supplier) +- [rot](/sdk/functions/stocks/dd/rot) +- [analyst](/sdk/functions/stocks/dd/analyst) +- [news](/sdk/functions/stocks/dd/news) +- [rating](/sdk/functions/stocks/dd/rating) +- [sec](/sdk/functions/stocks/dd/sec) +### fa +- [dupont](/sdk/functions/stocks/fa/dupont) +- [fraud](/sdk/functions/stocks/fa/fraud) +- [income](/sdk/functions/stocks/fa/income) +- [earnings](/sdk/functions/stocks/fa/earnings) +- [cash](/sdk/functions/stocks/fa/cash) +- [balance](/sdk/functions/stocks/fa/balance) +- [key](/sdk/functions/stocks/fa/key) +- [overview](/sdk/functions/stocks/fa/overview) +- [mgmt](/sdk/functions/stocks/fa/mgmt) +- [fama_coe](/sdk/functions/stocks/fa/fama_coe) +- [fama_raw](/sdk/functions/stocks/fa/fama_raw) +- [historical_5](/sdk/functions/stocks/fa/historical_5) +- [similar_dfs](/sdk/functions/stocks/fa/similar_dfs) +- [analysis](/sdk/functions/stocks/fa/analysis) +- [dcf](/sdk/functions/stocks/fa/dcf) +- [enterprise](/sdk/functions/stocks/fa/enterprise) +- [growth](/sdk/functions/stocks/fa/growth) +- [metrics](/sdk/functions/stocks/fa/metrics) +- [ratios](/sdk/functions/stocks/fa/ratios) +- [profile](/sdk/functions/stocks/fa/profile) +- [quote](/sdk/functions/stocks/fa/quote) +- [score](/sdk/functions/stocks/fa/score) +- [data](/sdk/functions/stocks/fa/data) +- [cal](/sdk/functions/stocks/fa/cal) +- [divs](/sdk/functions/stocks/fa/divs) +- [hq](/sdk/functions/stocks/fa/hq) +- [info](/sdk/functions/stocks/fa/info) +- [mktcap](/sdk/functions/stocks/fa/mktcap) +- [shrs](/sdk/functions/stocks/fa/shrs) +- [splits](/sdk/functions/stocks/fa/splits) +- [sust](/sdk/functions/stocks/fa/sust) +- [website](/sdk/functions/stocks/fa/website) +### gov +- [qtrcontracts](/sdk/functions/stocks/gov/qtrcontracts) +- [government_trading](/sdk/functions/stocks/gov/government_trading) +- [contracts](/sdk/functions/stocks/gov/contracts) +- [topbuys](/sdk/functions/stocks/gov/topbuys) +- [topsells](/sdk/functions/stocks/gov/topsells) +- [gtrades](/sdk/functions/stocks/gov/gtrades) +- [histcont](/sdk/functions/stocks/gov/histcont) +- [lastcontracts](/sdk/functions/stocks/gov/lastcontracts) +- [lasttrades](/sdk/functions/stocks/gov/lasttrades) +- [lobbying](/sdk/functions/stocks/gov/lobbying) +- [toplobbying](/sdk/functions/stocks/gov/toplobbying) +### ins +- [act](/sdk/functions/stocks/ins/act) +- [lins](/sdk/functions/stocks/ins/lins) +- [print_insider_data](/sdk/functions/stocks/ins/print_insider_data) +### options +- [pcr](/sdk/functions/stocks/options/pcr) +- [info](/sdk/functions/stocks/options/info) +- [hist_ce](/sdk/functions/stocks/options/hist_ce) +- [unu](/sdk/functions/stocks/options/unu) +#### screen +- [check_presets](/sdk/functions/stocks/options/screen/check_presets) +- [screener_output](/sdk/functions/stocks/options/screen/screener_output) +- [grhist](/sdk/functions/stocks/options/grhist) +- [hist](/sdk/functions/stocks/options/hist) +- [chains](/sdk/functions/stocks/options/chains) +- [last_price](/sdk/functions/stocks/options/last_price) +- [expirations](/sdk/functions/stocks/options/expirations) +- [process_chains](/sdk/functions/stocks/options/process_chains) +- [generate_data](/sdk/functions/stocks/options/generate_data) +- [dte](/sdk/functions/stocks/options/dte) +- [vsurf](/sdk/functions/stocks/options/vsurf) +### qa +- [capm](/sdk/functions/stocks/qa/capm) +- [fama_raw](/sdk/functions/stocks/qa/fama_raw) +- [historical_5](/sdk/functions/stocks/qa/historical_5) +- [beta](/sdk/functions/stocks/qa/beta) +### screener +- [screener_data](/sdk/functions/stocks/screener/screener_data) +- [historical](/sdk/functions/stocks/screener/historical) +### sia +- [filter_stocks](/sdk/functions/stocks/sia/filter_stocks) +- [cpci](/sdk/functions/stocks/sia/cpci) +- [cpcs](/sdk/functions/stocks/sia/cpcs) +- [cpic](/sdk/functions/stocks/sia/cpic) +- [cpis](/sdk/functions/stocks/sia/cpis) +- [cps](/sdk/functions/stocks/sia/cps) +- [countries](/sdk/functions/stocks/sia/countries) +- [industries](/sdk/functions/stocks/sia/industries) +- [maketcap](/sdk/functions/stocks/sia/maketcap) +- [sectors](/sdk/functions/stocks/sia/sectors) +- [stocks_data](/sdk/functions/stocks/sia/stocks_data) +### ta +- [summary](/sdk/functions/stocks/ta/summary) +- [view](/sdk/functions/stocks/ta/view) +- [recom](/sdk/functions/stocks/ta/recom) +- [rsp](/sdk/functions/stocks/ta/rsp) +### th +- [check_if_open](/sdk/functions/stocks/th/check_if_open) +- [all](/sdk/functions/stocks/th/all) +- [closed](/sdk/functions/stocks/th/closed) +- [open](/sdk/functions/stocks/th/open) +- [exchange](/sdk/functions/stocks/th/exchange) +- [load](/sdk/functions/stocks/load) +- [process_candle](/sdk/functions/stocks/process_candle) +- [search](/sdk/functions/stocks/search) +- [quote](/sdk/functions/stocks/quote) +- [tob](/sdk/functions/stocks/tob) +- [candle](/sdk/functions/stocks/candle) +## etf +- [news](/sdk/functions/etf/news) +### disc +- [mover](/sdk/functions/etf/disc/mover) +- [etf_by_category](/sdk/functions/etf/etf_by_category) +- [ld](/sdk/functions/etf/ld) +- [ln](/sdk/functions/etf/ln) +### scr +- [screen](/sdk/functions/etf/scr/screen) +- [holdings](/sdk/functions/etf/holdings) +- [symbols](/sdk/functions/etf/symbols) +- [overview](/sdk/functions/etf/overview) +- [etf_by_name](/sdk/functions/etf/etf_by_name) +- [weights](/sdk/functions/etf/weights) +- [summary](/sdk/functions/etf/summary) +- [load](/sdk/functions/etf/load) +- [candle](/sdk/functions/etf/candle) +## +- [news](/sdk/functions//news) +## qa +- [bw](/sdk/functions/qa/bw) +- [calculate_adjusted_var](/sdk/functions/qa/calculate_adjusted_var) +- [es](/sdk/functions/qa/es) +- [normality](/sdk/functions/qa/normality) +- [omega](/sdk/functions/qa/omega) +- [decompose](/sdk/functions/qa/decompose) +- [sharpe](/sdk/functions/qa/sharpe) +- [sortino](/sdk/functions/qa/sortino) +- [summary](/sdk/functions/qa/summary) +- [unitroot](/sdk/functions/qa/unitroot) +- [var](/sdk/functions/qa/var) +- [cusum](/sdk/functions/qa/cusum) +- [acf](/sdk/functions/qa/acf) +- [qqplot](/sdk/functions/qa/qqplot) +- [cdf](/sdk/functions/qa/cdf) +- [hist](/sdk/functions/qa/hist) +- [line](/sdk/functions/qa/line) +- [kurtosis](/sdk/functions/qa/kurtosis) +- [quantile](/sdk/functions/qa/quantile) +- [rolling](/sdk/functions/qa/rolling) +- [skew](/sdk/functions/qa/skew) +- [spread](/sdk/functions/qa/spread) +## ta +- [fib](/sdk/functions/ta/fib) +- [cci](/sdk/functions/ta/cci) +- [cg](/sdk/functions/ta/cg) +- [fisher](/sdk/functions/ta/fisher) +- [macd](/sdk/functions/ta/macd) +- [rsi](/sdk/functions/ta/rsi) +- [stoch](/sdk/functions/ta/stoch) +- [ma](/sdk/functions/ta/ma) +- [ema](/sdk/functions/ta/ema) +- [hma](/sdk/functions/ta/hma) +- [sma](/sdk/functions/ta/sma) +- [vwap](/sdk/functions/ta/vwap) +- [wma](/sdk/functions/ta/wma) +- [zlma](/sdk/functions/ta/zlma) +- [adx](/sdk/functions/ta/adx) +- [aroon](/sdk/functions/ta/aroon) +- [bbands](/sdk/functions/ta/bbands) +- [donchian](/sdk/functions/ta/donchian) +- [kc](/sdk/functions/ta/kc) +- [ad](/sdk/functions/ta/ad) +- [adosc](/sdk/functions/ta/adosc) +- [obv](/sdk/functions/ta/obv) +- [atr](/sdk/functions/ta/atr) +## crypto +### defi +- [vaults](/sdk/functions/crypto/defi/vaults) +- [anchor_data](/sdk/functions/crypto/defi/anchor_data) +- [swaps](/sdk/functions/crypto/defi/swaps) +- [pools](/sdk/functions/crypto/defi/pools) +- [tokens](/sdk/functions/crypto/defi/tokens) +- [pairs](/sdk/functions/crypto/defi/pairs) +- [stats](/sdk/functions/crypto/defi/stats) +- [dtvl](/sdk/functions/crypto/defi/dtvl) +- [ldapps](/sdk/functions/crypto/defi/ldapps) +- [stvl](/sdk/functions/crypto/defi/stvl) +- [gdapps](/sdk/functions/crypto/defi/gdapps) +- [luna_supply](/sdk/functions/crypto/defi/luna_supply) +- [newsletters](/sdk/functions/crypto/defi/newsletters) +- [aterra](/sdk/functions/crypto/defi/aterra) +- [ayr](/sdk/functions/crypto/defi/ayr) +- [gacc](/sdk/functions/crypto/defi/gacc) +- [gov_proposals](/sdk/functions/crypto/defi/gov_proposals) +- [sinfo](/sdk/functions/crypto/defi/sinfo) +- [sratio](/sdk/functions/crypto/defi/sratio) +- [sreturn](/sdk/functions/crypto/defi/sreturn) +- [validators](/sdk/functions/crypto/defi/validators) +### disc +- [top_coins](/sdk/functions/crypto/disc/top_coins) +- [cpsearch](/sdk/functions/crypto/disc/cpsearch) +- [top_dapps](/sdk/functions/crypto/disc/top_dapps) +- [top_dexes](/sdk/functions/crypto/disc/top_dexes) +- [top_games](/sdk/functions/crypto/disc/top_games) +- [top_nfts](/sdk/functions/crypto/disc/top_nfts) +- [categories_keys](/sdk/functions/crypto/disc/categories_keys) +- [coin_list](/sdk/functions/crypto/disc/coin_list) +- [coins](/sdk/functions/crypto/disc/coins) +- [coins_for_given_exchange](/sdk/functions/crypto/disc/coins_for_given_exchange) +- [gainers](/sdk/functions/crypto/disc/gainers) +- [losers](/sdk/functions/crypto/disc/losers) +- [trending](/sdk/functions/crypto/disc/trending) +### dd +- [trading_pairs](/sdk/functions/crypto/dd/trading_pairs) +- [check_valid_binance_str](/sdk/functions/crypto/dd/check_valid_binance_str) +- [all_binance_trading_pairs](/sdk/functions/crypto/dd/all_binance_trading_pairs) +- [binance_available_quotes_for_each_coin](/sdk/functions/crypto/dd/binance_available_quotes_for_each_coin) +- [balance](/sdk/functions/crypto/dd/balance) +- [ob](/sdk/functions/crypto/dd/ob) +- [show_available_pairs_for_given_symbol](/sdk/functions/crypto/dd/show_available_pairs_for_given_symbol) +- [exchanges](/sdk/functions/crypto/dd/exchanges) +- [candles](/sdk/functions/crypto/dd/candles) +- [stats](/sdk/functions/crypto/dd/stats) +- [trades](/sdk/functions/crypto/dd/trades) +- [trading_pair_info](/sdk/functions/crypto/dd/trading_pair_info) +- [oi](/sdk/functions/crypto/dd/oi) +- [basic](/sdk/functions/crypto/dd/basic) +- [coin](/sdk/functions/crypto/dd/coin) +- [events](/sdk/functions/crypto/dd/events) +- [ex](/sdk/functions/crypto/dd/ex) +- [mkt](/sdk/functions/crypto/dd/mkt) +- [twitter](/sdk/functions/crypto/dd/twitter) +- [ps](/sdk/functions/crypto/dd/ps) +- [news](/sdk/functions/crypto/dd/news) +- [headlines](/sdk/functions/crypto/dd/headlines) +- [active](/sdk/functions/crypto/dd/active) +- [close](/sdk/functions/crypto/dd/close) +- [eb](/sdk/functions/crypto/dd/eb) +- [change](/sdk/functions/crypto/dd/change) +- [nonzero](/sdk/functions/crypto/dd/nonzero) +- [get_mt](/sdk/functions/crypto/dd/get_mt) +- [fr](/sdk/functions/crypto/dd/fr) +- [gov](/sdk/functions/crypto/dd/gov) +- [inv](/sdk/functions/crypto/dd/inv) +- [links](/sdk/functions/crypto/dd/links) +- [mcapdom](/sdk/functions/crypto/dd/mcapdom) +- [mt](/sdk/functions/crypto/dd/mt) +- [pi](/sdk/functions/crypto/dd/pi) +- [rm](/sdk/functions/crypto/dd/rm) +- [team](/sdk/functions/crypto/dd/team) +- [tk](/sdk/functions/crypto/dd/tk) +- [coin_market_chart](/sdk/functions/crypto/dd/coin_market_chart) +- [pr](/sdk/functions/crypto/dd/pr) +- [tokenomics](/sdk/functions/crypto/dd/tokenomics) +- [gh](/sdk/functions/crypto/dd/gh) +### ov +- [coin_list](/sdk/functions/crypto/ov/coin_list) +- [altindex](/sdk/functions/crypto/ov/altindex) +- [btcrb](/sdk/functions/crypto/ov/btcrb) +- [cbpairs](/sdk/functions/crypto/ov/cbpairs) +- [platforms](/sdk/functions/crypto/ov/platforms) +- [info](/sdk/functions/crypto/ov/info) +- [markets](/sdk/functions/crypto/ov/markets) +- [contracts](/sdk/functions/crypto/ov/contracts) +- [exmarkets](/sdk/functions/crypto/ov/exmarkets) +- [news](/sdk/functions/crypto/ov/news) +- [cr](/sdk/functions/crypto/ov/cr) +- [derivatives](/sdk/functions/crypto/ov/derivatives) +- [exrates](/sdk/functions/crypto/ov/exrates) +- [exchanges](/sdk/functions/crypto/ov/exchanges) +- [products](/sdk/functions/crypto/ov/products) +- [defi](/sdk/functions/crypto/ov/defi) +- [globe](/sdk/functions/crypto/ov/globe) +- [hold](/sdk/functions/crypto/ov/hold) +- [indexes](/sdk/functions/crypto/ov/indexes) +- [stables](/sdk/functions/crypto/ov/stables) +- [categories](/sdk/functions/crypto/ov/categories) +- [hm](/sdk/functions/crypto/ov/hm) +- [crypto_hack](/sdk/functions/crypto/ov/crypto_hack) +- [crypto_hack_slugs](/sdk/functions/crypto/ov/crypto_hack_slugs) +- [crypto_hacks](/sdk/functions/crypto/ov/crypto_hacks) +- [wfpe](/sdk/functions/crypto/ov/wfpe) +- [ewf](/sdk/functions/crypto/ov/ewf) +- [wf](/sdk/functions/crypto/ov/wf) +### onchain +- [hr](/sdk/functions/crypto/onchain/hr) +- [dvcp](/sdk/functions/crypto/onchain/dvcp) +- [lt](/sdk/functions/crypto/onchain/lt) +- [dex_trades_monthly](/sdk/functions/crypto/onchain/dex_trades_monthly) +- [erc20_tokens](/sdk/functions/crypto/onchain/erc20_tokens) +- [ueat](/sdk/functions/crypto/onchain/ueat) +- [ttcp](/sdk/functions/crypto/onchain/ttcp) +- [baas](/sdk/functions/crypto/onchain/baas) +- [tv](/sdk/functions/crypto/onchain/tv) +- [query_graph](/sdk/functions/crypto/onchain/query_graph) +- [btc_supply](/sdk/functions/crypto/onchain/btc_supply) +- [btc_transac](/sdk/functions/crypto/onchain/btc_transac) +- [gwei](/sdk/functions/crypto/onchain/gwei) +- [hist](/sdk/functions/crypto/onchain/hist) +- [balance](/sdk/functions/crypto/onchain/balance) +- [token_decimals](/sdk/functions/crypto/onchain/token_decimals) +- [prices](/sdk/functions/crypto/onchain/prices) +- [th](/sdk/functions/crypto/onchain/th) +- [info](/sdk/functions/crypto/onchain/info) +- [holders](/sdk/functions/crypto/onchain/holders) +- [top](/sdk/functions/crypto/onchain/top) +- [tx](/sdk/functions/crypto/onchain/tx) +- [whales](/sdk/functions/crypto/onchain/whales) +### nft +- [stats](/sdk/functions/crypto/nft/stats) +- [fp](/sdk/functions/crypto/nft/fp) +- [collections](/sdk/functions/crypto/nft/collections) +### tools +- [apy](/sdk/functions/crypto/tools/apy) +- [il](/sdk/functions/crypto/tools/il) +- [load](/sdk/functions/crypto/load) +- [price](/sdk/functions/crypto/price) +- [find](/sdk/functions/crypto/find) +- [chart](/sdk/functions/crypto/chart) +- [candles](/sdk/functions/crypto/candles) +## econometrics +- [clean](/sdk/functions/econometrics/clean) +- [coint](/sdk/functions/econometrics/coint) +- [granger](/sdk/functions/econometrics/granger) +- [norm](/sdk/functions/econometrics/norm) +- [options](/sdk/functions/econometrics/options) +- [root](/sdk/functions/econometrics/root) +- [load](/sdk/functions/econometrics/load) +- [bgod](/sdk/functions/econometrics/bgod) +- [bols](/sdk/functions/econometrics/bols) +- [bpag](/sdk/functions/econometrics/bpag) +- [comparison](/sdk/functions/econometrics/comparison) +- [dwat](/sdk/functions/econometrics/dwat) +- [fdols](/sdk/functions/econometrics/fdols) +- [fe](/sdk/functions/econometrics/fe) +- [ols](/sdk/functions/econometrics/ols) +- [pols](/sdk/functions/econometrics/pols) +- [re](/sdk/functions/econometrics/re) +- [get_regression_data](/sdk/functions/econometrics/get_regression_data) +- [panel](/sdk/functions/econometrics/panel) +## economy +- [cpi](/sdk/functions/economy/cpi) +- [gdpc](/sdk/functions/economy/gdpc) +- [inf](/sdk/functions/economy/inf) +- [gdp](/sdk/functions/economy/gdp) +- [rtps](/sdk/functions/economy/rtps) +- [tyld](/sdk/functions/economy/tyld) +- [unemp](/sdk/functions/economy/unemp) +- [macro](/sdk/functions/economy/macro) +- [macro_parameters](/sdk/functions/economy/macro_parameters) +- [macro_countries](/sdk/functions/economy/macro_countries) +- [treasury](/sdk/functions/economy/treasury) +- [treasury_maturities](/sdk/functions/economy/treasury_maturities) +- [future](/sdk/functions/economy/future) +- [spectrum](/sdk/functions/economy/spectrum) +- [valuation](/sdk/functions/economy/valuation) +- [performance](/sdk/functions/economy/performance) +- [perfmap](/sdk/functions/economy/perfmap) +- [fred](/sdk/functions/economy/fred) +- [fred_ids](/sdk/functions/economy/fred_ids) +- [fred_notes](/sdk/functions/economy/fred_notes) +- [ycrv](/sdk/functions/economy/ycrv) +- [events](/sdk/functions/economy/events) +- [country_codes](/sdk/functions/economy/country_codes) +- [bigmac](/sdk/functions/economy/bigmac) +- [glbonds](/sdk/functions/economy/glbonds) +- [currencies](/sdk/functions/economy/currencies) +- [overview](/sdk/functions/economy/overview) +- [futures](/sdk/functions/economy/futures) +- [usbonds](/sdk/functions/economy/usbonds) +- [indices](/sdk/functions/economy/indices) +- [index](/sdk/functions/economy/index) +- [available_indices](/sdk/functions/economy/available_indices) +- [search_index](/sdk/functions/economy/search_index) +- [get_groups](/sdk/functions/economy/get_groups) +## forex +- [get_currency_list](/sdk/functions/forex/get_currency_list) +- [quote](/sdk/functions/forex/quote) +- [fwd](/sdk/functions/forex/fwd) +### oanda +- [summary](/sdk/functions/forex/oanda/summary) +- [cancel](/sdk/functions/forex/oanda/cancel) +- [close](/sdk/functions/forex/oanda/close) +- [order](/sdk/functions/forex/oanda/order) +- [price](/sdk/functions/forex/oanda/price) +- [calendar](/sdk/functions/forex/oanda/calendar) +- [candles](/sdk/functions/forex/oanda/candles) +- [openpositions](/sdk/functions/forex/oanda/openpositions) +- [opentrades](/sdk/functions/forex/oanda/opentrades) +- [listorders](/sdk/functions/forex/oanda/listorders) +- [orderbook](/sdk/functions/forex/oanda/orderbook) +- [pending](/sdk/functions/forex/oanda/pending) +- [positionbook](/sdk/functions/forex/oanda/positionbook) +- [candle](/sdk/functions/forex/candle) +- [load](/sdk/functions/forex/load) +## portfolio +- [load](/sdk/functions/portfolio/load) +- [show](/sdk/functions/portfolio/show) +- [bench](/sdk/functions/portfolio/bench) +- [holdv](/sdk/functions/portfolio/holdv) +- [holdp](/sdk/functions/portfolio/holdp) +- [mret](/sdk/functions/portfolio/mret) +- [yret](/sdk/functions/portfolio/yret) +- [dret](/sdk/functions/portfolio/dret) +- [distr](/sdk/functions/portfolio/distr) +- [maxdd](/sdk/functions/portfolio/maxdd) +- [rvol](/sdk/functions/portfolio/rvol) +- [rsharpe](/sdk/functions/portfolio/rsharpe) +- [rsort](/sdk/functions/portfolio/rsort) +- [rbeta](/sdk/functions/portfolio/rbeta) +- [summary](/sdk/functions/portfolio/summary) +### alloc +- [assets](/sdk/functions/portfolio/alloc/assets) +- [sectors](/sdk/functions/portfolio/alloc/sectors) +- [countries](/sdk/functions/portfolio/alloc/countries) +- [regions](/sdk/functions/portfolio/alloc/regions) +### metric +- [volatility](/sdk/functions/portfolio/metric/volatility) +- [sharpe](/sdk/functions/portfolio/metric/sharpe) +- [sortino](/sdk/functions/portfolio/metric/sortino) +- [maxdrawdown](/sdk/functions/portfolio/metric/maxdrawdown) +- [rsquare](/sdk/functions/portfolio/metric/rsquare) +- [skew](/sdk/functions/portfolio/metric/skew) +- [kurtosis](/sdk/functions/portfolio/metric/kurtosis) +- [gaintopain](/sdk/functions/portfolio/metric/gaintopain) +- [trackerr](/sdk/functions/portfolio/metric/trackerr) +- [information](/sdk/functions/portfolio/metric/information) +- [tail](/sdk/functions/portfolio/metric/tail) +- [commonsense](/sdk/functions/portfolio/metric/commonsense) +- [jensens](/sdk/functions/portfolio/metric/jensens) +- [calmar](/sdk/functions/portfolio/metric/calmar) +- [kelly](/sdk/functions/portfolio/metric/kelly) +- [payoff](/sdk/functions/portfolio/metric/payoff) +- [profitfactor](/sdk/functions/portfolio/metric/profitfactor) +- [perf](/sdk/functions/portfolio/perf) +- [var](/sdk/functions/portfolio/var) +- [es](/sdk/functions/portfolio/es) +- [om](/sdk/functions/portfolio/om) +### po +- [load](/sdk/functions/portfolio/po/load) +- [file](/sdk/functions/portfolio/po/file) +- [show](/sdk/functions/portfolio/po/show) +- [load_bl_views](/sdk/functions/portfolio/po/load_bl_views) +- [maxsharpe](/sdk/functions/portfolio/po/maxsharpe) +- [minrisk](/sdk/functions/portfolio/po/minrisk) +- [maxutil](/sdk/functions/portfolio/po/maxutil) +- [maxret](/sdk/functions/portfolio/po/maxret) +- [maxdiv](/sdk/functions/portfolio/po/maxdiv) +- [maxdecorr](/sdk/functions/portfolio/po/maxdecorr) +- [blacklitterman](/sdk/functions/portfolio/po/blacklitterman) +- [ef](/sdk/functions/portfolio/po/ef) +- [riskparity](/sdk/functions/portfolio/po/riskparity) +- [relriskparity](/sdk/functions/portfolio/po/relriskparity) +- [hrp](/sdk/functions/portfolio/po/hrp) +- [herc](/sdk/functions/portfolio/po/herc) +- [nco](/sdk/functions/portfolio/po/nco) +- [hcp](/sdk/functions/portfolio/po/hcp) +- [equal](/sdk/functions/portfolio/po/equal) +- [mktcap](/sdk/functions/portfolio/po/mktcap) +- [dividend](/sdk/functions/portfolio/po/dividend) +- [property](/sdk/functions/portfolio/po/property) +- [get_properties](/sdk/functions/portfolio/po/get_properties) +- [plot](/sdk/functions/portfolio/po/plot) +## keys +- [mykeys](/sdk/functions/keys/mykeys) +- [set_keys](/sdk/functions/keys/set_keys) +- [get_keys_info](/sdk/functions/keys/get_keys_info) +- [av](/sdk/functions/keys/av) +- [fmp](/sdk/functions/keys/fmp) +- [quandl](/sdk/functions/keys/quandl) +- [polygon](/sdk/functions/keys/polygon) +- [fred](/sdk/functions/keys/fred) +- [news](/sdk/functions/keys/news) +- [tradier](/sdk/functions/keys/tradier) +- [cmc](/sdk/functions/keys/cmc) +- [finnhub](/sdk/functions/keys/finnhub) +- [iex](/sdk/functions/keys/iex) +- [reddit](/sdk/functions/keys/reddit) +- [twitter](/sdk/functions/keys/twitter) +- [rh](/sdk/functions/keys/rh) +- [degiro](/sdk/functions/keys/degiro) +- [oanda](/sdk/functions/keys/oanda) +- [binance](/sdk/functions/keys/binance) +- [bitquery](/sdk/functions/keys/bitquery) +- [si](/sdk/functions/keys/si) +- [coinbase](/sdk/functions/keys/coinbase) +- [walert](/sdk/functions/keys/walert) +- [glassnode](/sdk/functions/keys/glassnode) +- [coinglass](/sdk/functions/keys/coinglass) +- [cpanic](/sdk/functions/keys/cpanic) +- [ethplorer](/sdk/functions/keys/ethplorer) +- [smartstake](/sdk/functions/keys/smartstake) +- [github](/sdk/functions/keys/github) +- [messari](/sdk/functions/keys/messari) +- [eodhd](/sdk/functions/keys/eodhd) +- [santiment](/sdk/functions/keys/santiment) +- [tokenterminal](/sdk/functions/keys/tokenterminal) +- [shroom](/sdk/functions/keys/shroom) +- [stocksera](/sdk/functions/keys/stocksera) +## futures +- [search](/sdk/functions/futures/search) +- [historical](/sdk/functions/futures/historical) +- [curve](/sdk/functions/futures/curve) +## forecast +- [load](/sdk/functions/forecast/load) +- [show](/sdk/functions/forecast/show) +- [plot](/sdk/functions/forecast/plot) +- [clean](/sdk/functions/forecast/clean) +- [combine](/sdk/functions/forecast/combine) +- [desc](/sdk/functions/forecast/desc) +- [corr](/sdk/functions/forecast/corr) +- [season](/sdk/functions/forecast/season) +- [delete](/sdk/functions/forecast/delete) +- [rename](/sdk/functions/forecast/rename) +- [export](/sdk/functions/forecast/export) +- [signal](/sdk/functions/forecast/signal) +- [atr](/sdk/functions/forecast/atr) +- [ema](/sdk/functions/forecast/ema) +- [sto](/sdk/functions/forecast/sto) +- [rsi](/sdk/functions/forecast/rsi) +- [roc](/sdk/functions/forecast/roc) +- [mom](/sdk/functions/forecast/mom) +- [delta](/sdk/functions/forecast/delta) +- [autoces](/sdk/functions/forecast/autoces) +- [autoets](/sdk/functions/forecast/autoets) +- [seasonalnaive](/sdk/functions/forecast/seasonalnaive) +- [expo](/sdk/functions/forecast/expo) +- [theta](/sdk/functions/forecast/theta) +- [linregr](/sdk/functions/forecast/linregr) +- [regr](/sdk/functions/forecast/regr) +- [rnn](/sdk/functions/forecast/rnn) +- [brnn](/sdk/functions/forecast/brnn) +- [nbeats](/sdk/functions/forecast/nbeats) +- [tcn](/sdk/functions/forecast/tcn) +- [trans](/sdk/functions/forecast/trans) +- [tft](/sdk/functions/forecast/tft) +- [nhits](/sdk/functions/forecast/nhits) +- [mstl](/sdk/functions/forecast/mstl) +- [autoarima](/sdk/functions/forecast/autoarima) +- [rwd](/sdk/functions/forecast/rwd) +- [autoselect](/sdk/functions/forecast/autoselect) diff --git a/website/content/sdk/reference/keys/av.md b/website/content/sdk/reference/keys/av.md new file mode 100644 index 00000000000..401db71787c --- /dev/null +++ b/website/content/sdk/reference/keys/av.md @@ -0,0 +1,35 @@ +--- +title: av +description: OpenBB SDK Function +--- + +# av + +Set Alpha Vantage key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L289)] + +```python +openbb.keys.av(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/binance.md b/website/content/sdk/reference/keys/binance.md new file mode 100644 index 00000000000..0a95aacb264 --- /dev/null +++ b/website/content/sdk/reference/keys/binance.md @@ -0,0 +1,47 @@ +--- +title: binance +description: OpenBB SDK Function +--- + +# binance + +Set Binance key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1473)] + +```python +openbb.keys.binance(key: str, secret: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| secret | str | API secret | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + key="example_key", + secret="example_secret" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.binance( +``` + +--- + diff --git a/website/content/sdk/reference/keys/bitquery.md b/website/content/sdk/reference/keys/bitquery.md new file mode 100644 index 00000000000..44650c31c16 --- /dev/null +++ b/website/content/sdk/reference/keys/bitquery.md @@ -0,0 +1,35 @@ +--- +title: bitquery +description: OpenBB SDK Function +--- + +# bitquery + +Set Bitquery key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1059)] + +```python +openbb.keys.bitquery(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/cmc.md b/website/content/sdk/reference/keys/cmc.md new file mode 100644 index 00000000000..cb1412eeb11 --- /dev/null +++ b/website/content/sdk/reference/keys/cmc.md @@ -0,0 +1,35 @@ +--- +title: cmc +description: OpenBB SDK Function +--- + +# cmc + +Set Coinmarketcap key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L751)] + +```python +openbb.keys.cmc(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/coinbase.md b/website/content/sdk/reference/keys/coinbase.md new file mode 100644 index 00000000000..41e4b9243a1 --- /dev/null +++ b/website/content/sdk/reference/keys/coinbase.md @@ -0,0 +1,49 @@ +--- +title: coinbase +description: OpenBB SDK Function +--- + +# coinbase + +Set Coinbase key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1622)] + +```python +openbb.keys.coinbase(key: str, secret: str, passphrase: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| secret | str | API secret | None | False | +| passphrase | str | Account passphrase | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + key="example_key", + secret="example_secret", + passphrase="example_passphrase" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.coinbase( +``` + +--- + diff --git a/website/content/sdk/reference/keys/coinglass.md b/website/content/sdk/reference/keys/coinglass.md new file mode 100644 index 00000000000..02570724ca3 --- /dev/null +++ b/website/content/sdk/reference/keys/coinglass.md @@ -0,0 +1,35 @@ +--- +title: coinglass +description: OpenBB SDK Function +--- + +# coinglass + +Set Coinglass key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1853)] + +```python +openbb.keys.coinglass(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/cpanic.md b/website/content/sdk/reference/keys/cpanic.md new file mode 100644 index 00000000000..55c96a6ca31 --- /dev/null +++ b/website/content/sdk/reference/keys/cpanic.md @@ -0,0 +1,35 @@ +--- +title: cpanic +description: OpenBB SDK Function +--- + +# cpanic + +Set Cpanic key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1924)] + +```python +openbb.keys.cpanic(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/degiro.md b/website/content/sdk/reference/keys/degiro.md new file mode 100644 index 00000000000..e2f7be54166 --- /dev/null +++ b/website/content/sdk/reference/keys/degiro.md @@ -0,0 +1,48 @@ +--- +title: degiro +description: OpenBB SDK Function +--- + +# degiro + +Set Degiro key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1296)] + +```python +openbb.keys.degiro(username: str, password: str, secret: str = "", persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| username | str | User username | None | False | +| password | str | User password | None | False | +| secret | str | User secret | | True | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + username="example_username", + password="example_password" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.degiro( +``` + +--- + diff --git a/website/content/sdk/reference/keys/eodhd.md b/website/content/sdk/reference/keys/eodhd.md new file mode 100644 index 00000000000..7ae56469ceb --- /dev/null +++ b/website/content/sdk/reference/keys/eodhd.md @@ -0,0 +1,35 @@ +--- +title: eodhd +description: OpenBB SDK Function +--- + +# eodhd + +Set Eodhd key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2273)] + +```python +openbb.keys.eodhd(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/ethplorer.md b/website/content/sdk/reference/keys/ethplorer.md new file mode 100644 index 00000000000..aa367b90518 --- /dev/null +++ b/website/content/sdk/reference/keys/ethplorer.md @@ -0,0 +1,35 @@ +--- +title: ethplorer +description: OpenBB SDK Function +--- + +# ethplorer + +Set Ethplorer key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1987)] + +```python +openbb.keys.ethplorer(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/finnhub.md b/website/content/sdk/reference/keys/finnhub.md new file mode 100644 index 00000000000..1ac96e19367 --- /dev/null +++ b/website/content/sdk/reference/keys/finnhub.md @@ -0,0 +1,35 @@ +--- +title: finnhub +description: OpenBB SDK Function +--- + +# finnhub + +Set Finnhub key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L813)] + +```python +openbb.keys.finnhub(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/fmp.md b/website/content/sdk/reference/keys/fmp.md new file mode 100644 index 00000000000..a324650b4ff --- /dev/null +++ b/website/content/sdk/reference/keys/fmp.md @@ -0,0 +1,35 @@ +--- +title: fmp +description: OpenBB SDK Function +--- + +# fmp + +Set Financial Modeling Prep key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L352)] + +```python +openbb.keys.fmp(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/fred.md b/website/content/sdk/reference/keys/fred.md new file mode 100644 index 00000000000..ef1d9ae065b --- /dev/null +++ b/website/content/sdk/reference/keys/fred.md @@ -0,0 +1,35 @@ +--- +title: fred +description: OpenBB SDK Function +--- + +# fred + +Set FRED key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L548)] + +```python +openbb.keys.fred(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/get_keys_info.md b/website/content/sdk/reference/keys/get_keys_info.md new file mode 100644 index 00000000000..6e8f9393c2a --- /dev/null +++ b/website/content/sdk/reference/keys/get_keys_info.md @@ -0,0 +1,30 @@ +--- +title: get_keys_info +description: OpenBB SDK Function +--- + +# get_keys_info + +Get info on available APIs to use in set_keys. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L177)] + +```python +openbb.keys.get_keys_info() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict[str, List[str]] | Dictionary of expected API keys and arguments | +--- + diff --git a/website/content/sdk/reference/keys/github.md b/website/content/sdk/reference/keys/github.md new file mode 100644 index 00000000000..6183b5cff38 --- /dev/null +++ b/website/content/sdk/reference/keys/github.md @@ -0,0 +1,35 @@ +--- +title: github +description: OpenBB SDK Function +--- + +# github + +Set GitHub key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2148)] + +```python +openbb.keys.github(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/glassnode.md b/website/content/sdk/reference/keys/glassnode.md new file mode 100644 index 00000000000..7602361aa7e --- /dev/null +++ b/website/content/sdk/reference/keys/glassnode.md @@ -0,0 +1,35 @@ +--- +title: glassnode +description: OpenBB SDK Function +--- + +# glassnode + +Set Glassnode key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1780)] + +```python +openbb.keys.glassnode(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/iex.md b/website/content/sdk/reference/keys/iex.md new file mode 100644 index 00000000000..cc88ae8a988 --- /dev/null +++ b/website/content/sdk/reference/keys/iex.md @@ -0,0 +1,35 @@ +--- +title: iex +description: OpenBB SDK Function +--- + +# iex + +Set IEX Cloud key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L879)] + +```python +openbb.keys.iex(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/messari.md b/website/content/sdk/reference/keys/messari.md new file mode 100644 index 00000000000..10210c64031 --- /dev/null +++ b/website/content/sdk/reference/keys/messari.md @@ -0,0 +1,35 @@ +--- +title: messari +description: OpenBB SDK Function +--- + +# messari + +Set Messari key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2205)] + +```python +openbb.keys.messari(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/mykeys.md b/website/content/sdk/reference/keys/mykeys.md new file mode 100644 index 00000000000..9c8bf10251d --- /dev/null +++ b/website/content/sdk/reference/keys/mykeys.md @@ -0,0 +1,46 @@ +--- +title: mykeys +description: OpenBB SDK Function +--- + +# mykeys + +Get currently set API keys. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L241)] + +```python +openbb.keys.mykeys(show: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| show | bool | Flag to choose whether to show actual keys or not.
By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Currents keys | +--- + +## Examples + Key + API + BITQUERY_KEY ******* + CMC_KEY ******* +COINGLASS_KEY ******* +```python +from openbb_terminal.sdk import openbb +openbb.keys.mykeys() +``` + +--- + diff --git a/website/content/sdk/reference/keys/news.md b/website/content/sdk/reference/keys/news.md new file mode 100644 index 00000000000..fdca64bc6fb --- /dev/null +++ b/website/content/sdk/reference/keys/news.md @@ -0,0 +1,35 @@ +--- +title: news +description: OpenBB SDK Function +--- + +# news + +Set News key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L614)] + +```python +openbb.keys.news(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/oanda.md b/website/content/sdk/reference/keys/oanda.md new file mode 100644 index 00000000000..86ac4647f50 --- /dev/null +++ b/website/content/sdk/reference/keys/oanda.md @@ -0,0 +1,49 @@ +--- +title: oanda +description: OpenBB SDK Function +--- + +# oanda + +Set Oanda key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1387)] + +```python +openbb.keys.oanda(account: str, access_token: str, account_type: str = "", persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| account | str | User account | None | False | +| access_token | str | User token | None | False | +| account_type | str | User account type | | True | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + account="example_account", + access_token="example_access_token", + account_type="example_account_type" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.oanda( +``` + +--- + diff --git a/website/content/sdk/reference/keys/polygon.md b/website/content/sdk/reference/keys/polygon.md new file mode 100644 index 00000000000..8347695a4fa --- /dev/null +++ b/website/content/sdk/reference/keys/polygon.md @@ -0,0 +1,35 @@ +--- +title: polygon +description: OpenBB SDK Function +--- + +# polygon + +Set Polygon key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L481)] + +```python +openbb.keys.polygon(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/quandl.md b/website/content/sdk/reference/keys/quandl.md new file mode 100644 index 00000000000..b9cbced1c37 --- /dev/null +++ b/website/content/sdk/reference/keys/quandl.md @@ -0,0 +1,35 @@ +--- +title: quandl +description: OpenBB SDK Function +--- + +# quandl + +Set Quandl key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L419)] + +```python +openbb.keys.quandl(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/reddit.md b/website/content/sdk/reference/keys/reddit.md new file mode 100644 index 00000000000..a5afa712822 --- /dev/null +++ b/website/content/sdk/reference/keys/reddit.md @@ -0,0 +1,53 @@ +--- +title: reddit +description: OpenBB SDK Function +--- + +# reddit + +Set Reddit key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L942)] + +```python +openbb.keys.reddit(client_id: str, client_secret: str, password: str, username: str, useragent: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| client_id | str | Client ID | None | False | +| client_secret | str | Client secret | None | False | +| password | str | User password | None | False | +| username | str | User username | None | False | +| useragent | str | User useragent | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + client_id="example_id", + client_secret="example_secret", + password="example_password", + username="example_username", + useragent="example_useragent" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.reddit( +``` + +--- + diff --git a/website/content/sdk/reference/keys/rh.md b/website/content/sdk/reference/keys/rh.md new file mode 100644 index 00000000000..bd4cd047ac6 --- /dev/null +++ b/website/content/sdk/reference/keys/rh.md @@ -0,0 +1,47 @@ +--- +title: rh +description: OpenBB SDK Function +--- + +# rh + +Set Robinhood key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1227)] + +```python +openbb.keys.rh(username: str, password: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| username | str | User username | None | False | +| password | str | User password | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + username="example_username", + password="example_password" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.rh( +``` + +--- + diff --git a/website/content/sdk/reference/keys/santiment.md b/website/content/sdk/reference/keys/santiment.md new file mode 100644 index 00000000000..4ecf84aa845 --- /dev/null +++ b/website/content/sdk/reference/keys/santiment.md @@ -0,0 +1,35 @@ +--- +title: santiment +description: OpenBB SDK Function +--- + +# santiment + +Set Santiment key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2335)] + +```python +openbb.keys.santiment(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/set_keys.md b/website/content/sdk/reference/keys/set_keys.md new file mode 100644 index 00000000000..f0db3c5d566 --- /dev/null +++ b/website/content/sdk/reference/keys/set_keys.md @@ -0,0 +1,46 @@ +--- +title: set_keys +description: OpenBB SDK Function +--- + +# set_keys + +Set API keys in bundle. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L116)] + +```python +openbb.keys.set_keys(keys_dict: Dict[str, Dict[str, Union[str, bool]]], persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| keys_dict | Dict[str, Dict[str, Union[str, bool]]] | More info on the required inputs for each API can be found on `keys.get_keys_info()` | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict | Status of each key set. | +--- + +## Examples + "fred": {"key": "XXXXX"}, + "binance": {"key": "YYYYY", "secret": "ZZZZZ"}, + } +```python +from openbb_terminal.sdk import openbb +d = { +``` + +--- + diff --git a/website/content/sdk/reference/keys/shroom.md b/website/content/sdk/reference/keys/shroom.md new file mode 100644 index 00000000000..df326e4ac77 --- /dev/null +++ b/website/content/sdk/reference/keys/shroom.md @@ -0,0 +1,35 @@ +--- +title: shroom +description: OpenBB SDK Function +--- + +# shroom + +Set Shroom key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2412)] + +```python +openbb.keys.shroom(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/si.md b/website/content/sdk/reference/keys/si.md new file mode 100644 index 00000000000..2d6d41c3e70 --- /dev/null +++ b/website/content/sdk/reference/keys/si.md @@ -0,0 +1,35 @@ +--- +title: si +description: OpenBB SDK Function +--- + +# si + +Set Sentimentinvestor key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1548)] + +```python +openbb.keys.si(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/smartstake.md b/website/content/sdk/reference/keys/smartstake.md new file mode 100644 index 00000000000..c7af14945cc --- /dev/null +++ b/website/content/sdk/reference/keys/smartstake.md @@ -0,0 +1,47 @@ +--- +title: smartstake +description: OpenBB SDK Function +--- + +# smartstake + +Set Smartstake key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2057)] + +```python +openbb.keys.smartstake(key: str, access_token: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| access_token | str | API token | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + key="example_key", + access_token="example_access_token", + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.smartstake( +``` + +--- + diff --git a/website/content/sdk/reference/keys/stocksera.md b/website/content/sdk/reference/keys/stocksera.md new file mode 100644 index 00000000000..df267eeb46a --- /dev/null +++ b/website/content/sdk/reference/keys/stocksera.md @@ -0,0 +1,35 @@ +--- +title: stocksera +description: OpenBB SDK Function +--- + +# stocksera + +Set Stocksera key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2545)] + +```python +openbb.keys.stocksera(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/tokenterminal.md b/website/content/sdk/reference/keys/tokenterminal.md new file mode 100644 index 00000000000..0ac31bda5eb --- /dev/null +++ b/website/content/sdk/reference/keys/tokenterminal.md @@ -0,0 +1,35 @@ +--- +title: tokenterminal +description: OpenBB SDK Function +--- + +# tokenterminal + +Set Token Terminal key. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L2483)] + +```python +openbb.keys.tokenterminal(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/tradier.md b/website/content/sdk/reference/keys/tradier.md new file mode 100644 index 00000000000..efca8b6f98f --- /dev/null +++ b/website/content/sdk/reference/keys/tradier.md @@ -0,0 +1,35 @@ +--- +title: tradier +description: OpenBB SDK Function +--- + +# tradier + +Set Tradier key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L680)] + +```python +openbb.keys.tradier(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/keys/twitter.md b/website/content/sdk/reference/keys/twitter.md new file mode 100644 index 00000000000..e26d6be92df --- /dev/null +++ b/website/content/sdk/reference/keys/twitter.md @@ -0,0 +1,49 @@ +--- +title: twitter +description: OpenBB SDK Function +--- + +# twitter + +Set Twitter key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1132)] + +```python +openbb.keys.twitter(key: str, secret: str, access_token: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| secret | str | API secret | None | False | +| access_token | str | API token | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + +## Examples + key="example_key", + secret="example_secret", + access_token="example_access_token" + ) +```python +from openbb_terminal.sdk import openbb +openbb.keys.twitter( +``` + +--- + diff --git a/website/content/sdk/reference/keys/walert.md b/website/content/sdk/reference/keys/walert.md new file mode 100644 index 00000000000..4ef2ea76529 --- /dev/null +++ b/website/content/sdk/reference/keys/walert.md @@ -0,0 +1,35 @@ +--- +title: walert +description: OpenBB SDK Function +--- + +# walert + +Set Walert key + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/keys_model.py#L1711)] + +```python +openbb.keys.walert(key: str, persist: bool = False, show_output: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| key | str | API key | None | False | +| persist | bool | If False, api key change will be contained to where it was changed. For example, a Jupyter notebook session.
If True, api key change will be global, i.e. it will affect terminal environment variables.
By default, False. | False | True | +| show_output | bool | Display status string or not. By default, False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Status of key set | +--- + diff --git a/website/content/sdk/reference/news.md b/website/content/sdk/reference/news.md new file mode 100644 index 00000000000..a3d0fb47c38 --- /dev/null +++ b/website/content/sdk/reference/news.md @@ -0,0 +1,35 @@ +--- +title: news +description: OpenBB SDK Function +--- + +# news + +Get news for a given term and source. [Source: Feedparser] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/feedparser_model.py#L13)] + +```python +openbb..news(term: str = "", sources: str = "", sort: str = "published") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| term | str | term to search on the news articles | | True | +| sources | str | sources to exclusively show news from (separated by commas) | | True | +| sort | str | the column to sort by | published | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | term to search on the news articles | +--- + diff --git a/website/content/sdk/reference/portfolio/alloc/assets.md b/website/content/sdk/reference/portfolio/alloc/assets.md new file mode 100644 index 00000000000..9bb3ddc0435 --- /dev/null +++ b/website/content/sdk/reference/portfolio/alloc/assets.md @@ -0,0 +1,36 @@ +--- +title: assets +description: OpenBB SDK Function +--- + +# assets + +Display portfolio asset allocation compared to the benchmark + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L770)] + +```python +openbb.portfolio.alloc.assets(portfolio_engine: portfolio_engine.PortfolioEngine, tables: bool = False, limit: int = 10, recalculate: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| tables | bool | Whether to include separate allocation tables | False | True | +| limit | int | The amount of assets you wish to show, by default this is set to 10 | 10 | True | +| recalculate | bool | Flag to force recalculate allocation if already exists | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] | DataFrame with combined allocation plus individual allocation if tables is `True`. | +--- + diff --git a/website/content/sdk/reference/portfolio/alloc/countries.md b/website/content/sdk/reference/portfolio/alloc/countries.md new file mode 100644 index 00000000000..12743e27fc6 --- /dev/null +++ b/website/content/sdk/reference/portfolio/alloc/countries.md @@ -0,0 +1,36 @@ +--- +title: countries +description: OpenBB SDK Function +--- + +# countries + +Display portfolio country allocation compared to the benchmark + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L858)] + +```python +openbb.portfolio.alloc.countries(portfolio_engine: portfolio_engine.PortfolioEngine, limit: int = 10, tables: bool = False, recalculate: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| tables | bool | Whether to include separate allocation tables | False | True | +| limit | int | The amount of assets you wish to show, by default this is set to 10 | 10 | True | +| recalculate | bool | Flag to force recalculate allocation if already exists | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] | DataFrame with combined allocation plus individual allocation if tables is `True`. | +--- + diff --git a/website/content/sdk/reference/portfolio/alloc/regions.md b/website/content/sdk/reference/portfolio/alloc/regions.md new file mode 100644 index 00000000000..ad846cfe8ff --- /dev/null +++ b/website/content/sdk/reference/portfolio/alloc/regions.md @@ -0,0 +1,36 @@ +--- +title: regions +description: OpenBB SDK Function +--- + +# regions + +Display portfolio region allocation compared to the benchmark + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L902)] + +```python +openbb.portfolio.alloc.regions(portfolio_engine: portfolio_engine.PortfolioEngine, limit: int = 10, tables: bool = False, recalculate: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| tables | bool | Whether to include separate allocation tables | False | True | +| limit | int | The amount of assets you wish to show, by default this is set to 10 | 10 | True | +| recalculate | bool | Flag to force recalculate allocation if already exists | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] | DataFrame with combined allocation plus individual allocation if tables is `True`. | +--- + diff --git a/website/content/sdk/reference/portfolio/alloc/sectors.md b/website/content/sdk/reference/portfolio/alloc/sectors.md new file mode 100644 index 00000000000..acb36f6a96f --- /dev/null +++ b/website/content/sdk/reference/portfolio/alloc/sectors.md @@ -0,0 +1,36 @@ +--- +title: sectors +description: OpenBB SDK Function +--- + +# sectors + +Display portfolio sector allocation compared to the benchmark + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L814)] + +```python +openbb.portfolio.alloc.sectors(portfolio_engine: portfolio_engine.PortfolioEngine, limit: int = 10, tables: bool = False, recalculate: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| tables | bool | Whether to include separate allocation tables | False | True | +| limit | int | The amount of assets you wish to show, by default this is set to 10 | 10 | True | +| recalculate | bool | Flag to force recalculate allocation if already exists | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]] | DataFrame with combined allocation plus individual allocation if tables is `True`. | +--- + diff --git a/website/content/sdk/reference/portfolio/bench.md b/website/content/sdk/reference/portfolio/bench.md new file mode 100644 index 00000000000..6450dfd441c --- /dev/null +++ b/website/content/sdk/reference/portfolio/bench.md @@ -0,0 +1,34 @@ +--- +title: bench +description: OpenBB SDK Function +--- + +# bench + +Load benchmark into portfolio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L93)] + +```python +openbb.portfolio.bench(portfolio_engine: portfolio_engine.PortfolioEngine, symbol: str, full_shares: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| symbol | str | Benchmark symbol to download data | None | False | +| full_shares | bool | Whether to mimic the portfolio trades exactly (partial shares) or round down the
quantity to the nearest number | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/portfolio/distr.md b/website/content/sdk/reference/portfolio/distr.md new file mode 100644 index 00000000000..52119d63fd0 --- /dev/null +++ b/website/content/sdk/reference/portfolio/distr.md @@ -0,0 +1,79 @@ +--- +title: distr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# distr + + + + +Display daily returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L441)] + +```python +openbb.portfolio.distr(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of returns distribution | +--- + + + +
+ + +Display daily returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L626)] + +```python +openbb.portfolio.distr_chart(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all", raw: bool = False, export: str = "", external_axes: Optional[matplotlib.axes._axes.Axes] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_returns | pd.Series | Returns of the portfolio | None | True | +| benchmark_returns | pd.Series | Returns of the benchmark | None | True | +| interval | str | interval to compare cumulative returns and benchmark | None | True | +| raw | False | Display raw data from cumulative return | False | True | +| export | str | Export certain type of data | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/dret.md b/website/content/sdk/reference/portfolio/dret.md new file mode 100644 index 00000000000..e53857afc8e --- /dev/null +++ b/website/content/sdk/reference/portfolio/dret.md @@ -0,0 +1,79 @@ +--- +title: dret +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# dret + + + + +Get daily returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L373)] + +```python +openbb.portfolio.dret(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with daily returns | +--- + + + +
+ + +Display daily returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L557)] + +```python +openbb.portfolio.dret_chart(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all", raw: bool = False, limit: int = 10, export: str = "", external_axes: Optional[matplotlib.axes._axes.Axes] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | +| raw | False | Display raw data from cumulative return | False | True | +| limit | int | Last daily returns to display | 10 | True | +| export | str | Export certain type of data | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/es.md b/website/content/sdk/reference/portfolio/es.md new file mode 100644 index 00000000000..a32d8a4307a --- /dev/null +++ b/website/content/sdk/reference/portfolio/es.md @@ -0,0 +1,36 @@ +--- +title: es +description: OpenBB SDK Function +--- + +# es + +Get portfolio expected shortfall + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1797)] + +```python +openbb.portfolio.es(portfolio_engine: portfolio_engine.PortfolioEngine, use_mean: bool = False, distribution: str = "normal", percentile: float = 99.9) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| use_mean | | if one should use the data mean return | False | True | +| distribution | str | choose distribution to use: logistic, laplace, normal | normal | True | +| percentile | float | es percentile (%) | 99.9 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with portfolio expected shortfall | +--- + diff --git a/website/content/sdk/reference/portfolio/holdp.md b/website/content/sdk/reference/portfolio/holdp.md new file mode 100644 index 00000000000..a76b1ea93a0 --- /dev/null +++ b/website/content/sdk/reference/portfolio/holdp.md @@ -0,0 +1,78 @@ +--- +title: holdp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# holdp + + + + +Get holdings of assets (in percentage) + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L167)] + +```python +openbb.portfolio.holdp(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of holdings percentage | +--- + + + +
+ + +Display holdings of assets (in percentage) + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L792)] + +```python +openbb.portfolio.holdp_chart(portfolio_engine: portfolio_engine.PortfolioEngine, unstack: bool = False, raw: bool = False, limit: int = 10, export: str = "", external_axes: Optional[matplotlib.axes._axes.Axes] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| unstack | bool | Individual assets over time | False | True | +| raw | bool | To display raw data | False | True | +| limit | int | Number of past market days to display holdings | 10 | True | +| export | str | Format to export plot | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/holdv.md b/website/content/sdk/reference/portfolio/holdv.md new file mode 100644 index 00000000000..8578087fda0 --- /dev/null +++ b/website/content/sdk/reference/portfolio/holdv.md @@ -0,0 +1,78 @@ +--- +title: holdv +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# holdv + + + + +Get holdings of assets (absolute value) + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L135)] + +```python +openbb.portfolio.holdv(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of holdings value | +--- + + + +
+ + +Display holdings of assets (absolute value) + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L713)] + +```python +openbb.portfolio.holdv_chart(portfolio_engine: portfolio_engine.PortfolioEngine, unstack: bool = False, raw: bool = False, limit: int = 10, export: str = "", external_axes: Optional[matplotlib.axes._axes.Axes] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| unstack | bool | Individual assets over time | False | True | +| raw | bool | To display raw data | False | True | +| limit | int | Number of past market days to display holdings | 10 | True | +| export | str | Format to export plot | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/load.md b/website/content/sdk/reference/portfolio/load.md new file mode 100644 index 00000000000..3ae5d135349 --- /dev/null +++ b/website/content/sdk/reference/portfolio/load.md @@ -0,0 +1,36 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Get PortfolioEngine object + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L27)] + +```python +openbb.portfolio.load(transactions_file_path: str, benchmark_symbol: str = "SPY", full_shares: bool = False, risk_free_rate: float = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| transactions_file_path | str | Path to transactions file | None | False | +| benchmark_symbol | str | Benchmark ticker to download data | SPY | True | +| full_shares | bool | Whether to mimic the portfolio trades exactly (partial shares) or round down the
quantity to the nearest number | False | True | +| risk_free_rate | float | Risk free rate in float format | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations | +--- + diff --git a/website/content/sdk/reference/portfolio/maxdd.md b/website/content/sdk/reference/portfolio/maxdd.md new file mode 100644 index 00000000000..cbc639e31d0 --- /dev/null +++ b/website/content/sdk/reference/portfolio/maxdd.md @@ -0,0 +1,76 @@ +--- +title: maxdd +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# maxdd + + + + +Calculate the drawdown (MDD) of historical series. Note that the calculation is done + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L482)] + +```python +openbb.portfolio.maxdd(portfolio_engine: portfolio_engine.PortfolioEngine, is_returns: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series of input values | None | True | +| is_returns | bool | Flag to indicate inputs are returns | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Series | Holdings series | +--- + + + + + + +Display maximum drawdown curve + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L1111)] + +```python +openbb.portfolio.maxdd_chart(portfolio_engine: portfolio_engine.PortfolioEngine, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| export | str | Format to export data | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/metric/calmar.md b/website/content/sdk/reference/portfolio/metric/calmar.md new file mode 100644 index 00000000000..150d13f4160 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/calmar.md @@ -0,0 +1,34 @@ +--- +title: calmar +description: OpenBB SDK Function +--- + +# calmar + +Get calmar ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1522)] + +```python +openbb.portfolio.metric.calmar(portfolio_engine: portfolio_engine.PortfolioEngine, window: int = 756) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | int | Interval used for rolling values | 756 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of calmar ratio of the benchmark and portfolio during different time periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/commonsense.md b/website/content/sdk/reference/portfolio/metric/commonsense.md new file mode 100644 index 00000000000..a90d73526e9 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/commonsense.md @@ -0,0 +1,33 @@ +--- +title: commonsense +description: OpenBB SDK Function +--- + +# commonsense + +Get common sense ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1448)] + +```python +openbb.portfolio.metric.commonsense(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of the portfolios and the benchmarks common sense ratio during different time periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/gaintopain.md b/website/content/sdk/reference/portfolio/metric/gaintopain.md new file mode 100644 index 00000000000..d4d615e99bf --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/gaintopain.md @@ -0,0 +1,33 @@ +--- +title: gaintopain +description: OpenBB SDK Function +--- + +# gaintopain + +Get Pain-to-Gain ratio based on historical data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1313)] + +```python +openbb.portfolio.metric.gaintopain(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of the portfolio's gain-to-pain ratio | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/information.md b/website/content/sdk/reference/portfolio/metric/information.md new file mode 100644 index 00000000000..3cccff5c20f --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/information.md @@ -0,0 +1,33 @@ +--- +title: information +description: OpenBB SDK Function +--- + +# information + +Get information ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1379)] + +```python +openbb.portfolio.metric.information(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of the information ratio during different time periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/jensens.md b/website/content/sdk/reference/portfolio/metric/jensens.md new file mode 100644 index 00000000000..3e85106054b --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/jensens.md @@ -0,0 +1,35 @@ +--- +title: jensens +description: OpenBB SDK Function +--- + +# jensens + +Get jensen's alpha + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1480)] + +```python +openbb.portfolio.metric.jensens(portfolio_engine: portfolio_engine.PortfolioEngine, risk_free_rate: float = 0, window: str = "1y") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | Interval used for rolling values | 1y | True | +| risk_free_rate | float | Risk free rate | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of jensens's alpha during different time windows | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/kelly.md b/website/content/sdk/reference/portfolio/metric/kelly.md new file mode 100644 index 00000000000..34aacc73fa2 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/kelly.md @@ -0,0 +1,33 @@ +--- +title: kelly +description: OpenBB SDK Function +--- + +# kelly + +Get kelly criterion + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1561)] + +```python +openbb.portfolio.metric.kelly(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of kelly criterion of the portfolio during different time periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/kurtosis.md b/website/content/sdk/reference/portfolio/metric/kurtosis.md new file mode 100644 index 00000000000..967a868b4fc --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/kurtosis.md @@ -0,0 +1,33 @@ +--- +title: kurtosis +description: OpenBB SDK Function +--- + +# kurtosis + +Get kurtosis for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1032)] + +```python +openbb.portfolio.metric.kurtosis(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with kurtosis for portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/maxdrawdown.md b/website/content/sdk/reference/portfolio/metric/maxdrawdown.md new file mode 100644 index 00000000000..48abb897f47 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/maxdrawdown.md @@ -0,0 +1,33 @@ +--- +title: maxdrawdown +description: OpenBB SDK Function +--- + +# maxdrawdown + +Get maximum drawdown ratio for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1266)] + +```python +openbb.portfolio.metric.maxdrawdown(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with maximum drawdown for portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/payoff.md b/website/content/sdk/reference/portfolio/metric/payoff.md new file mode 100644 index 00000000000..4f63de64e6e --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/payoff.md @@ -0,0 +1,40 @@ +--- +title: payoff +description: OpenBB SDK Function +--- + +# payoff + +Get payoff ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1590)] + +```python +openbb.portfolio.metric.payoff(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of payoff ratio of the portfolio during different time periods | +--- + +## Examples +During some time periods there were no losing trades. Thus some values could not be calculated. +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") +output = openbb.portfolio.metric.payoff(p) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/metric/profitfactor.md b/website/content/sdk/reference/portfolio/metric/profitfactor.md new file mode 100644 index 00000000000..371be88bc6e --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/profitfactor.md @@ -0,0 +1,43 @@ +--- +title: profitfactor +description: OpenBB SDK Function +--- + +# profitfactor + +Get profit factor + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1612)] + +```python +openbb.portfolio.metric.profitfactor(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of profit factor of the portfolio during different time periods | +--- + +## Examples +During some time periods there were no losing trades. Thus some values could not be calculated. +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.load("openbb_terminal/miscellaneous/portfolio_examples/holdings/example.csv") +output = openbb.portfolio.metric.profitfactor(p) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/metric/rsquare.md b/website/content/sdk/reference/portfolio/metric/rsquare.md new file mode 100644 index 00000000000..5adaadbdcb4 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/rsquare.md @@ -0,0 +1,33 @@ +--- +title: rsquare +description: OpenBB SDK Function +--- + +# rsquare + +Get R2 Score for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L947)] + +```python +openbb.portfolio.metric.rsquare(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with R2 Score between portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/sharpe.md b/website/content/sdk/reference/portfolio/metric/sharpe.md new file mode 100644 index 00000000000..a8d35378aba --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/sharpe.md @@ -0,0 +1,34 @@ +--- +title: sharpe +description: OpenBB SDK Function +--- + +# sharpe + +Get sharpe ratio for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1160)] + +```python +openbb.portfolio.metric.sharpe(portfolio_engine: portfolio_engine.PortfolioEngine, risk_free_rate: float = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| risk_free_rate | float | Risk free rate value | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with sharpe ratio for portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/skew.md b/website/content/sdk/reference/portfolio/metric/skew.md new file mode 100644 index 00000000000..4aba343fc3a --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/skew.md @@ -0,0 +1,30 @@ +--- +title: skew +description: OpenBB SDK Function +--- + +# skew + +Get skewness for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L987)] + +```python +openbb.portfolio.metric.skew(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with skewness for portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/sortino.md b/website/content/sdk/reference/portfolio/metric/sortino.md new file mode 100644 index 00000000000..e6020f072ff --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/sortino.md @@ -0,0 +1,34 @@ +--- +title: sortino +description: OpenBB SDK Function +--- + +# sortino + +Get sortino ratio for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1213)] + +```python +openbb.portfolio.metric.sortino(portfolio_engine: portfolio_engine.PortfolioEngine, risk_free_rate: float = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| risk_free_rate | float | Risk free rate value | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with sortino ratio for portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/tail.md b/website/content/sdk/reference/portfolio/metric/tail.md new file mode 100644 index 00000000000..d0d558958e1 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/tail.md @@ -0,0 +1,34 @@ +--- +title: tail +description: OpenBB SDK Function +--- + +# tail + +Get tail ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1411)] + +```python +openbb.portfolio.metric.tail(portfolio_engine: portfolio_engine.PortfolioEngine, window: int = 252) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | int | Interval used for rolling values | 252 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of the portfolios and the benchmarks tail ratio during different time windows | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/trackerr.md b/website/content/sdk/reference/portfolio/metric/trackerr.md new file mode 100644 index 00000000000..2beb4ceeb85 --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/trackerr.md @@ -0,0 +1,34 @@ +--- +title: trackerr +description: OpenBB SDK Function +--- + +# trackerr + +Get tracking error + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1344)] + +```python +openbb.portfolio.metric.trackerr(portfolio_engine: portfolio_engine.PortfolioEngine, window: int = 252) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | int | Interval used for rolling values | 252 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of tracking errors during different time windows | +--- + diff --git a/website/content/sdk/reference/portfolio/metric/volatility.md b/website/content/sdk/reference/portfolio/metric/volatility.md new file mode 100644 index 00000000000..d46360ee0bb --- /dev/null +++ b/website/content/sdk/reference/portfolio/metric/volatility.md @@ -0,0 +1,33 @@ +--- +title: volatility +description: OpenBB SDK Function +--- + +# volatility + +Get volatility for portfolio and benchmark selected + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1111)] + +```python +openbb.portfolio.metric.volatility(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with volatility for portfolio and benchmark for different periods | +--- + diff --git a/website/content/sdk/reference/portfolio/mret.md b/website/content/sdk/reference/portfolio/mret.md new file mode 100644 index 00000000000..d5e36b811f8 --- /dev/null +++ b/website/content/sdk/reference/portfolio/mret.md @@ -0,0 +1,79 @@ +--- +title: mret +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mret + + + + +Get monthly returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L267)] + +```python +openbb.portfolio.mret(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with monthly returns | +--- + + + +
+ + +Display monthly returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L457)] + +```python +openbb.portfolio.mret_chart(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all", raw: bool = False, show_vals: bool = False, export: str = "", external_axes: Optional[matplotlib.axes._axes.Axes] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | +| raw | False | Display raw data from cumulative return | False | True | +| show_vals | False | Show values on heatmap | False | True | +| export | str | Export certain type of data | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/om.md b/website/content/sdk/reference/portfolio/om.md new file mode 100644 index 00000000000..6ee612e58e2 --- /dev/null +++ b/website/content/sdk/reference/portfolio/om.md @@ -0,0 +1,77 @@ +--- +title: om +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# om + + + + +Get omega ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1839)] + +```python +openbb.portfolio.om(portfolio_engine: portfolio_engine.PortfolioEngine, threshold_start: float = 0, threshold_end: float = 1.5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| threshold_start | float | annualized target return threshold start of plotted threshold range | 0 | True | +| threshold_end | float | annualized target return threshold end of plotted threshold range | 1.5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with portfolio omega ratio | +--- + + + +
+ + +Display omega ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L1802)] + +```python +openbb.portfolio.om_chart(portfolio_engine: portfolio_engine.PortfolioEngine, threshold_start: float = 0, threshold_end: float = 1.5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| threshold_start | float | annualized target return threshold start of plotted threshold range | 0 | True | +| threshold_end | float | annualized target return threshold end of plotted threshold range | 1.5 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/perf.md b/website/content/sdk/reference/portfolio/perf.md new file mode 100644 index 00000000000..1583ad5e626 --- /dev/null +++ b/website/content/sdk/reference/portfolio/perf.md @@ -0,0 +1,34 @@ +--- +title: perf +description: OpenBB SDK Function +--- + +# perf + +Get portfolio performance vs the benchmark + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1640)] + +```python +openbb.portfolio.perf(portfolio_engine: portfolio_engine.PortfolioEngine, show_all_trades: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| show_all_trades | bool | Whether to also show all trades made and their performance (default is False) | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with portfolio performance vs the benchmark | +--- + diff --git a/website/content/sdk/reference/portfolio/po/blacklitterman.md b/website/content/sdk/reference/portfolio/po/blacklitterman.md new file mode 100644 index 00000000000..e3adb13beca --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/blacklitterman.md @@ -0,0 +1,69 @@ +--- +title: blacklitterman +description: OpenBB SDK Function +--- + +# blacklitterman + +Optimize decorrelation weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1019)] + +```python +openbb.portfolio.po.blacklitterman(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| benchmark | Dict | Dict of portfolio weights, by default None | None | True | +| p_views | List | Matrix P of views that shows relationships among assets and returns, by default None | None | True | +| q_views | List | Matrix Q of expected returns of views, by default None | None | True | +| objective | str | Objective function of the optimization model, by default 'Sharpe'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| delta | float | Risk aversion factor of Black Litterman model, by default None | None | True | +| equilibrium | bool | If True excess returns are based on equilibrium market portfolio, if False
excess returns are calculated as historical returns minus risk free rate, by default True | None | True | +| optimize | bool | If True Black Litterman estimates are used as inputs of mean variance model,
if False returns equilibrium weights from Black Litterman model, by default True | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.48920 + MSFT 0.28391 + AMZN 0.22689, + {'Return': 0.2563301105112327, + 'Volatility': 0.33132073874339424, + 'Sharpe ratio': 0.7736615325784322}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.blacklitterman(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/dividend.md b/website/content/sdk/reference/portfolio/po/dividend.md new file mode 100644 index 00000000000..708769b4c8c --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/dividend.md @@ -0,0 +1,59 @@ +--- +title: dividend +description: OpenBB SDK Function +--- + +# dividend + +Optimize weighted according to dividend yield + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L2207)] + +```python +openbb.portfolio.po.dividend(symbols: List[str] = None, portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.350575 + MSFT 0.649425 + AMZN 0.000000, + {'Return': 0.26879215033541076, + 'Volatility': 0.3348681656035649, + 'Sharpe ratio': 0.8026805111526232}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.dividend(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/ef.md b/website/content/sdk/reference/portfolio/po/ef.md new file mode 100644 index 00000000000..5f20a286f0b --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/ef.md @@ -0,0 +1,105 @@ +--- +title: ef +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ef + + + + +Get Efficient Frontier + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1120)] + +```python +openbb.portfolio.po.ef(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| n_portfolios | int | Number of portfolios to simulate, by default 100 | None | True | +| seed | int | Seed used to generate random portfolios, by default 123 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[ | pd.DataFrame,
pd.DataFrame,
pd.DataFrame,
pd.DataFrame,
Optional[pd.DataFrame],
NDArray[floating],
NDArray[floating],
rp.Portfolio, | +--- + + + +
+ + +Display efficient frontier + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_view.py#L41)] + +```python +openbb.portfolio.po.ef_chart(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| n_portfolios | int | Number of portfolios to simulate, by default 100 | None | True | +| seed | int | Seed used to generate random portfolios, by default 123 | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/po/equal.md b/website/content/sdk/reference/portfolio/po/equal.md new file mode 100644 index 00000000000..9604c8cb094 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/equal.md @@ -0,0 +1,59 @@ +--- +title: equal +description: OpenBB SDK Function +--- + +# equal + +Equally weighted portfolio, where weight = 1/# of symbols + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L2063)] + +```python +openbb.portfolio.po.equal(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.33333 + MSFT 0.33333 + AMZN 0.33333, + {'Return': 0.22459515482054027, + 'Volatility': 0.32898777497511816, + 'Sharpe ratio': 0.6826854123607685}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.equal(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/file.md b/website/content/sdk/reference/portfolio/po/file.md new file mode 100644 index 00000000000..f77f4e4809e --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/file.md @@ -0,0 +1,77 @@ +--- +title: file +description: OpenBB SDK Function +--- + +# file + +Load portfolio optimization engine from file + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L108)] + +```python +openbb.portfolio.po.file(portfolio_engine: portfolio_optimization.po_engine.PoEngine, parameters_file_path: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | False | +| parameters_file_path | str | Parameters file full path, by default None | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Dict | Loaded parameters | +--- + +## Examples +{} +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols_file_path="~/openbb_terminal/miscellaneous/portfolio_examples/allocation/60_40_Portfolio.xlsx") +p.get_params() +``` + +Parameters: + interval : 3y + log_returns : 0 + freq : d + maxnan : 0.05 + threshold : 0.3 + alpha : 0.05 +```python +parameters = openbb.portfolio.po.file(portfolio_engine=p, parameters_file_path="~/openbb_terminal/miscellaneous/portfolio_examples/optimization/defaults.ini") +``` + +{'interval': '3y', + 'log_returns': '0', + 'freq': 'd', + 'maxnan': '0.05', + 'threshold': '0.3', + 'alpha': '0.05'} +```python +p.get_params() +``` + +{'interval': '3y', +'log_returns': '0', +'freq': 'd', +'maxnan': '0.05', +'threshold': '0.3', +'alpha': '0.05', +'risk_free_rate': 0.05} +```python +p.set_params({"risk_free_rate": 0.05}) +p.get_params() +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/get_properties.md b/website/content/sdk/reference/portfolio/po/get_properties.md new file mode 100644 index 00000000000..b57fb95e361 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/get_properties.md @@ -0,0 +1,30 @@ +--- +title: get_properties +description: OpenBB SDK Function +--- + +# get_properties + +Get properties to use on property optimization. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/optimizer_model.py#L2872)] + +```python +openbb.portfolio.po.get_properties() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| | List of available properties to use on property optimization. | +--- + diff --git a/website/content/sdk/reference/portfolio/po/hcp.md b/website/content/sdk/reference/portfolio/po/hcp.md new file mode 100644 index 00000000000..acc4fda23e4 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/hcp.md @@ -0,0 +1,60 @@ +--- +title: hcp +description: OpenBB SDK Function +--- + +# hcp + +Builds hierarchical clustering based portfolios + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/optimizer_model.py#L1903)] + +```python +openbb.portfolio.po.hcp(symbols: List[str], kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | List[str] | List of portfolio stocks | None | False | +| interval | str | interval to get stock data, by default "3mo" | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD) | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last
weekday. | None | True | +| log_returns | bool | If True calculate log returns, else arithmetic returns. Default value
is False | None | True | +| freq | str | The frequency used to calculate returns. Default value is 'D'. Possible
values are:

- 'D' for daily returns.
- 'W' for weekly returns.
- 'M' for monthly returns. | None | True | +| maxnan | float | Max percentage of nan values accepted per asset to be included in
returns. | None | True | +| threshold | float | Value used to replace outliers that are higher to threshold. | None | True | +| method | str | Method used to fill nan values. Default value is 'time'. For more information see `interpolate `__. | None | True | +| model | str | The hierarchical cluster portfolio model used for optimize the
portfolio. The default is 'HRP'. Possible values are:

- 'HRP': Hierarchical Risk Parity.
- 'HERC': Hierarchical Equal Risk Contribution.
- 'NCO': Nested Clustered Optimization. | None | True | +| codependence | str | The codependence or similarity matrix used to build the distance
metric and clusters. The default is 'pearson'. Possible values are:

- 'pearson': pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}
- 'spearman': spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}
- 'abs_pearson': absolute value pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}
- 'abs_spearman': absolute value spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}
- 'distance': distance correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}
- 'mutual_info': mutual information matrix. Distance used is variation information matrix.
- 'tail': lower tail dependence index matrix. Dissimilarity formula:
.. math:: D_{i,j} = -\log{\lambda_{i,j}}. | None | True | +| covariance | str | The method used to estimate the covariance matrix:
The default is 'hist'. Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `c-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `c-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `c-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `c-MLforAM`. | None | True | +| objective | str | Objective function used by the NCO model.
The default is 'MinRisk'. Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'ERC': Equally risk contribution portfolio of the selected risk measure. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio. If model is 'NCO',
the risk measures available depends on the objective function.
The default is 'MV'. Possible values are:

- 'MV': Variance.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'VaR': Value at Risk.
- 'CVaR': Conditional Value at Risk.
- 'TG': Tail Gini.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization (Minimax).
- 'RG': Range of returns.
- 'CVRG': CVaR range of returns.
- 'TGRG': Tail Gini range of returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio).
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'DaR': Drawdown at Risk of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio).
- 'ADD_Rel': Average Drawdown of compounded cumulative returns.
- 'DaR_Rel': Drawdown at Risk of compounded cumulative returns.
- 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns.
- 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns.
- 'UCI_Rel': Ulcer Index of compounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, must be in annual frequency.
Used for 'FLPM' and 'SLPM'. The default is 0. | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function.
The default is 1. | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses.
The default is 0.05. | None | True | +| a_sim | float | Number of CVaRs used to approximate Tail Gini of losses. The default is 100. | None | True | +| beta | float | Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value.
The default is None. | None | True | +| b_sim | float | Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value.
The default is None. | None | True | +| linkage | str | Linkage method of hierarchical clustering. For more information see `linkage cluster.hierarchy.linkage.html?highlight=linkage#scipy.cluster.hierarchy.linkage>`__.
The default is 'single'. Possible values are:

- 'single'.
- 'complete'.
- 'average'.
- 'weighted'.
- 'centroid'.
- 'median'.
- 'ward'.
- 'dbht': Direct Bubble Hierarchical Tree. | None | True | +| k | int | Number of clusters. This value is took instead of the optimal number
of clusters calculated with the two difference gap statistic.
The default is None. | None | True | +| max_k | int | Max number of clusters used by the two difference gap statistic
to find the optimal number of clusters. The default is 10. | None | True | +| bins_info | str | Number of bins used to calculate variation of information. The default
value is 'KN'. Possible values are:

- 'KN': Knuth's choice method. For more information see `knuth_bin_width `__.
- 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__.
- 'SC': Scotts' choice method. For more information see `scott_bin_width `__.
- 'HGR': Hacine-Gharbi and Ravier' choice method. | None | True | +| alpha_tail | float | Significance level for lower tail dependence index. The default is 0.05. | None | True | +| leaf_order | bool | Indicates if the cluster are ordered so that the distance between
successive leaves is minimal. The default is True. | None | True | +| d_ewma | float | The smoothing factor of ewma methods.
The default is 0.94. | None | True | +| value | float | Amount of money to allocate. The default is 1. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[Optional[dict], pd.DataFrame] | Dictionary of portfolio weights,
DataFrame of stock returns. | +--- + diff --git a/website/content/sdk/reference/portfolio/po/herc.md b/website/content/sdk/reference/portfolio/po/herc.md new file mode 100644 index 00000000000..e943209077b --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/herc.md @@ -0,0 +1,76 @@ +--- +title: herc +description: OpenBB SDK Function +--- + +# herc + +Optimize with Hierarchical Equal Risk Contribution (HERC) method. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1679)] + +```python +openbb.portfolio.po.herc(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'MinRisk'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
If model is 'NCO', the risk measures available depends on the objective function.
Possible values are:

- 'MV': Variance.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'VaR': Value at Risk.
- 'CVaR': Conditional Value at Risk.
- 'TG': Tail Gini.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization (Minimax).
- 'RG': Range of returns.
- 'CVRG': CVaR range of returns.
- 'TGRG': Tail Gini range of returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio).
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'DaR': Drawdown at Risk of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio).
- 'ADD_Rel': Average Drawdown of compounded cumulative returns.
- 'DaR_Rel': Drawdown at Risk of compounded cumulative returns.
- 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns.
- 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns.
- 'UCI_Rel': Ulcer Index of compounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| a_sim | float | Number of CVaRs used to approximate Tail Gini of losses, by default 100 | None | True | +| beta | float | Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value, by default None | None | True | +| b_sim | float | Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value, by default None | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | +| codependence | str | The codependence or similarity matrix used to build the distance
metric and clusters. The default is 'pearson'. Possible values are:

- 'pearson': pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}
- 'spearman': spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}
- 'abs_pearson': absolute value pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}
- 'abs_spearman': absolute value spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}
- 'distance': distance correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}
- 'mutual_info': mutual information matrix. Distance used is variation information matrix.
- 'tail': lower tail dependence index matrix. Dissimilarity formula:
.. math:: D_{i,j} = -\log{\lambda_{i,j}} | None | True | +| linkage | str | Linkage method of hierarchical clustering. For more information see `linkage cluster.hierarchy.linkage.html?highlight=linkage#scipy.cluster.hierarchy.linkage>`__.
The default is 'single'. Possible values are:

- 'single'.
- 'complete'.
- 'average'.
- 'weighted'.
- 'centroid'.
- 'median'.
- 'ward'.
- 'dbht': Direct Bubble Hierarchical Tree. | None | True | +| k | int | Number of clusters. This value is took instead of the optimal number
of clusters calculated with the two difference gap statistic, by default None | None | True | +| max_k | int | Max number of clusters used by the two difference gap statistic
to find the optimal number of clusters, by default 10 | None | True | +| bins_info | str | Number of bins used to calculate variation of information, by default 'KN'.
Possible values are:

- 'KN': Knuth's choice method. For more information see `knuth_bin_width `__.
- 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__.
- 'SC': Scotts' choice method. For more information see `scott_bin_width `__.
- 'HGR': Hacine-Gharbi and Ravier' choice method. | None | True | +| alpha_tail | float | Significance level for lower tail dependence index, by default 0.05 | None | True | +| leaf_order | bool | Indicates if the cluster are ordered so that the distance between
successive leaves is minimal, by default True | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.17521 + MSFT 0.19846 + AMZN 0.62633, + {'Return': 0.16899696275924703, + 'Volatility': 0.34337400112782096, + 'Sharpe ratio': 0.49216586638525933}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.herc(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/hrp.md b/website/content/sdk/reference/portfolio/po/hrp.md new file mode 100644 index 00000000000..e53bc2dfe12 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/hrp.md @@ -0,0 +1,76 @@ +--- +title: hrp +description: OpenBB SDK Function +--- + +# hrp + +Optimize with Hierarchical Risk Parity + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1487)] + +```python +openbb.portfolio.po.hrp(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'MinRisk'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
If model is 'NCO', the risk measures available depends on the objective function.
Possible values are:

- 'MV': Variance.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'VaR': Value at Risk.
- 'CVaR': Conditional Value at Risk.
- 'TG': Tail Gini.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization (Minimax).
- 'RG': Range of returns.
- 'CVRG': CVaR range of returns.
- 'TGRG': Tail Gini range of returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio).
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'DaR': Drawdown at Risk of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio).
- 'ADD_Rel': Average Drawdown of compounded cumulative returns.
- 'DaR_Rel': Drawdown at Risk of compounded cumulative returns.
- 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns.
- 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns.
- 'UCI_Rel': Ulcer Index of compounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| a_sim | float | Number of CVaRs used to approximate Tail Gini of losses, by default 100 | None | True | +| beta | float | Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value, by default None | None | True | +| b_sim | float | Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value, by default None | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | +| codependence | str | The codependence or similarity matrix used to build the distance
metric and clusters. The default is 'pearson'. Possible values are:

- 'pearson': pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}
- 'spearman': spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}
- 'abs_pearson': absolute value pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}
- 'abs_spearman': absolute value spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}
- 'distance': distance correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}
- 'mutual_info': mutual information matrix. Distance used is variation information matrix.
- 'tail': lower tail dependence index matrix. Dissimilarity formula:
.. math:: D_{i,j} = -\log{\lambda_{i,j}} | None | True | +| linkage | str | Linkage method of hierarchical clustering. For more information see `linkage cluster.hierarchy.linkage.html?highlight=linkage#scipy.cluster.hierarchy.linkage>`__.
The default is 'single'. Possible values are:

- 'single'.
- 'complete'.
- 'average'.
- 'weighted'.
- 'centroid'.
- 'median'.
- 'ward'.
- 'dbht': Direct Bubble Hierarchical Tree. | None | True | +| k | int | Number of clusters. This value is took instead of the optimal number
of clusters calculated with the two difference gap statistic, by default None | None | True | +| max_k | int | Max number of clusters used by the two difference gap statistic
to find the optimal number of clusters, by default 10 | None | True | +| bins_info | str | Number of bins used to calculate variation of information, by default 'KN'.
Possible values are:

- 'KN': Knuth's choice method. For more information see `knuth_bin_width `__.
- 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__.
- 'SC': Scotts' choice method. For more information see `scott_bin_width `__.
- 'HGR': Hacine-Gharbi and Ravier' choice method. | None | True | +| alpha_tail | float | Significance level for lower tail dependence index, by default 0.05 | None | True | +| leaf_order | bool | Indicates if the cluster are ordered so that the distance between
successive leaves is minimal, by default True | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.26729 + MSFT 0.30277 + AMZN 0.42994, + {'Return': 0.20463517260107467, + 'Volatility': 0.3313935169747041, + 'Sharpe ratio': 0.6174990219156727}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.hrp(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/load.md b/website/content/sdk/reference/portfolio/po/load.md new file mode 100644 index 00000000000..49dd4d27987 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/load.md @@ -0,0 +1,35 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load portfolio optimization engine + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L61)] + +```python +openbb.portfolio.po.load(symbols: List[str] = None, symbols_file_path: str = None, parameters_file_path: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | List[str] | List of symbols, by default None | None | True | +| symbols_file_path | str | Symbols file full path, by default None | None | True | +| parameters_file_path | str | Parameters file full path, by default None | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| PoEngine | Portfolio optimization engine | +--- + diff --git a/website/content/sdk/reference/portfolio/po/load_bl_views.md b/website/content/sdk/reference/portfolio/po/load_bl_views.md new file mode 100644 index 00000000000..23fdafcf684 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/load_bl_views.md @@ -0,0 +1,33 @@ +--- +title: load_bl_views +description: OpenBB SDK Function +--- + +# load_bl_views + +Load a Excel file with views for Black Litterman model. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/excel_model.py#L101)] + +```python +openbb.portfolio.po.load_bl_views(excel_file: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| excel_file | str | The location of the Excel file that needs to be loaded. | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | Returns a list with p_views matrix | +--- + diff --git a/website/content/sdk/reference/portfolio/po/maxdecorr.md b/website/content/sdk/reference/portfolio/po/maxdecorr.md new file mode 100644 index 00000000000..6c4444c192b --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/maxdecorr.md @@ -0,0 +1,62 @@ +--- +title: maxdecorr +description: OpenBB SDK Function +--- + +# maxdecorr + +Optimize decorrelation weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L927)] + +```python +openbb.portfolio.po.maxdecorr(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.33444 + MSFT 0.24963 + AMZN 0.41593, + {'Return': 0.2142767096699773, + 'Volatility': 0.33184082287769623, + 'Sharpe ratio': 0.6457213666835423}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.maxdecorr(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/maxdiv.md b/website/content/sdk/reference/portfolio/po/maxdiv.md new file mode 100644 index 00000000000..185fd137d6a --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/maxdiv.md @@ -0,0 +1,65 @@ +--- +title: maxdiv +description: OpenBB SDK Function +--- + +# maxdiv + +Optimize diversification weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L813)] + +```python +openbb.portfolio.po.maxdiv(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.33696 + MSFT 0.26766 + AMZN 0.39538, + {'Return': 0.21717206203731806, + 'Volatility': 0.3310292858117002, + 'Sharpe ratio': 0.6560509034866852}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.maxdiv(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/maxret.md b/website/content/sdk/reference/portfolio/po/maxret.md new file mode 100644 index 00000000000..ce4a72b6af8 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/maxret.md @@ -0,0 +1,70 @@ +--- +title: maxret +description: OpenBB SDK Function +--- + +# maxret + +Optimize maximum return weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L676)] + +```python +openbb.portfolio.po.maxret(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'Sharpe'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| target_return | float | Constraint on minimum level of portfolio's return, by default -1.0 | None | True | +| target_risk | float | Constraint on maximum level of portfolio's risk, by default -1.0 | None | True | +| mean | str | The method used to estimate the expected returns, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__. | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 1.0 + MSFT 0.0 + AMZN 0.0, + {'Return': 0.3448948339574538, + 'Volatility': 0.36513261935342495, + 'Sharpe ratio': 0.9445741510802071}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.maxret(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/maxsharpe.md b/website/content/sdk/reference/portfolio/po/maxsharpe.md new file mode 100644 index 00000000000..415c47b8793 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/maxsharpe.md @@ -0,0 +1,70 @@ +--- +title: maxsharpe +description: OpenBB SDK Function +--- + +# maxsharpe + +Optimize Sharpe ratio weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L265)] + +```python +openbb.portfolio.po.maxsharpe(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'Sharpe'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| target_return | float | Constraint on minimum level of portfolio's return, by default -1.0 | None | True | +| target_risk | float | Constraint on maximum level of portfolio's risk, by default -1.0 | None | True | +| mean | str | The method used to estimate the expected returns, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__. | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 1.0 + MSFT 0.0 + AMZN 0.0, + {'Return': 0.3448948339574538, + 'Volatility': 0.36513261935342495, + 'Sharpe ratio': 0.9445741510802071}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.maxsharpe(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/maxutil.md b/website/content/sdk/reference/portfolio/po/maxutil.md new file mode 100644 index 00000000000..a96e878adb2 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/maxutil.md @@ -0,0 +1,70 @@ +--- +title: maxutil +description: OpenBB SDK Function +--- + +# maxutil + +Optimize maximum utility weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L539)] + +```python +openbb.portfolio.po.maxutil(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'Sharpe'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| target_return | float | Constraint on minimum level of portfolio's return, by default -1.0 | None | True | +| target_risk | float | Constraint on maximum level of portfolio's risk, by default -1.0 | None | True | +| mean | str | The method used to estimate the expected returns, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__. | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples + ( value + AAPL 1.0 + MSFT 0.0 + AMZN 0.0, + {'Return': 0.3448948339574538, + 'Volatility': 0.36513261935342495, + 'Sharpe ratio': 0.9445741510802071}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.maxutil(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/minrisk.md b/website/content/sdk/reference/portfolio/po/minrisk.md new file mode 100644 index 00000000000..4e6d6517b3e --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/minrisk.md @@ -0,0 +1,70 @@ +--- +title: minrisk +description: OpenBB SDK Function +--- + +# minrisk + +Optimize minimum risk weights + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L402)] + +```python +openbb.portfolio.po.minrisk(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| value_short | float | Amount to allocate to portfolio in short positions, by default 0.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'Sharpe'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| target_return | float | Constraint on minimum level of portfolio's return, by default -1.0 | None | True | +| target_risk | float | Constraint on maximum level of portfolio's risk, by default -1.0 | None | True | +| mean | str | The method used to estimate the expected returns, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__. | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples + ( value + AAPL 0.25044 + MSFT 0.49509 + AMZN 0.25447, + {'Return': 0.2248615963428331, + 'Volatility': 0.32736590080425004, + 'Sharpe ratio': 0.6868815468880802}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.minrisk(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/mktcap.md b/website/content/sdk/reference/portfolio/po/mktcap.md new file mode 100644 index 00000000000..402c5147a9b --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/mktcap.md @@ -0,0 +1,59 @@ +--- +title: mktcap +description: OpenBB SDK Function +--- + +# mktcap + +Optimize weighted according to market capitalization + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L2135)] + +```python +openbb.portfolio.po.mktcap(symbols: List[str] = None, portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.465338 + MSFT 0.345488 + AMZN 0.189175, + {'Return': 0.25830567048487474, + 'Volatility': 0.33058479906988086, + 'Sharpe ratio': 0.7813597939519071}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.mktcap(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/nco.md b/website/content/sdk/reference/portfolio/po/nco.md new file mode 100644 index 00000000000..5326692f5eb --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/nco.md @@ -0,0 +1,76 @@ +--- +title: nco +description: OpenBB SDK Function +--- + +# nco + +Optimize with Non-Convex Optimization (NCO) model. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1871)] + +```python +openbb.portfolio.po.nco(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| objective | str | Objective function of the optimization model, by default 'MinRisk'
Possible values are:

- 'MinRisk': Minimize the selected risk measure.
- 'Utility': Maximize the risk averse utility function.
- 'Sharpe': Maximize the risk adjusted return ratio based on the selected risk measure.
- 'MaxRet': Maximize the expected return of the portfolio. | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
If model is 'NCO', the risk measures available depends on the objective function.
Possible values are:

- 'MV': Variance.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'VaR': Value at Risk.
- 'CVaR': Conditional Value at Risk.
- 'TG': Tail Gini.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization (Minimax).
- 'RG': Range of returns.
- 'CVRG': CVaR range of returns.
- 'TGRG': Tail Gini range of returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio).
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'DaR': Drawdown at Risk of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'MDD_Rel': Maximum Drawdown of compounded cumulative returns (Calmar Ratio).
- 'ADD_Rel': Average Drawdown of compounded cumulative returns.
- 'DaR_Rel': Drawdown at Risk of compounded cumulative returns.
- 'CDaR_Rel': Conditional Drawdown at Risk of compounded cumulative returns.
- 'EDaR_Rel': Entropic Drawdown at Risk of compounded cumulative returns.
- 'UCI_Rel': Ulcer Index of compounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| risk_aversion | float | Risk aversion factor of the 'Utility' objective function, by default 1.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| a_sim | float | Number of CVaRs used to approximate Tail Gini of losses, by default 100 | None | True | +| beta | float | Significance level of CVaR and Tail Gini of gains. If None it duplicates alpha value, by default None | None | True | +| b_sim | float | Number of CVaRs used to approximate Tail Gini of gains. If None it duplicates a_sim value, by default None | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | +| codependence | str | The codependence or similarity matrix used to build the distance
metric and clusters. The default is 'pearson'. Possible values are:

- 'pearson': pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{pearson}_{i,j})}
- 'spearman': spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{0.5(1-\rho^{spearman}_{i,j})}
- 'abs_pearson': absolute value pearson correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{pearson}_{i,j}|)}
- 'abs_spearman': absolute value spearman correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-|\rho^{spearman}_{i,j}|)}
- 'distance': distance correlation matrix. Distance formula:
.. math:: D_{i,j} = \sqrt{(1-\rho^{distance}_{i,j})}
- 'mutual_info': mutual information matrix. Distance used is variation information matrix.
- 'tail': lower tail dependence index matrix. Dissimilarity formula:
.. math:: D_{i,j} = -\log{\lambda_{i,j}} | None | True | +| linkage | str | Linkage method of hierarchical clustering. For more information see `linkage cluster.hierarchy.linkage.html?highlight=linkage#scipy.cluster.hierarchy.linkage>`__.
The default is 'single'. Possible values are:

- 'single'.
- 'complete'.
- 'average'.
- 'weighted'.
- 'centroid'.
- 'median'.
- 'ward'.
- 'dbht': Direct Bubble Hierarchical Tree. | None | True | +| k | int | Number of clusters. This value is took instead of the optimal number
of clusters calculated with the two difference gap statistic, by default None | None | True | +| max_k | int | Max number of clusters used by the two difference gap statistic
to find the optimal number of clusters, by default 10 | None | True | +| bins_info | str | Number of bins used to calculate variation of information, by default 'KN'.
Possible values are:

- 'KN': Knuth's choice method. For more information see `knuth_bin_width `__.
- 'FD': Freedman–Diaconis' choice method. For more information see `freedman_bin_width `__.
- 'SC': Scotts' choice method. For more information see `scott_bin_width `__.
- 'HGR': Hacine-Gharbi and Ravier' choice method. | None | True | +| alpha_tail | float | Significance level for lower tail dependence index, by default 0.05 | None | True | +| leaf_order | bool | Indicates if the cluster are ordered so that the distance between
successive leaves is minimal, by default True | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.25044 + MSFT 0.49509 + AMZN 0.25447, + {'Return': 0.2248615963428331, + 'Volatility': 0.32736590080425004, + 'Sharpe ratio': 0.6868815468880802}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.nco(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/plot.md b/website/content/sdk/reference/portfolio/po/plot.md new file mode 100644 index 00000000000..2831547cec3 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/plot.md @@ -0,0 +1,164 @@ +--- +title: plot +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# plot + + + + +Display efficient frontier + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_view.py#L237)] + +```python +openbb.portfolio.po.plot(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, chart_type: str = "pie", kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| chart_type | str | Chart type, by default "pie"
Options are "pie", "hist", "dd" or "rc" | pie | True | + + +--- + +## Returns + +This function does not return anything + +--- + +## Examples + "SECTOR": { + "AAPL": "INFORMATION TECHNOLOGY", + "MSFT": "INFORMATION TECHNOLOGY", + "AMZN": "CONSUMER DISCRETIONARY", + }, + "CURRENT_INVESTED_AMOUNT": { + "AAPL": "100000.0", + "MSFT": "200000.0", + "AMZN": "300000.0", + }, + "CURRENCY": { + "AAPL": "USD", + "MSFT": "USD", + "AMZN": "USD", + }, + } +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols=["AAPL", "MSFT", "AMZN"]) +d = { +``` + +['SECTOR'] +```python +p.set_categories_dict(categories=d) +weights, performance = openbb.portfolio.po.equal(portfolio_engine=p) +p.get_available_categories() +``` + +['ASSET_CLASS', + 'SECTOR', + 'INDUSTRY', + 'COUNTRY', + 'CURRENT_INVESTED_AMOUNT', + 'CURRENCY'] +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols_file_path="openbb_terminal/miscellaneous/portfolio_examples/allocation/60_40_Portfolio.xlsx") +weights, performance = openbb.portfolio.po.equal(portfolio_engine=p) +p.get_available_categories() +``` + +--- + + + +
+ + +Display efficient frontier + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_view.py#L237)] + +```python +openbb.portfolio.po.plot_chart(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, chart_type: str = "pie", kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| chart_type | str | Chart type, by default "pie"
Options are "pie", "hist", "dd" or "rc" | pie | True | + + +--- + +## Returns + +This function does not return anything + +--- + +## Examples + "SECTOR": { + "AAPL": "INFORMATION TECHNOLOGY", + "MSFT": "INFORMATION TECHNOLOGY", + "AMZN": "CONSUMER DISCRETIONARY", + }, + "CURRENT_INVESTED_AMOUNT": { + "AAPL": "100000.0", + "MSFT": "200000.0", + "AMZN": "300000.0", + }, + "CURRENCY": { + "AAPL": "USD", + "MSFT": "USD", + "AMZN": "USD", + }, + } +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols=["AAPL", "MSFT", "AMZN"]) +d = { +``` + +['SECTOR'] +```python +p.set_categories_dict(categories=d) +weights, performance = openbb.portfolio.po.equal(portfolio_engine=p) +p.get_available_categories() +``` + +['ASSET_CLASS', + 'SECTOR', + 'INDUSTRY', + 'COUNTRY', + 'CURRENT_INVESTED_AMOUNT', + 'CURRENCY'] +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols_file_path="openbb_terminal/miscellaneous/portfolio_examples/allocation/60_40_Portfolio.xlsx") +weights, performance = openbb.portfolio.po.equal(portfolio_engine=p) +p.get_available_categories() +``` + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/po/property.md b/website/content/sdk/reference/portfolio/po/property.md new file mode 100644 index 00000000000..7ee6e79a6e3 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/property.md @@ -0,0 +1,60 @@ +--- +title: property +description: OpenBB SDK Function +--- + +# property + +Optimize weighted according to property + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L2279)] + +```python +openbb.portfolio.po.property(symbols: List[str] = None, portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, prop: str = "marketCap", kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| prop | str | Property to use for optimization, by default 'marketCap'
Use `portfolio.po.get_properties() to get a list of available properties | marketCap | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.223192 + MSFT 0.215707 + AMZN 0.561101, + {'Return': 0.18287266638517774, + 'Volatility': 0.3386418179319469, + 'Sharpe ratio': 0.5400179679578959}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.property(symbols=["AAPL", "MSFT", "AMZN"], prop="forwardPE") +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/relriskparity.md b/website/content/sdk/reference/portfolio/po/relriskparity.md new file mode 100644 index 00000000000..648fae8d7c4 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/relriskparity.md @@ -0,0 +1,69 @@ +--- +title: relriskparity +description: OpenBB SDK Function +--- + +# relriskparity + +Optimize with Relaxed Risk Parity using the least squares approach + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1352)] + +```python +openbb.portfolio.po.relriskparity(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| target_return | float | Constraint on minimum level of portfolio's return, by default -1.0 | None | True | +| mean | str | The method used to estimate the expected returns, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__. | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | +| risk_cont | List[str] | The vector of risk contribution per asset, by default 1/n (number of assets) | None | True | +| version | str | Relaxed risk parity model version, by default 'A'
Possible values are:

- 'A': without regularization and penalization constraints.
- 'B': with regularization constraint but without penalization constraint.
- 'C': with regularization and penalization constraints. | None | True | +| penal_factor | float | The penalization factor of penalization constraints. Only used with
version 'C', by default 1.0 | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.33204 + MSFT 0.34949 + AMZN 0.31847, + {'Return': 0.19946844097475216, + 'Volatility': 0.290746544981364, + 'Sharpe ratio': 0.6860561008129521}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.relriskparity(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/riskparity.md b/website/content/sdk/reference/portfolio/po/riskparity.md new file mode 100644 index 00000000000..d29cecaa061 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/riskparity.md @@ -0,0 +1,67 @@ +--- +title: riskparity +description: OpenBB SDK Function +--- + +# riskparity + +Optimize with Risk Parity using the risk budgeting approach + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L1228)] + +```python +openbb.portfolio.po.riskparity(portfolio_engine: portfolio_optimization.po_engine.PoEngine = None, symbols: List[str] = None, kwargs: Any) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine, by default None
Use `portfolio.po.load` to load a portfolio engine | None | True | +| symbols | List[str] | List of symbols, by default None | None | True | +| interval | str | Interval to get data, by default '3y' | None | True | +| start_date | str | If not using interval, start date string (YYYY-MM-DD), by default "" | None | True | +| end_date | str | If not using interval, end date string (YYYY-MM-DD). If empty use last weekday, by default "" | None | True | +| log_returns | bool | If True use log returns, else arithmetic returns, by default False | None | True | +| freq | str | Frequency of returns, by default 'D'. Options: 'D' for daily, 'W' for weekly, 'M' for monthly | None | True | +| maxnan | float | Maximum percentage of NaNs allowed in the data, by default 0.05 | None | True | +| threshold | float | Value used to replace outliers that are higher than threshold, by default 0.0 | None | True | +| method | str | Method used to fill nan values, by default 'time'
For more information see `interpolate `__. | None | True | +| value | float | Amount to allocate to portfolio in long positions, by default 1.0 | None | True | +| risk_measure | str | The risk measure used to optimize the portfolio, by default 'MV'
Possible values are:

- 'MV': Standard Deviation.
- 'MAD': Mean Absolute Deviation.
- 'MSV': Semi Standard Deviation.
- 'FLPM': First Lower Partial Moment (Omega Ratio).
- 'SLPM': Second Lower Partial Moment (Sortino Ratio).
- 'CVaR': Conditional Value at Risk.
- 'EVaR': Entropic Value at Risk.
- 'WR': Worst Realization.
- 'ADD': Average Drawdown of uncompounded cumulative returns.
- 'UCI': Ulcer Index of uncompounded cumulative returns.
- 'CDaR': Conditional Drawdown at Risk of uncompounded cumulative returns.
- 'EDaR': Entropic Drawdown at Risk of uncompounded cumulative returns.
- 'MDD': Maximum Drawdown of uncompounded cumulative returns. | None | True | +| risk_free_rate | float | Risk free rate, annualized. Used for 'FLPM' and 'SLPM' and Sharpe objective function, by default 0.0 | None | True | +| alpha | float | Significance level of VaR, CVaR, EDaR, DaR, CDaR, EDaR, Tail Gini of losses, by default 0.05 | None | True | +| target_return | float | Constraint on minimum level of portfolio's return, by default -1.0 | None | True | +| mean | str | The method used to estimate the expected returns, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__. | None | True | +| covariance | str | The method used to estimate the covariance matrix, by default 'hist'
Possible values are:

- 'hist': use historical estimates.
- 'ewma1': use ewma with adjust=True. For more information see `EWM `__.
- 'ewma2': use ewma with adjust=False. For more information see `EWM `__.
- 'ledoit': use the Ledoit and Wolf Shrinkage method.
- 'oas': use the Oracle Approximation Shrinkage method.
- 'shrunk': use the basic Shrunk Covariance method.
- 'gl': use the basic Graphical Lasso Covariance method.
- 'jlogo': use the j-LoGo Covariance method. For more information see: `a-jLogo`.
- 'fixed': denoise using fixed method. For more information see chapter 2 of `a-MLforAM`.
- 'spectral': denoise using spectral method. For more information see chapter 2 of `a-MLforAM`.
- 'shrink': denoise using shrink method. For more information see chapter 2 of `a-MLforAM`. | None | True | +| d_ewma | float | The smoothing factor of ewma methods, by default 0.94 | None | True | +| risk_cont | List[str] | The vector of risk contribution per asset, by default 1/n (number of assets) | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Tuple with weights and performance dictionary | +--- + +## Examples +( value + AAPL 0.33201 + MSFT 0.34953 + AMZN 0.31846, + {'Return': 0.19946644069106015, + 'Volatility': 0.29074583524705444, + 'Sharpe ratio': 0.6860508956957826}) + +```python +from openbb_terminal.sdk import openbb +openbb.portfolio.po.riskparity(symbols=["AAPL", "MSFT", "AMZN"]) +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/po/show.md b/website/content/sdk/reference/portfolio/po/show.md new file mode 100644 index 00000000000..8d6664a3670 --- /dev/null +++ b/website/content/sdk/reference/portfolio/po/show.md @@ -0,0 +1,79 @@ +--- +title: show +description: OpenBB SDK Function +--- + +# show + +Show portfolio optimization results + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_optimization/po_model.py#L2361)] + +```python +openbb.portfolio.po.show(portfolio_engine: portfolio_optimization.po_engine.PoEngine, category: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PoEngine | Portfolio optimization engine
Use `portfolio.po.load` to load a portfolio engine | None | False | +| category | str | Category to show, by default None
After loading a portfolio with `portfolio.po.load` you can use
the object method `get_available_categories()` to get a list of available categories.
You can also use the object method `set_categories_dict()` to set a custom dictionary
of categories. The dictionary must contain "CURRENT_INVESTED_AMOUNT" and "CURRENT_WEIGHTS"
as keys as shown in the example below. | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Union[pd.DataFrame, Tuple[pd.DataFrame, pd.DataFrame]] | Portfolio weights and categories | +--- + +## Examples + "SECTOR": { + "AAPL": "INFORMATION TECHNOLOGY", + "MSFT": "INFORMATION TECHNOLOGY", + "AMZN": "CONSUMER DISCRETIONARY", + }, + "CURRENT_INVESTED_AMOUNT": { + "AAPL": "100000.0", + "MSFT": "200000.0", + "AMZN": "300000.0", + }, + "CURRENCY": { + "AAPL": "USD", + "MSFT": "USD", + "AMZN": "USD", + }, + } +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols=["AAPL", "MSFT", "AMZN"]) +d = { +``` + +['SECTOR'] +```python +p.set_categories_dict(categories=d) +weights, performance = openbb.portfolio.po.equal(portfolio_engine=p) +p.get_available_categories() +``` + +['ASSET_CLASS', + 'SECTOR', + 'INDUSTRY', + 'COUNTRY', + 'CURRENT_INVESTED_AMOUNT', + 'CURRENCY'] +```python +from openbb_terminal.sdk import openbb +p = openbb.portfolio.po.load(symbols_file_path="~/openbb_terminal/miscellaneous/portfolio_examples/allocation/60_40_Portfolio.xlsx") +weights, performance = openbb.portfolio.po.equal(portfolio_engine=p) +p.get_available_categories() +``` + +--- + diff --git a/website/content/sdk/reference/portfolio/rbeta.md b/website/content/sdk/reference/portfolio/rbeta.md new file mode 100644 index 00000000000..7222a2001bb --- /dev/null +++ b/website/content/sdk/reference/portfolio/rbeta.md @@ -0,0 +1,77 @@ +--- +title: rbeta +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rbeta + + + + +Get rolling beta using portfolio and benchmark returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L659)] + +```python +openbb.portfolio.rbeta(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "1y") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| window | string | Interval used for rolling values.
Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y. | 1y | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of the portfolio's rolling beta | +--- + + + +
+ + +Display rolling beta + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L1050)] + +```python +openbb.portfolio.rbeta_chart(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "1y", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| window | str | interval for window to consider
Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y. | 1y | True | +| export | str | Export to file | | True | +| external_axes | Optional[List[plt.Axes]] | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/rsharpe.md b/website/content/sdk/reference/portfolio/rsharpe.md new file mode 100644 index 00000000000..aeaa156afc4 --- /dev/null +++ b/website/content/sdk/reference/portfolio/rsharpe.md @@ -0,0 +1,79 @@ +--- +title: rsharpe +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rsharpe + + + + +Get rolling sharpe ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L564)] + +```python +openbb.portfolio.rsharpe(portfolio_engine: pd.DataFrame, risk_free_rate: float = 0, window: str = "1y") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_returns | pd.Series | Series of portfolio returns | None | True | +| risk_free_rate | float | Risk free rate | 0 | True | +| window | str | Rolling window to use
Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y | 1y | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rolling sharpe ratio DataFrame | +--- + + + +
+ + +Display rolling sharpe + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L932)] + +```python +openbb.portfolio.rsharpe_chart(portfolio_engine: portfolio_engine.PortfolioEngine, risk_free_rate: float = 0, window: str = "1y", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| risk_free_rate | float | Value to use for risk free rate in sharpe/other calculations | 0 | True | +| window | str | interval for window to consider | 1y | True | +| export | str | Export to file | | True | +| external_axes | Optional[List[plt.Axes]] | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/rsort.md b/website/content/sdk/reference/portfolio/rsort.md new file mode 100644 index 00000000000..010b593cd32 --- /dev/null +++ b/website/content/sdk/reference/portfolio/rsort.md @@ -0,0 +1,79 @@ +--- +title: rsort +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rsort + + + + +Get rolling sortino + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L610)] + +```python +openbb.portfolio.rsort(portfolio_engine: portfolio_engine.PortfolioEngine, risk_free_rate: float = 0, window: str = "1y") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| window | str | interval for window to consider
Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y | 1y | True | +| risk_free_rate | float | Value to use for risk free rate in sharpe/other calculations | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rolling sortino ratio DataFrame | +--- + + + +
+ + +Display rolling sortino + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L991)] + +```python +openbb.portfolio.rsort_chart(portfolio_engine: portfolio_engine.PortfolioEngine, risk_free_rate: float = 0, window: str = "1y", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| risk_free_rate | float | Value to use for risk free rate in sharpe/other calculations | 0 | True | +| window | str | interval for window to consider | 1y | True | +| export | str | Export to file | | True | +| external_axes | Optional[List[plt.Axes]] | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/rvol.md b/website/content/sdk/reference/portfolio/rvol.md new file mode 100644 index 00000000000..35e723cde56 --- /dev/null +++ b/website/content/sdk/reference/portfolio/rvol.md @@ -0,0 +1,77 @@ +--- +title: rvol +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rvol + + + + +Get rolling volatility + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L521)] + +```python +openbb.portfolio.rvol(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "1y") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | Rolling window size to use
Possible options: mtd, qtd, ytd, 1d, 5d, 10d, 1m, 3m, 6m, 1y, 3y, 5y, 10y | 1y | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rolling volatility DataFrame | +--- + + + +
+ + +Display rolling volatility + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L876)] + +```python +openbb.portfolio.rvol_chart(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "1y", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio | PortfolioEngine | PortfolioEngine object | None | True | +| interval | str | interval for window to consider | None | True | +| export | str | Export to file | | True | +| external_axes | Optional[List[plt.Axes]] | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/portfolio/show.md b/website/content/sdk/reference/portfolio/show.md new file mode 100644 index 00000000000..2430e8ce12a --- /dev/null +++ b/website/content/sdk/reference/portfolio/show.md @@ -0,0 +1,33 @@ +--- +title: show +description: OpenBB SDK Function +--- + +# show + +Get portfolio transactions + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L68)] + +```python +openbb.portfolio.show(portfolio_engine: portfolio_engine.PortfolioEngine) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Portfolio transactions | +--- + diff --git a/website/content/sdk/reference/portfolio/summary.md b/website/content/sdk/reference/portfolio/summary.md new file mode 100644 index 00000000000..fb808d74a43 --- /dev/null +++ b/website/content/sdk/reference/portfolio/summary.md @@ -0,0 +1,35 @@ +--- +title: summary +description: OpenBB SDK Function +--- + +# summary + +Get portfolio and benchmark returns summary + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L692)] + +```python +openbb.portfolio.summary(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all", risk_free_rate: float = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | +| risk_free_rate | float | Risk free rate for calculations | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with portfolio and benchmark returns summary | +--- + diff --git a/website/content/sdk/reference/portfolio/var.md b/website/content/sdk/reference/portfolio/var.md new file mode 100644 index 00000000000..44cbd14afc1 --- /dev/null +++ b/website/content/sdk/reference/portfolio/var.md @@ -0,0 +1,37 @@ +--- +title: var +description: OpenBB SDK Function +--- + +# var + +Get portfolio VaR + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L1751)] + +```python +openbb.portfolio.var(portfolio_engine: portfolio_engine.PortfolioEngine, use_mean: bool = False, adjusted_var: bool = False, student_t: bool = False, percentile: float = 99.9) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| use_mean | bool | if one should use the data mean return | False | True | +| adjusted_var | bool | if one should have VaR adjusted for skew and kurtosis (Cornish-Fisher-Expansion) | False | True | +| student_t | bool | If one should use the student-t distribution | False | True | +| percentile | float | var percentile (%) | 99.9 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with portfolio VaR | +--- + diff --git a/website/content/sdk/reference/portfolio/yret.md b/website/content/sdk/reference/portfolio/yret.md new file mode 100644 index 00000000000..82b3c32fe78 --- /dev/null +++ b/website/content/sdk/reference/portfolio/yret.md @@ -0,0 +1,78 @@ +--- +title: yret +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# yret + + + + +Get yearly returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_model.py#L203)] + +```python +openbb.portfolio.yret(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with yearly returns | +--- + + + +
+ + +Display yearly returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/portfolio/portfolio_view.py#L376)] + +```python +openbb.portfolio.yret_chart(portfolio_engine: portfolio_engine.PortfolioEngine, window: str = "all", raw: bool = False, export: str = "", external_axes: Optional[matplotlib.axes._axes.Axes] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| portfolio_engine | PortfolioEngine | PortfolioEngine class instance, this will hold transactions and perform calculations.
Use `portfolio.load` to create a PortfolioEngine. | None | False | +| window | str | interval to compare cumulative returns and benchmark | all | True | +| raw | False | Display raw data from cumulative return | False | True | +| export | str | Export certain type of data | | True | +| external_axes | plt.Axes | Optional axes to display plot on | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/qa/acf.md b/website/content/sdk/reference/qa/acf.md new file mode 100644 index 00000000000..ccce3a2471e --- /dev/null +++ b/website/content/sdk/reference/qa/acf.md @@ -0,0 +1,36 @@ +--- +title: acf +description: OpenBB SDK Function +--- + +# acf + +Plots Auto and Partial Auto Correlation of returns and change in returns + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L372)] + +```python +openbb.qa.acf(data: pd.DataFrame, target: str, symbol: str = "", lags: int = 15, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe to look at | None | False | +| target | str | Data column to look at | None | False | +| symbol | str | Name of dataset | | True | +| lags | int | Max number of lags to look at | 15 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (4 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/bw.md b/website/content/sdk/reference/qa/bw.md new file mode 100644 index 00000000000..279231e9586 --- /dev/null +++ b/website/content/sdk/reference/qa/bw.md @@ -0,0 +1,36 @@ +--- +title: bw +description: OpenBB SDK Function +--- + +# bw + +Plots box and whisker plots + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L270)] + +```python +openbb.qa.bw(data: pd.DataFrame, target: str, symbol: str = "", yearly: bool = True, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Name of dataset | | True | +| data | pd.DataFrame | Dataframe to look at | None | False | +| target | str | Data column to look at | None | False | +| yearly | bool | Flag to indicate yearly accumulation | True | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/calculate_adjusted_var.md b/website/content/sdk/reference/qa/calculate_adjusted_var.md new file mode 100644 index 00000000000..fad85706772 --- /dev/null +++ b/website/content/sdk/reference/qa/calculate_adjusted_var.md @@ -0,0 +1,37 @@ +--- +title: calculate_adjusted_var +description: OpenBB SDK Function +--- + +# calculate_adjusted_var + +Calculates VaR, which is adjusted for skew and kurtosis (Cornish-Fischer-Expansion) + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L182)] + +```python +openbb.qa.calculate_adjusted_var(kurtosis: float, skew: float, ndp: float, std: float, mean: float) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| kurtosis | float | kurtosis of data | None | False | +| skew | float | skew of data | None | False | +| ndp | float | normal distribution percentage number (99% -> -2.326) | None | False | +| std | float | standard deviation of data | None | False | +| mean | float | mean of data | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| float | Real adjusted VaR | +--- + diff --git a/website/content/sdk/reference/qa/cdf.md b/website/content/sdk/reference/qa/cdf.md new file mode 100644 index 00000000000..f8a8be215a0 --- /dev/null +++ b/website/content/sdk/reference/qa/cdf.md @@ -0,0 +1,36 @@ +--- +title: cdf +description: OpenBB SDK Function +--- + +# cdf + +Plots Cumulative Distribution Function + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L159)] + +```python +openbb.qa.cdf(data: pd.DataFrame, target: str, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe to look at | None | False | +| target | str | Data column | None | False | +| symbol | str | Name of dataset | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/cusum.md b/website/content/sdk/reference/qa/cusum.md new file mode 100644 index 00000000000..c048afe5795 --- /dev/null +++ b/website/content/sdk/reference/qa/cusum.md @@ -0,0 +1,36 @@ +--- +title: cusum +description: OpenBB SDK Function +--- + +# cusum + +Plots Cumulative sum algorithm (CUSUM) to detect abrupt changes in data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L523)] + +```python +openbb.qa.cusum(data: pd.DataFrame, target: str, threshold: float = 5, drift: float = 2.1, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe | None | False | +| target | str | Column of data to look at | None | False | +| threshold | float | Threshold value | 5 | True | +| drift | float | Drift parameter | 2.1 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/decompose.md b/website/content/sdk/reference/qa/decompose.md new file mode 100644 index 00000000000..8d94355efa9 --- /dev/null +++ b/website/content/sdk/reference/qa/decompose.md @@ -0,0 +1,34 @@ +--- +title: decompose +description: OpenBB SDK Function +--- + +# decompose + +Perform seasonal decomposition + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L46)] + +```python +openbb.qa.decompose(data: pd.DataFrame, multiplicative: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of targeted data | None | False | +| multiplicative | bool | Boolean to indicate multiplication instead of addition | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[DecomposeResult, pd.DataFrame, pd.DataFrame] | DecomposeResult class from statsmodels (observed, seasonal, trend, residual, and weights),
Filtered cycle DataFrame,
Filtered trend DataFrame | +--- + diff --git a/website/content/sdk/reference/qa/es.md b/website/content/sdk/reference/qa/es.md new file mode 100644 index 00000000000..85391267c3a --- /dev/null +++ b/website/content/sdk/reference/qa/es.md @@ -0,0 +1,82 @@ +--- +title: es +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# es + + + + +Gets Expected Shortfall for specified stock dataframe. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L355)] + +```python +openbb.qa.es(data: pd.DataFrame, use_mean: bool = False, distribution: str = "normal", percentile: Union[float, int] = 99.9, portfolio: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Data dataframe | None | False | +| use_mean | bool | If one should use the data mean for calculation | False | True | +| distribution | str | Type of distribution, options: laplace, student_t, normal | normal | True | +| percentile | Union[float,int] | VaR percentile | 99.9 | True | +| portfolio | bool | If the data is a portfolio | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with Expected Shortfall per percentile | +--- + + + + + + +Prints table showing expected shortfall. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L1108)] + +```python +openbb.qa.es_chart(data: pd.DataFrame, symbol: str = "", use_mean: bool = False, distribution: str = "normal", percentile: float = 99.9, portfolio: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Data dataframe | None | False | +| use_mean | | if one should use the data mean return | False | True | +| symbol | str | name of the data | | True | +| distribution | str | choose distribution to use: logistic, laplace, normal | normal | True | +| percentile | int | es percentile | 99.9 | True | +| portfolio | bool | If the data is a portfolio | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/hist.md b/website/content/sdk/reference/qa/hist.md new file mode 100644 index 00000000000..9545a4624d7 --- /dev/null +++ b/website/content/sdk/reference/qa/hist.md @@ -0,0 +1,36 @@ +--- +title: hist +description: OpenBB SDK Function +--- + +# hist + +Plots histogram of data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L82)] + +```python +openbb.qa.hist(data: pd.DataFrame, target: str, symbol: str = "", bins: int = 15, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe to look at | None | False | +| target | str | Data column to get histogram of the dataframe | None | False | +| symbol | str | Name of dataset | | True | +| bins | int | Number of bins in histogram | 15 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/kurtosis.md b/website/content/sdk/reference/qa/kurtosis.md new file mode 100644 index 00000000000..a6d44f653b8 --- /dev/null +++ b/website/content/sdk/reference/qa/kurtosis.md @@ -0,0 +1,79 @@ +--- +title: kurtosis +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# kurtosis + + + + +Kurtosis Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_model.py#L123)] + +```python +openbb.qa.kurtosis(data: pd.DataFrame, window: int = 14) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of targeted data | None | False | +| window | int | Length of window | 14 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of rolling kurtosis | +--- + + + + + + +Plots rolling kurtosis + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_view.py#L424)] + +```python +openbb.qa.kurtosis_chart(symbol: str, data: pd.DataFrame, target: str, window: int = 14, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker | None | False | +| data | pd.DataFrame | Dataframe of stock prices | None | False | +| target | str | Column in data to look at | None | False | +| window | int | Length of window | 14 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/line.md b/website/content/sdk/reference/qa/line.md new file mode 100644 index 00000000000..4acfb334628 --- /dev/null +++ b/website/content/sdk/reference/qa/line.md @@ -0,0 +1,38 @@ +--- +title: line +description: OpenBB SDK Function +--- + +# line + +Display line plot of data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L938)] + +```python +openbb.qa.line(data: pd.Series, title: str = "", log_y: bool = True, markers_lines: Optional[List[datetime.datetime]] = None, markers_scatter: Optional[List[datetime.datetime]] = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Data to plot | None | False | +| title | str | Title for plot | | True | +| log_y | bool | Flag for showing y on log scale | True | True | +| markers_lines | Optional[List[datetime]] | List of dates to highlight using vertical lines | None | True | +| markers_scatter | Optional[List[datetime]] | List of dates to highlight using scatter | None | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/normality.md b/website/content/sdk/reference/qa/normality.md new file mode 100644 index 00000000000..76530a2eedf --- /dev/null +++ b/website/content/sdk/reference/qa/normality.md @@ -0,0 +1,75 @@ +--- +title: normality +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# normality + + + + +Look at the distribution of returns and generate statistics on the relation to the normal curve. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L81)] + +```python +openbb.qa.normality(data: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of targeted data | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing statistics of normality | +--- + + + + + + +Prints table showing normality statistics + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L805)] + +```python +openbb.qa.normality_chart(data: pd.DataFrame, target: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | DataFrame | None | False | +| target | str | Column in data to look at | None | False | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/omega.md b/website/content/sdk/reference/qa/omega.md new file mode 100644 index 00000000000..37004d0aa9d --- /dev/null +++ b/website/content/sdk/reference/qa/omega.md @@ -0,0 +1,77 @@ +--- +title: omega +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# omega + + + + +Get the omega series + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L639)] + +```python +openbb.qa.omega(data: pd.DataFrame, threshold_start: float = 0, threshold_end: float = 1.5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | stock dataframe | None | False | +| threshold_start | float | annualized target return threshold start of plotted threshold range | 0 | True | +| threshold_end | float | annualized target return threshold end of plotted threshold range | 1.5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | omega series | +--- + + + + + + +Plots the omega ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L1214)] + +```python +openbb.qa.omega_chart(data: pd.DataFrame, threshold_start: float = 0, threshold_end: float = 1.5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | stock dataframe | None | False | +| threshold_start | float | annualized target return threshold start of plotted threshold range | 0 | True | +| threshold_end | float | annualized target return threshold end of plotted threshold range | 1.5 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/qqplot.md b/website/content/sdk/reference/qa/qqplot.md new file mode 100644 index 00000000000..1b0cc8c8cbc --- /dev/null +++ b/website/content/sdk/reference/qa/qqplot.md @@ -0,0 +1,35 @@ +--- +title: qqplot +description: OpenBB SDK Function +--- + +# qqplot + +Plots QQ plot for data against normal quantiles + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L462)] + +```python +openbb.qa.qqplot(data: pd.DataFrame, target: str, symbol: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe | None | False | +| target | str | Column in data to look at | None | False | +| symbol | str | Stock ticker | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/qa/quantile.md b/website/content/sdk/reference/qa/quantile.md new file mode 100644 index 00000000000..c358bf5dc0a --- /dev/null +++ b/website/content/sdk/reference/qa/quantile.md @@ -0,0 +1,81 @@ +--- +title: quantile +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# quantile + + + + +Overlay Median & Quantile + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_model.py#L72)] + +```python +openbb.qa.quantile(data: pd.DataFrame, window: int = 14, quantile_pct: float = 0.5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of targeted data | None | False | +| window | int | Length of window | 14 | True | +| quantile_pct | float | Quantile to display | 0.5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Dataframe of rolling median prices over window,
Dataframe of rolling quantile prices over window | +--- + + + +
+ + +Plots rolling quantile + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_view.py#L245)] + +```python +openbb.qa.quantile_chart(data: pd.DataFrame, target: str, symbol: str = "", window: int = 14, quantile: float = 0.5, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe | None | False | +| target | str | Column in data to look at | None | False | +| symbol | str | Stock ticker | | True | +| window | int | Length of window | 14 | True | +| quantile | float | Quantile to get | 0.5 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/qa/rolling.md b/website/content/sdk/reference/qa/rolling.md new file mode 100644 index 00000000000..7c39f94ea43 --- /dev/null +++ b/website/content/sdk/reference/qa/rolling.md @@ -0,0 +1,79 @@ +--- +title: rolling +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rolling + + + + +Return rolling mean and standard deviation + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_model.py#L16)] + +```python +openbb.qa.rolling(data: pd.DataFrame, window: int = 14) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of target data | None | False | +| window | int | Length of rolling window | 14 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Dataframe of rolling mean,
Dataframe of rolling standard deviation | +--- + + + +
+ + +Plots mean std deviation + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_view.py#L26)] + +```python +openbb.qa.rolling_chart(data: pd.DataFrame, target: str, symbol: str = "", window: int = 14, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe | None | False | +| target | str | Column in data to look at | None | False | +| symbol | str | Stock ticker | | True | +| window | int | Length of window | 14 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/qa/sharpe.md b/website/content/sdk/reference/qa/sharpe.md new file mode 100644 index 00000000000..890a470ce1a --- /dev/null +++ b/website/content/sdk/reference/qa/sharpe.md @@ -0,0 +1,77 @@ +--- +title: sharpe +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sharpe + + + + +Calculates the sharpe ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L537)] + +```python +openbb.qa.sharpe(data: pd.DataFrame, rfr: float = 0, window: float = 252) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | selected dataframe column | None | False | +| rfr | float | risk free rate | 0 | True | +| window | float | length of the rolling window | 252 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | sharpe ratio | +--- + + + + + + +Plots Calculated the sharpe ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L1156)] + +```python +openbb.qa.sharpe_chart(data: pd.DataFrame, rfr: float = 0, window: float = 252) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | selected dataframe column | None | False | +| rfr | float | risk free rate | 0 | True | +| window | float | length of the rolling window | 252 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/skew.md b/website/content/sdk/reference/qa/skew.md new file mode 100644 index 00000000000..552f3f0b148 --- /dev/null +++ b/website/content/sdk/reference/qa/skew.md @@ -0,0 +1,79 @@ +--- +title: skew +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# skew + + + + +Skewness Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_model.py#L103)] + +```python +openbb.qa.skew(data: pd.DataFrame, window: int = 14) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of targeted data | None | False | +| window | int | Length of window | 14 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of rolling skew | +--- + + + + + + +Plots rolling skew + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_view.py#L341)] + +```python +openbb.qa.skew_chart(symbol: str, data: pd.DataFrame, target: str, window: int = 14, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| data | pd.DataFrame | Dataframe | None | False | +| target | str | Column in data to look at | None | False | +| window | int | Length of window | 14 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/sortino.md b/website/content/sdk/reference/qa/sortino.md new file mode 100644 index 00000000000..2f7cad4d43e --- /dev/null +++ b/website/content/sdk/reference/qa/sortino.md @@ -0,0 +1,79 @@ +--- +title: sortino +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sortino + + + + +Calculates the sortino ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L562)] + +```python +openbb.qa.sortino(data: pd.DataFrame, target_return: float = 0, window: float = 252, adjusted: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | selected dataframe | None | False | +| target_return | float | target return of the asset | 0 | True | +| window | float | length of the rolling window | 252 | True | +| adjusted | bool | adjust the sortino ratio | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | sortino ratio | +--- + + + + + + +Plots the sortino ratio + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L1181)] + +```python +openbb.qa.sortino_chart(data: pd.DataFrame, target_return: float, window: float, adjusted: bool) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | selected dataframe | None | False | +| target_return | float | target return of the asset | None | False | +| window | float | length of the rolling window | None | False | +| adjusted | bool | adjust the sortino ratio | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/spread.md b/website/content/sdk/reference/qa/spread.md new file mode 100644 index 00000000000..0ca12cf38f3 --- /dev/null +++ b/website/content/sdk/reference/qa/spread.md @@ -0,0 +1,80 @@ +--- +title: spread +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# spread + + + + +Standard Deviation and Variance + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_model.py#L41)] + +```python +openbb.qa.spread(data: pd.DataFrame, window: int = 14) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | DataFrame of targeted data | None | False | +| window | int | Length of window | 14 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Dataframe of rolling standard deviation,
Dataframe of rolling variance | +--- + + + +
+ + +Plots rolling spread + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/rolling_view.py#L135)] + +```python +openbb.qa.spread_chart(data: pd.DataFrame, target: str, symbol: str = "", window: int = 14, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe | None | False | +| target | str | Column in data to look at | None | False | +| target | str | Column in data to look at | None | False | +| symbol | str | Stock ticker | | True | +| window | int | Length of window | 14 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/qa/summary.md b/website/content/sdk/reference/qa/summary.md new file mode 100644 index 00000000000..e44426a92fc --- /dev/null +++ b/website/content/sdk/reference/qa/summary.md @@ -0,0 +1,74 @@ +--- +title: summary +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# summary + + + + +Print summary statistics + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L25)] + +```python +openbb.qa.summary(data: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe to get summary statistics for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Summary statistics | +--- + + + + + + +Prints table showing summary statistics + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L53)] + +```python +openbb.qa.summary_chart(data: pd.DataFrame, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | DataFrame to get statistics of | None | False | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/unitroot.md b/website/content/sdk/reference/qa/unitroot.md new file mode 100644 index 00000000000..8c7130f8b85 --- /dev/null +++ b/website/content/sdk/reference/qa/unitroot.md @@ -0,0 +1,79 @@ +--- +title: unitroot +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# unitroot + + + + +Calculate test statistics for unit roots + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L135)] + +```python +openbb.qa.unitroot(data: pd.DataFrame, fuller_reg: str = "c", kpss_reg: str = "c") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | DataFrame of target variable | None | False | +| fuller_reg | str | Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order | c | True | +| kpss_reg | str | Type of regression for KPSS test. Can be ‘c’,’ct' | c | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with results of ADF test and KPSS test | +--- + + + + + + +Prints table showing unit root test calculations + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L839)] + +```python +openbb.qa.unitroot_chart(data: pd.DataFrame, target: str, fuller_reg: str = "c", kpss_reg: str = "c", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | DataFrame | None | False | +| target | str | Column of data to look at | None | False | +| fuller_reg | str | Type of regression of ADF test. Can be ‘c’,’ct’,’ctt’,’nc’ 'c' - Constant and t - trend order | c | True | +| kpss_reg | str | Type of regression for KPSS test. Can be ‘c’,’ct' | c | True | +| export | str | Format for exporting data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/qa/var.md b/website/content/sdk/reference/qa/var.md new file mode 100644 index 00000000000..bfe7cfd6a1d --- /dev/null +++ b/website/content/sdk/reference/qa/var.md @@ -0,0 +1,85 @@ +--- +title: var +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# var + + + + +Gets value at risk for specified stock dataframe. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_model.py#L224)] + +```python +openbb.qa.var(data: pd.DataFrame, use_mean: bool = False, adjusted_var: bool = False, student_t: bool = False, percentile: Union[int, float] = 99.9, portfolio: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Data dataframe | None | False | +| use_mean | bool | If one should use the data mean for calculation | False | True | +| adjusted_var | bool | If one should return VaR adjusted for skew and kurtosis | False | True | +| student_t | bool | If one should use the student-t distribution | False | True | +| percentile | Union[int,float] | VaR percentile | 99.9 | True | +| portfolio | bool | If the data is a portfolio | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with Value at Risk per percentile | +--- + + + + + + +Prints table showing VaR of dataframe. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/quantitative_analysis/qa_view.py#L1048)] + +```python +openbb.qa.var_chart(data: pd.DataFrame, symbol: str = "", use_mean: bool = False, adjusted_var: bool = False, student_t: bool = False, percentile: float = 99.9, data_range: int = 0, portfolio: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Dataframe | Data dataframe | None | False | +| use_mean | bool | if one should use the data mean return | False | True | +| symbol | str | name of the data | | True | +| adjusted_var | bool | if one should have VaR adjusted for skew and kurtosis (Cornish-Fisher-Expansion) | False | True | +| student_t | bool | If one should use the student-t distribution | False | True | +| percentile | int | var percentile | 99.9 | True | +| data_range | int | Number of rows you want to use VaR over | 0 | True | +| portfolio | bool | If the data is a portfolio | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/bullbear.md b/website/content/sdk/reference/stocks/ba/bullbear.md new file mode 100644 index 00000000000..3542cbcd291 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/bullbear.md @@ -0,0 +1,33 @@ +--- +title: bullbear +description: OpenBB SDK Function +--- + +# bullbear + +Gets bullbear sentiment for ticker [Source: stocktwits]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/stocktwits_model.py#L16)] + +```python +openbb.stocks.ba.bullbear(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to look at | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[int, int, int, int] | Watchlist count,
Number of cases found for ticker,
Number of bullish statements,
Number of bearish statements, | +--- + diff --git a/website/content/sdk/reference/stocks/ba/cnews.md b/website/content/sdk/reference/stocks/ba/cnews.md new file mode 100644 index 00000000000..abce7cb5cac --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/cnews.md @@ -0,0 +1,35 @@ +--- +title: cnews +description: OpenBB SDK Function +--- + +# cnews + +Get news from a company. [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/behavioural_analysis/finnhub_model.py#L20)] + +```python +openbb.stocks.ba.cnews(symbol: str, start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | company ticker to look for news articles | None | False | +| start_date | str | date to start searching articles, with format YYYY-MM-DD | None | True | +| end_date | str | date to end searching articles, with format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List | term to search on the news articles | +--- + diff --git a/website/content/sdk/reference/stocks/ba/getdd.md b/website/content/sdk/reference/stocks/ba/getdd.md new file mode 100644 index 00000000000..04ed695f1a4 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/getdd.md @@ -0,0 +1,36 @@ +--- +title: getdd +description: OpenBB SDK Function +--- + +# getdd + +Gets due diligence posts from list of subreddits [Source: reddit]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L711)] + +```python +openbb.stocks.ba.getdd(symbol: str, limit: int = 5, n_days: int = 3, show_all_flairs: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| limit | int | Number of posts to get | 5 | True | +| n_days | int | Number of days back to get posts | 3 | True | +| show_all_flairs | bool | Search through all flairs (apart from Yolo and Meme) | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of submissions | +--- + diff --git a/website/content/sdk/reference/stocks/ba/headlines.md b/website/content/sdk/reference/stocks/ba/headlines.md new file mode 100644 index 00000000000..031a50fb9d6 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/headlines.md @@ -0,0 +1,76 @@ +--- +title: headlines +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# headlines + + + + +Gets Sentiment analysis provided by FinBrain's API [Source: finbrain]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/finbrain_model.py#L15)] + +```python +openbb.stocks.ba.headlines(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get the sentiment analysis from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Empty if there was an issue with data retrieval | +--- + + + + + + +Plots Sentiment analysis from FinBrain. Prints table if raw is True. [Source: FinBrain] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/finbrain_view.py#L36)] + +```python +openbb.stocks.ba.headlines_chart(symbol: str, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get the sentiment analysis from | None | False | +| raw | False | Display raw table data | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/hist.md b/website/content/sdk/reference/stocks/ba/hist.md new file mode 100644 index 00000000000..e5333a838c4 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/hist.md @@ -0,0 +1,83 @@ +--- +title: hist +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hist + + + + +Get hour-level sentiment data for the chosen symbol. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/sentimentinvestor_model.py#L19)] + +```python +openbb.stocks.ba.hist(symbol: str, start_date: str = None, end_date: str = None, number: int = 100) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to view sentiment data | None | False | +| start_date | str | Initial date like string or unix timestamp (e.g. 12-21-2021) | None | True | +| end_date | str | End date like string or unix timestamp (e.g. 12-21-2021) | None | True | +| number | int | Number of results returned by API call
Maximum 250 per api call | 100 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of historical sentiment | +--- + + + +
+ + +Display historical sentiment data of a ticker, + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/sentimentinvestor_view.py#L30)] + +```python +openbb.stocks.ba.hist_chart(symbol: str, start_date: str = None, end_date: str = None, number: int = 100, raw: bool = False, limit: int = 10, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to view sentiment data | None | False | +| start_date | str | Initial date like string or unix timestamp (e.g. 2021-12-21) | None | True | +| end_date | str | End date like string or unix timestamp (e.g. 2022-01-15) | None | True | +| number | int | Number of results returned by API call
Maximum 250 per api call | 100 | True | +| raw | boolean | Whether to display raw data, by default False | False | True | +| limit | int | Number of results display on the terminal
Default: 10 | 10 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/infer.md b/website/content/sdk/reference/stocks/ba/infer.md new file mode 100644 index 00000000000..396154afeb4 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/infer.md @@ -0,0 +1,78 @@ +--- +title: infer +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# infer + + + + +Load tweets from twitter API and analyzes using VADER. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/twitter_model.py#L23)] + +```python +openbb.stocks.ba.infer(symbol: str, limit: int = 100, start_date: Optional[str] = "", end_date: Optional[str] = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to search twitter for | None | False | +| limit | int | Number of tweets to analyze | 100 | True | +| start_date | Optional[str] | If given, the start time to get tweets from | | True | +| end_date | Optional[str] | If given, the end time to get tweets from | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of tweets and sentiment | +--- + + + + + + +Prints Inference sentiment from past n tweets. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/twitter_view.py#L29)] + +```python +openbb.stocks.ba.infer_chart(symbol: str, limit: int = 100, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number of tweets to analyze | 100 | True | +| export | str | Format to export tweet dataframe | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/mentions.md b/website/content/sdk/reference/stocks/ba/mentions.md new file mode 100644 index 00000000000..ba3a3be4065 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/mentions.md @@ -0,0 +1,76 @@ +--- +title: mentions +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mentions + + + + +Get interest over time from google api [Source: google]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/google_model.py#L16)] + +```python +openbb.stocks.ba.mentions(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of interest over time | +--- + + + + + + +Plots weekly bars of stock's interest over time. other users watchlist. [Source: Google]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/google_view.py#L26)] + +```python +openbb.stocks.ba.mentions_chart(symbol: str, start_date: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol | None | False | +| start_date | str | Start date as YYYY-MM-DD string | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/messages.md b/website/content/sdk/reference/stocks/ba/messages.md new file mode 100644 index 00000000000..0eff0c9c9ea --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/messages.md @@ -0,0 +1,34 @@ +--- +title: messages +description: OpenBB SDK Function +--- + +# messages + +Get last messages for a given ticker [Source: stocktwits]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/stocktwits_model.py#L52)] + +```python +openbb.stocks.ba.messages(symbol: str, limit: int = 30) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number of messages to get | 30 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of messages | +--- + diff --git a/website/content/sdk/reference/stocks/ba/popular.md b/website/content/sdk/reference/stocks/ba/popular.md new file mode 100644 index 00000000000..955991b414e --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/popular.md @@ -0,0 +1,35 @@ +--- +title: popular +description: OpenBB SDK Function +--- + +# popular + +Get popular tickers from list of subreddits [Source: reddit]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L145)] + +```python +openbb.stocks.ba.popular(limit: int = 10, post_limit: int = 50, subreddits: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of top tickers to get | 10 | True | +| post_limit | int | How many posts to analyze in each subreddit | 50 | True | +| subreddits | str | String of comma separated subreddits. | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of top tickers from supplied subreddits | +--- + diff --git a/website/content/sdk/reference/stocks/ba/queries.md b/website/content/sdk/reference/stocks/ba/queries.md new file mode 100644 index 00000000000..dc6ebd1e67c --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/queries.md @@ -0,0 +1,34 @@ +--- +title: queries +description: OpenBB SDK Function +--- + +# queries + +Get related queries from google api [Source: google]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/google_model.py#L73)] + +```python +openbb.stocks.ba.queries(symbol: str, limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol to compare | None | False | +| limit | int | Number of queries to show | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of related queries | +--- + diff --git a/website/content/sdk/reference/stocks/ba/redditsent.md b/website/content/sdk/reference/stocks/ba/redditsent.md new file mode 100644 index 00000000000..99033bcffa6 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/redditsent.md @@ -0,0 +1,38 @@ +--- +title: redditsent +description: OpenBB SDK Function +--- + +# redditsent + +Finds posts related to a specific search term in Reddit. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L864)] + +```python +openbb.stocks.ba.redditsent(symbol: str, limit: int = 100, sortby: str = "relevance", time_frame: str = "week", full_search: bool = True, subreddits: str = "all") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to search for | None | False | +| limit | int | Number of posts to get per subreddit | 100 | True | +| sortby | str | Search type (Possibilities: "relevance", "hot", "top", "new", or "comments") | relevance | True | +| time_frame | str | Relative time of post (Possibilities: "hour", "day", "week", "month", "year", "all") | week | True | +| full_search | bool | Enable comprehensive search for ticker | True | True | +| subreddits | str | Comma-separated list of subreddits | all | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| | Dataframe of submissions related to the search term,
List of polarity scores,
Average polarity score. | +--- + diff --git a/website/content/sdk/reference/stocks/ba/regions.md b/website/content/sdk/reference/stocks/ba/regions.md new file mode 100644 index 00000000000..452330a9a94 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/regions.md @@ -0,0 +1,76 @@ +--- +title: regions +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# regions + + + + +Get interest by region from google api [Source: google]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/google_model.py#L44)] + +```python +openbb.stocks.ba.regions(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to look at | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of interest by region | +--- + + + + + + +Plots bars of regions based on stock's interest. [Source: Google]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/google_view.py#L156)] + +```python +openbb.stocks.ba.regions_chart(symbol: str, limit: int = 5, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol | None | False | +| limit | int | Number of regions to show | 5 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/rise.md b/website/content/sdk/reference/stocks/ba/rise.md new file mode 100644 index 00000000000..a407d12552c --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/rise.md @@ -0,0 +1,34 @@ +--- +title: rise +description: OpenBB SDK Function +--- + +# rise + +Get top rising related queries with this stock's query [Source: google]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/google_model.py#L106)] + +```python +openbb.stocks.ba.rise(symbol: str, limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number of queries to show | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing rising related queries | +--- + diff --git a/website/content/sdk/reference/stocks/ba/sentiment.md b/website/content/sdk/reference/stocks/ba/sentiment.md new file mode 100644 index 00000000000..8e83fb56343 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/sentiment.md @@ -0,0 +1,80 @@ +--- +title: sentiment +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sentiment + + + + +Get sentiments from symbol. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/twitter_model.py#L125)] + +```python +openbb.stocks.ba.sentiment(symbol: str, n_tweets: int = 15, n_days_past: int = 2) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol to get sentiment for | None | False | +| n_tweets | int | Number of tweets to get per hour | 15 | True | +| n_days_past | int | Number of days to extract tweets for | 2 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of sentiment | +--- + + + + + + +Plots sentiments from symbol + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/twitter_view.py#L79)] + +```python +openbb.stocks.ba.sentiment_chart(symbol: str, n_tweets: int = 15, n_days_past: int = 2, compare: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol to get sentiment for | None | False | +| n_tweets | int | Number of tweets to get per hour | 15 | True | +| n_days_past | int | Number of days to extract tweets for | 2 | True | +| compare | bool | Show corresponding change in stock price | False | True | +| export | str | Format to export tweet dataframe | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/snews.md b/website/content/sdk/reference/stocks/ba/snews.md new file mode 100644 index 00000000000..685abfa962e --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/snews.md @@ -0,0 +1,74 @@ +--- +title: snews +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# snews + + + + +Get headlines sentiment using VADER model over time. [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/behavioural_analysis/finnhub_model.py#L97)] + +```python +openbb.stocks.ba.snews(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker of company | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +Display stock price and headlines sentiment using VADER model over time. [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/behavioural_analysis/finnhub_view.py#L27)] + +```python +openbb.stocks.ba.snews_chart(symbol: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker of company | None | False | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/spac.md b/website/content/sdk/reference/stocks/ba/spac.md new file mode 100644 index 00000000000..d6b6df725e4 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/spac.md @@ -0,0 +1,33 @@ +--- +title: spac +description: OpenBB SDK Function +--- + +# spac + +Get posts containing SPAC from top subreddits [Source: reddit]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L456)] + +```python +openbb.stocks.ba.spac(limit: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of posts to get for each subreddit, by default 5 | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, dict, int] | Dataframe of reddit submission,
Dictionary of tickers and counts,
Number of posts found. | +--- + diff --git a/website/content/sdk/reference/stocks/ba/spacc.md b/website/content/sdk/reference/stocks/ba/spacc.md new file mode 100644 index 00000000000..1ffaae1fe66 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/spacc.md @@ -0,0 +1,34 @@ +--- +title: spacc +description: OpenBB SDK Function +--- + +# spacc + +Get top tickers from r/SPACs [Source: reddit]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L317)] + +```python +openbb.stocks.ba.spacc(limit: int = 10, popular: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of posts to look at | 10 | True | +| popular | bool | Search by hot instead of new | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, dict] | Dataframe of reddit submission,
Dictionary of tickers and number of mentions. | +--- + diff --git a/website/content/sdk/reference/stocks/ba/stalker.md b/website/content/sdk/reference/stocks/ba/stalker.md new file mode 100644 index 00000000000..883364b2f15 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/stalker.md @@ -0,0 +1,34 @@ +--- +title: stalker +description: OpenBB SDK Function +--- + +# stalker + +Gets messages from given user [Source: stocktwits]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/stocktwits_model.py#L103)] + +```python +openbb.stocks.ba.stalker(user: str, limit: int = 30) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| user | str | User to get posts for | None | False | +| limit | int | Number of posts to get, by default 30 | 30 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[Dict[str, Any]] | List of posts | +--- + diff --git a/website/content/sdk/reference/stocks/ba/text_sent.md b/website/content/sdk/reference/stocks/ba/text_sent.md new file mode 100644 index 00000000000..6cda9f7620b --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/text_sent.md @@ -0,0 +1,33 @@ +--- +title: text_sent +description: OpenBB SDK Function +--- + +# text_sent + +Find the sentiment of a post and related comments. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L1049)] + +```python +openbb.stocks.ba.text_sent(post_data: List[str]) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| post_data | list[str] | A post and its comments in string form | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| float | A number in the range [-1, 1] representing sentiment | +--- + diff --git a/website/content/sdk/reference/stocks/ba/trend.md b/website/content/sdk/reference/stocks/ba/trend.md new file mode 100644 index 00000000000..93f9dd9b5d7 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/trend.md @@ -0,0 +1,79 @@ +--- +title: trend +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# trend + + + + +Get sentiment data on the most talked about tickers + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/sentimentinvestor_model.py#L136)] + +```python +openbb.stocks.ba.trend(start_date: str = None, hour: int = 0, number: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | None | True | +| hour | int | Hour of the day in 24-hour notation (e.g. 14) | 0 | True | +| number | int | Number of results returned by API call
Maximum 250 per api call | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of trending data | +--- + + + +
+ + +Display most talked about tickers within + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/sentimentinvestor_view.py#L151)] + +```python +openbb.stocks.ba.trend_chart(start_date: str = None, hour: int = 0, number: int = 10, limit: int = 10, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | None | True | +| hour | int | Hour of the day in 24-hour notation (e.g. 14) | 0 | True | +| number | int | Number of results returned by API call
Maximum 250 per api call | 10 | True | +| limit | int | Number of results display on the terminal
Default: 10 | 10 | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ba/trending.md b/website/content/sdk/reference/stocks/ba/trending.md new file mode 100644 index 00000000000..d6c297c457c --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/trending.md @@ -0,0 +1,30 @@ +--- +title: trending +description: OpenBB SDK Function +--- + +# trending + +Get trending tickers from stocktwits [Source: stocktwits]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/stocktwits_model.py#L79)] + +```python +openbb.stocks.ba.trending() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of trending tickers and watchlist count | +--- + diff --git a/website/content/sdk/reference/stocks/ba/watchlist.md b/website/content/sdk/reference/stocks/ba/watchlist.md new file mode 100644 index 00000000000..c650fb96421 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/watchlist.md @@ -0,0 +1,33 @@ +--- +title: watchlist +description: OpenBB SDK Function +--- + +# watchlist + +Get reddit users watchlists [Source: reddit]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L40)] + +```python +openbb.stocks.ba.watchlist(limit: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of posts to look through | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[List[praw.models.reddit.submission.Submission], dict, int] | List of reddit submissions,
Dictionary of tickers and their count,
Count of how many posts were analyzed. | +--- + diff --git a/website/content/sdk/reference/stocks/ba/wsb.md b/website/content/sdk/reference/stocks/ba/wsb.md new file mode 100644 index 00000000000..257bcecc856 --- /dev/null +++ b/website/content/sdk/reference/stocks/ba/wsb.md @@ -0,0 +1,34 @@ +--- +title: wsb +description: OpenBB SDK Function +--- + +# wsb + +Get wsb posts [Source: reddit]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/behavioural_analysis/reddit_model.py#L602)] + +```python +openbb.stocks.ba.wsb(limit: int = 10, new: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of posts to get, by default 10 | 10 | True | +| new | bool | Flag to sort by new instead of hot, by default False | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of reddit submissions | +--- + diff --git a/website/content/sdk/reference/stocks/ca/balance.md b/website/content/sdk/reference/stocks/ca/balance.md new file mode 100644 index 00000000000..e8bfad9d289 --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/balance.md @@ -0,0 +1,36 @@ +--- +title: balance +description: OpenBB SDK Function +--- + +# balance + +Get balance data. [Source: Marketwatch]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/marketwatch_model.py#L107)] + +```python +openbb.stocks.ca.balance(similar: List[str], timeframe: str = "2021", quarter: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of tickers to compare.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| timeframe | str | Column header to compare | 2021 | True | +| quarter | bool | Whether to use quarterly statements, by default False | False | True | +| export | str | Format to export data | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of balance comparisons | +--- + diff --git a/website/content/sdk/reference/stocks/ca/cashflow.md b/website/content/sdk/reference/stocks/ca/cashflow.md new file mode 100644 index 00000000000..35071bdde3a --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/cashflow.md @@ -0,0 +1,36 @@ +--- +title: cashflow +description: OpenBB SDK Function +--- + +# cashflow + +Get cashflow data. [Source: Marketwatch] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/marketwatch_model.py#L140)] + +```python +openbb.stocks.ca.cashflow(similar: List[str], timeframe: str = "2021", quarter: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of tickers to compare.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| timeframe | str | Column header to compare | 2021 | True | +| quarter | bool | Whether to use quarterly statements, by default False | False | True | +| export | str | Format to export data | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of cashflow comparisons | +--- + diff --git a/website/content/sdk/reference/stocks/ca/hcorr.md b/website/content/sdk/reference/stocks/ca/hcorr.md new file mode 100644 index 00000000000..518040001dc --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/hcorr.md @@ -0,0 +1,81 @@ +--- +title: hcorr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hcorr + + + + +Get historical price correlation. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/yahoo_finance_model.py#L98)] + +```python +openbb.stocks.ca.hcorr(similar: List[str], start_date: str = None, candle_type: str = "a") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of similar tickers.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 1 year back | None | True | +| candle_type | str | OHLCA column to use for candles or R for returns, by default "a" for Adjusted Close | a | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Dataframe with correlation matrix, Dataframe with historical prices for all comparison stocks | +--- + + + +
+ + +Correlation heatmap based on historical price comparison + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/yahoo_finance_view.py#L159)] + +```python +openbb.stocks.ca.hcorr_chart(similar: List[str], start_date: str = None, candle_type: str = "a", display_full_matrix: bool = False, raw: bool = False, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of similar tickers.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 1 year back | None | True | +| candle_type | str | OHLCA column to use for candles or R for returns, by default "a" for Adjusted Close | a | True | +| display_full_matrix | bool | Optionally display all values in the matrix, rather than masking off half, by default False | False | True | +| raw | bool | Whether to display raw data | False | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | +| export | str | Format to export correlation prices, by default "" | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ca/hist.md b/website/content/sdk/reference/stocks/ca/hist.md new file mode 100644 index 00000000000..e9cd8b661ee --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/hist.md @@ -0,0 +1,80 @@ +--- +title: hist +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hist + + + + +Get historical prices for all comparison stocks + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/yahoo_finance_model.py#L31)] + +```python +openbb.stocks.ca.hist(similar: List[str], start_date: str = None, candle_type: str = "a") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of similar tickers.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 1 year back | None | True | +| candle_type | str | Candle variable to compare, by default "a" for Adjusted Close. Possible values are: o, h, l, c, a, v, r | a | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing candle type variable for each ticker | +--- + + + +
+ + +Display historical stock prices. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/yahoo_finance_view.py#L43)] + +```python +openbb.stocks.ca.hist_chart(similar: List[str], start_date: str = None, candle_type: str = "a", normalize: bool = True, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of similar tickers.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 1 year back | None | True | +| candle_type | str | OHLCA column to use or R to use daily returns calculated from Adjusted Close, by default "a" for Adjusted Close | a | True | +| normalize | bool | Boolean to normalize all stock prices using MinMax defaults True | True | True | +| export | str | Format to export historical prices, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ca/income.md b/website/content/sdk/reference/stocks/ca/income.md new file mode 100644 index 00000000000..a6e98de8bd4 --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/income.md @@ -0,0 +1,79 @@ +--- +title: income +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# income + + + + +Get income data. [Source: Marketwatch]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/marketwatch_model.py#L74)] + +```python +openbb.stocks.ca.income(similar: List[str], timeframe: str = "2021", quarter: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of tickers to compare.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| timeframe | str | Column header to compare | 2021 | True | +| quarter | bool | Whether to use quarterly statements, by default False | False | True | +| export | str | Format to export data | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of income statements | +--- + + + +
+ + +Display income data. [Source: Marketwatch]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/marketwatch_view.py#L23)] + +```python +openbb.stocks.ca.income_chart(symbols: List[str], timeframe: str = "2021", quarter: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | List[str] | List of tickers to compare. Enter tickers you want to see as shown below:
["TSLA", "AAPL", "NFLX", "BBY"]
You can also get a list of comparable peers with
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| timeframe | str | What year to look at | 2021 | True | +| quarter | bool | Whether to use quarterly statements, by default False | False | True | +| export | str | Format to export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ca/scorr.md b/website/content/sdk/reference/stocks/ca/scorr.md new file mode 100644 index 00000000000..26bb02a102b --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/scorr.md @@ -0,0 +1,76 @@ +--- +title: scorr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# scorr + + + + +Get correlation sentiments across similar companies. [Source: FinBrain]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/finbrain_model.py#L125)] + +```python +openbb.stocks.ca.scorr(similar: List[str]) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | Similar companies to compare income with.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame,pd.DataFrame] | Contains sentiment analysis from several tickers | +--- + + + +
+ + +Plot correlation sentiments heatmap across similar companies. [Source: FinBrain]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/finbrain_view.py#L121)] + +```python +openbb.stocks.ca.scorr_chart(similar: List[str], raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | Similar companies to compare income with.
Comparable companies can be accessed through
finviz_peers(), finnhub_peers() or polygon_peers(). | None | False | +| raw | bool | Output raw values, by default False | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ca/screener.md b/website/content/sdk/reference/stocks/ca/screener.md new file mode 100644 index 00000000000..6bda3e74b17 --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/screener.md @@ -0,0 +1,34 @@ +--- +title: screener +description: OpenBB SDK Function +--- + +# screener + +Screener Overview. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/finviz_compare_model.py#L53)] + +```python +openbb.stocks.ca.screener(similar: List[str], data_type: str = "overview") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | | List of similar companies.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| data_type | str | Data type between: overview, valuation, financial, ownership, performance, technical | overview | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with overview, valuation, financial, ownership, performance or technical | +--- + diff --git a/website/content/sdk/reference/stocks/ca/sentiment.md b/website/content/sdk/reference/stocks/ca/sentiment.md new file mode 100644 index 00000000000..2586e7288b6 --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/sentiment.md @@ -0,0 +1,76 @@ +--- +title: sentiment +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# sentiment + + + + +Gets Sentiment analysis from several symbols provided by FinBrain's API. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/finbrain_model.py#L47)] + +```python +openbb.stocks.ca.sentiment(symbols: List[str]) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | List[str] | List of tickers to get sentiment.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Contains sentiment analysis from several tickers | +--- + + + +
+ + +Display sentiment for all ticker. [Source: FinBrain]. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/finbrain_view.py#L32)] + +```python +openbb.stocks.ca.sentiment_chart(similar: List[str], raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | Similar companies to compare income with.
Comparable companies can be accessed through
finviz_peers(), finnhub_peers() or polygon_peers(). | None | False | +| raw | bool | Output raw values, by default False | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ca/similar.md b/website/content/sdk/reference/stocks/ca/similar.md new file mode 100644 index 00000000000..74c27d4bcc3 --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/similar.md @@ -0,0 +1,45 @@ +--- +title: similar +description: OpenBB SDK Function +--- + +# similar + +Find similar tickers to a given symbol. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/sdk_helpers.py#L15)] + +```python +openbb.stocks.ca.similar(symbol: str, source: Any = "Finviz") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to find similar tickers to. | None | False | +| source | str | Source to get data for, by default "Finviz". Can be "Finviz", "Polygon", "Finnhub", or "TSNE" | Finviz | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str] | List of similar tickers. | +--- + +## Examples +To get similar tickers to AAPL from Finviz: + +To use our custom TSNE model for similar tickers in the SP500: +```python +from openbb_terminal.sdk import openbb +similar_tickers = openbb.stocks.ca.similar("AAPL) +``` + +--- + diff --git a/website/content/sdk/reference/stocks/ca/volume.md b/website/content/sdk/reference/stocks/ca/volume.md new file mode 100644 index 00000000000..566f6b46bbf --- /dev/null +++ b/website/content/sdk/reference/stocks/ca/volume.md @@ -0,0 +1,77 @@ +--- +title: volume +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# volume + + + + +Get stock volume. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/yahoo_finance_model.py#L134)] + +```python +openbb.stocks.ca.volume(similar: List[str], start_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of similar tickers.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 1 year back | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with volume for stock | +--- + + + +
+ + +Display stock volume. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/comparison_analysis/yahoo_finance_view.py#L107)] + +```python +openbb.stocks.ca.volume_chart(similar: List[str], start_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| similar | List[str] | List of similar tickers.
Comparable companies can be accessed through
finnhub_peers(), finviz_peers(), polygon_peers(). | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 1 year back | None | True | +| export | str | Format to export historical prices, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/candle.md b/website/content/sdk/reference/stocks/candle.md new file mode 100644 index 00000000000..47517838b6f --- /dev/null +++ b/website/content/sdk/reference/stocks/candle.md @@ -0,0 +1,50 @@ +--- +title: candle +description: OpenBB SDK Function +--- + +# candle + +Show candle plot of loaded ticker. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L443)] + +```python +openbb.stocks.candle(symbol: str, data: pd.DataFrame = None, use_matplotlib: bool = True, intraday: bool = False, add_trend: bool = False, ma: Optional[Iterable[int]] = None, asset_type: str = "", start_date: Union[datetime.datetime, str, NoneType] = None, interval: int = 1440, end_date: Union[datetime.datetime, str, NoneType] = None, prepost: bool = False, source: str = "YahooFinance", iexrange: str = "ytd", weekly: bool = False, monthly: bool = False, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None, raw: bool = False, yscale: str = "linear") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker name | None | False | +| data | pd.DataFrame | Stock dataframe | None | True | +| use_matplotlib | bool | Flag to use matplotlib instead of interactive plotly chart | True | True | +| intraday | bool | Flag for intraday data for plotly range breaks | False | True | +| add_trend | bool | Flag to add high and low trends to chart | False | True | +| ma | Tuple[int] | Moving averages to add to the candle | None | True | +| asset_type_ | str | String to include in title | None | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | +| asset_type_ | str | String to include in title | None | True | +| start_date | str or datetime | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| interval | int | Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 | 1440 | True | +| end_date | str or datetime | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| prepost | bool | Pre and After hours data | False | True | +| source | str | Source of data extracted | YahooFinance | True | +| iexrange | str | Timeframe to get IEX data. | ytd | True | +| weekly | bool | Flag to get weekly data | False | True | +| monthly | bool | Flag to get monthly data | False | True | +| raw | bool | Flag to display raw data, by default False | False | True | +| yscale | str | Linear or log for yscale | linear | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/stocks/dd/analyst.md b/website/content/sdk/reference/stocks/dd/analyst.md new file mode 100644 index 00000000000..182d1c9f0cf --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/analyst.md @@ -0,0 +1,33 @@ +--- +title: analyst +description: OpenBB SDK Function +--- + +# analyst + +Get analyst data. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/finviz_model.py#L33)] + +```python +openbb.stocks.dd.analyst(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | Analyst price targets | +--- + diff --git a/website/content/sdk/reference/stocks/dd/arktrades.md b/website/content/sdk/reference/stocks/dd/arktrades.md new file mode 100644 index 00000000000..aede824d9fd --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/arktrades.md @@ -0,0 +1,33 @@ +--- +title: arktrades +description: OpenBB SDK Function +--- + +# arktrades + +Gets a dataframe of ARK trades for ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/ark_model.py#L19)] + +```python +openbb.stocks.dd.arktrades(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get trades for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of trades | +--- + diff --git a/website/content/sdk/reference/stocks/dd/customer.md b/website/content/sdk/reference/stocks/dd/customer.md new file mode 100644 index 00000000000..bc2e04d0c7b --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/customer.md @@ -0,0 +1,34 @@ +--- +title: customer +description: OpenBB SDK Function +--- + +# customer + +Print customers from ticker provided + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/csimarket_model.py#L66)] + +```python +openbb.stocks.dd.customer(symbol: str, limit: int = 50) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to select customers from | None | False | +| limit | int | The maximum number of rows to show | 50 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | A dataframe of suppliers | +--- + diff --git a/website/content/sdk/reference/stocks/dd/est.md b/website/content/sdk/reference/stocks/dd/est.md new file mode 100644 index 00000000000..56e4b07a39b --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/est.md @@ -0,0 +1,33 @@ +--- +title: est +description: OpenBB SDK Function +--- + +# est + +Get analysts' estimates for a given ticker. [Source: Business Insider] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/business_insider_model.py#L71)] + +```python +openbb.stocks.dd.est(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get analysts' estimates | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Year estimates | +--- + diff --git a/website/content/sdk/reference/stocks/dd/news.md b/website/content/sdk/reference/stocks/dd/news.md new file mode 100644 index 00000000000..26cf4e44fdc --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/news.md @@ -0,0 +1,33 @@ +--- +title: news +description: OpenBB SDK Function +--- + +# news + +Get news from Finviz + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/finviz_model.py#L16)] + +```python +openbb.stocks.dd.news(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[Any] | News | +--- + diff --git a/website/content/sdk/reference/stocks/dd/pt.md b/website/content/sdk/reference/stocks/dd/pt.md new file mode 100644 index 00000000000..df9a0d0ee0d --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/pt.md @@ -0,0 +1,79 @@ +--- +title: pt +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pt + + + + +Get analysts' price targets for a given stock. [Source: Business Insider] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/business_insider_model.py#L20)] + +```python +openbb.stocks.dd.pt(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Analysts data | +--- + + + + + + +Display analysts' price targets for a given stock. [Source: Business Insider] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/business_insider_view.py#L31)] + +```python +openbb.stocks.dd.pt_chart(symbol: str, data: pd.DataFrame, start_date: str = None, limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Due diligence ticker symbol | None | False | +| data | DataFrame | Due diligence stock dataframe | None | False | +| start_date | str | Start date of the stock data, format YYYY-MM-DD | None | True | +| limit | int | Number of latest price targets from analysts to print | 10 | True | +| raw | bool | Display raw data only | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dd/rating.md b/website/content/sdk/reference/stocks/dd/rating.md new file mode 100644 index 00000000000..f5d58d15c80 --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/rating.md @@ -0,0 +1,33 @@ +--- +title: rating +description: OpenBB SDK Function +--- + +# rating + +Get ratings for a given ticker. [Source: Financial Modeling Prep] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/fmp_model.py#L17)] + +```python +openbb.stocks.dd.rating(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Rating data | +--- + diff --git a/website/content/sdk/reference/stocks/dd/rot.md b/website/content/sdk/reference/stocks/dd/rot.md new file mode 100644 index 00000000000..686dcfa88b0 --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/rot.md @@ -0,0 +1,77 @@ +--- +title: rot +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rot + + + + +Get rating over time data. [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/finnhub_model.py#L17)] + +```python +openbb.stocks.dd.rot(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get ratings from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Get dataframe with ratings | +--- + + + + + + +Rating over time (monthly). [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/finnhub_view.py#L75)] + +```python +openbb.stocks.dd.rot_chart(symbol: str, limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| ticker | str | Ticker to get ratings from | None | True | +| limit | int | Number of last months ratings to show | 10 | True | +| raw | bool | Display raw data only | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dd/sec.md b/website/content/sdk/reference/stocks/dd/sec.md new file mode 100644 index 00000000000..fc3d7b02d16 --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/sec.md @@ -0,0 +1,33 @@ +--- +title: sec +description: OpenBB SDK Function +--- + +# sec + +Get SEC filings for a given stock ticker. [Source: Market Watch] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/marketwatch_model.py#L20)] + +```python +openbb.stocks.dd.sec(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | SEC filings data | +--- + diff --git a/website/content/sdk/reference/stocks/dd/supplier.md b/website/content/sdk/reference/stocks/dd/supplier.md new file mode 100644 index 00000000000..45fd8c89ddf --- /dev/null +++ b/website/content/sdk/reference/stocks/dd/supplier.md @@ -0,0 +1,34 @@ +--- +title: supplier +description: OpenBB SDK Function +--- + +# supplier + +Get suppliers from ticker provided. [Source: CSIMarket] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/due_diligence/csimarket_model.py#L42)] + +```python +openbb.stocks.dd.supplier(symbol: str, limit: int = 50) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to select suppliers from | None | False | +| limit | int | The maximum number of rows to show | 50 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | A dataframe of suppliers | +--- + diff --git a/website/content/sdk/reference/stocks/disc/active.md b/website/content/sdk/reference/stocks/disc/active.md new file mode 100644 index 00000000000..b61e519f8ae --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/active.md @@ -0,0 +1,30 @@ +--- +title: active +description: OpenBB SDK Function +--- + +# active + +Get stocks ordered in descending order by intraday trade volume. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L97)] + +```python +openbb.stocks.disc.active() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most active stocks | +--- + diff --git a/website/content/sdk/reference/stocks/disc/arkord.md b/website/content/sdk/reference/stocks/disc/arkord.md new file mode 100644 index 00000000000..4d46ea738a9 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/arkord.md @@ -0,0 +1,35 @@ +--- +title: arkord +description: OpenBB SDK Function +--- + +# arkord + +Returns ARK orders in a Dataframe + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/ark_model.py#L23)] + +```python +openbb.stocks.disc.arkord(buys_only: bool = False, sells_only: bool = False, fund: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| buys_only | bool | Flag to filter on buys only | False | True | +| sells_only | bool | Flag to sort on sells only | False | True | +| fund | str | Optional filter by fund | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | ARK orders data frame with the following columns -
(ticker, date, shares, weight, fund, direction) | +--- + diff --git a/website/content/sdk/reference/stocks/disc/asc.md b/website/content/sdk/reference/stocks/disc/asc.md new file mode 100644 index 00000000000..6eb6fed295e --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/asc.md @@ -0,0 +1,30 @@ +--- +title: asc +description: OpenBB SDK Function +--- + +# asc + +Get Yahoo Finance small cap stocks with earnings growth rates better than 25%. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L138)] + +```python +openbb.stocks.disc.asc() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most aggressive small cap stocks | +--- + diff --git a/website/content/sdk/reference/stocks/disc/dividends.md b/website/content/sdk/reference/stocks/disc/dividends.md new file mode 100644 index 00000000000..e0b569a9cbf --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/dividends.md @@ -0,0 +1,33 @@ +--- +title: dividends +description: OpenBB SDK Function +--- + +# dividends + +Gets dividend calendar for given date. Date represents Ex-Dividend Date + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/nasdaq_model.py#L52)] + +```python +openbb.stocks.disc.dividends(date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| date | datetime | Date to get for in format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of dividend calendar | +--- + diff --git a/website/content/sdk/reference/stocks/disc/fipo.md b/website/content/sdk/reference/stocks/disc/fipo.md new file mode 100644 index 00000000000..4e89dd37481 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/fipo.md @@ -0,0 +1,34 @@ +--- +title: fipo +description: OpenBB SDK Function +--- + +# fipo + +Future IPOs dates. [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/finnhub_model.py#L115)] + +```python +openbb.stocks.disc.fipo(num_days_ahead: int = 5, end_date: Optional[str] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| num_days_ahead | int | Number of days to look ahead for IPOs dates | 5 | True | +| end_date | datetime | The end date (format YYYY-MM-DD) to look for IPOs from today onwards | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Get dataframe with future IPOs | +--- + diff --git a/website/content/sdk/reference/stocks/disc/gainers.md b/website/content/sdk/reference/stocks/disc/gainers.md new file mode 100644 index 00000000000..741a22391dc --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/gainers.md @@ -0,0 +1,30 @@ +--- +title: gainers +description: OpenBB SDK Function +--- + +# gainers + +Get top gainers. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L16)] + +```python +openbb.stocks.disc.gainers() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Stock Gainers | +--- + diff --git a/website/content/sdk/reference/stocks/disc/gtech.md b/website/content/sdk/reference/stocks/disc/gtech.md new file mode 100644 index 00000000000..385a6da3124 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/gtech.md @@ -0,0 +1,30 @@ +--- +title: gtech +description: OpenBB SDK Function +--- + +# gtech + +Get technology stocks with revenue and earnings growth in excess of 25%. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L76)] + +```python +openbb.stocks.disc.gtech() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Growth technology stocks | +--- + diff --git a/website/content/sdk/reference/stocks/disc/hotpenny.md b/website/content/sdk/reference/stocks/disc/hotpenny.md new file mode 100644 index 00000000000..52416c3405d --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/hotpenny.md @@ -0,0 +1,30 @@ +--- +title: hotpenny +description: OpenBB SDK Function +--- + +# hotpenny + +Returns today hot penny stocks + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/shortinterest_model.py#L38)] + +```python +openbb.stocks.disc.hotpenny() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | Today hot penny stocks DataFrame with the following columns:
Ticker, Price, Change, $ Volume, Volume, # Trades | +--- + diff --git a/website/content/sdk/reference/stocks/disc/ipo.md b/website/content/sdk/reference/stocks/disc/ipo.md new file mode 100644 index 00000000000..9d4baa3613d --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/ipo.md @@ -0,0 +1,34 @@ +--- +title: ipo +description: OpenBB SDK Function +--- + +# ipo + +Get IPO calendar + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/finnhub_model.py#L16)] + +```python +openbb.stocks.disc.ipo(start_date: str = None, end_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| start_date | str | Initial date, format YYYY-MM-DD | None | True | +| end_date | str | Final date, format YYYY-MM-DD | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Get dataframe with IPO calendar events | +--- + diff --git a/website/content/sdk/reference/stocks/disc/losers.md b/website/content/sdk/reference/stocks/disc/losers.md new file mode 100644 index 00000000000..46a634b28fc --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/losers.md @@ -0,0 +1,30 @@ +--- +title: losers +description: OpenBB SDK Function +--- + +# losers + +Get top losers. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L35)] + +```python +openbb.stocks.disc.losers() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Stock Losers | +--- + diff --git a/website/content/sdk/reference/stocks/disc/lowfloat.md b/website/content/sdk/reference/stocks/disc/lowfloat.md new file mode 100644 index 00000000000..8f4e3365093 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/lowfloat.md @@ -0,0 +1,30 @@ +--- +title: lowfloat +description: OpenBB SDK Function +--- + +# lowfloat + +Returns low float DataFrame + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/shortinterest_model.py#L15)] + +```python +openbb.stocks.disc.lowfloat() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | Low float DataFrame with the following columns:
Ticker, Company, Exchange, ShortInt, Float, Outstd, Industry | +--- + diff --git a/website/content/sdk/reference/stocks/disc/news.md b/website/content/sdk/reference/stocks/disc/news.md new file mode 100644 index 00000000000..b02eb3fc669 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/news.md @@ -0,0 +1,34 @@ +--- +title: news +description: OpenBB SDK Function +--- + +# news + +Gets news. [Source: SeekingAlpha] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/seeking_alpha_model.py#L199)] + +```python +openbb.stocks.disc.news(news_type: str = "Top-News", limit: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| news_type | str | From: Top-News, On-The-Move, Market-Pulse, Notable-Calls, Buybacks, Commodities, Crypto, Issuance, Global,
Guidance, IPOs, SPACs, Politics, M-A, Consumer, Energy, Financials, Healthcare, MLPs, REITs, Technology | Top-News | True | +| limit | int | Number of news to display | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[dict] | List of dict news | +--- + diff --git a/website/content/sdk/reference/stocks/disc/pipo.md b/website/content/sdk/reference/stocks/disc/pipo.md new file mode 100644 index 00000000000..ba7c9a8cd35 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/pipo.md @@ -0,0 +1,34 @@ +--- +title: pipo +description: OpenBB SDK Function +--- + +# pipo + +Past IPOs dates. [Source: Finnhub] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/finnhub_model.py#L74)] + +```python +openbb.stocks.disc.pipo(num_days_behind: int = 5, start_date: Optional[str] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| num_days_behind | int | Number of days to look behind for IPOs dates | 5 | True | +| start_date | str | The starting date (format YYYY-MM-DD) to look for IPOs | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Get dataframe with past IPOs | +--- + diff --git a/website/content/sdk/reference/stocks/disc/rtat.md b/website/content/sdk/reference/stocks/disc/rtat.md new file mode 100644 index 00000000000..7fcd17bac2d --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/rtat.md @@ -0,0 +1,30 @@ +--- +title: rtat +description: OpenBB SDK Function +--- + +# rtat + +Gets the top 10 retail stocks per day + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/nasdaq_model.py#L20)] + +```python +openbb.stocks.disc.rtat() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of tickers | +--- + diff --git a/website/content/sdk/reference/stocks/disc/trending.md b/website/content/sdk/reference/stocks/disc/trending.md new file mode 100644 index 00000000000..ee149d1914f --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/trending.md @@ -0,0 +1,33 @@ +--- +title: trending +description: OpenBB SDK Function +--- + +# trending + +Returns a list of trending articles + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/seeking_alpha_model.py#L100)] + +```python +openbb.stocks.disc.trending(limit: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of articles | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | Trending articles list | +--- + diff --git a/website/content/sdk/reference/stocks/disc/ugs.md b/website/content/sdk/reference/stocks/disc/ugs.md new file mode 100644 index 00000000000..9c67f1af1ac --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/ugs.md @@ -0,0 +1,30 @@ +--- +title: ugs +description: OpenBB SDK Function +--- + +# ugs + +Get stocks with earnings growth rates better than 25% and relatively low PE and PEG ratios. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L54)] + +```python +openbb.stocks.disc.ugs() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Undervalued stocks | +--- + diff --git a/website/content/sdk/reference/stocks/disc/ulc.md b/website/content/sdk/reference/stocks/disc/ulc.md new file mode 100644 index 00000000000..5c826b0f9e1 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/ulc.md @@ -0,0 +1,30 @@ +--- +title: ulc +description: OpenBB SDK Function +--- + +# ulc + +Get Yahoo Finance potentially undervalued large cap stocks. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/yahoofinance_model.py#L116)] + +```python +openbb.stocks.disc.ulc() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most undervalued large cap stocks | +--- + diff --git a/website/content/sdk/reference/stocks/disc/upcoming.md b/website/content/sdk/reference/stocks/disc/upcoming.md new file mode 100644 index 00000000000..d823be78a43 --- /dev/null +++ b/website/content/sdk/reference/stocks/disc/upcoming.md @@ -0,0 +1,33 @@ +--- +title: upcoming +description: OpenBB SDK Function +--- + +# upcoming + +Returns a DataFrame with upcoming earnings + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/discovery/seeking_alpha_model.py#L41)] + +```python +openbb.stocks.disc.upcoming(limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of pages | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | Upcoming earnings DataFrame | +--- + diff --git a/website/content/sdk/reference/stocks/dps/ctb.md b/website/content/sdk/reference/stocks/dps/ctb.md new file mode 100644 index 00000000000..c21308b1e88 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/ctb.md @@ -0,0 +1,30 @@ +--- +title: ctb +description: OpenBB SDK Function +--- + +# ctb + +Get stocks with highest cost to borrow [Source: Interactive Broker] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/ibkr_model.py#L16)] + +```python +openbb.stocks.dps.ctb() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Cost to borrow | +--- + diff --git a/website/content/sdk/reference/stocks/dps/dpotc.md b/website/content/sdk/reference/stocks/dps/dpotc.md new file mode 100644 index 00000000000..202e8243a8b --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/dpotc.md @@ -0,0 +1,75 @@ +--- +title: dpotc +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# dpotc + + + + +Get all FINRA data associated with a ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/finra_model.py#L293)] + +```python +openbb.stocks.dps.dpotc(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker to get data from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame] | Dark Pools (ATS) Data, OTC (Non-ATS) Data | +--- + + + + + + +Display barchart of dark pool (ATS) and OTC (Non ATS) data. [Source: FINRA] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/finra_view.py#L27)] + +```python +openbb.stocks.dps.dpotc_chart(symbol: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dps/ftd.md b/website/content/sdk/reference/stocks/dps/ftd.md new file mode 100644 index 00000000000..2dc8d81bd36 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/ftd.md @@ -0,0 +1,83 @@ +--- +title: ftd +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ftd + + + + +Display fails-to-deliver data for a given ticker. [Source: SEC] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/sec_model.py#L59)] + +```python +openbb.stocks.dps.ftd(symbol: str, start_date: str = None, end_date: str = None, limit: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| start_date | str | Start of data, in YYYY-MM-DD format | None | True | +| end_date | str | End of data, in YYYY-MM-DD format | None | True | +| limit | int | Number of latest fails-to-deliver being printed | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Fail to deliver data | +--- + + + + + + +Display fails-to-deliver data for a given ticker. [Source: SEC] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/sec_view.py#L28)] + +```python +openbb.stocks.dps.ftd_chart(symbol: str, data: pd.DataFrame = None, start_date: str = None, end_date: str = None, limit: int = 0, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| data | pd.DataFrame | Stock data | None | True | +| start_date | str | Start of data, in YYYY-MM-DD format | None | True | +| end_date | str | End of data, in YYYY-MM-DD format | None | True | +| limit | int | Number of latest fails-to-deliver being printed | 0 | True | +| raw | bool | Print raw data | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dps/hsi.md b/website/content/sdk/reference/stocks/dps/hsi.md new file mode 100644 index 00000000000..6d716f25601 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/hsi.md @@ -0,0 +1,30 @@ +--- +title: hsi +description: OpenBB SDK Function +--- + +# hsi + +Returns a high short interest DataFrame + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/shortinterest_model.py#L18)] + +```python +openbb.stocks.dps.hsi() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | High short interest Dataframe with the following columns:
Ticker, Company, Exchange, ShortInt, Float, Outstd, Industry | +--- + diff --git a/website/content/sdk/reference/stocks/dps/pos.md b/website/content/sdk/reference/stocks/dps/pos.md new file mode 100644 index 00000000000..e5fbac7d180 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/pos.md @@ -0,0 +1,34 @@ +--- +title: pos +description: OpenBB SDK Function +--- + +# pos + +Get dark pool short positions. [Source: Stockgrid] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/stockgrid_model.py#L18)] + +```python +openbb.stocks.dps.pos(sortby: str = "dpp_dollar", ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Field for which to sort by, where 'sv': Short Vol. [1M],
'sv_pct': Short Vol. %%, 'nsv': Net Short Vol. [1M],
'nsv_dollar': Net Short Vol. ($100M), 'dpp': DP Position [1M],
'dpp_dollar': DP Position ($1B) | dpp_dollar | True | +| ascend | bool | Data in ascending order | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dark pool short position data | +--- + diff --git a/website/content/sdk/reference/stocks/dps/prom.md b/website/content/sdk/reference/stocks/dps/prom.md new file mode 100644 index 00000000000..bc0f92256f4 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/prom.md @@ -0,0 +1,78 @@ +--- +title: prom +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# prom + + + + +Get all FINRA ATS data, and parse most promising tickers based on linear regression + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/finra_model.py#L214)] + +```python +openbb.stocks.dps.prom(limit: int = 1000, tier_ats: str = "T1") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of tickers to filter from entire ATS data based on the sum of the total weekly shares quantity | 1000 | True | +| tier_ats | int | Tier to process data from: T1, T2 or OTCE | T1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, Dict] | Dark Pools (ATS) Data, Tickers from Dark Pools with better regression slope | +--- + + + + + + +Display dark pool (ATS) data of tickers with growing trades activity. [Source: FINRA] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/finra_view.py#L188)] + +```python +openbb.stocks.dps.prom_chart(input_limit: int = 1000, limit: int = 10, tier: str = "T1", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| input_limit | int | Number of tickers to filter from entire ATS data based on
the sum of the total weekly shares quantity | 1000 | True | +| limit | int | Number of tickers to display from most promising with
better linear regression slope | 10 | True | +| tier | str | Tier to process data from: T1, T2 or OTCE | T1 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + +
+
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dps/psi_q.md b/website/content/sdk/reference/stocks/dps/psi_q.md new file mode 100644 index 00000000000..81dcce09c52 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/psi_q.md @@ -0,0 +1,79 @@ +--- +title: psi_q +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# psi_q + + + + +Plots the short interest of a stock. This corresponds to the + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/quandl_model.py#L18)] + +```python +openbb.stocks.dps.psi_q(symbol: str, nyse: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ticker to get short interest from | None | False | +| nyse | bool | data from NYSE if true, otherwise NASDAQ | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | short interest volume data | +--- + + + + + + +Plot the short interest of a stock. This corresponds to the + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/quandl_view.py#L96)] + +```python +openbb.stocks.dps.psi_q_chart(symbol: str, nyse: bool = False, limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | ticker to get short interest from | None | False | +| nyse | bool | data from NYSE if true, otherwise NASDAQ | False | True | +| limit | int | Number of past days to show short interest | 10 | True | +| raw | bool | Flag to print raw data instead | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dps/psi_sg.md b/website/content/sdk/reference/stocks/dps/psi_sg.md new file mode 100644 index 00000000000..31810c1fe83 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/psi_sg.md @@ -0,0 +1,77 @@ +--- +title: psi_sg +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# psi_sg + + + + +Get price vs short interest volume. [Source: Stockgrid] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/stockgrid_model.py#L121)] + +```python +openbb.stocks.dps.psi_sg(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock to get data from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, List] | Short interest volume data, Price data | +--- + + + + + + +Plot price vs short interest volume. [Source: Stockgrid] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/stockgrid_view.py#L123)] + +```python +openbb.stocks.dps.psi_sg_chart(symbol: str, limit: int = 84, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock to plot for | None | False | +| limit | int | Number of last open market days to show | 84 | True | +| raw | bool | Flag to print raw data instead | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dps/shorted.md b/website/content/sdk/reference/stocks/dps/shorted.md new file mode 100644 index 00000000000..f30ddecd806 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/shorted.md @@ -0,0 +1,30 @@ +--- +title: shorted +description: OpenBB SDK Function +--- + +# shorted + +Get most shorted stock screener [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/yahoofinance_model.py#L16)] + +```python +openbb.stocks.dps.shorted() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most Shorted Stocks | +--- + diff --git a/website/content/sdk/reference/stocks/dps/sidtc.md b/website/content/sdk/reference/stocks/dps/sidtc.md new file mode 100644 index 00000000000..6fc89904e67 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/sidtc.md @@ -0,0 +1,33 @@ +--- +title: sidtc +description: OpenBB SDK Function +--- + +# sidtc + +Get short interest and days to cover. [Source: Stockgrid] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/stockgrid_model.py#L76)] + +```python +openbb.stocks.dps.sidtc(sortby: str = "float") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sortby | str | Field for which to sort by, where 'float': Float Short %%,
'dtc': Days to Cover, 'si': Short Interest | float | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Short interest and days to cover data | +--- + diff --git a/website/content/sdk/reference/stocks/dps/spos.md b/website/content/sdk/reference/stocks/dps/spos.md new file mode 100644 index 00000000000..47f68b01869 --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/spos.md @@ -0,0 +1,77 @@ +--- +title: spos +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# spos + + + + +Get net short position. [Source: Stockgrid] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/stockgrid_model.py#L165)] + +```python +openbb.stocks.dps.spos(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock to get data from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Net short position | +--- + + + + + + +Plot net short position. [Source: Stockgrid] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/stockgrid_view.py#L247)] + +```python +openbb.stocks.dps.spos_chart(symbol: str, limit: int = 84, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock to plot for | None | False | +| limit | int | Number of last open market days to show | 84 | True | +| raw | bool | Flag to print raw data instead | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/dps/volexch.md b/website/content/sdk/reference/stocks/dps/volexch.md new file mode 100644 index 00000000000..7dad2b54c5b --- /dev/null +++ b/website/content/sdk/reference/stocks/dps/volexch.md @@ -0,0 +1,79 @@ +--- +title: volexch +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# volexch + + + + +Gets short data for 5 exchanges [https://ftp.nyse.com] starting at 1/1/2021 + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/nyse_model.py#L15)] + +```python +openbb.stocks.dps.volexch(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get data for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of short data by exchange | +--- + + + + + + +Display short data by exchange + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/dark_pool_shorts/nyse_view.py#L29)] + +```python +openbb.stocks.dps.volexch_chart(symbol: str, raw: bool = False, sortby: str = "", ascend: bool = False, mpl: bool = True, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| raw | bool | Flag to display raw data | False | True | +| sortby | str | Column to sort by | | True | +| ascend | bool | Sort in ascending order | False | True | +| mpl | bool | Display using matplotlib | True | True | +| export | str | Format of export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/fa/analysis.md b/website/content/sdk/reference/stocks/fa/analysis.md new file mode 100644 index 00000000000..79a26d04e3b --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/analysis.md @@ -0,0 +1,33 @@ +--- +title: analysis +description: OpenBB SDK Function +--- + +# analysis + +Save time reading SEC filings with the help of machine learning. [Source: https://eclect.us] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/eclect_us_model.py#L18)] + +```python +openbb.stocks.fa.analysis(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to see analysis of filings | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Analysis of filings text | +--- + diff --git a/website/content/sdk/reference/stocks/fa/balance.md b/website/content/sdk/reference/stocks/fa/balance.md new file mode 100644 index 00000000000..40477a474e4 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/balance.md @@ -0,0 +1,47 @@ +--- +title: balance +description: OpenBB SDK Function +--- + +# balance + +Get balance sheet. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/sdk_helpers.py#L77)] + +```python +openbb.stocks.fa.balance(symbol: str, quarterly: bool = False, ratios: bool = False, source: str = "YahooFinance", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get balance sheet for | None | False | +| source | str | Data source for balance sheet, by default "YahooFinance" | YahooFinance | True | +| quarterly | bool | Flag to get quarterly data | False | True | +| ratios | bool | Flag to return data as a percent change. | False | True | +| limit | int | Number of statements to return (free tiers may be limited to 5 years) | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of balance sheet | +--- + +## Examples + +If you have a premium AlphaVantage key, you can use the quarterly flag to get quarterly statements +```python +from openbb_terminal.sdk import openbb +balance_sheet = openbb.stocks.fa.balance("AAPL", source="YahooFinance) +``` + +--- + diff --git a/website/content/sdk/reference/stocks/fa/cal.md b/website/content/sdk/reference/stocks/fa/cal.md new file mode 100644 index 00000000000..f5b83301cfb --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/cal.md @@ -0,0 +1,33 @@ +--- +title: cal +description: OpenBB SDK Function +--- + +# cal + +Get calendar earnings for ticker symbol + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L179)] + +```python +openbb.stocks.fa.cal(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of calendar earnings | +--- + diff --git a/website/content/sdk/reference/stocks/fa/cash.md b/website/content/sdk/reference/stocks/fa/cash.md new file mode 100644 index 00000000000..b99d080cbb2 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/cash.md @@ -0,0 +1,47 @@ +--- +title: cash +description: OpenBB SDK Function +--- + +# cash + +Get Cash Flow. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/sdk_helpers.py#L140)] + +```python +openbb.stocks.fa.cash(symbol: str, quarterly: bool = False, ratios: bool = False, source: str = "YahooFinance", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get cash flow for | None | False | +| source | str | Data source for cash flow, by default "YahooFinance" | YahooFinance | True | +| quarterly | bool | Flag to get quarterly data | False | True | +| ratios | bool | Flag to return data as a percent change. | False | True | +| limit | int | Number of statements to return (free tiers may be limited to 5 years) | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of cash flow | +--- + +## Examples + +If you have a premium AlphaVantage key, you can use the quarterly flag to get quarterly statements +```python +from openbb_terminal.sdk import openbb +cash_flow = openbb.stocks.fa.cash("AAPL", source="YahooFinance) +``` + +--- + diff --git a/website/content/sdk/reference/stocks/fa/data.md b/website/content/sdk/reference/stocks/fa/data.md new file mode 100644 index 00000000000..1517acf9411 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/data.md @@ -0,0 +1,33 @@ +--- +title: data +description: OpenBB SDK Function +--- + +# data + +Get fundamental data from finviz + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/finviz_model.py#L15)] + +```python +openbb.stocks.fa.data(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of fundamental data | +--- + diff --git a/website/content/sdk/reference/stocks/fa/dcf.md b/website/content/sdk/reference/stocks/fa/dcf.md new file mode 100644 index 00000000000..6a7c2d6d284 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/dcf.md @@ -0,0 +1,35 @@ +--- +title: dcf +description: OpenBB SDK Function +--- + +# dcf + +Get stocks dcf from FMP + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L173)] + +```python +openbb.stocks.fa.dcf(symbol: str, limit: int = 5, quarterly: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number to get | 5 | True | +| quarterly | bool | Flag to get quarterly data, by default False | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of dcf data | +--- + diff --git a/website/content/sdk/reference/stocks/fa/divs.md b/website/content/sdk/reference/stocks/fa/divs.md new file mode 100644 index 00000000000..169182c8b07 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/divs.md @@ -0,0 +1,33 @@ +--- +title: divs +description: OpenBB SDK Function +--- + +# divs + +Get historical dividend for ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L256)] + +```python +openbb.stocks.fa.divs(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get dividend for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of dividends and dates | +--- + diff --git a/website/content/sdk/reference/stocks/fa/dupont.md b/website/content/sdk/reference/stocks/fa/dupont.md new file mode 100644 index 00000000000..ad8d493d9c0 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/dupont.md @@ -0,0 +1,33 @@ +--- +title: dupont +description: OpenBB SDK Function +--- + +# dupont + +Get dupont ratios + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/av_model.py#L715)] + +```python +openbb.stocks.fa.dupont(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The dupont ratio breakdown | +--- + diff --git a/website/content/sdk/reference/stocks/fa/earnings.md b/website/content/sdk/reference/stocks/fa/earnings.md new file mode 100644 index 00000000000..b2383484bab --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/earnings.md @@ -0,0 +1,45 @@ +--- +title: earnings +description: OpenBB SDK Function +--- + +# earnings + +Get earnings data. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/sdk_helpers.py#L203)] + +```python +openbb.stocks.fa.earnings(symbol: str, source: str = "YahooFinance", quarterly: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| source | str | Source to use, by default "AlphaVantage" | YahooFinance | True | +| quarterly | bool | Flag to get quarterly data (AlphaVantage only), by default False. | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of earnings | +--- + +## Examples + +To obtain quarterly earnings, use the quarterly flag with AlphaVantage +```python +from openbb_terminal.sdk import openbb +aapl_earnings = openbb.stocks.fa.earnings("AAPL", source ="YahooFinance) +``` + +--- + diff --git a/website/content/sdk/reference/stocks/fa/enterprise.md b/website/content/sdk/reference/stocks/fa/enterprise.md new file mode 100644 index 00000000000..026eca39d86 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/enterprise.md @@ -0,0 +1,35 @@ +--- +title: enterprise +description: OpenBB SDK Function +--- + +# enterprise + +Financial Modeling Prep ticker enterprise + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L131)] + +```python +openbb.stocks.fa.enterprise(symbol: str, limit: int = 5, quarterly: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Fundamental analysis ticker symbol | None | False | +| limit | int | Number to get | 5 | True | +| quarterly | bool | Flag to get quarterly data | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of enterprise information | +--- + diff --git a/website/content/sdk/reference/stocks/fa/fama_coe.md b/website/content/sdk/reference/stocks/fa/fama_coe.md new file mode 100644 index 00000000000..8e0f88c5b89 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/fama_coe.md @@ -0,0 +1,33 @@ +--- +title: fama_coe +description: OpenBB SDK Function +--- + +# fama_coe + +Use Fama and French to get the cost of equity for a company + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/dcf_model.py#L300)] + +```python +openbb.stocks.fa.fama_coe(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | The ticker symbol to be analyzed | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| float | The stock's Fama French coefficient | +--- + diff --git a/website/content/sdk/reference/stocks/fa/fama_raw.md b/website/content/sdk/reference/stocks/fa/fama_raw.md new file mode 100644 index 00000000000..c6721be0977 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/fama_raw.md @@ -0,0 +1,30 @@ +--- +title: fama_raw +description: OpenBB SDK Function +--- + +# fama_raw + +Get Fama French data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/dcf_model.py#L240)] + +```python +openbb.stocks.fa.fama_raw() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Fama French data | +--- + diff --git a/website/content/sdk/reference/stocks/fa/fraud.md b/website/content/sdk/reference/stocks/fa/fraud.md new file mode 100644 index 00000000000..ffe17fd79ca --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/fraud.md @@ -0,0 +1,34 @@ +--- +title: fraud +description: OpenBB SDK Function +--- + +# fraud + +Get fraud ratios based on fundamentals + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/av_model.py#L594)] + +```python +openbb.stocks.fa.fraud(symbol: str, detail: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| detail | bool | Whether to provide extra m-score details | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | The fraud ratios | +--- + diff --git a/website/content/sdk/reference/stocks/fa/growth.md b/website/content/sdk/reference/stocks/fa/growth.md new file mode 100644 index 00000000000..a5fb7b6953d --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/growth.md @@ -0,0 +1,35 @@ +--- +title: growth +description: OpenBB SDK Function +--- + +# growth + +Get financial statement growth + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L505)] + +```python +openbb.stocks.fa.growth(symbol: str, limit: int = 5, quarterly: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number to get | 5 | True | +| quarterly | bool | Flag to get quarterly data, by default False | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of financial statement growth | +--- + diff --git a/website/content/sdk/reference/stocks/fa/historical_5.md b/website/content/sdk/reference/stocks/fa/historical_5.md new file mode 100644 index 00000000000..5f92267ad95 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/historical_5.md @@ -0,0 +1,33 @@ +--- +title: historical_5 +description: OpenBB SDK Function +--- + +# historical_5 + +Get 5 year monthly historical performance for a ticker with dividends filtered + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/dcf_model.py#L278)] + +```python +openbb.stocks.fa.historical_5(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | The ticker symbol to be analyzed | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Historical data | +--- + diff --git a/website/content/sdk/reference/stocks/fa/hq.md b/website/content/sdk/reference/stocks/fa/hq.md new file mode 100644 index 00000000000..153025dc0e0 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/hq.md @@ -0,0 +1,33 @@ +--- +title: hq +description: OpenBB SDK Function +--- + +# hq + +Gets google map url for headquarter + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L228)] + +```python +openbb.stocks.fa.hq(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Headquarter google maps url | +--- + diff --git a/website/content/sdk/reference/stocks/fa/income.md b/website/content/sdk/reference/stocks/fa/income.md new file mode 100644 index 00000000000..0d3f9e9be9f --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/income.md @@ -0,0 +1,47 @@ +--- +title: income +description: OpenBB SDK Function +--- + +# income + +Get income statement. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/sdk_helpers.py#L14)] + +```python +openbb.stocks.fa.income(symbol: str, quarterly: bool = False, ratios: bool = False, source: str = "YahooFinance", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get income statement for | None | False | +| source | str | Data source for income statement, by default "YahooFinance" | YahooFinance | True | +| quarterly | bool | Flag to get quarterly data | False | True | +| ratios | bool | Flag to return data as a percent change. | False | True | +| limit | int | Number of statements to return (free tiers may be limited to 5 years) | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of income statement | +--- + +## Examples + +If you have a premium AlphaVantage key, you can use the quarterly flag to get quarterly statements +```python +from openbb_terminal.sdk import openbb +income_statement = openbb.stocks.fa.income("AAPL", source="YahooFinance) +``` + +--- + diff --git a/website/content/sdk/reference/stocks/fa/info.md b/website/content/sdk/reference/stocks/fa/info.md new file mode 100644 index 00000000000..52e80abb8d1 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/info.md @@ -0,0 +1,33 @@ +--- +title: info +description: OpenBB SDK Function +--- + +# info + +Gets ticker symbol info + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L31)] + +```python +openbb.stocks.fa.info(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of yfinance information | +--- + diff --git a/website/content/sdk/reference/stocks/fa/key.md b/website/content/sdk/reference/stocks/fa/key.md new file mode 100644 index 00000000000..20dbaaff706 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/key.md @@ -0,0 +1,33 @@ +--- +title: key +description: OpenBB SDK Function +--- + +# key + +Get key metrics from overview + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/av_model.py#L101)] + +```python +openbb.stocks.fa.key(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of key metrics | +--- + diff --git a/website/content/sdk/reference/stocks/fa/metrics.md b/website/content/sdk/reference/stocks/fa/metrics.md new file mode 100644 index 00000000000..d2cdfa23d71 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/metrics.md @@ -0,0 +1,35 @@ +--- +title: metrics +description: OpenBB SDK Function +--- + +# metrics + +Get key metrics + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L421)] + +```python +openbb.stocks.fa.metrics(symbol: str, limit: int = 5, quarterly: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number to get | 5 | True | +| quarterly | bool | Flag to get quarterly data, by default False | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of key metrics | +--- + diff --git a/website/content/sdk/reference/stocks/fa/mgmt.md b/website/content/sdk/reference/stocks/fa/mgmt.md new file mode 100644 index 00000000000..1e779fedafd --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/mgmt.md @@ -0,0 +1,33 @@ +--- +title: mgmt +description: OpenBB SDK Function +--- + +# mgmt + +Get company managers from Business Insider + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/business_insider_model.py#L19)] + +```python +openbb.stocks.fa.mgmt(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of managers | +--- + diff --git a/website/content/sdk/reference/stocks/fa/mktcap.md b/website/content/sdk/reference/stocks/fa/mktcap.md new file mode 100644 index 00000000000..e45f1f5ec5c --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/mktcap.md @@ -0,0 +1,77 @@ +--- +title: mktcap +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# mktcap + + + + +Get market cap over time for ticker. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L273)] + +```python +openbb.stocks.fa.mktcap(symbol: str, start_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get market cap over time | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 3 years back | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of estimated market cap over time | +--- + + + + + + +Display market cap over time. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_view.py#L335)] + +```python +openbb.stocks.fa.mktcap_chart(symbol: str, start_date: str = None, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 3 years back | None | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/fa/overview.md b/website/content/sdk/reference/stocks/fa/overview.md new file mode 100644 index 00000000000..c0f9e7e9419 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/overview.md @@ -0,0 +1,33 @@ +--- +title: overview +description: OpenBB SDK Function +--- + +# overview + +Get alpha vantage company overview + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/av_model.py#L36)] + +```python +openbb.stocks.fa.overview(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of fundamentals | +--- + diff --git a/website/content/sdk/reference/stocks/fa/profile.md b/website/content/sdk/reference/stocks/fa/profile.md new file mode 100644 index 00000000000..dbc7da34ccf --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/profile.md @@ -0,0 +1,33 @@ +--- +title: profile +description: OpenBB SDK Function +--- + +# profile + +Get ticker profile from FMP + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L56)] + +```python +openbb.stocks.fa.profile(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of ticker profile | +--- + diff --git a/website/content/sdk/reference/stocks/fa/quote.md b/website/content/sdk/reference/stocks/fa/quote.md new file mode 100644 index 00000000000..b277f4d169e --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/quote.md @@ -0,0 +1,33 @@ +--- +title: quote +description: OpenBB SDK Function +--- + +# quote + +Gets ticker quote from FMP + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L84)] + +```python +openbb.stocks.fa.quote(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of ticker quote | +--- + diff --git a/website/content/sdk/reference/stocks/fa/ratios.md b/website/content/sdk/reference/stocks/fa/ratios.md new file mode 100644 index 00000000000..7588fff23fd --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/ratios.md @@ -0,0 +1,35 @@ +--- +title: ratios +description: OpenBB SDK Function +--- + +# ratios + +Get key ratios + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L463)] + +```python +openbb.stocks.fa.ratios(symbol: str, limit: int = 5, quarterly: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number to get | 5 | True | +| quarterly | bool | Flag to get quarterly data, by default False | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of key ratios | +--- + diff --git a/website/content/sdk/reference/stocks/fa/score.md b/website/content/sdk/reference/stocks/fa/score.md new file mode 100644 index 00000000000..45c4eea6c57 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/score.md @@ -0,0 +1,33 @@ +--- +title: score +description: OpenBB SDK Function +--- + +# score + +Gets value score from fmp + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/fmp_model.py#L25)] + +```python +openbb.stocks.fa.score(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| np.number | Value score | +--- + diff --git a/website/content/sdk/reference/stocks/fa/shrs.md b/website/content/sdk/reference/stocks/fa/shrs.md new file mode 100644 index 00000000000..57d2ecdc6eb --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/shrs.md @@ -0,0 +1,34 @@ +--- +title: shrs +description: OpenBB SDK Function +--- + +# shrs + +Get shareholders from yahoo + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L75)] + +```python +openbb.stocks.fa.shrs(symbol: str, holder: str = "institutional") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| holder | str | Which holder to get table for | institutional | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Major holders | +--- + diff --git a/website/content/sdk/reference/stocks/fa/similar_dfs.md b/website/content/sdk/reference/stocks/fa/similar_dfs.md new file mode 100644 index 00000000000..d74fe2bddea --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/similar_dfs.md @@ -0,0 +1,36 @@ +--- +title: similar_dfs +description: OpenBB SDK Function +--- + +# similar_dfs + +Get dataframes for similar companies + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/dcf_model.py#L468)] + +```python +openbb.stocks.fa.similar_dfs(symbol: str, info: Dict[str, Any], n: int, no_filter: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | The ticker symbol to create a dataframe for | None | False | +| into | Dict[str,Any] | The dictionary produced from the yfinance.info function | None | True | +| n | int | The number of similar companies to produce | None | False | +| no_filter | bool | True means that we do not filter based on market cap | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str, pd.DataFrame] | A list of similar companies | +--- + diff --git a/website/content/sdk/reference/stocks/fa/splits.md b/website/content/sdk/reference/stocks/fa/splits.md new file mode 100644 index 00000000000..9f9d0e7abba --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/splits.md @@ -0,0 +1,75 @@ +--- +title: splits +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# splits + + + + +Get splits and reverse splits events. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L312)] + +```python +openbb.stocks.fa.splits(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get forward and reverse splits | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of forward and reverse splits | +--- + + + + + + +Display splits and reverse splits events. [Source: Yahoo Finance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_view.py#L258)] + +```python +openbb.stocks.fa.splits_chart(symbol: str, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/fa/sust.md b/website/content/sdk/reference/stocks/fa/sust.md new file mode 100644 index 00000000000..d64e0126c5d --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/sust.md @@ -0,0 +1,33 @@ +--- +title: sust +description: OpenBB SDK Function +--- + +# sust + +Get sustainability metrics from yahoo + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L138)] + +```python +openbb.stocks.fa.sust(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of sustainability metrics | +--- + diff --git a/website/content/sdk/reference/stocks/fa/website.md b/website/content/sdk/reference/stocks/fa/website.md new file mode 100644 index 00000000000..d49e336c238 --- /dev/null +++ b/website/content/sdk/reference/stocks/fa/website.md @@ -0,0 +1,33 @@ +--- +title: website +description: OpenBB SDK Function +--- + +# website + +Gets website of company from yfinance + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/fundamental_analysis/yahoo_finance_model.py#L210)] + +```python +openbb.stocks.fa.website(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | Company website | +--- + diff --git a/website/content/sdk/reference/stocks/gov/contracts.md b/website/content/sdk/reference/stocks/gov/contracts.md new file mode 100644 index 00000000000..a4f8079c16a --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/contracts.md @@ -0,0 +1,78 @@ +--- +title: contracts +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# contracts + + + + +Get government contracts for ticker [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L103)] + +```python +openbb.stocks.gov.contracts(symbol: str, past_transaction_days: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get congress trading data from | None | False | +| past_transaction_days | int | Number of days to get transactions for | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most recent transactions by members of U.S. Congress | +--- + + + + + + +Show government contracts for ticker [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L380)] + +```python +openbb.stocks.gov.contracts_chart(symbol: str, past_transaction_days: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get congress trading data from | None | False | +| past_transaction_days | int | Number of days to get transactions for | 10 | True | +| raw | bool | Flag to display raw data | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/government_trading.md b/website/content/sdk/reference/stocks/gov/government_trading.md new file mode 100644 index 00000000000..66261f1a2dc --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/government_trading.md @@ -0,0 +1,34 @@ +--- +title: government_trading +description: OpenBB SDK Function +--- + +# government_trading + +Returns the most recent transactions by members of government + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L25)] + +```python +openbb.stocks.gov.government_trading(gov_type: str = "congress", symbol: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| gov_type | str | Type of government data between:
'congress', 'senate', 'house', 'contracts', 'quarter-contracts' and 'corporate-lobbying' | congress | True | +| symbol | str | Ticker symbol to get congress trading data from | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Most recent transactions by members of U.S. Congress | +--- + diff --git a/website/content/sdk/reference/stocks/gov/gtrades.md b/website/content/sdk/reference/stocks/gov/gtrades.md new file mode 100644 index 00000000000..aa81c04cd3d --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/gtrades.md @@ -0,0 +1,80 @@ +--- +title: gtrades +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# gtrades + + + + +Government trading for specific ticker [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L416)] + +```python +openbb.stocks.gov.gtrades(symbol: str, gov_type: str = "congress", past_transactions_months: int = 6) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get congress trading data from | None | False | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| past_transactions_months | int | Number of months to get transactions for | 6 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of tickers government trading | +--- + + + + + + +Government trading for specific ticker [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L331)] + +```python +openbb.stocks.gov.gtrades_chart(symbol: str, gov_type: str = "congress", past_transactions_months: int = 6, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get congress trading data from | None | False | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| past_transactions_months | int | Number of months to get transactions for | 6 | True | +| raw | bool | Show raw output of trades | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/histcont.md b/website/content/sdk/reference/stocks/gov/histcont.md new file mode 100644 index 00000000000..8f428bdaf2b --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/histcont.md @@ -0,0 +1,76 @@ +--- +title: histcont +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# histcont + + + + +Get historical quarterly government contracts [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L139)] + +```python +openbb.stocks.gov.histcont(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get congress trading data from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Historical quarterly government contracts | +--- + + + + + + +Show historical quarterly government contracts [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L547)] + +```python +openbb.stocks.gov.histcont_chart(symbol: str, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get congress trading data from | None | False | +| raw | bool | Flag to display raw data | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/lastcontracts.md b/website/content/sdk/reference/stocks/gov/lastcontracts.md new file mode 100644 index 00000000000..91a9af77a75 --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/lastcontracts.md @@ -0,0 +1,77 @@ +--- +title: lastcontracts +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# lastcontracts + + + + +Get last government contracts [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L377)] + +```python +openbb.stocks.gov.lastcontracts(past_transaction_days: int = 2) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| past_transaction_days | int | Number of days to look back | 2 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of government contracts | +--- + + + + + + +Last government contracts [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L225)] + +```python +openbb.stocks.gov.lastcontracts_chart(past_transaction_days: int = 2, limit: int = 20, sum_contracts: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| past_transaction_days | int | Number of days to look back | 2 | True | +| limit | int | Number of contracts to show | 20 | True | +| sum_contracts | bool | Flag to show total amount of contracts given out. | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/lasttrades.md b/website/content/sdk/reference/stocks/gov/lasttrades.md new file mode 100644 index 00000000000..cec42259d44 --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/lasttrades.md @@ -0,0 +1,35 @@ +--- +title: lasttrades +description: OpenBB SDK Function +--- + +# lasttrades + +Get last government trading [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L164)] + +```python +openbb.stocks.gov.lasttrades(gov_type: str = "congress", limit: int = -1, representative: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| limit | int | Number of days to look back | -1 | True | +| representative | str | Specific representative to look at | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Last government trading | +--- + diff --git a/website/content/sdk/reference/stocks/gov/lobbying.md b/website/content/sdk/reference/stocks/gov/lobbying.md new file mode 100644 index 00000000000..c603a2fdecb --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/lobbying.md @@ -0,0 +1,34 @@ +--- +title: lobbying +description: OpenBB SDK Function +--- + +# lobbying + +Corporate lobbying details + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L531)] + +```python +openbb.stocks.gov.lobbying(symbol: str, limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get corporate lobbying data from | None | False | +| limit | int | Number of events to show | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with corporate lobbying data | +--- + diff --git a/website/content/sdk/reference/stocks/gov/qtrcontracts.md b/website/content/sdk/reference/stocks/gov/qtrcontracts.md new file mode 100644 index 00000000000..b6e2dc915a9 --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/qtrcontracts.md @@ -0,0 +1,78 @@ +--- +title: qtrcontracts +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# qtrcontracts + + + + +Analyzes quarterly contracts by ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L482)] + +```python +openbb.stocks.gov.qtrcontracts(analysis: str = "total", limit: int = 5) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| analysis | str | How to analyze. Either gives total amount or sorts by high/low momentum. | total | True | +| limit | int | Number to return, by default 5 | 5 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with tickers and total amount if total selected. | +--- + + + + + + +Quarterly contracts [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L446)] + +```python +openbb.stocks.gov.qtrcontracts_chart(analysis: str = "total", limit: int = 5, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| analysis | str | Analysis to perform. Either 'total', 'upmom' 'downmom' | total | True | +| limit | int | Number to show | 5 | True | +| raw | bool | Flag to display raw data | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/topbuys.md b/website/content/sdk/reference/stocks/gov/topbuys.md new file mode 100644 index 00000000000..e94dfe6e527 --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/topbuys.md @@ -0,0 +1,79 @@ +--- +title: topbuys +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# topbuys + + + + +Get top buy government trading [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L227)] + +```python +openbb.stocks.gov.topbuys(gov_type: str = "congress", past_transactions_months: int = 6) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| past_transactions_months | int | Number of months to get trading for | 6 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of top government buy trading | +--- + + + + + + +Top buy government trading [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L79)] + +```python +openbb.stocks.gov.topbuys_chart(gov_type: str = "congress", past_transactions_months: int = 6, limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| past_transactions_months | int | Number of months to get trading for | 6 | True | +| limit | int | Number of tickers to show | 10 | True | +| raw | bool | Display raw data | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/toplobbying.md b/website/content/sdk/reference/stocks/gov/toplobbying.md new file mode 100644 index 00000000000..9502ad1a78e --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/toplobbying.md @@ -0,0 +1,73 @@ +--- +title: toplobbying +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# toplobbying + + + + +Corporate lobbying details + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L358)] + +```python +openbb.stocks.gov.toplobbying() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of top corporate lobbying | +--- + + + + + + +Top lobbying tickers based on total spent + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L622)] + +```python +openbb.stocks.gov.toplobbying_chart(limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of tickers to show | 10 | True | +| raw | bool | Show raw data | False | True | +| export | | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/gov/topsells.md b/website/content/sdk/reference/stocks/gov/topsells.md new file mode 100644 index 00000000000..f51ccae6fbc --- /dev/null +++ b/website/content/sdk/reference/stocks/gov/topsells.md @@ -0,0 +1,79 @@ +--- +title: topsells +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# topsells + + + + +Get top sell government trading [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_model.py#L287)] + +```python +openbb.stocks.gov.topsells(gov_type: str = "congress", past_transactions_months: int = 6) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| past_transactions_months | int | Number of months to get trading for | 6 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of top government sell trading | +--- + + + + + + +Top sell government trading [Source: quiverquant.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/government/quiverquant_view.py#L151)] + +```python +openbb.stocks.gov.topsells_chart(gov_type: str = "congress", past_transactions_months: int = 6, limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| gov_type | str | Type of government data between: congress, senate and house | congress | True | +| past_transactions_months | int | Number of months to get trading for | 6 | True | +| limit | int | Number of tickers to show | 10 | True | +| raw | bool | Display raw data | False | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ins/act.md b/website/content/sdk/reference/stocks/ins/act.md new file mode 100644 index 00000000000..8463348cf38 --- /dev/null +++ b/website/content/sdk/reference/stocks/ins/act.md @@ -0,0 +1,80 @@ +--- +title: act +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# act + + + + +Get insider activity. [Source: Business Insider] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/insider/businessinsider_model.py#L17)] + +```python +openbb.stocks.ins.act(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get insider activity data from | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Insider activity data | +--- + + + + + + +Display insider activity. [Source: Business Insider] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/insider/businessinsider_view.py#L32)] + +```python +openbb.stocks.ins.act_chart(data: pd.DataFrame, symbol: str, start_date: str = None, interval: str = "1440min", limit: int = 10, raw: bool = False, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Stock dataframe | None | False | +| symbol | str | Due diligence ticker symbol | None | False | +| start_date | str | Initial date (e.g., 2021-10-01). Defaults to 3 years back | None | True | +| interval | str | Stock data interval | 1440min | True | +| limit | int | Number of latest days of inside activity | 10 | True | +| raw | bool | Print to console | False | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ins/lins.md b/website/content/sdk/reference/stocks/ins/lins.md new file mode 100644 index 00000000000..3e2461ac37b --- /dev/null +++ b/website/content/sdk/reference/stocks/ins/lins.md @@ -0,0 +1,75 @@ +--- +title: lins +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# lins + + + + +Get last insider activity for a given stock ticker. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/insider/finviz_model.py#L16)] + +```python +openbb.stocks.ins.lins(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Latest insider trading activity | +--- + + + + + + +Display insider activity for a given stock ticker. [Source: Finviz] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/insider/finviz_view.py#L15)] + +```python +openbb.stocks.ins.lins_chart(symbol: str, limit: int = 10, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| limit | int | Number of latest insider activity to display | 10 | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ins/print_insider_data.md b/website/content/sdk/reference/stocks/ins/print_insider_data.md new file mode 100644 index 00000000000..7be4470d5c9 --- /dev/null +++ b/website/content/sdk/reference/stocks/ins/print_insider_data.md @@ -0,0 +1,76 @@ +--- +title: print_insider_data +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# print_insider_data + + + + +Print insider data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/insider/openinsider_model.py#L1437)] + +```python +openbb.stocks.ins.print_insider_data(type_insider: str = "lcb", limit: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| type_insider | str | Insider type of data. Available types can be accessed through get_insider_types(). | lcb | True | +| limit | int | Limit of data rows to display | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Open insider filtered data | +--- + + + + + + +Print insider data + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/insider/openinsider_view.py#L108)] + +```python +openbb.stocks.ins.print_insider_data_chart(type_insider: str = "lcb", limit: int = 10, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| type_insider | str | Insider type of data. Available types can be accessed through get_insider_types(). | lcb | True | +| limit | int | Limit of data rows to display | 10 | True | +| export | str | Export data format | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/load.md b/website/content/sdk/reference/stocks/load.md new file mode 100644 index 00000000000..6d556c7c2d0 --- /dev/null +++ b/website/content/sdk/reference/stocks/load.md @@ -0,0 +1,42 @@ +--- +title: load +description: OpenBB SDK Function +--- + +# load + +Load a symbol to perform analysis using the string above as a template. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L223)] + +```python +openbb.stocks.load(symbol: str, start_date: Union[datetime.datetime, str, NoneType] = None, interval: int = 1440, end_date: Union[datetime.datetime, str, NoneType] = None, prepost: bool = False, source: str = "YahooFinance", iexrange: str = "ytd", weekly: bool = False, monthly: bool = False, verbose: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get data | None | False | +| start_date | str or datetime | Start date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| interval | int | Interval (in minutes) to get data 1, 5, 15, 30, 60 or 1440 | 1440 | True | +| end_date | str or datetime | End date to get data from with. - datetime or string format (YYYY-MM-DD) | None | True | +| prepost | bool | Pre and After hours data | False | True | +| source | str | Source of data extracted | YahooFinance | True | +| iexrange | str | Timeframe to get IEX data. | ytd | True | +| weekly | bool | Flag to get weekly data | False | True | +| monthly | bool | Flag to get monthly data | False | True | +| verbose | bool | Display verbose information on what was the symbol that was loaded | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of data | +--- + diff --git a/website/content/sdk/reference/stocks/options/chains.md b/website/content/sdk/reference/stocks/options/chains.md new file mode 100644 index 00000000000..6e82a1c965b --- /dev/null +++ b/website/content/sdk/reference/stocks/options/chains.md @@ -0,0 +1,46 @@ +--- +title: chains +description: OpenBB SDK Function +--- + +# chains + +Get Option Chain For A Stock. No greek data is returned + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/options_sdk_helper.py#L20)] + +```python +openbb.stocks.options.chains(symbol: str, source: str = "Nasdaq", expiration: str | None = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get chain for | None | False | +| source | str | Source to get data from, by default "Nasdaq" | Nasdaq | True | +| expiration | str | Date to get chain for. By default returns all dates | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of full option chain. | +--- + +## Examples + +To get a specific expiration date, use the expiration parameter + +```python +from openbb_terminal.sdk import openbb +aapl_option_chain = openbb.stocks.options.chains("AAPL", source = "Nasdaq") +``` + +--- + diff --git a/website/content/sdk/reference/stocks/options/dte.md b/website/content/sdk/reference/stocks/options/dte.md new file mode 100644 index 00000000000..2051587f604 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/dte.md @@ -0,0 +1,29 @@ +--- +title: dte +description: OpenBB SDK Function +--- + +# dte + +Gets days to expiration from yfinance option date + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/yfinance_model.py#L361)] + +```python +openbb.stocks.options.dte(date_value: str) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/stocks/options/expirations.md b/website/content/sdk/reference/stocks/options/expirations.md new file mode 100644 index 00000000000..6cc6c07d78c --- /dev/null +++ b/website/content/sdk/reference/stocks/options/expirations.md @@ -0,0 +1,34 @@ +--- +title: expirations +description: OpenBB SDK Function +--- + +# expirations + +Get Option Chain Expirations + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/options_sdk_helper.py#L69)] + +```python +openbb.stocks.options.expirations(symbol: str, source: str = "Nasdaq") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get chain for | None | False | +| source | str | Source to get data from, by default "Nasdaq" | Nasdaq | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of full option chain. | +--- + diff --git a/website/content/sdk/reference/stocks/options/generate_data.md b/website/content/sdk/reference/stocks/options/generate_data.md new file mode 100644 index 00000000000..69736f75c7f --- /dev/null +++ b/website/content/sdk/reference/stocks/options/generate_data.md @@ -0,0 +1,29 @@ +--- +title: generate_data +description: OpenBB SDK Function +--- + +# generate_data + +Gets x values, and y values before and after premiums + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/yfinance_model.py#L287)] + +```python +openbb.stocks.options.generate_data(current_price: float, options: List[Dict[str, int]], underlying: int) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/stocks/options/grhist.md b/website/content/sdk/reference/stocks/options/grhist.md new file mode 100644 index 00000000000..78c1d06954d --- /dev/null +++ b/website/content/sdk/reference/stocks/options/grhist.md @@ -0,0 +1,86 @@ +--- +title: grhist +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# grhist + + + + +Get histoical option greeks + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/screen/syncretism_model.py#L37)] + +```python +openbb.stocks.options.grhist(symbol: str, expiry: str, strike: Union[str, float], chain_id: str = "", put: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| expiry | str | Option expiration date | None | False | +| strike | Union[str, float] | Strike price to look for | None | False | +| chain_id | str | OCC option symbol. Overwrites other inputs | | True | +| put | bool | Is this a put option? | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing historical greeks | +--- + + + + + + +Plots historical greeks for a given option. [Source: Syncretism] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/screen/syncretism_view.py#L107)] + +```python +openbb.stocks.options.grhist_chart(symbol: str, expiry: str, strike: Union[float, str], greek: str = "Delta", chain_id: str = "", put: bool = False, raw: bool = False, limit: Union[int, str] = 20, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker | None | False | +| expiry | str | Expiration date | None | False | +| strike | Union[str, float] | Strike price to consider | None | False | +| greek | str | Greek variable to plot | Delta | True | +| chain_id | str | OCC option chain. Overwrites other variables | | True | +| put | bool | Is this a put option? | False | True | +| raw | bool | Print to console | False | True | +| limit | int | Number of rows to show in raw | 20 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/options/hist.md b/website/content/sdk/reference/stocks/options/hist.md new file mode 100644 index 00000000000..6397e86135c --- /dev/null +++ b/website/content/sdk/reference/stocks/options/hist.md @@ -0,0 +1,48 @@ +--- +title: hist +description: OpenBB SDK Function +--- + +# hist + +Get historical option pricing. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/options_sdk_helper.py#L101)] + +```python +openbb.stocks.options.hist(symbol: str, exp: str, strike: int | float | str, call: bool = True, source: Any = "ChartExchange") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Symbol to get data for | None | False | +| exp | str | Expiration date | None | False | +| strike | int | float | str | Strike price | None | False | +| call | bool | Flag to indicate a call, by default True | True | True | +| source | str | Source to get data from. Can be ChartExchange or Tradier, by default "ChartExchange" | ChartExchange | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame of historical option pricing | +--- + +## Examples + +Because this generates a dataframe, we can easily plot the close price for a SPY put: +(Note that Tradier requires an API key) +```python +from openbb_terminal.sdk import openbb +aapl_150_call = openbb.stocks.options.hist("AAPL", "2022-11-18", 150, call=True, source="ChartExchange") +``` + +--- + diff --git a/website/content/sdk/reference/stocks/options/hist_ce.md b/website/content/sdk/reference/stocks/options/hist_ce.md new file mode 100644 index 00000000000..187966b5fc3 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/hist_ce.md @@ -0,0 +1,82 @@ +--- +title: hist_ce +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# hist_ce + + + + +Historic prices for a specific option [chartexchange] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/chartexchange_model.py#L20)] + +```python +openbb.stocks.options.hist_ce(symbol: str = "GME", date: str = "2021-02-05", call: bool = True, price: str | int | float = "90") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get historical data from | GME | True | +| date | str|int|float | Date as a string YYYYMMDD | 2021-02-05 | True | +| call | bool | Whether to show a call or a put | True | True | +| price | str | Strike price for a specific option | 90 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.Dataframe | Historic information for an option | +--- + + + + + + +Return raw stock data[chartexchange] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/chartexchange_view.py#L59)] + +```python +openbb.stocks.options.hist_ce_chart(symbol: str = "GME", expiry: str = "2021-02-05", call: bool = True, price: float = 90, limit: int = 10, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol for the given option | GME | True | +| expiry | str | The expiry of expiration, format "YYYY-MM-DD", i.e. 2010-12-31. | 2021-02-05 | True | +| call | bool | Whether the underlying asset should be a call or a put | True | True | +| price | float | The strike of the expiration | 90 | True | +| limit | int | Number of rows to show | 10 | True | +| export | str | Export data as CSV, JSON, XLSX | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/options/info.md b/website/content/sdk/reference/stocks/options/info.md new file mode 100644 index 00000000000..c4f1c6f0792 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/info.md @@ -0,0 +1,74 @@ +--- +title: info +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# info + + + + +Get info for a given ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/yfinance_model.py#L325)] + +```python +openbb.stocks.options.info(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | The ticker symbol to get the price for | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| float | The info for a given ticker | +--- + + + + + + +Scrapes Barchart.com for the options information + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/barchart_view.py#L15)] + +```python +openbb.stocks.options.info_chart(symbol: str, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get options info for | None | False | +| export | str | Format of export file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/options/last_price.md b/website/content/sdk/reference/stocks/options/last_price.md new file mode 100644 index 00000000000..07ecf4a2039 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/last_price.md @@ -0,0 +1,33 @@ +--- +title: last_price +description: OpenBB SDK Function +--- + +# last_price + +Makes api request for last price + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/tradier_model.py#L275)] + +```python +openbb.stocks.options.last_price(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| | Last price | +--- + diff --git a/website/content/sdk/reference/stocks/options/pcr.md b/website/content/sdk/reference/stocks/options/pcr.md new file mode 100644 index 00000000000..1e2aa877ffb --- /dev/null +++ b/website/content/sdk/reference/stocks/options/pcr.md @@ -0,0 +1,79 @@ +--- +title: pcr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# pcr + + + + +Gets put call ratio over last time window [Source: AlphaQuery.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/alphaquery_model.py#L16)] + +```python +openbb.stocks.options.pcr(symbol: str, window: int = 30, start_date: str = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to look for | None | False | +| window | int | Window to consider, by default 30 | 30 | True | +| start_date | str | Start date to plot (e.g., 2021-10-01), by default last 366 days | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Put call ratio | +--- + + + + + + +Display put call ratio [Source: AlphaQuery.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/alphaquery_view.py#L26)] + +```python +openbb.stocks.options.pcr_chart(symbol: str, window: int = 30, start_date: str = "2021-11-21", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| window | int | Window length to look at, by default 30 | 30 | True | +| start_date | str | Starting date for data, by default (datetime.now() - timedelta(days=366)).strftime("%Y-%m-%d") | 2021-11-21 | True | +| export | str | Format to export data, by default "" | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/options/process_chains.md b/website/content/sdk/reference/stocks/options/process_chains.md new file mode 100644 index 00000000000..b906dc958d0 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/process_chains.md @@ -0,0 +1,33 @@ +--- +title: process_chains +description: OpenBB SDK Function +--- + +# process_chains + +Function to take in the requests.get and return a DataFrame + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/tradier_model.py#L238)] + +```python +openbb.stocks.options.process_chains(response: requests.models.Response) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| response | requests.models.Response | This is the response from tradier api. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with all available options | +--- + diff --git a/website/content/sdk/reference/stocks/options/screen/check_presets.md b/website/content/sdk/reference/stocks/options/screen/check_presets.md new file mode 100644 index 00000000000..2d3c08a4638 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/screen/check_presets.md @@ -0,0 +1,33 @@ +--- +title: check_presets +description: OpenBB SDK Function +--- + +# check_presets + +Checks option screener preset values + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/screen/syncretism_model.py#L251)] + +```python +openbb.stocks.options.screen.check_presets(preset_dict: dict) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset_dict | dict | Defined presets from configparser | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | String of all errors accumulated | +--- + diff --git a/website/content/sdk/reference/stocks/options/screen/screener_output.md b/website/content/sdk/reference/stocks/options/screen/screener_output.md new file mode 100644 index 00000000000..e41a4cc6907 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/screen/screener_output.md @@ -0,0 +1,76 @@ +--- +title: screener_output +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# screener_output + + + + +Screen options based on preset filters + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/screen/syncretism_model.py#L159)] + +```python +openbb.stocks.options.screen.screener_output(preset: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset | str | Chosen preset | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, str] | DataFrame with screener data or empty if errors, String containing error message if supplied | +--- + + + + + + +Print the output of screener + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/screen/syncretism_view.py#L60)] + +```python +openbb.stocks.options.screen.screener_output_chart(preset: str, limit: int = 20, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset | str | Chosen preset | None | False | +| limit | int | Number of randomly sorted rows to display | 20 | True | +| export | str | Format for export file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List | List of tickers screened | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/options/unu.md b/website/content/sdk/reference/stocks/options/unu.md new file mode 100644 index 00000000000..2a6c5de10d2 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/unu.md @@ -0,0 +1,78 @@ +--- +title: unu +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# unu + + + + +Get unusual option activity from fdscanner.com + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/fdscanner_model.py#L19)] + +```python +openbb.stocks.options.unu(limit: int = 100) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number to show | 100 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.Timestamp] | Dataframe containing options information, Timestamp indicated when data was updated from website | +--- + + + + + + +Displays the unusual options table + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/fdscanner_view.py#L15)] + +```python +openbb.stocks.options.unu_chart(limit: int = 20, sortby: str = "Vol/OI", ascend: bool = False, calls_only: bool = False, puts_only: bool = False, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| limit | int | Number of rows to show | 20 | True | +| sortby | str | Data column to sort on | Vol/OI | True | +| ascend | bool | Whether to sort in ascend order | False | True | +| calls_only | bool | Flag to only show calls | False | True | +| puts_only | bool | Flag to show puts only | False | True | +| export | str | File type to export | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/options/vsurf.md b/website/content/sdk/reference/stocks/options/vsurf.md new file mode 100644 index 00000000000..3fc555f36e3 --- /dev/null +++ b/website/content/sdk/reference/stocks/options/vsurf.md @@ -0,0 +1,76 @@ +--- +title: vsurf +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# vsurf + + + + +Gets IV surface for calls and puts for ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/yfinance_model.py#L367)] + +```python +openbb.stocks.options.vsurf(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol to get | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of DTE, Strike and IV | +--- + + + + + + +Display vol surface + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/yfinance_view.py#L1128)] + +```python +openbb.stocks.options.vsurf_chart(symbol: str, export: str = "", z: str = "IV", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get surface for | None | False | +| export | str | Format to export data | | True | +| z | str | The variable for the Z axis | IV | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/process_candle.md b/website/content/sdk/reference/stocks/process_candle.md new file mode 100644 index 00000000000..d0d5a528ab5 --- /dev/null +++ b/website/content/sdk/reference/stocks/process_candle.md @@ -0,0 +1,33 @@ +--- +title: process_candle +description: OpenBB SDK Function +--- + +# process_candle + +Process DataFrame into candle style plot. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L825)] + +```python +openbb.stocks.process_candle(data: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | DataFrame | Stock dataframe. | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| DataFrame | A Panda's data frame with columns Open, High, Low, Close, Adj Close, Volume,
date_id, OC-High, OC-Low. | +--- + diff --git a/website/content/sdk/reference/stocks/qa/beta.md b/website/content/sdk/reference/stocks/qa/beta.md new file mode 100644 index 00000000000..b8c2c1285bb --- /dev/null +++ b/website/content/sdk/reference/stocks/qa/beta.md @@ -0,0 +1,81 @@ +--- +title: beta +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# beta + + + + +Calculate beta for a ticker and a reference ticker. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/quantitative_analysis/beta_model.py#L11)] + +```python +openbb.stocks.qa.beta(symbol: str, ref_symbol: str, data: pd.DataFrame = None, ref_data: pd.DataFrame = None, interval: int = 1440) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | A ticker to calculate beta for | None | False | +| ref_symbol | str | A reference ticker symbol for the beta calculation (default in terminal is SPY) | None | False | +| data | pd.DataFrame | The selected ticker symbols price data | None | True | +| ref_data | pd.DataFrame | The reference ticker symbols price data | None | True | +| interval | int | The interval of the ref_data. This will ONLY be used if ref_data is None | 1440 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.Series, pd.Series, float, float] | Stock ticker symbols close-to-close returns, Reference ticker symbols close-to-close returns, beta, alpha | +--- + + + + + + +Display the beta scatterplot + linear regression. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/quantitative_analysis/beta_view.py#L18)] + +```python +openbb.stocks.qa.beta_chart(symbol: str, ref_symbol: str, data: pd.DataFrame = None, ref_data: pd.DataFrame = None, interval: int = 1440, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | A ticker to calculate beta for | None | False | +| ref_symbol | str | A reference ticker symbol for the beta calculation (default in terminal is SPY) | None | False | +| data | pd.DataFrame | The selected ticker symbols price data | None | True | +| ref_data | pd.DataFrame | The reference ticker symbols price data | None | True | +| interval | int | The interval of the ref_data. This will ONLY be used if ref_data is None | 1440 | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/qa/capm.md b/website/content/sdk/reference/stocks/qa/capm.md new file mode 100644 index 00000000000..6fe10b72074 --- /dev/null +++ b/website/content/sdk/reference/stocks/qa/capm.md @@ -0,0 +1,33 @@ +--- +title: capm +description: OpenBB SDK Function +--- + +# capm + +Provides information that relates to the CAPM model + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/quantitative_analysis/factors_model.py#L80)] + +```python +openbb.stocks.qa.capm(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | A ticker symbol in string form | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[float, float] | The beta for a stock, The systematic risk for a stock | +--- + diff --git a/website/content/sdk/reference/stocks/qa/fama_raw.md b/website/content/sdk/reference/stocks/qa/fama_raw.md new file mode 100644 index 00000000000..ca13367f9d4 --- /dev/null +++ b/website/content/sdk/reference/stocks/qa/fama_raw.md @@ -0,0 +1,30 @@ +--- +title: fama_raw +description: OpenBB SDK Function +--- + +# fama_raw + +Gets base Fama French data to calculate risk + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/quantitative_analysis/factors_model.py#L20)] + +```python +openbb.stocks.qa.fama_raw() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | A data with fama french model information | +--- + diff --git a/website/content/sdk/reference/stocks/qa/historical_5.md b/website/content/sdk/reference/stocks/qa/historical_5.md new file mode 100644 index 00000000000..7a9aef9f17c --- /dev/null +++ b/website/content/sdk/reference/stocks/qa/historical_5.md @@ -0,0 +1,33 @@ +--- +title: historical_5 +description: OpenBB SDK Function +--- + +# historical_5 + +Get 5 year monthly historical performance for a ticker with dividends filtered + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/quantitative_analysis/factors_model.py#L58)] + +```python +openbb.stocks.qa.historical_5(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | A ticker symbol in string form | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | A dataframe with historical information | +--- + diff --git a/website/content/sdk/reference/stocks/quote.md b/website/content/sdk/reference/stocks/quote.md new file mode 100644 index 00000000000..7d22b52a3f5 --- /dev/null +++ b/website/content/sdk/reference/stocks/quote.md @@ -0,0 +1,32 @@ +--- +title: quote +description: OpenBB SDK Function +--- + +# quote + +Ticker quote. [Source: YahooFinance] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_model.py#L233)] + +```python +openbb.stocks.quote(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/stocks/screener/historical.md b/website/content/sdk/reference/stocks/screener/historical.md new file mode 100644 index 00000000000..3ba65ad4030 --- /dev/null +++ b/website/content/sdk/reference/stocks/screener/historical.md @@ -0,0 +1,84 @@ +--- +title: historical +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# historical + + + + +View historical price of stocks that meet preset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/screener/yahoofinance_model.py#L53)] + +```python +openbb.stocks.screener.historical(preset_loaded: str = "top_gainers", limit: int = 10, start_date: str = "2022-05-26", type_candle: str = "a", normalize: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset_loaded | str | Preset loaded to filter for tickers | top_gainers | True | +| limit | int | Number of stocks to display | 10 | True | +| start_date | str | Start date to display historical data, in YYYY-MM-DD format | 2022-05-26 | True | +| type_candle | str | Type of candle to display | a | True | +| normalize | bool | Boolean to normalize all stock prices using MinMax | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of the screener | +--- + + + + + + +View historical price of stocks that meet preset + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/screener/yahoofinance_view.py#L28)] + +```python +openbb.stocks.screener.historical_chart(preset_loaded: str = "top_gainers", limit: int = 10, start_date: str = "2022-05-26", type_candle: str = "a", normalize: bool = True, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset_loaded | str | Preset loaded to filter for tickers | top_gainers | True | +| limit | int | Number of stocks to display | 10 | True | +| start_date | str | Start date to display historical data, in YYYY-MM-DD format | 2022-05-26 | True | +| type_candle | str | Type of candle to display | a | True | +| normalize | bool | Boolean to normalize all stock prices using MinMax | True | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list[str] | List of stocks | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/screener/screener_data.md b/website/content/sdk/reference/stocks/screener/screener_data.md new file mode 100644 index 00000000000..b38067850f4 --- /dev/null +++ b/website/content/sdk/reference/stocks/screener/screener_data.md @@ -0,0 +1,82 @@ +--- +title: screener_data +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# screener_data + + + + +Screener Overview + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/screener/finviz_model.py#L76)] + +```python +openbb.stocks.screener.screener_data(preset_loaded: str = "top_gainers", data_type: str = "overview", limit: int = 10, ascend: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| preset_loaded | str | Loaded preset filter | top_gainers | True | +| data_type | str | Data type between: overview, valuation, financial, ownership, performance, technical | overview | True | +| limit | int | Limit of stocks filtered with presets to print | 10 | True | +| ascend | bool | Ascended order of stocks filtered to print | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with loaded filtered stocks | +--- + + + + + + +Screener one of the following: overview, valuation, financial, ownership, performance, technical. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/screener/finviz_view.py#L127)] + +```python +openbb.stocks.screener.screener_data_chart(loaded_preset: str = "top_gainers", data_type: str = "overview", limit: int = 10, ascend: bool = False, sortby: str = "", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| loaded_preset | str | Preset loaded to filter for tickers | top_gainers | True | +| data_type | str | Data type string between: overview, valuation, financial, ownership, performance, technical | overview | True | +| limit | int | Limit of stocks to display | 10 | True | +| ascend | bool | Order of table to ascend or descend | False | True | +| sortby | str | Column to sort table by | | True | +| export | str | Export dataframe data to csv,json,xlsx file | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| List[str] | List of stocks that meet preset criteria | +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/search.md b/website/content/sdk/reference/stocks/search.md new file mode 100644 index 00000000000..12231e09764 --- /dev/null +++ b/website/content/sdk/reference/stocks/search.md @@ -0,0 +1,38 @@ +--- +title: search +description: OpenBB SDK Function +--- + +# search + +Search selected query for tickers. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/stocks_helper.py#L98)] + +```python +openbb.stocks.search(query: str = "", country: str = "", sector: str = "", industry: str = "", exchange_country: str = "", limit: int = 0, export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| query | str | The search term used to find company tickers | | True | +| country | str | Search by country to find stocks matching the criteria | | True | +| sector | str | Search by sector to find stocks matching the criteria | | True | +| industry | str | Search by industry to find stocks matching the criteria | | True | +| exchange_country | str | Search by exchange country to find stock matching | | True | +| limit | int | The limit of companies shown. | 0 | True | +| export | str | Export data | | True | + + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/stocks/sia/countries.md b/website/content/sdk/reference/stocks/sia/countries.md new file mode 100644 index 00000000000..3535af33390 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/countries.md @@ -0,0 +1,34 @@ +--- +title: countries +description: OpenBB SDK Function +--- + +# countries + +Get all countries in Yahoo Finance data based on sector or industry. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L19)] + +```python +openbb.stocks.sia.countries(industry: str = "", sector: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| industry | str | Filter retrieved countries by industry | | True | +| sector | str | Filter retrieved countries by sector | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | List of possible countries | +--- + diff --git a/website/content/sdk/reference/stocks/sia/cpci.md b/website/content/sdk/reference/stocks/sia/cpci.md new file mode 100644 index 00000000000..7ba1d628dac --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/cpci.md @@ -0,0 +1,82 @@ +--- +title: cpci +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cpci + + + + +Get number of companies per country in a specific industry (and specific market cap). + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L411)] + +```python +openbb.stocks.sia.cpci(industry: str = "Internet Content & Information", mktcap: str = "Large", exclude_exchanges: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| industry | str | Select industry to get number of companies by each country | Internet Content & Information | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary of countries and number of companies in a specific sector | +--- + + + + + + +Display number of companies per country in a specific industry. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_view.py#L818)] + +```python +openbb.stocks.sia.cpci_chart(industry: str = "Internet Content & Information", mktcap: str = "Large", exclude_exchanges: bool = True, export: str = "", raw: bool = False, max_countries_to_display: int = 15, min_pct_to_display_country: float = 0.015, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| industry | str | Select industry to get number of companies by each country | Internet Content & Information | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | +| export | str | Format to export data as | | True | +| raw | bool | Output all raw data | False | True | +| max_countries_to_display | int | Maximum number of countries to display | 15 | True | +| min_pct_to_display_country | float | Minimum percentage to display country | 0.015 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/sia/cpcs.md b/website/content/sdk/reference/stocks/sia/cpcs.md new file mode 100644 index 00000000000..2ec9a97ccbb --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/cpcs.md @@ -0,0 +1,82 @@ +--- +title: cpcs +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cpcs + + + + +Get number of companies per country in a specific sector (and specific market cap). + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L360)] + +```python +openbb.stocks.sia.cpcs(sector: str = "Technology", mktcap: str = "Large", exclude_exchanges: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sector | str | Select sector to get number of companies by each country | Technology | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary of countries and number of companies in a specific sector | +--- + + + + + + +Display number of companies per country in a specific sector. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_view.py#L675)] + +```python +openbb.stocks.sia.cpcs_chart(sector: str = "Technology", mktcap: str = "Large", exclude_exchanges: bool = True, export: str = "", raw: bool = False, max_countries_to_display: int = 15, min_pct_to_display_country: float = 0.015, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sector | str | Select sector to get number of companies by each country | Technology | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | +| export | str | Format to export data as | | True | +| raw | bool | Output all raw data | False | True | +| max_countries_to_display | int | Maximum number of countries to display | 15 | True | +| min_pct_to_display_country | float | Minimum percentage to display country | 0.015 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/sia/cpic.md b/website/content/sdk/reference/stocks/sia/cpic.md new file mode 100644 index 00000000000..68720f2af07 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/cpic.md @@ -0,0 +1,82 @@ +--- +title: cpic +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cpic + + + + +Get number of companies per industry in a specific country (and specific market cap). + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L255)] + +```python +openbb.stocks.sia.cpic(country: str = "United States", mktcap: str = "Large", exclude_exchanges: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Select country to get number of companies by each industry | United States | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary of industries and number of companies in a specific country | +--- + + + + + + +Display number of companies per industry in a specific country. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_view.py#L376)] + +```python +openbb.stocks.sia.cpic_chart(country: str = "United States", mktcap: str = "Large", exclude_exchanges: bool = True, export: str = "", raw: bool = False, max_industries_to_display: int = 15, min_pct_to_display_industry: float = 0.015, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Select country to get number of companies by each industry | United States | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | +| export | str | Format to export data as | | True | +| raw | bool | Output all raw data | False | True | +| max_industries_to_display | int | Maximum number of industries to display | 15 | True | +| min_pct_to_display_industry | float | Minimum percentage to display industry | 0.015 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/sia/cpis.md b/website/content/sdk/reference/stocks/sia/cpis.md new file mode 100644 index 00000000000..7a315da5b08 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/cpis.md @@ -0,0 +1,82 @@ +--- +title: cpis +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cpis + + + + +Get number of companies per industry in a specific sector (and specific market cap). + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L309)] + +```python +openbb.stocks.sia.cpis(sector: str = "Technology", mktcap: str = "Large", exclude_exchanges: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sector | str | Select sector to get number of companies by each industry | Technology | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary of industries and number of companies in a specific sector | +--- + + + + + + +Display number of companies per industry in a specific sector. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_view.py#L525)] + +```python +openbb.stocks.sia.cpis_chart(sector: str = "Technology", mktcap: str = "Large", exclude_exchanges: bool = True, export: str = "", raw: bool = False, max_industries_to_display: int = 15, min_pct_to_display_industry: float = 0.015, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| sector | str | Select sector to get number of companies by each industry | Technology | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | +| export | str | Format to export data as | | True | +| raw | bool | Output all raw data | False | True | +| max_industries_to_display | int | Maximum number of industries to display | 15 | True | +| min_pct_to_display_industry | float | Minimum percentage to display industry | 0.015 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/sia/cps.md b/website/content/sdk/reference/stocks/sia/cps.md new file mode 100644 index 00000000000..7c1893a6c72 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/cps.md @@ -0,0 +1,82 @@ +--- +title: cps +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cps + + + + +Get number of companies per sector in a specific country (and specific market cap). [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L205)] + +```python +openbb.stocks.sia.cps(country: str = "United States", mktcap: str = "Large", exclude_exchanges: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Select country to get number of companies by each sector | United States | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary of sectors and number of companies in a specific country | +--- + + + + + + +Display number of companies per sector in a specific country (and market cap). [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_view.py#L238)] + +```python +openbb.stocks.sia.cps_chart(country: str = "United States", mktcap: str = "Large", exclude_exchanges: bool = True, export: str = "", raw: bool = False, max_sectors_to_display: int = 15, min_pct_to_display_sector: float = 0.015, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Select country to get number of companies by each sector | United States | True | +| mktcap | str | Select market cap of companies to consider from Small, Mid and Large | Large | True | +| exclude_exchanges | bool | Exclude international exchanges | True | True | +| export | str | Format to export data as | | True | +| raw | bool | Output all raw data | False | True | +| max_sectors_to_display | int | Maximum number of sectors to display | 15 | True | +| min_pct_to_display_sector | float | Minimum percentage to display sector | 0.015 | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/sia/filter_stocks.md b/website/content/sdk/reference/stocks/sia/filter_stocks.md new file mode 100644 index 00000000000..706a69a4687 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/filter_stocks.md @@ -0,0 +1,37 @@ +--- +title: filter_stocks +description: OpenBB SDK Function +--- + +# filter_stocks + +Filter stocks based on country, sector, industry, market cap and exclude exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L109)] + +```python +openbb.stocks.sia.filter_stocks(country: str = None, sector: str = None, industry: str = None, marketcap: str = "", exclude_exchanges: bool = True) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Search by country to find stocks matching the criteria. | None | True | +| sector | str | Search by sector to find stocks matching the criteria. | None | True | +| industry | str | Search by industry to find stocks matching the criteria. | None | True | +| marketcap | str | Select stocks based on the market cap. | | True | +| exclude_exchanges | bool | When you wish to include different exchanges use this boolean. | True | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | List of filtered stocks | +--- + diff --git a/website/content/sdk/reference/stocks/sia/industries.md b/website/content/sdk/reference/stocks/sia/industries.md new file mode 100644 index 00000000000..0b842bbd76f --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/industries.md @@ -0,0 +1,34 @@ +--- +title: industries +description: OpenBB SDK Function +--- + +# industries + +Get all industries in Yahoo Finance data based on country or sector. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L69)] + +```python +openbb.stocks.sia.industries(country: str = "", sector: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| country | str | Filter retrieved industries by country | | True | +| sector | str | Filter retrieved industries by sector | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | List of possible industries | +--- + diff --git a/website/content/sdk/reference/stocks/sia/maketcap.md b/website/content/sdk/reference/stocks/sia/maketcap.md new file mode 100644 index 00000000000..e19d1f12b61 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/maketcap.md @@ -0,0 +1,30 @@ +--- +title: maketcap +description: OpenBB SDK Function +--- + +# maketcap + +Get all market cap division in Yahoo Finance data. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L97)] + +```python +openbb.stocks.sia.maketcap() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | List of possible market caps | +--- + diff --git a/website/content/sdk/reference/stocks/sia/sectors.md b/website/content/sdk/reference/stocks/sia/sectors.md new file mode 100644 index 00000000000..5dcf85708a9 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/sectors.md @@ -0,0 +1,34 @@ +--- +title: sectors +description: OpenBB SDK Function +--- + +# sectors + +Get all sectors in Yahoo Finance data based on country or industry. [Source: Finance Database] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/financedatabase_model.py#L44)] + +```python +openbb.stocks.sia.sectors(industry: str = "", country: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| industry | str | Filter retrieved sectors by industry | | True | +| country | str | Filter retrieved sectors by country | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| list | List of possible sectors | +--- + diff --git a/website/content/sdk/reference/stocks/sia/stocks_data.md b/website/content/sdk/reference/stocks/sia/stocks_data.md new file mode 100644 index 00000000000..22f32ed9251 --- /dev/null +++ b/website/content/sdk/reference/stocks/sia/stocks_data.md @@ -0,0 +1,37 @@ +--- +title: stocks_data +description: OpenBB SDK Function +--- + +# stocks_data + +Get stocks data based on a list of stocks and the finance key. The function searches for the + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/sector_industry_analysis/stockanalysis_model.py#L84)] + +```python +openbb.stocks.sia.stocks_data(symbols: List[str] = None, finance_key: str = "ncf", stocks_data: dict = None, period: str = "annual", symbol: str = "USD") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbols | list | A list of tickers that will be used to collect data for. | None | True | +| finance_key | str | The finance key used to search within the SA_KEYS for the correct name of item
on the financial statement | ncf | True | +| stocks_data | dict | A dictionary that is empty on initialisation but filled once data is collected
for the first time. | None | True | +| period | str | Whether you want annually, quarterly or trailing financial statements. | annual | True | +| symbol | str | Choose in what currency you wish to convert each company's financial statement.
Default is USD (US Dollars). | USD | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| dict | Dictionary of filtered stocks data separated by financial statement | +--- + diff --git a/website/content/sdk/reference/stocks/ta/recom.md b/website/content/sdk/reference/stocks/ta/recom.md new file mode 100644 index 00000000000..dd3416310e4 --- /dev/null +++ b/website/content/sdk/reference/stocks/ta/recom.md @@ -0,0 +1,80 @@ +--- +title: recom +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# recom + + + + +Get tradingview recommendation based on technical indicators + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/tradingview_model.py#L56)] + +```python +openbb.stocks.ta.recom(symbol: str, screener: str = "america", exchange: str = "", interval: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get the recommendation from tradingview based on technical indicators | None | False | +| screener | str | Screener based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html | america | True | +| exchange | str | Exchange based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html | | True | +| interval | str | Interval time to check technical indicators and correspondent recommendation | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of tradingview recommendations based on technical indicators | +--- + + + + + + +Print tradingview recommendation based on technical indicators + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/tradingview_view.py#L17)] + +```python +openbb.stocks.ta.recom_chart(symbol: str, screener: str = "america", exchange: str = "", interval: str = "", export: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get tradingview recommendation based on technical indicators | None | False | +| screener | str | Screener based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html | america | True | +| exchange | str | Exchange based on tradingview docs https://python-tradingview-ta.readthedocs.io/en/latest/usage.html | | True | +| interval | str | Interval time to check technical indicators and correspondent recommendation | | True | +| export | str | Format of export file | | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ta/rsp.md b/website/content/sdk/reference/stocks/ta/rsp.md new file mode 100644 index 00000000000..fe664330107 --- /dev/null +++ b/website/content/sdk/reference/stocks/ta/rsp.md @@ -0,0 +1,75 @@ +--- +title: rsp +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rsp + + + + +Relative strength percentile [Source: https://github.com/skyte/relative-strength] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/rsp_model.py#L16)] + +```python +openbb.stocks.ta.rsp(s_ticker: str = "") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| s_ticker | str | Stock Ticker | | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame, pd.DataFrame] | Dataframe of stock percentile, Dataframe of industry percentile,
Raw stock dataframe for export, Raw industry dataframe for export | +--- + + + +
+ + +Display Relative Strength Percentile [Source: https://github.com/skyte/relative-strength] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/rsp_view.py#L20)] + +```python +openbb.stocks.ta.rsp_chart(s_ticker: str = "", export: str = "", tickers_show: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| s_ticker | str | Stock ticker | | True | +| export | str | Format of export file | | True | +| tickers_show | bool | Boolean to check if tickers in the same industry as the stock should be shown | False | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + +
\ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ta/summary.md b/website/content/sdk/reference/stocks/ta/summary.md new file mode 100644 index 00000000000..97f0648a0c1 --- /dev/null +++ b/website/content/sdk/reference/stocks/ta/summary.md @@ -0,0 +1,73 @@ +--- +title: summary +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# summary + + + + +Get technical summary report provided by FinBrain's API + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/finbrain_model.py#L15)] + +```python +openbb.stocks.ta.summary(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get the technical summary | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| str | technical summary report | +--- + + + + + + +Print technical summary report provided by FinBrain's API + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/finbrain_view.py#L14)] + +```python +openbb.stocks.ta.summary_chart(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol to get the technical summary | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/ta/view.md b/website/content/sdk/reference/stocks/ta/view.md new file mode 100644 index 00000000000..ac0f55dcd49 --- /dev/null +++ b/website/content/sdk/reference/stocks/ta/view.md @@ -0,0 +1,74 @@ +--- +title: view +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# view + + + + +Get finviz image for given ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/finviz_model.py#L16)] + +```python +openbb.stocks.ta.view(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| bytes | Image in byte format | +--- + + + + + + +View finviz image for ticker + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/technical_analysis/finviz_view.py#L22)] + +```python +openbb.stocks.ta.view_chart(symbol: str, external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Stock ticker symbol | None | False | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/th/all.md b/website/content/sdk/reference/stocks/th/all.md new file mode 100644 index 00000000000..1476d55ed23 --- /dev/null +++ b/website/content/sdk/reference/stocks/th/all.md @@ -0,0 +1,67 @@ +--- +title: all +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# all + + + + +Get all exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_model.py#L98)] + +```python +openbb.stocks.th.all() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | All available exchanges | +--- + + + + + + +Display all exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_view.py#L84)] + +```python +openbb.stocks.th.all_chart() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/th/check_if_open.md b/website/content/sdk/reference/stocks/th/check_if_open.md new file mode 100644 index 00000000000..441120415a1 --- /dev/null +++ b/website/content/sdk/reference/stocks/th/check_if_open.md @@ -0,0 +1,29 @@ +--- +title: check_if_open +description: OpenBB SDK Function +--- + +# check_if_open + +Check if market open helper function + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_model.py#L156)] + +```python +openbb.stocks.th.check_if_open(bursa: pd.DataFrame, exchange: str) +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + diff --git a/website/content/sdk/reference/stocks/th/closed.md b/website/content/sdk/reference/stocks/th/closed.md new file mode 100644 index 00000000000..6b67498ab52 --- /dev/null +++ b/website/content/sdk/reference/stocks/th/closed.md @@ -0,0 +1,67 @@ +--- +title: closed +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# closed + + + + +Get closed exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_model.py#L76)] + +```python +openbb.stocks.th.closed() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Currently closed exchanges | +--- + + + + + + +Display closed exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_view.py#L64)] + +```python +openbb.stocks.th.closed_chart() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/th/exchange.md b/website/content/sdk/reference/stocks/th/exchange.md new file mode 100644 index 00000000000..e6271b173f9 --- /dev/null +++ b/website/content/sdk/reference/stocks/th/exchange.md @@ -0,0 +1,73 @@ +--- +title: exchange +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# exchange + + + + +Get current exchange open hours. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_model.py#L20)] + +```python +openbb.stocks.th.exchange(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Exchange symbol | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Exchange info | +--- + + + + + + +Display current exchange trading hours. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_view.py#L15)] + +```python +openbb.stocks.th.exchange_chart(symbol: str) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Exchange symbol | None | False | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/th/open.md b/website/content/sdk/reference/stocks/th/open.md new file mode 100644 index 00000000000..8e311c615ad --- /dev/null +++ b/website/content/sdk/reference/stocks/th/open.md @@ -0,0 +1,67 @@ +--- +title: open +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# open + + + + +Get open exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_model.py#L54)] + +```python +openbb.stocks.th.open() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Currently open exchanges | +--- + + + + + + +Display open exchanges. + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/tradinghours/bursa_view.py#L44)] + +```python +openbb.stocks.th.open_chart() +``` + +--- + +## Parameters + +This function does not take any parameters. + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/stocks/tob.md b/website/content/sdk/reference/stocks/tob.md new file mode 100644 index 00000000000..c1cad0f76a3 --- /dev/null +++ b/website/content/sdk/reference/stocks/tob.md @@ -0,0 +1,34 @@ +--- +title: tob +description: OpenBB SDK Function +--- + +# tob + +Get top of book bid and ask for ticker on exchange [CBOE.com] + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/cboe_model.py#L12)] + +```python +openbb.stocks.tob(symbol: str, exchange: str = "BZX") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| symbol | str | Ticker to get | None | False | +| exchange | str | Exchange to look at. Can be `BZX`,`EDGX`, `BYX`, `EDGA` | BZX | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DatatFrame | Dataframe of Bids | +--- + diff --git a/website/content/sdk/reference/ta/ad.md b/website/content/sdk/reference/ta/ad.md new file mode 100644 index 00000000000..6dab85ef7a0 --- /dev/null +++ b/website/content/sdk/reference/ta/ad.md @@ -0,0 +1,78 @@ +--- +title: ad +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ad + + + + +Calculate AD technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volume_model.py#L17)] + +```python +openbb.ta.ad(data: pd.DataFrame, use_open: bool = False) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of prices with OHLC and Volume | None | False | +| use_open | bool | Whether to use open prices | False | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with technical indicator | +--- + + + + + + +Plots AD technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volume_view.py#L28)] + +```python +openbb.ta.ad_chart(data: pd.DataFrame, use_open: bool = False, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| use_open | bool | Whether to use open prices in calculation | False | True | +| symbol | str | Ticker symbol | | True | +| export | str | Format to export data as | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/adosc.md b/website/content/sdk/reference/ta/adosc.md new file mode 100644 index 00000000000..92a2f4279c3 --- /dev/null +++ b/website/content/sdk/reference/ta/adosc.md @@ -0,0 +1,82 @@ +--- +title: adosc +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# adosc + + + + +Calculate AD oscillator technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volume_model.py#L46)] + +```python +openbb.ta.adosc(data: pd.DataFrame, use_open: bool = False, fast: int = 3, slow: int = 10) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | +| use_open | bool | Whether to use open prices | False | True | +| fast | int | Fast value | 3 | True | +| slow | int | Slow value | 10 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with technical indicator | +--- + + + + + + +Plots AD Osc Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volume_view.py#L141)] + +```python +openbb.ta.adosc_chart(data: pd.DataFrame, fast: int = 3, slow: int = 10, use_open: bool = False, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| use_open | bool | Whether to use open prices in calculation | False | True | +| fast | int | Length of fast window | 3 | True | +| slow | int | Length of slow window | 10 | True | +| symbol | str | Stock ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/adx.md b/website/content/sdk/reference/ta/adx.md new file mode 100644 index 00000000000..e007c545fed --- /dev/null +++ b/website/content/sdk/reference/ta/adx.md @@ -0,0 +1,82 @@ +--- +title: adx +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# adx + + + + +ADX technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/trend_indicators_model.py#L16)] + +```python +openbb.ta.adx(data: pd.DataFrame, window: int = 14, scalar: int = 100, drift: int = 1) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe with OHLC price data | None | False | +| window | int | Length of window | 14 | True | +| scalar | int | Scalar variable | 100 | True | +| drift | int | Drift variable | 1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with adx indicator | +--- + + + + + + +Plots ADX indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/trend_indicators_view.py#L30)] + +```python +openbb.ta.adx_chart(data: pd.DataFrame, window: int = 14, scalar: int = 100, drift: int = 1, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe with OHLC price data | None | False | +| window | int | Length of window | 14 | True | +| scalar | int | Scalar variable | 100 | True | +| drift | int | Drift variable | 1 | True | +| symbol | str | Ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/aroon.md b/website/content/sdk/reference/ta/aroon.md new file mode 100644 index 00000000000..5ab89b664a9 --- /dev/null +++ b/website/content/sdk/reference/ta/aroon.md @@ -0,0 +1,80 @@ +--- +title: aroon +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# aroon + + + + +Aroon technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/trend_indicators_model.py#L56)] + +```python +openbb.ta.aroon(data: pd.DataFrame, window: int = 25, scalar: int = 100) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe with OHLC price data | None | False | +| window | int | Length of window | 25 | True | +| scalar | int | Scalar variable | 100 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | DataFrame with aroon indicator | +--- + + + + + + +Plots Aroon indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/trend_indicators_view.py#L121)] + +```python +openbb.ta.aroon_chart(data: pd.DataFrame, window: int = 25, scalar: int = 100, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe with OHLC price data | None | False | +| window | int | Length of window | 25 | True | +| symbol | str | Ticker | | True | +| scalar | int | Scalar variable | 100 | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/atr.md b/website/content/sdk/reference/ta/atr.md new file mode 100644 index 00000000000..a287d0503ac --- /dev/null +++ b/website/content/sdk/reference/ta/atr.md @@ -0,0 +1,80 @@ +--- +title: atr +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# atr + + + + +Average True Range + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_model.py#L132)] + +```python +openbb.ta.atr(data: pd.DataFrame, window: int = 14, mamode: str = "ema", offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| window | int | Length of window | 14 | True | +| mamode | str | Type of filter | ema | True | +| offset | int | Offset value | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of atr | +--- + + + + + + +Plots ATR + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_view.py#L289)] + +```python +openbb.ta.atr_chart(data: pd.DataFrame, symbol: str = "", window: int = 14, mamode: str = "sma", offset: int = 0, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| symbol | str | Ticker symbol | | True | +| window | int | Length of window to calculate upper channel | 14 | True | +| export | str | Format of export file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/bbands.md b/website/content/sdk/reference/ta/bbands.md new file mode 100644 index 00000000000..44b77421a90 --- /dev/null +++ b/website/content/sdk/reference/ta/bbands.md @@ -0,0 +1,82 @@ +--- +title: bbands +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# bbands + + + + +Calculate Bollinger Bands + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_model.py#L18)] + +```python +openbb.ta.bbands(data: pd.DataFrame, window: int = 15, n_std: float = 2, mamode: str = "ema") +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| window | int | Length of window to calculate BB | 15 | True | +| n_std | float | Number of standard deviations to show | 2 | True | +| mamode | str | Method of calculating average | ema | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of bollinger band data | +--- + + + + + + +Plots bollinger bands + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_view.py#L27)] + +```python +openbb.ta.bbands_chart(data: pd.DataFrame, symbol: str = "", window: int = 15, n_std: float = 2, mamode: str = "sma", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| symbol | str | Ticker symbol | | True | +| window | int | Length of window to calculate BB | 15 | True | +| n_std | float | Number of standard deviations to show | 2 | True | +| mamode | str | Method of calculating average | sma | True | +| export | str | Format of export file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/cci.md b/website/content/sdk/reference/ta/cci.md new file mode 100644 index 00000000000..4c86dfb9715 --- /dev/null +++ b/website/content/sdk/reference/ta/cci.md @@ -0,0 +1,82 @@ +--- +title: cci +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cci + + + + +Commodity channel index + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_model.py#L20)] + +```python +openbb.ta.cci(data: pd.DataFrame, window: int = 14, scalar: float = 0.0015) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| high_vals | pd.Series | High values | None | True | +| low_values | pd.Series | Low values | None | True | +| close-values | pd.Series | Close values | None | True | +| window | int | Length of window | 14 | True | +| scalar | float | Scalar variable | 0.0015 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of technical indicator | +--- + + + + + + +Plots CCI Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_view.py#L34)] + +```python +openbb.ta.cci_chart(data: pd.DataFrame, window: int = 14, scalar: float = 0.0015, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC | None | False | +| window | int | Length of window | 14 | True | +| scalar | float | Scalar variable | 0.0015 | True | +| symbol | str | Stock ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/cg.md b/website/content/sdk/reference/ta/cg.md new file mode 100644 index 00000000000..10b6e1f5b1a --- /dev/null +++ b/website/content/sdk/reference/ta/cg.md @@ -0,0 +1,78 @@ +--- +title: cg +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# cg + + + + +Center of gravity + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_model.py#L189)] + +```python +openbb.ta.cg(values: pd.Series, window: int) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| values | pd.DataFrame | Data to use with close being titled values | None | False | +| window | int | Length for indicator window | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of technical indicator | +--- + + + + + + +Plots center of gravity Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_view.py#L499)] + +```python +openbb.ta.cg_chart(data: pd.Series, window: int = 14, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series of values | None | False | +| window | int | Length of window | 14 | True | +| symbol | str | Stock ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/donchian.md b/website/content/sdk/reference/ta/donchian.md new file mode 100644 index 00000000000..b562d691b42 --- /dev/null +++ b/website/content/sdk/reference/ta/donchian.md @@ -0,0 +1,80 @@ +--- +title: donchian +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# donchian + + + + +Calculate Donchian Channels + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_model.py#L53)] + +```python +openbb.ta.donchian(data: pd.DataFrame, upper_length: int = 20, lower_length: int = 20) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| upper_length | int | Length of window to calculate upper channel | 20 | True | +| lower_length | int | Length of window to calculate lower channel | 20 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of upper and lower channels | +--- + + + + + + +Plots donchian channels + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_view.py#L112)] + +```python +openbb.ta.donchian_chart(data: pd.DataFrame, symbol: str = "", upper_length: int = 20, lower_length: int = 20, export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| symbol | str | Ticker symbol | | True | +| upper_length | int | Length of window to calculate upper channel | 20 | True | +| lower_length | int | Length of window to calculate lower channel | 20 | True | +| export | str | Format of export file | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/ema.md b/website/content/sdk/reference/ta/ema.md new file mode 100644 index 00000000000..d95fc2b2026 --- /dev/null +++ b/website/content/sdk/reference/ta/ema.md @@ -0,0 +1,35 @@ +--- +title: ema +description: OpenBB SDK Function +--- + +# ema + +Gets exponential moving average (EMA) for stock + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_model.py#L19)] + +```python +openbb.ta.ema(data: pd.Series, length: int = 50, offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Dataframe of dates and prices | None | False | +| length | int | Length of EMA window | 50 | True | +| offset | int | Length of offset | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing prices and EMA | +--- + diff --git a/website/content/sdk/reference/ta/fib.md b/website/content/sdk/reference/ta/fib.md new file mode 100644 index 00000000000..9ea77fbaf85 --- /dev/null +++ b/website/content/sdk/reference/ta/fib.md @@ -0,0 +1,82 @@ +--- +title: fib +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# fib + + + + +Calculate Fibonacci levels + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/custom_indicators_model.py#L17)] + +```python +openbb.ta.fib(data: pd.DataFrame, limit: int = 120, start_date: Any = None, end_date: Any = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of prices | None | False | +| limit | int | Days to look back for retracement | 120 | True | +| start_date | Any | Custom start date for retracement | None | True | +| end_date | Any | Custom end date for retracement | None | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of fib levels | +--- + + + + + + +Plots Calculated fibonacci retracement levels + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/custom_indicators_view.py#L29)] + +```python +openbb.ta.fib_chart(data: pd.DataFrame, limit: int = 120, start_date: Optional[str] = None, end_date: Optional[str] = None, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | OHLC data | None | False | +| limit | int | Days to lookback | 120 | True | +| start_date | Optional[str, None] | User picked date for starting retracement | None | True | +| end_date | Optional[str, None] | User picked date for ending retracement | None | True | +| symbol | str | Ticker symbol | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/fisher.md b/website/content/sdk/reference/ta/fisher.md new file mode 100644 index 00000000000..8c0da2136b7 --- /dev/null +++ b/website/content/sdk/reference/ta/fisher.md @@ -0,0 +1,78 @@ +--- +title: fisher +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# fisher + + + + +Fisher Transform + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_model.py#L165)] + +```python +openbb.ta.fisher(data: pd.DataFrame, window: int = 14) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | +| window | int | Length for indicator window | 14 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of technical indicator | +--- + + + + + + +Plots Fisher Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_view.py#L406)] + +```python +openbb.ta.fisher_chart(data: pd.DataFrame, window: int = 14, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | +| window | int | Length of window | 14 | True | +| symbol | str | Ticker string | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/hma.md b/website/content/sdk/reference/ta/hma.md new file mode 100644 index 00000000000..13279a471e2 --- /dev/null +++ b/website/content/sdk/reference/ta/hma.md @@ -0,0 +1,35 @@ +--- +title: hma +description: OpenBB SDK Function +--- + +# hma + +Gets hull moving average (HMA) for stock + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_model.py#L91)] + +```python +openbb.ta.hma(data: pd.Series, length: int = 50, offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Dataframe of dates and prices | None | False | +| length | int | Length of SMA window | 50 | True | +| offset | int | Length of offset | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing prices and HMA | +--- + diff --git a/website/content/sdk/reference/ta/kc.md b/website/content/sdk/reference/ta/kc.md new file mode 100644 index 00000000000..773ae19b4d3 --- /dev/null +++ b/website/content/sdk/reference/ta/kc.md @@ -0,0 +1,84 @@ +--- +title: kc +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# kc + + + + +Keltner Channels + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_model.py#L88)] + +```python +openbb.ta.kc(data: pd.DataFrame, window: int = 20, scalar: float = 2, mamode: str = "ema", offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| window | int | Length of window | 20 | True | +| scalar | float | Scalar value | 2 | True | +| mamode | str | Type of filter | ema | True | +| offset | int | Offset value | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of rolling kc | +--- + + + + + + +Plots Keltner Channels Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volatility_view.py#L194)] + +```python +openbb.ta.kc_chart(data: pd.DataFrame, window: int = 20, scalar: float = 2, mamode: str = "ema", offset: int = 0, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| window | int | Length of window | 20 | True | +| scalar | float | Scalar value | 2 | True | +| mamode | str | Type of filter | ema | True | +| offset | int | Offset value | 0 | True | +| symbol | str | Ticker symbol | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/ma.md b/website/content/sdk/reference/ta/ma.md new file mode 100644 index 00000000000..fe034836697 --- /dev/null +++ b/website/content/sdk/reference/ta/ma.md @@ -0,0 +1,84 @@ +--- +title: ma +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# ma + + + + +Plots MA technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_view.py#L32)] + +```python +openbb.ta.ma(data: pd.Series, window: List[int] = None, offset: int = 0, ma_type: str = "EMA", symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series of prices | None | False | +| window | List[int] | Length of EMA window | None | True | +| offset | int | Offset variable | 0 | True | +| ma_type | str | Type of moving average. Either "EMA" "ZLMA" or "SMA" | EMA | True | +| symbol | str | Ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + + +Plots MA technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_view.py#L32)] + +```python +openbb.ta.ma_chart(data: pd.Series, window: List[int] = None, offset: int = 0, ma_type: str = "EMA", symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Series of prices | None | False | +| window | List[int] | Length of EMA window | None | True | +| offset | int | Offset variable | 0 | True | +| ma_type | str | Type of moving average. Either "EMA" "ZLMA" or "SMA" | EMA | True | +| symbol | str | Ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/macd.md b/website/content/sdk/reference/ta/macd.md new file mode 100644 index 00000000000..4ac784612ab --- /dev/null +++ b/website/content/sdk/reference/ta/macd.md @@ -0,0 +1,82 @@ +--- +title: macd +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# macd + + + + +Moving average convergence divergence + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_model.py#L61)] + +```python +openbb.ta.macd(data: pd.Series, n_fast: int = 12, n_slow: int = 26, n_signal: int = 9) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Values for calculation | None | False | +| n_fast | int | Fast period | 12 | True | +| n_slow | int | Slow period | 26 | True | +| n_signal | int | Signal period | 9 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of technical indicator | +--- + + + + + + +Plots MACD signal + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_view.py#L126)] + +```python +openbb.ta.macd_chart(data: pd.Series, n_fast: int = 12, n_slow: int = 26, n_signal: int = 9, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Values to input | None | False | +| n_fast | int | Fast period | 12 | True | +| n_slow | int | Slow period | 26 | True | +| n_signal | int | Signal period | 9 | True | +| symbol | str | Stock ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/obv.md b/website/content/sdk/reference/ta/obv.md new file mode 100644 index 00000000000..196fd057753 --- /dev/null +++ b/website/content/sdk/reference/ta/obv.md @@ -0,0 +1,76 @@ +--- +title: obv +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# obv + + + + +On Balance Volume + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volume_model.py#L90)] + +```python +openbb.ta.obv(data: pd.DataFrame) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with technical indicator | +--- + + + + + + +Plots OBV technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/volume_view.py#L249)] + +```python +openbb.ta.obv_chart(data: pd.DataFrame, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of ohlc prices | None | False | +| symbol | str | Ticker | | True | +| export | str | Format to export data as | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (1 axis is expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/rsi.md b/website/content/sdk/reference/ta/rsi.md new file mode 100644 index 00000000000..053a7edea28 --- /dev/null +++ b/website/content/sdk/reference/ta/rsi.md @@ -0,0 +1,82 @@ +--- +title: rsi +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# rsi + + + + +Relative strength index + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_model.py#L93)] + +```python +openbb.ta.rsi(data: pd.Series, window: int = 14, scalar: float = 100, drift: int = 1) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Dataframe of prices | None | False | +| window | int | Length of window | 14 | True | +| scalar | float | Scalar variable | 100 | True | +| drift | int | Drift variable | 1 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of technical indicator | +--- + + + + + + +Plots RSI Indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_view.py#L219)] + +```python +openbb.ta.rsi_chart(data: pd.Series, window: int = 14, scalar: float = 100.0, drift: int = 1, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Values to input | None | False | +| window | int | Length of window | 14 | True | +| scalar | float | Scalar variable | 100.0 | True | +| drift | int | Drift variable | 1 | True | +| symbol | str | Stock ticker | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (2 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/sma.md b/website/content/sdk/reference/ta/sma.md new file mode 100644 index 00000000000..8fdcad0aff6 --- /dev/null +++ b/website/content/sdk/reference/ta/sma.md @@ -0,0 +1,35 @@ +--- +title: sma +description: OpenBB SDK Function +--- + +# sma + +Gets simple moving average (EMA) for stock + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_model.py#L43)] + +```python +openbb.ta.sma(data: pd.Series, length: int = 50, offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Dataframe of dates and prices | None | False | +| length | int | Length of SMA window | 50 | True | +| offset | int | Length of offset | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing prices and SMA | +--- + diff --git a/website/content/sdk/reference/ta/stoch.md b/website/content/sdk/reference/ta/stoch.md new file mode 100644 index 00000000000..b7912a9fd96 --- /dev/null +++ b/website/content/sdk/reference/ta/stoch.md @@ -0,0 +1,82 @@ +--- +title: stoch +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# stoch + + + + +Stochastic oscillator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_model.py#L126)] + +```python +openbb.ta.stoch(data: pd.DataFrame, fastkperiod: int = 14, slowdperiod: int = 3, slowkperiod: int = 3) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | +| fastkperiod | int | Fast k period | 14 | True | +| slowdperiod | int | Slow d period | 3 | True | +| slowkperiod | int | Slow k period | 3 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe of technical indicator | +--- + + + + + + +Plots stochastic oscillator signal + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/momentum_view.py#L307)] + +```python +openbb.ta.stoch_chart(data: pd.DataFrame, fastkperiod: int = 14, slowdperiod: int = 3, slowkperiod: int = 3, symbol: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | +| fastkperiod | int | Fast k period | 14 | True | +| slowdperiod | int | Slow d period | 3 | True | +| slowkperiod | int | Slow k period | 3 | True | +| symbol | str | Stock ticker symbol | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/vwap.md b/website/content/sdk/reference/ta/vwap.md new file mode 100644 index 00000000000..9d0ea179596 --- /dev/null +++ b/website/content/sdk/reference/ta/vwap.md @@ -0,0 +1,81 @@ +--- +title: vwap +description: OpenBB SDK Function +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# vwap + + + + +Gets volume weighted average price (VWAP) + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_model.py#L139)] + +```python +openbb.ta.vwap(data: pd.Series, offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of dates and prices | None | False | +| offset | int | Length of offset | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe with VWAP data | +--- + + + + + + +Plots VWMA technical indicator + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_view.py#L121)] + +```python +openbb.ta.vwap_chart(data: pd.DataFrame, symbol: str = "", start_date: str = None, end_date: str = None, offset: int = 0, interval: str = "", export: str = "", external_axes: Optional[List[matplotlib.axes._axes.Axes]] = None) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.DataFrame | Dataframe of OHLC prices | None | False | +| symbol | str | Ticker | | True | +| offset | int | Offset variable | 0 | True | +| start_date | datetime | Start date to get data from with | None | True | +| end_date | datetime | End date to get data from with | None | True | +| interval | str | Interval of data | | True | +| export | str | Format to export data | | True | +| external_axes | Optional[List[plt.Axes]] | External axes (3 axes are expected in the list), by default None | None | True | + + +--- + +## Returns + +This function does not return anything + +--- + + + + + \ No newline at end of file diff --git a/website/content/sdk/reference/ta/wma.md b/website/content/sdk/reference/ta/wma.md new file mode 100644 index 00000000000..cadf3ff42d1 --- /dev/null +++ b/website/content/sdk/reference/ta/wma.md @@ -0,0 +1,35 @@ +--- +title: wma +description: OpenBB SDK Function +--- + +# wma + +Gets weighted moving average (WMA) for stock + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_model.py#L67)] + +```python +openbb.ta.wma(data: pd.Series, length: int = 50, offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Dataframe of dates and prices | None | False | +| length | int | Length of SMA window | 50 | True | +| offset | int | Length of offset | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing prices and WMA | +--- + diff --git a/website/content/sdk/reference/ta/zlma.md b/website/content/sdk/reference/ta/zlma.md new file mode 100644 index 00000000000..3f964b31760 --- /dev/null +++ b/website/content/sdk/reference/ta/zlma.md @@ -0,0 +1,35 @@ +--- +title: zlma +description: OpenBB SDK Function +--- + +# zlma + +Gets zero-lagged exponential moving average (ZLEMA) for stock + +Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/common/technical_analysis/overlap_model.py#L115)] + +```python +openbb.ta.zlma(data: pd.Series, length: int = 50, offset: int = 0) +``` + +--- + +## Parameters + +| Name | Type | Description | Default | Optional | +| ---- | ---- | ----------- | ------- | -------- | +| data | pd.Series | Dataframe of dates and prices | None | False | +| length | int | Length of EMA window | 50 | True | +| offset | int | Length of offset | 0 | True | + + +--- + +## Returns + +| Type | Description | +| ---- | ----------- | +| pd.DataFrame | Dataframe containing prices and EMA | +--- + diff --git a/website/content/sdk/showcase.md b/website/content/sdk/showcase.md new file mode 100644 index 00000000000..a70aac8e260 --- /dev/null +++ b/website/content/sdk/showcase.md @@ -0,0 +1,27 @@ +--- +sidebar_position: 5 +--- + +import ShowcaseItem from "@site/src/components/General/ShowcaseItem" + +# Showcase + +This page contains a list of projects that use the OpenBB SDK. If you have a project that uses the SDK, please feel free to add it to the list [here](#). + +--- + + + + + + +--- + +:::tip + +Know/have a product powered by OpenBB SDK? Add it [here](#). diff --git a/website/content/terminal/_index.md b/website/content/terminal/_index.md deleted file mode 100644 index f3c9d7a87d5..00000000000 --- a/website/content/terminal/_index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- ---- - - - \ No newline at end of file diff --git a/website/content/terminal/alt/_index.md b/website/content/terminal/alt/_index.md deleted file mode 100644 index 11dc36d4a3c..00000000000 --- a/website/content/terminal/alt/_index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -geekdocCollapseSection: true ---- - -Investors utilize alternative data to analyze a company or investment that is not available through typical data sources (financial statements, SEC filings, management presentations, press releases, etc.). Traditional data sources do not provide investors with as accurate, timely, or granular insights and measurements into corporate performance as alternative data does. Increases in computing power and personal device usage have resulted in tremendous data production during the previous ten years. As a result, a slew of new businesses have sprung up to collect, clean, analyze, and interpret data in order to sell it as a product that might help investors make better decisions. - -**Available commands** -{{< toc-tree >}} diff --git a/website/content/terminal/alt/covid/_index.md b/website/content/terminal/alt/covid/_index.md deleted file mode 100644 index cf01e10c0a4..00000000000 --- a/website/content/terminal/alt/covid/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -geekdocCollapseSection: true ---- - -**Available commands:** -{{< toc-tree >}} diff --git a/website/content/terminal/alt/covid/cases/_index.md b/website/content/terminal/alt/covid/cases/_index.md deleted file mode 100644 index b2a6f40d265..00000000000 --- a/website/content/terminal/alt/covid/cases/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: cases [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] -``` - -Show historical cases for country. -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` - -![cases](https://user-images.githubusercontent.com/46355364/153897646-99e4f73f-be61-4ed7-a31d-58e8695e7c50.png) diff --git a/website/content/terminal/alt/covid/country/_index.md b/website/content/terminal/alt/covid/country/_index.md deleted file mode 100644 index 24aecf3a01a..00000000000 --- a/website/content/terminal/alt/covid/country/_index.md +++ /dev/null @@ -1,10 +0,0 @@ -usage: country [-c COUNTRY] [-h] - -Select a country to look at data for. - -optional arguments: - -c COUNTRY, --country COUNTRY - Country to get data for. (default: None) - -h, --help show this help message (default: False) - -For more information and examples, use 'about country' to access the related guide. diff --git a/website/content/terminal/alt/covid/deaths/_index.md b/website/content/terminal/alt/covid/deaths/_index.md deleted file mode 100644 index 22b6b7d46f4..00000000000 --- a/website/content/terminal/alt/covid/deaths/_index.md +++ /dev/null @@ -1,15 +0,0 @@ -```u -sage: deaths [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] -``` -Show historical deaths by country. - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` -![deaths](https://user-images.githubusercontent.com/46355364/153897766-73a8e2ee-c4e6-40d3-a65d-8b116efdacfa.png) diff --git a/website/content/terminal/alt/covid/ov/_index.md b/website/content/terminal/alt/covid/ov/_index.md deleted file mode 100644 index d74fd9a1ef0..00000000000 --- a/website/content/terminal/alt/covid/ov/_index.md +++ /dev/null @@ -1,15 +0,0 @@ -``` -usage: ov [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] -``` -Show historical cases and deaths by country. - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` -![ov](https://user-images.githubusercontent.com/46355364/153897893-52f7649a-90ba-4dca-bfe7-75839ce7ec2e.png) diff --git a/website/content/terminal/alt/covid/rates/_index.md b/website/content/terminal/alt/covid/rates/_index.md deleted file mode 100644 index 3e510643de1..00000000000 --- a/website/content/terminal/alt/covid/rates/_index.md +++ /dev/null @@ -1,15 +0,0 @@ -``` -usage: rates [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] -``` -Show historical rates country. -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` - -![rates](https://user-images.githubusercontent.com/46355364/153898007-a051dc1c-4b03-4c3c-ae72-c61da8f732ff.png) diff --git a/website/content/terminal/alt/covid/slopes/_index.md b/website/content/terminal/alt/covid/slopes/_index.md deleted file mode 100644 index 7c195c22641..00000000000 --- a/website/content/terminal/alt/covid/slopes/_index.md +++ /dev/null @@ -1,48 +0,0 @@ -``` -usage: slopes [-d DAYS] [-a] [-t THRESHOLD] [-h] [--export {csv,json,xlsx}] [-l LIMIT] -``` - -Show countries with highest slopes in cases. - -``` -optional arguments: - -d DAYS, --days DAYS Number of days back to look (default: 30) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -t THRESHOLD, --threshold THRESHOLD - Threshold for total cases over period (default: 10000) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` - -``` -2022 Feb 14, 10:26 (🦋) /alternative/covid/ $ slopes -Highest Sloping Cases (Cases/Day) -┌────────────────┬───────────┐ -│ Country │ Slope │ -├────────────────┼───────────┤ -│ US │ 331073.67 │ -├────────────────┼───────────┤ -│ France │ 278690.89 │ -├────────────────┼───────────┤ -│ India │ 197265.42 │ -├────────────────┼───────────┤ -│ Brazil │ 166945.38 │ -├────────────────┼───────────┤ -│ Germany │ 145740.36 │ -├────────────────┼───────────┤ -│ United Kingdom │ 121007.75 │ -├────────────────┼───────────┤ -│ Russia │ 90106.71 │ -├────────────────┼───────────┤ -│ Spain │ 87634.01 │ -├────────────────┼───────────┤ -│ Turkey │ 82293.04 │ -├────────────────┼───────────┤ -│ Japan │ 74577.78 │ -└────────────────┴───────────┘ -``` diff --git a/website/content/terminal/alt/oss/_index.md b/website/content/terminal/alt/oss/_index.md deleted file mode 100644 index cf01e10c0a4..00000000000 --- a/website/content/terminal/alt/oss/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -geekdocCollapseSection: true ---- - -**Available commands:** -{{< toc-tree >}} diff --git a/website/content/terminal/alt/oss/rossidx/_index.md b/website/content/terminal/alt/oss/rossidx/_index.md deleted file mode 100644 index b34b43e9efd..00000000000 --- a/website/content/terminal/alt/oss/rossidx/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -`usage: rossidx [-s SORTBY [SORTBY {GitHub,Company,Country,City,Founded,Raised [$M],Stars,Forks,Stars AGR [%],Forks AGR [%]}]] [--reverse] [--chart] [--growth] [-ct {stars,forks}] [-h] [--export EXPORT] [-l LIMIT]` - -Display list of startups from ross index [Source: https://runacap.com/] -Use --chart to display chart and -t {stars,forks} to set chart type - -``` -optional arguments: - -s SORTBY [SORTBY ...], --sortby SORTBY [SORTBY {GitHub,Company,Country,City,Founded,Raised [$M],Stars,Forks,Stars AGR [%],Forks AGR [%]}] - Sort startups by column (default: Stars AGR [%]) - -r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) - -c, --chart Flag to show chart (default: False) - -g, --growth Flag to show growth chart (default: False) - -t {stars,forks}, --chart-type {stars,forks} - Chart type: {stars, forks} (default: stars) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` diff --git a/website/content/terminal/alt/oss/rs/_index.md b/website/content/terminal/alt/oss/rs/_index.md deleted file mode 100644 index 513b5e28573..00000000000 --- a/website/content/terminal/alt/oss/rs/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -usage: rs [-h] [-r REPO] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] -``` - -Display a repo summary [Source: https://api.github.com] - -``` -optional arguments: - -r REPO, --repo REPO Repository to search for repo summary. Format: org/repo, e.g., openbb-finance/openbbterminal - (default: None) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) - --raw Flag to display raw data (default: False) -``` diff --git a/website/content/terminal/alt/oss/sh/_index.md b/website/content/terminal/alt/oss/sh/_index.md deleted file mode 100644 index 1bfaa9b948d..00000000000 --- a/website/content/terminal/alt/oss/sh/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: sh [-h] [-r REPO] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] -``` - -Display a repo star history [Source: https://api.github.com] - -``` -optional arguments: - -h, --help show help message (default: False) - -r --repo Repository to search for star history. Format: org/repo, e.g., openbb-finance/openbbterminal - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` diff --git a/website/content/terminal/alt/oss/tr/_index.md b/website/content/terminal/alt/oss/tr/_index.md deleted file mode 100644 index f039512565e..00000000000 --- a/website/content/terminal/alt/oss/tr/_index.md +++ /dev/null @@ -1,19 +0,0 @@ -``` -usage: tr [-h] [-c CATEGORIES] [-s {stars,forks}] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] -``` - -Display top repositories [Source: https://api.github.com] - -``` -optional arguments: - -c, --categories Filter by repo categories. If more than one separate with a comma: e.g., finance,investment. Default: None - -s, --sortby Sort repos by {stars, forks}. Default: stars - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` - -![cases](https://user-images.githubusercontent.com/46355364/153897646-99e4f73f-be61-4ed7-a31d-58e8695e7c50.png) diff --git a/website/content/terminal/ba/_index.md b/website/content/terminal/ba/_index.md deleted file mode 100644 index cae467afd41..00000000000 --- a/website/content/terminal/ba/_index.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -title: Introduction to the Behavioural Analysis -keywords: "stocks, behaviour, analysis, ba, headlines, snews, wsb, watchlist, popular, spac, trending, stalking, bullbear, messages, inter, sentiment, Google, Twitter, Reddit, Stocktwits, SentimentInvestor, Cramer, Jim, mentions, regions, interest, queries, rise, trend, hist, jcrd, jctr" -date: "2022-05-23" -type: guides -status: publish -excerpt: "An Introduction to the Behavioural Analysis menu, within the Stocks menu." -geekdocCollapseSection: true ---- -The Behavioural Analysis menu offers the user tools for gauging the overall public sentiment of a company online. -The complexity of the tools range from message board scrapers to deep learning algorithms for financial analysis and prediction. -Sentiment is particularly useful for momentum trading strategies, discovery, and general fundamental research. -Navigate into the menu from the Stocks menu by entering, `ba`; or, using absolute paths from anywhere in the Terminal: `/stocks/ba` - -The Behavioural Analysis submenu - -## How to use - -The commands with Light Blue text, representing commands, -do not require a ticker, faded commands will turn light blue when there is a ticker loaded. - -```` -(🦋) /stocks/ba/ $ load gme - -Loading Daily GME stock with starting period 2019-05-20 for analysis. - -Datetime: 2022 May 23 12:13 -Timezone: America/New_York -Currency: USD -Market: CLOSED -Company: GameStop Corporation - -(🦋) /stocks/ba/ $ ? -```` - -The Behavioural Analysis Menu with a loaded ticker - -Some data sources will require a valid API key, which can be obtained for free and then set using the Keys menu. -To use all the features in this menu, obtain free API keys from these providers: - -- Finnhub
-- Twitter
-- Reddit
-- Sentiment Investor
- -See the Getting Started Guide -for help setting API keys in the Terminal. - -## Examples - -As with every command, using the `-h` argument displays the help dialogue. Running the headlines -command returns the following: - -```` -(🦋) /stocks/ba/ $ headlines -```` -headlines - -Alternatively, running the snews -command returns the following: - -```` -(🦋) /stocks/ba/ $ snews -```` - -headlines - -The Reddit functions will return popular tickers and posts, or measure sentiment for a particular stock. An example -would be by looking at the threads that pop up on /r/wallstreetbets, -famous for the GameStop short squeeze: - -```` -(🦋) /stocks/ba/ $ wsb - -2022-05-23 10:00:12 - Daily Discussion Thread for May 23, 2022 -https://old.reddit.com/r/wallstreetbets/comments/uvwq8z/daily_discussion_thread_for_may_23_2022/ - - Reddit Submission -┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━┓ -┃ Subreddit ┃ Flair ┃ Score ┃ # Comments ┃ Upvote % ┃ Awards ┃ -┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━┩ -│ wallstreetbets │ Daily Discussion │ 195 │ 9168 │ 88% │ 3 Silver │ -│ │ │ │ │ │ 2 Helpful │ -│ │ │ │ │ │ 1 Wholesome │ -│ │ │ │ │ │ 1 Got the │ -└────────────────┴──────────────────┴───────┴────────────┴──────────┴─────────────┘ - -2022-05-21 11:34:21 - Most Anticipated Earnings Releases for the week beginning May 23rd, 2022 -https://old.reddit.com/r/wallstreetbets/comments/uul9fs/most_anticipated_earnings_releases_for_the_week/ - - Reddit Submission -┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ -┃ Subreddit ┃ Flair ┃ Score ┃ # Comments ┃ Upvote % ┃ Awards ┃ -┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ -│ wallstreetbets │ Earnings Thread │ 960 │ 1325 │ 97% │ 1 Silver │ -│ │ │ │ │ │ 5 Helpful │ -│ │ │ │ │ │ 3 Wholesome │ -│ │ │ │ │ │ 1 Take My Energy │ -│ │ │ │ │ │ 1 Sne │ -└────────────────┴─────────────────┴───────┴────────────┴──────────┴──────────────────┘ - - -```` - -The Behavioural Analysis menu also has the ability to scan for sentiment on multiple platforms including Twitter and Google -with sentiment, -infer -and queries. -```` -(🦋) /stocks/ba/ $ sentiment -c -From 2022-05-23 retrieving 360 tweets (15 tweets/hour) -From 2022-05-22 retrieving 360 tweets (15 tweets/hour) -From 2022-05-21 retrieving 360 tweets (15 tweets/hour) -From 2022-05-20 retrieving 360 tweets (15 tweets/hour) -From 2022-05-19 retrieving 360 tweets (15 tweets/hour) -From 2022-05-18 retrieving 360 tweets (15 tweets/hour) -From 2022-05-17 retrieving 360 tweets (15 tweets/hour) - -(🦋) /stocks/ba/ $ infer -From: 2022-05-23 18:21:12 -To: 2022-05-23 18:30:36 -100 tweets were analyzed. -Frequency of approx 1 tweet every 6 seconds. -The summed compound sentiment of GME is: 18.42 -The average compound sentiment of GME is: 0.18 -Of the last 100 tweets, 41.00 % had a higher positive sentiment -Of the last 100 tweets, 19.00 % had a higher negative sentiment - -(🦋) /stocks/ba/ $ queries - - Top GME's related queries -┏━━━━━━━━━━━━━━━━━┳━━━━━━━┓ -┃ query ┃ value ┃ -┡━━━━━━━━━━━━━━━━━╇━━━━━━━┩ -│ stock gme │ 100% │ -├─────────────────┼───────┤ -│ amc │ 29% │ -├─────────────────┼───────┤ -│ amc stock │ 24% │ -├─────────────────┼───────┤ -│ gme price │ 23% │ -├─────────────────┼───────┤ -│ gme stock price │ 14% │ -├─────────────────┼───────┤ -│ gme share │ 7% │ -├─────────────────┼───────┤ -│ gme share price │ 6% │ -├─────────────────┼───────┤ -│ reddit │ 6% │ -├─────────────────┼───────┤ -│ gme reddit │ 6% │ -├─────────────────┼───────┤ -│ bb │ 5% │ -└─────────────────┴───────┘ -```` -The sentiment -command returns the following: - -sentiment - -More advanced techniques can also be applied by using tools from Sentiment Investor -that analyzes millions of messages to show the most talked about stocks by hour. This has the ability to show the -most trending tickers with trend and historical sentiment data with -hist. - -```` -(🦋) /stocks/ba/ $ trend - -Most trending stocks at 2022-05-23 00:00 -┏━━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━┳━━━━━━┓ -┃ TICKER ┃ TOTAL ┃ LIKES ┃ RHI ┃ AHI ┃ -┡━━━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━╇━━━━━━┩ -│ SPY │ 89.00 │ 43.00 │ 1.22 │ 1.26 │ -├────────┼───────┼────────┼──────┼──────┤ -│ AMC │ 80.00 │ 155.00 │ 1.07 │ 1.18 │ -├────────┼───────┼────────┼──────┼──────┤ -│ TSLA │ 80.00 │ 78.00 │ 1.07 │ 1.34 │ -├────────┼───────┼────────┼──────┼──────┤ -│ BTC │ 62.00 │ 74.00 │ 1.14 │ 1.09 │ -├────────┼───────┼────────┼──────┼──────┤ -│ NIO │ 50.00 │ 14.00 │ 1.17 │ 1.15 │ -├────────┼───────┼────────┼──────┼──────┤ -│ AAPL │ 28.00 │ 4.00 │ 0.66 │ 0.75 │ -├────────┼───────┼────────┼──────┼──────┤ -│ AMD │ 26.00 │ 59.00 │ 0.57 │ 0.61 │ -├────────┼───────┼────────┼──────┼──────┤ -│ NVAX │ 13.00 │ 4.00 │ 0.47 │ 0.40 │ -├────────┼───────┼────────┼──────┼──────┤ -│ NVDA │ 12.00 │ 11.00 │ 0.45 │ 0.47 │ -├────────┼───────┼────────┼──────┼──────┤ -│ DIS │ 12.00 │ 1.00 │ 0.69 │ 0.44 │ -└────────┴───────┴────────┴──────┴──────┘ - -(🦋) /stocks/ba/ $ hist -s 2022-05-01 -```` - -hist - -Inspired by the Twitter user, @cramertracker, the final -two features follow (CNBC Talking Head) Jim Cramer stock recommendations as satire that rings true. - -```` -(🦋) /stocks/ba/ $ jcdr - - Jim Cramer Recommendations for 05/19 -┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ -┃ Company ┃ Symbol ┃ Price ┃ LastPrice ┃ Change (%) ┃ Recommendation ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ -│ Apple │ AAPL │ 137.35 │ 142.38 │ 3.53 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ AeroVironment │ AVAV │ 85.35 │ 85.49 │ 0.16 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Alibaba │ BABA │ 87.69 │ 87.04 │ -0.75 │ Sell │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Constellation Energy │ CEG │ 57.23 │ 56.92 │ -0.54 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Costco │ COST │ 422.93 │ 427.93 │ 1.17 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ DraftKings │ DKNG │ 14.15 │ 13.89 │ -1.87 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Lockheed Martin │ LMT │ 425.62 │ 433.71 │ 1.87 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Cloudflare │ NET │ 58.00 │ 56.92 │ -1.90 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Northrop Grumman │ NOC │ 448.50 │ 456.57 │ 1.77 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ NVIDIA │ NVDA │ 171.24 │ 168.29 │ -1.75 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Palo Alto Networks │ PANW │ 436.37 │ 502.69 │ 13.19 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ PLBY Group │ PLBY │ 9.06 │ 9.26 │ 2.16 │ Sell │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ Raytheon Technologies │ RTX │ 90.25 │ 91.87 │ 1.76 │ Buy │ -├────────────────────────┼────────┼────────┼───────────┼────────────┼────────────────┤ -│ SoFi Technologies │ SOFI │ 7.75 │ 7.30 │ -6.16 │ Buy │ -└────────────────────────┴────────┴────────┴───────────┴────────────┴────────────────┘ -```` -Jim Cramer historical recommendations for $DKNG diff --git a/website/content/terminal/ba/bullbear/_index.md b/website/content/terminal/ba/bullbear/_index.md deleted file mode 100644 index 24787565b21..00000000000 --- a/website/content/terminal/ba/bullbear/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: bullbear [-h] -``` - -Shows the bull/bear sentiment for the loaded ticker based on last 30 messages on the board. Also prints the watchlist_count. Source: [Stocktwits](https://stocktwits.com) - -``` -optional arguments: - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:07 (🦋) /stocks/ba/ $ bullbear -Watchlist count: 381324 - -Last 16 sentiment messages: -Bullish 87.5% -Bearish 12.5% -``` diff --git a/website/content/terminal/ba/getdd/_index.md b/website/content/terminal/ba/getdd/_index.md deleted file mode 100644 index 62e452b85d5..00000000000 --- a/website/content/terminal/ba/getdd/_index.md +++ /dev/null @@ -1,34 +0,0 @@ -``` -usage: getdd [-l LIMIT] [-d DAYS] [-a] [-h] -``` - -Print top stock's due diligence from other users. [Source: Reddit] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of posts to retrieve. - -d DAYS, --days DAYS number of prior days to look for. - -a, --all search through all flairs (apart from Yolo and Meme), otherwise we focus on specific flairs: DD, technical analysis, Catalyst, News, Advice, Chart - -h, --help show this help message -``` - -Example: - -``` -2022 Feb 16, 10:18 (🦋) /stocks/ba/ $ getdd -d 50 -2022-02-15 17:51:11 - $ATVI free money even if MSFT deal falls through. -https://old.reddit.com/r/wallstreetbets/comments/st8s1i/atvi_free_money_even_if_msft_deal_falls_through/ - -2022-02-10 05:10:31 - PTON: The safest investment you can make -https://old.reddit.com/r/stocks/comments/soycgc/pton_the_safest_investment_you_can_make/ - -2022-02-09 01:47:49 - Why only retards are selling the (near) bottom on $FB and are about to get metacucked 🙊 -https://old.reddit.com/r/wallstreetbets/comments/so19al/why_only_retards_are_selling_the_near_bottom_on/) - -2022-02-08 02:53:43 - If You Cannot Beat Them, Join Them - Congress Trading & Retail Traders -https://old.reddit.com/r/wallstreetbets/comments/sn90qs/if_you_cannot_beat_them_join_them_congress/ - -2022-02-03 20:01:06 - Thoughts on only buying large market cap stocks (Top 100, 100 billion market cap+, and significant index weighting)? -https://old.reddit.com/r/stocks/comments/sjsqhu/thoughts_on_only_buying_large_market_cap_stocks/ -``` diff --git a/website/content/terminal/ba/headlines/_index.md b/website/content/terminal/ba/headlines/_index.md deleted file mode 100644 index 307d004d492..00000000000 --- a/website/content/terminal/ba/headlines/_index.md +++ /dev/null @@ -1,46 +0,0 @@ -``` -usage: headlines [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -FinBrain collects the news headlines from 15+ major financial news sources on a daily basis and analyzes them to generate sentiment scores for more than 4500 US stocks.FinBrain Technologies develops deep learning algorithms for financial analysis and prediction, which -currently serves traders from more than 150 countries all around the world. [Source: ] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 16, 10:20 (🦋) /stocks/ba/ $ headlines - -FinBrain Ticker Sentiment -┏━━━━━━━━━━━━┳━━━━━━━━━━━┓ -┃ ┃ Sentiment ┃ -┡━━━━━━━━━━━━╇━━━━━━━━━━━┩ -│ 2022-02-03 │ 0.107 │ -├────────────┼───────────┤ -│ 2022-02-04 │ 0.354 │ -├────────────┼───────────┤ -│ 2022-02-07 │ 0.129 │ -├────────────┼───────────┤ -│ 2022-02-08 │ 0.173 │ -├────────────┼───────────┤ -│ 2022-02-09 │ 0.187 │ -├────────────┼───────────┤ -│ 2022-02-10 │ 0.161 │ -├────────────┼───────────┤ -│ 2022-02-11 │ 0.311 │ -├────────────┼───────────┤ -│ 2022-02-14 │ 0.174 │ -├────────────┼───────────┤ -│ 2022-02-15 │ 0.275 │ -├────────────┼───────────┤ -│ 2022-02-16 │ 0.329 │ -└────────────┴───────────┘ -``` - -![headlines](https://user-images.githubusercontent.com/46355364/154296211-b0380095-5f84-4bae-955e-9ef96c9704af.png) diff --git a/website/content/terminal/ba/hist/_index.md b/website/content/terminal/ba/hist/_index.md deleted file mode 100644 index 5a48c102bef..00000000000 --- a/website/content/terminal/ba/hist/_index.md +++ /dev/null @@ -1,48 +0,0 @@ -``` -usage: hist [-s START] [-e END] [-n NUMBER] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw] [-l LIMIT] -``` - -Plot historical sentiment data of RHI and AHI by hour. Source: [Sentiment Investor] - -AHI (Absolute Hype Index) ---- - -AHI is a measure of how much people are talking about a stock on social media. -It is calculated by dividing the total number of mentions for the chosen stock on a social network by the mean number of mentions any stock receives on that social medium. - -RHI (Relative Hype Index) ---- - -RHI is a measure of whether people are talking about a stock more or less than usual, calculated by dividing the mean AHI for the past day by the mean AHI for for the past week for that stock. - -``` -optional arguments: - -s START, --start START - The starting date (format YYYY-MM-DD) of the stock. Default: 7 days ago (default: 2022-02-09) - -e END, --end END The ending date (format YYYY-MM-DD) of the stock. Default: today (default: 2022-02-16) - -n NUMBER, --number NUMBER - Number of results returned from Sentiment Investor. Default: 100 (default: 100) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` - -Example: - -``` -2022 Feb 16, 10:23 (🦋) /stocks/ba/ $ load TSLA - -Loading Daily TSLA stock with starting period 2019-02-11 for analysis. - -Datetime: 2022 Feb 16 10:23 -Timezone: America/New_York -Currency: USD -Market: CLOSED - -2022 Feb 16, 10:23 (🦋) /stocks/ba/ $ hist -``` - -![hist](https://user-images.githubusercontent.com/46355364/154296923-af6a4b2d-ab16-44d1-8270-e5926f4bac16.png) diff --git a/website/content/terminal/ba/infer/_index.md b/website/content/terminal/ba/infer/_index.md deleted file mode 100644 index 64b4d80df48..00000000000 --- a/website/content/terminal/ba/infer/_index.md +++ /dev/null @@ -1,29 +0,0 @@ -``` -usage: infer [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` - -Displays a quick sentiment inference from last tweets that contain the ticker. This model splits the text into character-level tokens and uses vader -sentiment analysis. Source: - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of latest tweets to infer from. (default: 100) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 19, 13:05 (🦋) /stocks/ba/ $ infer -From: 2022-02-19 17:08:20 -To: 2022-02-19 18:04:18 -100 tweets were analyzed. -Frequency of approx 1 tweet every 34 seconds. -The summed compound sentiment of AAPL is: 13.2 -The average compound sentiment of AAPL is: 0.13 -Of the last 100 tweets, 45.00 % had a higher positive sentiment -Of the last 100 tweets, 18.00 % had a higher negative sentiment -``` diff --git a/website/content/terminal/ba/interest/_index.md b/website/content/terminal/ba/interest/_index.md deleted file mode 100644 index 5657c1d4204..00000000000 --- a/website/content/terminal/ba/interest/_index.md +++ /dev/null @@ -1,19 +0,0 @@ -```text -usage: interest [-s START] [-w WORDS] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Plot interest over time of words/sentences versus stock price. [Source: Google] - -``` -optional arguments: - -s START, --start START - starting date (format YYYY-MM-DD) of interest (default: 2020-03-08) - -w WORDS, --words WORDS - Select multiple sentences/words separated by commas. E.g. COVID,WW3,NFT (default: None) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![interest](https://user-images.githubusercontent.com/25267873/157575723-23c55e4e-9e87-4647-b8fa-8ed9643f471f.png) - diff --git a/website/content/terminal/ba/mentions/_index.md b/website/content/terminal/ba/mentions/_index.md deleted file mode 100644 index 565610186c4..00000000000 --- a/website/content/terminal/ba/mentions/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -usage: mentions [-s START] [-h] -``` - -Uses Google metrics to plot ticker mentions over time. - -``` -optional arguments: - -s START, --start START - starting date (format YYYY-MM-DD) from when we are interested in stock's mentions. (default: 2020-09-15 00:00:00) - -h, --help show this help message (default: False) -``` - -Feature Screenshot - mentions diff --git a/website/content/terminal/ba/messages/_index.md b/website/content/terminal/ba/messages/_index.md deleted file mode 100644 index 6a87775faf9..00000000000 --- a/website/content/terminal/ba/messages/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: messages [-t TICKER] [-l N_LIM] [-h] -``` - -Show the last posts for a ticker. Source: https://Stocktwits.com - -``` -optional arguments: - -t TICKER, --ticker TICKER - get board messages from this ticker. (default: AAPL) - -l N_LIM, --limit N_LIM - limit messages shown. (default: 30) - -h, --help show this help message (default: False) -``` - -Feature Screenshot - Messages diff --git a/website/content/terminal/ba/popular/_index.md b/website/content/terminal/ba/popular/_index.md deleted file mode 100644 index 6ee0fc2c7ab..00000000000 --- a/website/content/terminal/ba/popular/_index.md +++ /dev/null @@ -1,64 +0,0 @@ -``` -usage: popular [-l LIMIT] [-n NUM] [-s S_SUBREDDIT] [-h] -``` - -The current popular tickers on [Reddit](https://Reddit.com) - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of top tickers to retrieve (default: 10) - -n NUM, --num NUM number of posts retrieved per sub reddit. (default: 50) - -s S_SUBREDDIT, --sub S_SUBREDDIT - subreddits to look for tickers, e.g. pennystocks,stocks. Default: pennystocks, RobinHoodPennyStocks, Daytrading, StockMarket, stocks, investing, wallstreetbets (default: None) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:31 (🦋) /stocks/ba/ $ popular -Search for latest tickers for 50 'Superstonk' posts - 217 potential tickers found. -Search for latest tickers for 50 'pennystocks' posts - 107 potential tickers found. -Search for latest tickers for 50 'RobinHoodPennyStocks' posts - 7 potential tickers found. -Search for latest tickers for 50 'Daytrading' posts - 56 potential tickers found. -Search for latest tickers for 50 'StockMarket' posts - 77 potential tickers found. -Search for latest tickers for 50 'stocks' posts - 97 potential tickers found. -Search for latest tickers for 50 'investing' posts - 37 potential tickers found. -Search for latest tickers for 50 'wallstreetbets' posts - 31 potential tickers found. - - The following TOP 10 tickers have been mentioned: -┏━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Mentions ┃ Ticker ┃ Company ┃ Sector ┃ Price ┃ Change ┃ Perf Month ┃ URL ┃ -┡━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ 57 │ GME │ GameStop Corp. │ Consumer Cyclical │ 129.34 │ 2.52% │ 8.15% │ https://finviz.com/quote.ashx?t=GME │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 40 │ POST │ Post Holdings, Inc. │ Consumer Defensive │ 109.14 │ -0.18% │ -7.18% │ https://finviz.com/quote.ashx?t=POST │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 10 │ SPY │ Financial │ Exchange Traded Fund │ 442.48 │ -0.81% │ -4.01% │ https://finviz.com/quote.ashx?t=SPY │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 8 │ QQQ │ Financial │ Exchange Traded Fund │ 351.15 │ -1.40% │ -6.28% │ https://finviz.com/quote.ashx?t=QQQ │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 6 │ VTI │ Vanguard Index Funds - Vanguard Total Stock Market ETF │ Financial │ 224.13 │ -0.86% │ -3.81% │ https://finviz.com/quote.ashx?t=VTI │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 5 │ AAPL │ Apple Inc. │ Technology │ 170.53 │ -1.31% │ -0.16% │ https://finviz.com/quote.ashx?t=AAPL │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 5 │ ESG │ Financial │ Exchange Traded Fund │ 107.88 │ -0.65% │ -4.64% │ https://finviz.com/quote.ashx?t=ESG │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 5 │ SHOP │ Shopify Inc. │ Technology │ 728.52 │ -18.10% │ -19.35% │ https://finviz.com/quote.ashx?t=SHOP │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 4 │ AMD │ Advanced Micro Devices, Inc. │ Technology │ 117.21 │ -3.51% │ -11.26% │ https://finviz.com/quote.ashx?t=AMD │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 4 │ NVDA │ NVIDIA Corporation │ Technology │ 258.61 │ -2.39% │ -1.66% │ https://finviz.com/quote.ashx?t=NVDA │ -├──────────┼────────┼────────────────────────────────────────────────────────┼──────────────────────┼────────┼─────────┼────────────┼──────────────────────────────────────┤ -│ 3 │ RESN │ Resonant Inc. │ Technology │ 4.35 │ -1.01% │ 185.06% │ https://finviz.com/quote.ashx?t=RESN │ -└──────────┴────────┴────────────────────────────────────────────────────────┴──────────────────────┴────────┴─────────┴────────────┴──────────────────────────────────────┘ -``` diff --git a/website/content/terminal/ba/queries/_index.md b/website/content/terminal/ba/queries/_index.md deleted file mode 100644 index e9a41ba9208..00000000000 --- a/website/content/terminal/ba/queries/_index.md +++ /dev/null @@ -1,44 +0,0 @@ -``` -usage: queries [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Print top related queries with this stock's query. [Source: Google] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of top related queries to print. (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 16, 10:38 (🦋) /stocks/ba/ $ queries - Top AMZN's related queries -┏━━━━━━━━━━━━━━━━━━┳━━━━━━━┓ -┃ query ┃ value ┃ -┡━━━━━━━━━━━━━━━━━━╇━━━━━━━┩ -│ amzn stock │ 100% │ -├──────────────────┼───────┤ -│ amzn price │ 31% │ -├──────────────────┼───────┤ -│ amzn stock price │ 26% │ -├──────────────────┼───────┤ -│ aapl │ 25% │ -├──────────────────┼───────┤ -│ tsla │ 18% │ -├──────────────────┼───────┤ -│ aapl stock │ 15% │ -├──────────────────┼───────┤ -│ fb stock │ 12% │ -├──────────────────┼───────┤ -│ msft │ 12% │ -├──────────────────┼───────┤ -│ tsla stock │ 12% │ -├──────────────────┼───────┤ -│ goog │ 9% │ -└──────────────────┴───────┘ -``` diff --git a/website/content/terminal/ba/redditsent/_index.md b/website/content/terminal/ba/redditsent/_index.md deleted file mode 100644 index 7fc30be5545..00000000000 --- a/website/content/terminal/ba/redditsent/_index.md +++ /dev/null @@ -1,36 +0,0 @@ -```txt -usage: redditsent [-s {relevance,hot,top,new,comments}] [-c COMPANY] [--subreddits SUBREDDITS] [-l LIMIT] - [-t {hour,day,week,month,year,all}] [-f] [-g] [-h] [--export EXPORT] -``` - -Determine general Reddit sentiment about a ticker. [Source: Reddit] - -```txt -optional arguments: - -s {relevance,hot,top,new,comments}, --sort {relevance,hot,top,new,comments} - search sorting type - -c COMPANY, --company COMPANY - explicit name of company to search for, will override ticker symbol - --subreddits SUBREDDITS - comma-separated list of subreddits to search - -l LIMIT, --limit LIMIT - how many posts to gather from each subreddit - -t {hour,day,week,month,year,all}, --time {hour,day,week,month,year,all} - time period to get posts from -- all, year, month, week, or day; defaults to week - --full enable comprehensive search - -g, --graphic display graphic - -d, --display Print table of sentiment values - -h, --help show this help message - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg -``` - -Example: - -```txt -redditsent -c Google --subreddits tech,stocks --full -Searching through subreddits for posts. -100%|█████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00, 1.84it/s] -Analyzing each post... -100%|███████████████████████████████████████████████████████████████████████| 10/10 [00:04<00:00, 2.07it/s] -Sentiment Analysis for Google is 0.7552 -``` diff --git a/website/content/terminal/ba/regions/_index.md b/website/content/terminal/ba/regions/_index.md deleted file mode 100644 index 6508eb4b02f..00000000000 --- a/website/content/terminal/ba/regions/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: regions [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Plot bars of regions based on stock's interest. [Source: Google] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of regions to plot that show highest interest. (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![regions](https://user-images.githubusercontent.com/46355364/154300386-f6b1924c-8f73-44c5-bbae-52ef33d88061.png) diff --git a/website/content/terminal/ba/rise/_index.md b/website/content/terminal/ba/rise/_index.md deleted file mode 100644 index b769502a9fb..00000000000 --- a/website/content/terminal/ba/rise/_index.md +++ /dev/null @@ -1,44 +0,0 @@ -``` -usage: rise [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Print top rising related queries with this stock's query. [Source: Google] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of top rising related queries to print. (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 16, 10:40 (🦋) /stocks/ba/ $ rise -Top rising AAPL's related queries -┏━━━━━━━━━━━━━━━━━┳━━━━━━━━┓ -┃ query ┃ value ┃ -┡━━━━━━━━━━━━━━━━━╇━━━━━━━━┩ -│ nio stock │ 227850 │ -├─────────────────┼────────┤ -│ nio │ 183950 │ -├─────────────────┼────────┤ -│ pltr │ 103100 │ -├─────────────────┼────────┤ -│ pltr stock │ 82800 │ -├─────────────────┼────────┤ -│ mrna stock │ 75050 │ -├─────────────────┼────────┤ -│ zm stock │ 67850 │ -├─────────────────┼────────┤ -│ nio stock price │ 64000 │ -├─────────────────┼────────┤ -│ zm │ 63500 │ -├─────────────────┼────────┤ -│ bynd │ 61450 │ -├─────────────────┼────────┤ -│ bynd stock │ 47450 │ -└─────────────────┴────────┘ -``` diff --git a/website/content/terminal/ba/sentiment/_index.md b/website/content/terminal/ba/sentiment/_index.md deleted file mode 100644 index 19d569330b4..00000000000 --- a/website/content/terminal/ba/sentiment/_index.md +++ /dev/null @@ -1,31 +0,0 @@ -``` -usage: sentiment [-l LIMIT] [-d N_DAYS_PAST] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Plot in-depth sentiment predicted from tweets from last days that contain pre-defined ticker. [Source: Twitter] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - limit of tweets to extract per hour. (default: 15) - -d N_DAYS_PAST, --days N_DAYS_PAST - number of days in the past to extract tweets. (default: 6) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 19, 13:16 (🦋) /stocks/ba/ $ sentiment -From 2022-02-19 retrieving 360 tweets (15 tweets/hour) -From 2022-02-18 retrieving 360 tweets (15 tweets/hour) -From 2022-02-17 retrieving 360 tweets (15 tweets/hour) -From 2022-02-16 retrieving 360 tweets (15 tweets/hour) -From 2022-02-15 retrieving 360 tweets (15 tweets/hour) -From 2022-02-14 retrieving 360 tweets (15 tweets/hour) -From 2022-02-13 retrieving 360 tweets (15 tweets/hour) -``` - -Feature Screenshot - sentiment diff --git a/website/content/terminal/ba/snews/_index.md b/website/content/terminal/ba/snews/_index.md deleted file mode 100644 index 5222676f213..00000000000 --- a/website/content/terminal/ba/snews/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -```text -usage: snews [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Display stock price and headlines sentiment using VADER model over time. [Source: Finnhub] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![snews](https://user-images.githubusercontent.com/25267873/156584514-33c2cd52-4763-43cd-8a53-4118b8615450.png) diff --git a/website/content/terminal/ba/spac/_index.md b/website/content/terminal/ba/spac/_index.md deleted file mode 100644 index 1eb2d209a4d..00000000000 --- a/website/content/terminal/ba/spac/_index.md +++ /dev/null @@ -1,35 +0,0 @@ -``` -usage: spac [-l N_LIMIT] [-h] -``` - -Show other users SPACs announcement. [Source: Reddit] - -``` -optional arguments: - -l N_LIMIT, --limit N_LIMIT - limit of posts with SPACs retrieved. (default: 5) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:42 (🦋) /stocks/ba/ $ spac -2022-02-15 22:31:56 - 2020 vs 2021 -https://old.reddit.com/r/wallstreetbets/comments/stfcdu/2020_vs_2021/ - -2022-02-15 20:05:35 - Calls on the “W” this week should print…Wynn and Walmart calls baby.. -https://old.reddit.com/r/wallstreetbets/comments/stbz5h/calls_on_the_w_this_week_should_printwynn_and/ - -2022-02-13 18:09:23 - APEX Clearing, Peak 6, a power couple, poker and a failed SPAC. -https://old.reddit.com/r/Superstonk/comments/srovzk/apex_clearing_peak_6_a_power_couple_poker_and_a/ - -2022-02-11 19:30:21 - SPAC founders DO get 20% of hundreds of millions in stock for their 25k investment. And the par value for shares is so low, some fuckery can be done! -https://old.reddit.com/r/Superstonk/comments/sq7hcz/spac_founders_do_get_20_of_hundreds_of_millions/ - -2022-02-11 15:16:40 - In Q4 Citadel Advisors LLC bought 6.39% of FTCV - the SPAC that eToro will merge with in order to go public. -https://old.reddit.com/r/Superstonk/comments/sq1qv8/in_q4_citadel_advisors_llc_bought_639_of_ftcv_the/ - -The following stock tickers have been mentioned more than once across the previous SPACs: -3 GME, 2 POST, 2 FTCV -``` diff --git a/website/content/terminal/ba/spacc/_index.md b/website/content/terminal/ba/spacc/_index.md deleted file mode 100644 index 7ad2c873d13..00000000000 --- a/website/content/terminal/ba/spacc/_index.md +++ /dev/null @@ -1,33 +0,0 @@ -``` -usage: spacc [-l N_LIMIT] [-p] [-h] -``` - -Print other users SPACs announcements under subreddit 'SPACs'. [Source: Reddit] - -``` -optional arguments: - -l N_LIMIT, --limit N_LIMIT - limit of posts with SPACs retrieved (default: 10) - -p, --popular popular flag, if true the posts retrieved are based on score rather than time (default: False) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:43 (🦋) /stocks/ba/ $ spacc -2022-02-16 11:35:01 - I scraped r/SPACs for the top ticker mentions in the last 24H. Here are the results (Wednesday February 16, 2022) -https://old.reddit.com/r/SPACs/comments/sttsnl/i_scraped_rspacs_for_the_top_ticker_mentions_in/ - -2022-02-16 09:26:19 - PPGH Gogoro confirms that it is expected to list overseas in the first quarter of this year -https://old.reddit.com/r/SPACs/comments/strs9m/ppgh_gogoro_confirms_that_it_is_expected_to_list/ - -2022-02-16 08:00:16 - Announcements x Daily Discussion for Wednesday, February 16, 2022 -https://old.reddit.com/r/SPACs/comments/stqhci/announcements_x_daily_discussion_for_wednesday/ - -2022-02-15 15:10:40 - Did IBKR resolve my SPAC redemptions wrongly? -https://old.reddit.com/r/SPACs/comments/st52xb/did_ibkr_resolve_my_spac_redemptions_wrongly/ - -The following stock tickers have been mentioned more than once across the previous SPACs: -8 CCAC, 6 IBKR, 3 CLBT, 3 SLDP, 2 VIAC, 2 CND -``` diff --git a/website/content/terminal/ba/stalker/_index.md b/website/content/terminal/ba/stalker/_index.md deleted file mode 100644 index d77a311cd3e..00000000000 --- a/website/content/terminal/ba/stalker/_index.md +++ /dev/null @@ -1,194 +0,0 @@ -``` -usage: stalker [-u S_USER] [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` - -Print up to the last 30 messages of a user. [Source: Stocktwits] - -``` -optional arguments: - -u S_USER, --user S_USER - username. (default: Newsfilter) - -l LIMIT, --limit LIMIT - limit messages shown. (default: 30) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 16, 10:44 (🦋) /stocks/ba/ $ stalker - ------------------------------------------------------------------------------- -2022-02-16 15:44:24 -$APSI Form 8-K: On February 14, 2022, Aqua Power Systems acquired a digital asset commonly referred to as “land” within the Sandbox metaverse. The Sandbox is a decentralized, community-driven gaming e.. - -https://newsfilter.io/a/077c80e3595e23f3a9adf089f24220d1 - ------------------------------------------------------------------------------- -2022-02-16 15:44:04 -$ACT $GNW Increase in Long-Term Care Costs in Wisconsin Mirror National Trends; Labor Market Shifts and Continued COVID-19 Pressure Affect Future Costs - -https://newsfilter.io/a/acd6951639a15b873ff29dfe333c495e - ------------------------------------------------------------------------------- -2022-02-16 15:43:44 -$SYBT 2,571 shares acquired by Croce Michael (Executive Vice President), reported in a new form 4 filed with the SEC - -https://newsfilter.io/a/a9b224c7a3427af2d28a7d5482c2501a - ------------------------------------------------------------------------------- -2022-02-16 15:43:30 -Thinking about trading options or stock in Roblox, Meta, Block, Trade Desk, or Devon Energy? $DVN $FB $RBLX $SQ $TTD - -https://newsfilter.io/a/b7000be8e8b35ededc2abe4c246cd19a - ------------------------------------------------------------------------------- -2022-02-16 15:43:08 -$GRRB $338,254.00 of shares acquired by Schwiers James B (President & COO), reported in a new form 4 filed with the SEC - -https://newsfilter.io/a/327d924ef4c507727b08b5f4989b1bd3 - ------------------------------------------------------------------------------- -2022-02-16 15:42:07 -$ARLP 794 shares acquired by Cantrell Brian L (Senior VP and CFO), reported in a new form 4 filed with the SEC - -https://newsfilter.io/a/0310350cc25f4d15959334893bd916dc - ------------------------------------------------------------------------------- -2022-02-16 15:42:01 -$ACT $GNW Increase in Long-Term Care Costs in Texas Mirror National Trends; Labor Market Shifts and Continued COVID-19 Pressure Affect Future Costs - -https://newsfilter.io/a/e86d458d9e48cacd03bb0fc4ed9031aa - ------------------------------------------------------------------------------- -2022-02-16 15:41:26 -$PDLB Form 3/A (initial statement of beneficial ownership of securities) filed with the SEC - -https://newsfilter.io/a/ec79f2f0558259465e6ed6be37208891 - ------------------------------------------------------------------------------- -2022-02-16 15:40:54 -$PDLB filed 2 new form 3/A (initial statement of beneficial ownership of securities) with the SEC in the last 2 minutes. - -1. filing: https://newsfilter.io/a/d1c358598d5b7d9917f135004753dd3c -2. filing: https://newsfilter.io/a/e12fd3d79f67fe97b0349ebcec497594 - ------------------------------------------------------------------------------- -2022-02-16 15:40:42 -$ZNTE Form DEFA14A (additional definitive proxy soliciting materials and rule 14(a)(12) material) filed with the SEC - -https://newsfilter.io/a/81a6d11a7d635b22d0b63d97724877ba - ------------------------------------------------------------------------------- -2022-02-16 15:40:08 -Thinking about buying stock in Team, ViacomCBS, Kaival Brands, Ericsson, or Barrick Gold? $ERIC $GOLD $KAVL $TISI $VIAC - -https://newsfilter.io/a/587588716a671414014bf779eab21059 - ------------------------------------------------------------------------------- -2022-02-16 15:40:07 -Thinking about buying stock in Vinco Ventures, SoFi Technologies, Ford, Vonage, or BP? $BBIG $BP $F $SOFI $VG - -https://newsfilter.io/a/385fbe647e5e9ef2c9328bf3a9fbc9b6 - ------------------------------------------------------------------------------- -2022-02-16 15:40:04 -$ACT $GNW Increase in Long-Term Care Costs in Tennessee Mirror National Trends; Labor Market Shifts and Continued COVID-19 Pressure Affect Future Costs - -https://newsfilter.io/a/f0544ef5b76170ad50bc8359bac658e2 - ------------------------------------------------------------------------------- -2022-02-16 15:39:54 -$FTRP Field Trip Health Posts 330% YoY Increase In Q3 Revenue - -https://newsfilter.io/a/e2118ae4f28181fa49047b865af0ef41 - ------------------------------------------------------------------------------- -2022-02-16 15:39:54 -$KHC Kraft Heinz Stock Gains On Q4 Earnings Beat - -https://newsfilter.io/a/4a57861cd3455555baa7cb88705225c5 - ------------------------------------------------------------------------------- -2022-02-16 15:39:54 -$VIAC $CMCSA ViacomCBS Rebrands As Paramount: What You Need To Know - -https://newsfilter.io/a/1dee0b7add2966c50b08a6f213e69a4d - ------------------------------------------------------------------------------- -2022-02-16 15:38:56 -$ABNB Truist Securities analyst Naved Khan maintains Airbnb with a Hold and raises the price target from $180 to $190. - ------------------------------------------------------------------------------- -2022-02-16 15:38:01 -$ACT $GNW Change in Long-Term Care Costs in South Dakota Mixed; Labor Market Shifts and Continued COVID-19 Pressure Affect Future Costs - -https://newsfilter.io/a/157e15e71e3872ce73d3401098f3f855 - ------------------------------------------------------------------------------- -2022-02-16 15:36:04 -$ACT $GNW Increase in Long-Term Care Costs in Oklahoma Mirror National Trends; Labor Market Shifts and Continued COVID-19 Pressure Affect Future Costs - -https://newsfilter.io/a/ad6f8e78a059110c0837d6eef45c8955 - ------------------------------------------------------------------------------- -2022-02-16 15:35:42 -$ZNTE Form 8-K: Regulation FD Disclosure. As previously announced, Zanite Acquisition Corp. entered into a Business Combination Agreement with Embraer S.A. Embraer Aircraft Holding and EVE UAM, dated .. - -https://newsfilter.io/a/915ff8502b8a5c00b4664293ab6806ab - ------------------------------------------------------------------------------- -2022-02-16 15:35:30 -$HON Honeywell International was awarded a new government contract "Repair of NIIN 014601334", total contract value: $4,959.84 - -https://newsfilter.io/a/36789929e1dafa14b062a20b211e6aca - ------------------------------------------------------------------------------- -2022-02-16 15:35:02 -$TCFC $V Webinar: Bringing Credit Issuing In-House in 2022 - -https://newsfilter.io/a/5dd17c223e94a8dc364e899a0eb95bb2 - ------------------------------------------------------------------------------- -2022-02-16 15:34:51 -$NRUC Form 424B3 (prospectus ) filed with the SEC - -https://newsfilter.io/a/fe2b5bf1ac582d745f6fadb886126695 - ------------------------------------------------------------------------------- -2022-02-16 15:34:27 -$ZNTE Form DEFA14A (additional definitive proxy soliciting materials and rule 14(a)(12) material) filed with the SEC https://newsfilter.io/a/c0d62bba8d60e10984b83bd681c3a455 - ------------------------------------------------------------------------------- -2022-02-16 15:34:06 -$NGG NIAGARA MOHAWK POWER DECLARES PREFERRED STOCK DIVIDENDS - -https://newsfilter.io/a/60b80cf78256233915c4a4ecacfb2626 - ------------------------------------------------------------------------------- -2022-02-16 15:34:05 -$PM Philip Morris International to Publish a Video Presentation at the 2022 Consumer Analyst Group of New York Virtual Conference - -https://newsfilter.io/a/adeaf7a6816bdc25b346f15c098f90cb - ------------------------------------------------------------------------------- -2022-02-16 15:34:01 -$ACT $GNW Change in Long-Term Care Costs in Nebraska Mixed; Labor Market Shifts and Continued COVID-19 Pressure Affect Future Costs - -https://newsfilter.io/a/f640abccc455086ae4b43f43ad4254fb - ------------------------------------------------------------------------------- -2022-02-16 15:33:07 -$PDLB Form 3/A (initial statement of beneficial ownership of securities) filed with the SEC - -https://newsfilter.io/a/bea839aee3a4f30dc384c7a90e21c701 - ------------------------------------------------------------------------------- -2022-02-16 15:33:06 -$ALKT Texans Credit Union Partners with Alkami to Amplify Its Digital Banking Experience - -https://newsfilter.io/a/198d92eb6e1c481b825b830659af8698 - -``` diff --git a/website/content/terminal/ba/stats/_index.md b/website/content/terminal/ba/stats/_index.md deleted file mode 100644 index 15b8d6c15db..00000000000 --- a/website/content/terminal/ba/stats/_index.md +++ /dev/null @@ -1,12 +0,0 @@ -``` -usage: stats [-h] -``` - -Sentiment stats which displays buzz, news score, articles last week, articles weekly average, bullish vs bearish percentages, sector average bullish percentage, and sector average news score. [Source: https://finnhub.io] - -``` -optional arguments: - -h, --help show this help message (default: False) -``` - -Captura de ecrã 2021-05-03, às 15 26 09 diff --git a/website/content/terminal/ba/trend/_index.md b/website/content/terminal/ba/trend/_index.md deleted file mode 100644 index 90ebbf03cd6..00000000000 --- a/website/content/terminal/ba/trend/_index.md +++ /dev/null @@ -1,50 +0,0 @@ -``` -usage: trend [-s START] [-hr HOUR] [-n NUMBER] [-h] [--export {csv,json,xlsx}] [-l LIMIT] -``` - -Show most talked about tickers within the last one hour. Source: [Sentiment Investor] - -``` -optional arguments: - -s START, --start START - The starting date (format YYYY-MM-DD). Default: Today (default: 2022-02-16) - -hr HOUR, --hour HOUR - Hour of the day in the 24-hour notation. Example: 14 (default: 0) - -n NUMBER, --number NUMBER - Number of results returned from Sentiment Investor. Default: 10 (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` - -Example: - -``` -2022 Feb 16, 10:50 (🦋) /stocks/ba/ $ trend - Most trending stocks at 2022-02-16 00:00 -┏━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━┳━━━━━━┓ -┃ TICKER ┃ TOTAL ┃ LIKES ┃ RHI ┃ AHI ┃ -┡━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━╇━━━━━━┩ -│ AMC │ 120.00 │ 227.00 │ 1.70 │ 1.53 │ -├────────┼────────┼────────┼──────┼──────┤ -│ BTC │ 97.00 │ 162.00 │ 1.75 │ 1.30 │ -├────────┼────────┼────────┼──────┼──────┤ -│ SPY │ 88.00 │ 69.00 │ 1.48 │ 1.29 │ -├────────┼────────┼────────┼──────┼──────┤ -│ NVDA │ 68.00 │ 34.00 │ 2.44 │ 2.57 │ -├────────┼────────┼────────┼──────┼──────┤ -│ FB │ 51.00 │ 51.00 │ 1.11 │ 1.60 │ -├────────┼────────┼────────┼──────┼──────┤ -│ TSLA │ 47.00 │ 53.00 │ 1.07 │ 0.81 │ -├────────┼────────┼────────┼──────┼──────┤ -│ MANA │ 37.00 │ 84.00 │ 5.36 │ 3.86 │ -├────────┼────────┼────────┼──────┼──────┤ -│ NIO │ 32.00 │ 21.00 │ 1.19 │ 0.87 │ -├────────┼────────┼────────┼──────┼──────┤ -│ PLTR │ 31.00 │ 17.00 │ 1.45 │ 1.26 │ -├────────┼────────┼────────┼──────┼──────┤ -│ ETH │ 23.00 │ 24.00 │ 1.61 │ 1.14 │ -└────────┴────────┴────────┴──────┴──────┘ -``` diff --git a/website/content/terminal/ba/trending/_index.md b/website/content/terminal/ba/trending/_index.md deleted file mode 100644 index 4babe06d3dd..00000000000 --- a/website/content/terminal/ba/trending/_index.md +++ /dev/null @@ -1,80 +0,0 @@ -``` -usage: trending [-h] -``` - -Tickers trending on [Stocktwits](https://Stocktwits.com) - -``` -optional arguments: - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:50 (🦋) /stocks/ba/ $ trending - Trending Stocks -┏━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Ticker ┃ Watchlist Count ┃ Name ┃ -┡━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ RBLX │ 57121 │ Roblox │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ SHOP │ 98777 │ Shopify │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ VIAC │ 18321 │ Viacom CBS, Inc │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ UPST │ 27649 │ Upstart │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ NVDA │ 350895 │ NVIDIA Corporation │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ ORGN │ 12019 │ Origin Materials │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ BCRX │ 36996 │ BioCryst Pharmaceuticals, Inc. │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ APPS │ 23164 │ Digital Turbine, Inc. │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ ABNB │ 44018 │ Airbnb │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ ACT │ 848 │ ADVISORSHARES T/VICE ETF │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ TTD │ 30946 │ The Trade Desk Inc │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ IBRX │ 10309 │ ImmunityBio Inc │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ GOLD │ 22601 │ Barrick Gold Corporation │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ SPCE │ 136010 │ Virgin Galactic Holdings Inc │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ AERC │ 5689 │ AeroClean Technologies Inc │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ KSCP │ 4896 │ Knightscope │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ AUPH │ 42395 │ Aurinia Pharmaceuticals Inc. │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ CROX │ 5925 │ CROCS Inc. │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ AI │ 20938 │ C3.ai Inc │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ ERIC │ 8548 │ LM Ericsson Telephone Co. │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ IMTE │ 7701 │ Integrated Media Technology Ltd │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ AMC │ 369648 │ AMC Entertainment │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ TIGR │ 10273 │ UP Fintech │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ MASI │ 1424 │ Masimo Corporation │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ BKKT │ 24761 │ Bakkt Holdings Inc - Ordinary Shares - Class A │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ SGLY │ 178 │ Sino Global Shipping America Ltd │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ BXRX │ 10174 │ Baudax Bio, Inc. │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ ARLP │ 1507 │ Alliance Resource Partners LP │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ WIX │ 6479 │ Wix │ -├────────┼─────────────────┼────────────────────────────────────────────────┤ -│ GNRC │ 3090 │ Generac Holdings Inc. │ -└────────┴─────────────────┴────────────────────────────────────────────────┘ -``` diff --git a/website/content/terminal/ba/watchlist/_index.md b/website/content/terminal/ba/watchlist/_index.md deleted file mode 100644 index c023a66b9d3..00000000000 --- a/website/content/terminal/ba/watchlist/_index.md +++ /dev/null @@ -1,32 +0,0 @@ -``` -usage: watchlist [-l N_LIMIT] [-h] -``` - -Searches [Reddit](https://reddit.com) for users' watchlists. - -``` -optional arguments: - -l N_LIMIT, --limit N_LIMIT - limit of posts with watchlists retrieved. (default: 5) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:52 (🦋) /stocks/ba/ $ watchlist -2022-02-16 14:16:31 - Morning Update for Wednesday, 2/16/22 -https://old.reddit.com/r/StockMarket/comments/stwy68/morning_update_for_wednesday_21622/ - -2022-02-15 08:18:07 - Don't let family, friends, etc. influence you that you cannot make it + some general stock advice. -https://old.reddit.com/r/Daytrading/comments/ssy2sw/dont_let_family_friends_etc_influence_you_that/ - -2022-02-14 11:49:01 - Let's investigate stocks in Europe, Euronext ($ENX.PA) write up. -https://old.reddit.com/r/stocks/comments/ss8sxb/lets_investigate_stocks_in_europe_euronext_enxpa/ - -2022-02-13 21:46:46 - Looking for a platform that displays (or screens by) basic financial data with a good UI. -https://old.reddit.com/r/stocks/comments/srtwxi/looking_for_a_platform_that_displays_or_screens/ - -2022-02-11 17:31:13 - Clear Blue Technologies $CBLU.V $CBUTF QUICK LOOK, watchlist + portfolio addition 👀👀 👨🏽‍💻👩🏾‍💻 -https://old.reddit.com/r/RobinHoodPennyStocks/comments/sq4t5o/clear_blue_technologies_cbluv_cbutf_quick_look/ -``` diff --git a/website/content/terminal/ba/wsb/_index.md b/website/content/terminal/ba/wsb/_index.md deleted file mode 100644 index 8bcf3ad87df..00000000000 --- a/website/content/terminal/ba/wsb/_index.md +++ /dev/null @@ -1,48 +0,0 @@ -``` -usage: wsb [-l N_LIMIT] [-n] [-h] -``` - -Get some inspiration for trade ideas from the infamous subReddit, WSB. [SourceL Reddit] - -``` -optional arguments: - -l N_LIMIT, --limit N_LIMIT - limit of posts to print. (default: 10) - -n, --new new flag, if true the posts retrieved are based on being more recent rather than their score. (default: False) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 16, 10:52 (🦋) /stocks/ba/ $ wsb -2022-02-16 11:00:14 - Daily Discussion Thread for February 16, 2022 -https://old.reddit.com/r/wallstreetbets/comments/stt7n0/daily_discussion_thread_for_february_16_2022/ - -2022-02-12 11:45:28 - Most Anticipated Earnings Releases for the week beginning February 14th, 2022 -https://old.reddit.com/r/wallstreetbets/comments/sqpscq/most_anticipated_earnings_releases_for_the_week/ - -2022-02-16 14:01:48 - Since losing money is cool here. -https://old.reddit.com/r/wallstreetbets/comments/stwml0/since_loosing_money_is_cool_here/ - -2022-02-16 11:42:50 - How to become a WSB mod 🌈🌈🌈 -https://old.reddit.com/r/wallstreetbets/comments/sttx9d/how_to_become_a_wsb_mod/ - -2022-02-15 23:19:28 - I don't get why this inflation thing is freaking people out -https://old.reddit.com/r/wallstreetbets/comments/stggd7/i_dont_get_why_this_inflation_thing_is_freaking/) - -2022-02-16 13:56:23 - Justice Department Is Pursuing Wide-Ranging Investigation of Short-Sellers -https://old.reddit.com/r/wallstreetbets/comments/stwht2/justice_department_is_pursuing_wideranging/ - -2022-02-15 21:24:58 - i was up 100% on upst puts -https://old.reddit.com/r/wallstreetbets/comments/stdsqj/i_was_up_100_on_upst_puts/ - -2022-02-15 19:33:03 - The over short thesis hasn't gone anywhere. -https://old.reddit.com/r/wallstreetbets/comments/stb7gb/the_over_short_thesis_hasnt_gone_anywhere/ - -2022-02-16 14:15:24 - Make GME, not war. -https://old.reddit.com/r/wallstreetbets/comments/stwxa9/make_gme_not_war/ - -2022-02-16 11:24:54 - Free Money Hack - Can’t Go Tits Up -https://old.reddit.com/r/wallstreetbets/comments/sttmmb/free_money_hack_cant_go_tits_up/ -``` diff --git a/website/content/terminal/common/_index.md b/website/content/terminal/common/_index.md deleted file mode 100755 index 4da4cde3295..00000000000 --- a/website/content/terminal/common/_index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Common Menus -keywords: "user, files, openbbuserdata, presets, file, portfolio, exports, imports, settings, styles, xlsx, csv, json, themes, openbb, bb, terminal, google, amazon, apple, microsoft, github, opensource, python, markets" -excerpt: "Common Menus in the OpenBB Terminal" -geekdocCollapseSection: true ---- - -There are several sub-menus containing features that can be applied across all asset classes. These are grouped in the directory trees under, common. - -- Introduction to the Behavioural Analysis Menu -- Introduction to the Quantitative Analysis Menu -- Introduction to the Technical Analysis Menu -- Introduction to the Forecast Menu diff --git a/website/content/terminal/crypto/_index.md b/website/content/terminal/crypto/_index.md deleted file mode 100644 index 4fd3b5a5087..00000000000 --- a/website/content/terminal/crypto/_index.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: Introduction to Cryptocurrency -keywords: "crypto, web3, nft, blockchain, cryptocurrency" -excerpt: "The Introduction to Cryptocurrency explains how to use the Cryptocurrency and provides a brief description of its sub-menus" -geekdocCollapseSection: true ---- - -The Cryptocurrency menu allows you to discover trending cryptocurrency (disc). -Additionally, you can also perform research of a specific coin (dd), -NFT (nft) -or most lucrative Defi project (defi). -It does so by handing you tools to (among other things) perform technical analysis (ta), -quantitative analysis (qa), and give you access to onchain information -(onchain). - -## How to use -The Cryptocurrency menu is called upon by typing `crypto` which opens the following menu: - -image - -You have the ability to search a coin with `find` based on its name or symbol. An example: - -image - -As a result, you can see a list of coins matching your search criteria. Once you identify the coin you are looking for, next step is to `load` it. See the example below: - -image - -To view the candle chart for the loaded crypto, you can call `candle`. This will show you the coin's historical prices and volume, as follows: -image - -In case you want to adjust the default period, you can do so by specifying the number of days to go back in time. - -image - -You might be wondering, how can I know about all possible options? You can type in `command_name -h` or `load -h` in this case. Here you will find available optional arguments that you can play with. - -image - -Lastly, by calling `?` or `help` or `h`, the `crypto` menu will be re-populated. Here you can see that several menus have turned blue, which mean you can enter any of them now. In order to use these menus, you are required to first `load` a coin. - -image - -## Sub-menus available -The Cryptocurrency menu has an extensive list of available sub-menus ranging from due diligence to NFT to onchain analysis. To find more information about each menu, you can click on one of the following: - -- [Introduction to Cryptocurrency Discovery](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/disc): discovers top trending, top gainers or losers coins, as well as top NFTs, dApps and exchanges based on prices. -- [Introduction to Cryptocurrency Overview](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/ov/): gives the overview of the cryptocurrency market, including global Defi market, stablecoins, exchanges as well as latest news. -- [Introduction to Cryptocurrency Onchain](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/onchain/): provides information on different blockchains, whales transaction and traded volumes on certain crypto pair. You can also specify a Ethereum address and look up past transactions and balance history. -- [Introduction to Cryptocurrency Decentralized Finance (DeFi)](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/defi/): explore the decentralized finance market through a variety of indicators and data, from lending interests, staking ratio, Uniswap pools to top Defi dApps. -- [Introduction to Cryptocurrency Tools](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/tools/): gives you the tool to calculate crypto metrics, such as impermanent loss and converting APR to APY. -- [Introduction to Non Fungible Tokens (NFTs)](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/nft/): Discover latest NFT drops and OpenSea's NFT Collection statistics. -- [Introduction to Cryptocurrency Due Diligence](https://openbb-finance.github.io/OpenBBTerminal/terminal/crypto/dd/): performs due diligence on a chosen coin based on, among other things, tokenomics, roadmaps, news, and community. -- [Introduction to Technical Analysis](https://openbb-finance.github.io/OpenBBTerminal/terminal/common/ta/): analyzes the chosen coin's historical data extensively with moving averages and momentum, trend, volatility and volume indicators. -- [Introduction to Forecasting Menu](https://openbb-finance.github.io/OpenBBTerminal/terminal/forecast/): applies advanced AI and Machine Learning models to form prediction of future stock prices including Recurrent Neural Network (RNN), Autoregressive Integrated Moving Average (ARIMA) and Monte Carlo forecasting - -## Examples - -When entering the `crypto` menu, you would typically want to load in a coin. Let's go with Ethereum. You can do this by specifying its symbol: `load eth` - -![Load ETH](https://user-images.githubusercontent.com/40023817/175827660-3b106e6e-2638-4536-939e-e38692ec1003.png) - -Let's checkout its sentiments from major headlines news by typing: `headlines` - -image - -To perform further analysis, the best menu to enter is `dd`: - -``` -2022 Jun 29, 08:58 (🦋) /crypto/ $ dd -╭────────────────────────────────────────────────────────────────────────────────────────────── Crypto - Due Diligence ──────────────────────────────────────────────────────────────────────────────────────────────╮ -│ │ -│ load load a specific cryptocurrency for analysis │ -│ │ -│ Coin: eth │ -│ Source: │ -│ │ -│ Overview: │ -│ info basic information about loaded coin [CoinGecko] │ -│ basic basic information about loaded coin [CoinPaprika] │ -│ ath all time high related stats for loaded coin [CoinGecko] │ -│ atl all time low related stats for loaded coin [CoinGecko] │ -│ web found websites for loaded coin e.g forum, homepage [CoinGecko] │ -│ pi project information e.g. technology details, public repos, audits, vulns [Messari] │ -│ gov governance details [Messari] │ -│ stats coin stats [Coinbase] │ -│ bc links to blockchain explorers for loaded coin [CoinGecko] │ -│ Market: │ -│ market market stats about loaded coin [CoinGecko] │ -│ mkt all markets for loaded coin [CoinPaprika] │ -│ binbook order book [Binance] │ -│ balance coin balance [Binance] │ -│ cbbook order book [Coinbase] │ -│ trades last trades [Coinbase] │ -│ ex all exchanges where loaded coin is listed [CoinPaprika] │ -│ oi open interest per exchange [Coinglass] │ -│ eb total balance held on exchanges (in percentage and units) [Glassnode] │ -│ Metrics: │ -│ mcapdom market cap dominance [Messari] │ -│ active active addresses [Glassnode] │ -│ nonzero addresses with non-zero balances [Glassnode] │ -│ change 30d change of supply held on exchange wallets [Glassnode] │ -│ ps price and supply related metrics for loaded coin [CoinPaprika] │ -│ mt messari timeseries e.g. twitter followers, circ supply, etc [Messari] │ -│ Contributors and Investors: │ -│ team contributors (individuals and organizations) [Messari] │ -│ inv investors (individuals and organizations) [Messari] │ -│ Tokenomics: │ -│ tk tokenomics e.g. circulating/max/total supply, emission type, etc [Messari] │ -│ fr fundraising details e.g. treasury accounts, sales rounds, allocation [Messari] │ -│ Roadmap and News: │ -│ rm roadmap [Messari] │ -│ events events related to loaded coin [CoinPaprika] │ -│ news loaded coin's most recent news [CryptoPanic] │ -│ Activity and Community: │ -│ links links e.g. whitepaper, github, twitter, youtube, reddit, telegram [Messari] │ -│ social social portals urls for loaded coin, e.g reddit, twitter [CoinGecko] │ -│ twitter tweets for loaded coin [CoinPaprika] │ -│ score different kind of scores for loaded coin, e.g developer score, sentiment score [CoinGecko] │ -│ dev github, bitbucket coin development statistics [CoinGecko] │ -│ gh github activity over time [Santiment] │ -│ │ -╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── OpenBB Terminal v1.5.0 (https://openbb.co) ─╯ -``` - -We can check out the project's roadmap and its effect to historical price, by typing `rm` - -image - -Once you have finished analyzing a specific coin, you would want to get a good understanding of the overall crypto market. To do that, head over to `ov` by typing `../ov`. - -> **Hint:** `..` basically took you back to the previous menu. Instead of performing 2 separate commands, you can combine them together using `/`. As such `../ov` will take us back to previous menu, and then enter the `ov` menu. - -image - -Bitcoin has such a big influence on the entire crypto market. So seeing whether we are in a Bitcoin season or a Altcoin season will be useful to your investment decisions. `altindex` is a great command for this purpose. - -image diff --git a/website/content/terminal/crypto/candle/_index.md b/website/content/terminal/crypto/candle/_index.md deleted file mode 100644 index fdac7d74c02..00000000000 --- a/website/content/terminal/crypto/candle/_index.md +++ /dev/null @@ -1,11 +0,0 @@ -``` -usage: candle [--log] [-h] [--export EXPORT] -``` -Display chart for loaded coin. You can specify currency vs which you want to show chart and also number of days to get data for. - -```optional arguments: - --log Plot with y axis on log scale (default: False) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` -For more information and examples, use 'about candle' to access the related guide. diff --git a/website/content/terminal/crypto/dd/_index.md b/website/content/terminal/crypto/dd/_index.md deleted file mode 100644 index ecde9da451b..00000000000 --- a/website/content/terminal/crypto/dd/_index.md +++ /dev/null @@ -1,279 +0,0 @@ ---- -title: Introduction to Cryptocurrency Due Diligence -keywords: "cryptocurrency, dd, due diligence, tokenomics, overview, bitcoin" -excerpt: "An Introduction to Cryptocurrency Due Diligence, within the Cryptocurrency Menu, -with a brief overview of the features." -geekdocCollapseSection: true ---- - -The Cryptocurrency Due Diligence menu gives the user the ability to delve deeper into the coin of choice. To be able to -do this, the menu offers basic information about the loaded coin (info -and basic), information about the project, technology details, audits etcetera -(pi), insights into the coin balance and order book -(balance and cbbook), -the tokenomics and fundraising details -(tk and fr) -and lastly, social media activity -(mt, twitter -and dev). - -## How to use - -The Cryptocurrency Due Diligence menu is called upon by typing `dd` (after loading a coin), while inside the `crypto` menu, which opens the following menu: - -![Cryptocurrency Due Diligence menu](https://user-images.githubusercontent.com/46355364/178734389-dcee7a96-bb57-42fb-ad8e-13f27662e03b.png) - -This menu requires you to load a coin with the `load` command. Thus, alternatively, you can also type `/crypto/load BTC/dd`. -Within the Cryptocurrency Due Diligence menu you can find features examining an extensive amount of metrics about the -loaded coin. As an example, you can see the latest trades done on the loaded coin with `trades`: - -``` -2022 Jul 13, 07:42 (🦋) /crypto/dd/ $ trades - -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━┓ -┃ time ┃ price ┃ size ┃ side ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━┩ -│ 2022-07-13T11:42:29.451817Z │ 19832.40000000 │ 0.00100000 │ buy │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:42:04.137456Z │ 19831.63000000 │ 0.00298698 │ buy │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:41:28.752991Z │ 19843.96000000 │ 0.00006215 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:40:24.579004Z │ 19850.63000000 │ 0.05000000 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:40:14.66834Z │ 19848.15000000 │ 0.15000000 │ buy │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:39:39.203275Z │ 19854.85000000 │ 0.00006226 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:39:31.308755Z │ 19860.14000000 │ 0.06606458 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:39:31.308755Z │ 19857.07000000 │ 0.00000379 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:39:21.693412Z │ 19857.07000000 │ 0.00027000 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:38:56.195803Z │ 19848.41000000 │ 0.00100108 │ buy │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:38:46.766487Z │ 19848.72000000 │ 0.00127984 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:38:46.766487Z │ 19848.71000000 │ 0.00057219 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:38:46.766487Z │ 19848.70000000 │ 0.00108236 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:38:46.766487Z │ 19848.69000000 │ 0.00077974 │ sell │ -├─────────────────────────────┼────────────────┼────────────┼──────┤ -│ 2022-07-13T11:38:46.766487Z │ 19848.68000000 │ 0.00082548 │ sell │ -└─────────────────────────────┴────────────────┴────────────┴──────┘ -``` - -## Examples - -To get an understanding of the coin we are looking at, it is possible to look into some basic information with `basic`: - -``` -2022 Jul 13, 07:45 (🦋) /crypto/dd/ $ basic - - Basic Coin Information -┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Metric ┃ Value ┃ -┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ id │ btc-bitcoin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ name │ Bitcoin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ symbol │ BTC │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ rank │ 1 │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ type │ coin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ description │ Bitcoin is a cryptocurrency and worldwide payment system. It is the first │ -│ │ decentralized digital currency, as the system works without a central bank or │ -│ │ single administrator. │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ proof_type │ Proof of Work │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ tags │ Segwit, Cryptocurrency, Proof Of Work, Payments, Sha256, Mining, Lightning │ -│ │ Network │ -└─────────────┴───────────────────────────────────────────────────────────────────────────────┘ -``` - -Then, we have the option to look into the project information with `pi`. Note that this requires an API Key from Messari which you -can find more information about here. -This command returns the following: - -``` -2022 Jul 13, 07:51 (🦋) /crypto/dd/ $ pi - - BTC General Info -┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Metric ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Project Details │ Bitcoin is the first distributed consensus-based censorship-resistant, permissionless, peer-to-peer payment settlement network with a provably scarce, programmable, native currency. │ -│ │ Bitcoin (BTC), the native asset of the Bitcoin blockchain, is the world's first digital currency without a central bank or administrator. The Bitcoin network is an emergent decentralized monetary institution that exists through the interplay │ -│ │ between full nodes, miners, and developers. It is set by a social contract that is created and opted into by the users of the network and hardened │ -│ │ through >game theory and cryptography. Bitcoin is the first, oldest, and largest cryptocurrency in the world. │ -├────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Technology Details │ "Bitcoin" is a label used for a protocol and a currency. │ -│ │ │ -│ │ Bitcoin, the currency, is bits of data usable outside the limitations of the protocol using second-layer solutions like Lightning Network payment channels. │ -│ │ │ -│ │ Bitcoin, the protocol, is a distributed, time-stamped ledger of unspent transaction output (UTXO) transfers stored in an append-only chain of 1MB data blocks. A network of mining and economic nodes maintains this ledger by validating, propagating, and fighting to include mempool transactions in new blocks. Economic nodes (aka "full nodes") │ -│ │ receive transactions from other network participants, validate them against network consensus rules and double-spend vectors, and propagate the transactions to other full nodes that also validate and propagate. Valid transactions are sent to the │ -│ │ network's mempool waiting for mining nodes to confirm them via inclusion in the next block. │ -│ │ │ -│ │ Mining nodes work to empty the mempool usually in a highest-to-lowest fee order by picking transactions to include in the next block and racing against each other to generate a hash less than the target number set by Bitcoin's difficulty │ -│ │ adjustment algorithm. Bitcoin uses a Proof-of-Work (PoW) consensus mechanism to establish the chain of blocks with the most accumulated “work” (a.k.a., energy spent on solved hashes) as the valid chain. Other network peers can cheaply verify the │ -│ │ chain’s work. │ -│ │ │ -│ │ Mining difficulty regularly adjusts to maintain Bitcoin's average ten-minute block schedule. Mining nodes add new blocks to whatever chain has the largest accumulated proof of work maintained by a network of economic nodes with downloaded copies │ -│ │ of the same chain. │ -│ │ │ -│ │ Learn More: │ -│ │ Bitcoin Developer's Guide │ -│ │ Mastering Bitcoin │ -└────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ - - BTC Public Repositories -┏━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓ -┃ Name ┃ Link ┃ License_type ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩ -│ Bitcoin Core Repository │ https://github.com/bitcoin/bitcoin │ MIT License │ -└─────────────────────────┴────────────────────────────────────┴──────────────┘ - - BTC Vulnerabilities -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Title ┃ Date ┃ Type ┃ Details ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Value Overflow Incident │ 2010-08-06 04:00:00+00:00 │ Inflation │ On 6 August 2010, a major vulnerability in the bitcoin protocol was spotted. Transactions weren't properly verified before they were included in the transaction log or blockchain, which let │ -│ │ │ │ users bypass bitcoin's economic restrictions and create an indefinite number of bitcoins. On 15 August, the vulnerability was exploited; over 184 billion bitcoins were generated in a transaction │ -│ │ │ │ and sent to two addresses on the network. Within hours, the transaction was spotted and erased from the transaction log after the bug was fixed and the network forked to an updated version of │ -│ │ │ │ the bitcoin protocol. This was the only major security flaw found and exploited in bitcoin's history. │ -├─────────────────────────────────┼───────────────────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Denial of Service Vulnerability │ 2018-09-20 04:00:00+00:00 │ Inflation │ On September 17, Bitcoin Core developers discovered that older versions of Bitcoin Core will crash if they try to process a block containing a transaction that attempts to spend the same input │ -│ │ │ │ twice. Such blocks are invalid, so they can only be created by a miner willing to sacrifice their allowed income for creating a block of at least 12.5 BTC (about $80,000 USD as of this writing). │ -│ │ │ │ │ -│ │ │ │ Soon after discovering the DDoS attack vulnerability, Bitcoin Core developers also discovered an inflation bug which they quickly determined had the same root cause and fix. They decided to │ -│ │ │ │ disclose the DDoS vulnerability immediately while keeping the inflation bug quiet. This provided developers time to reach out to miners, businesses, and other affected systems about upgrading │ -│ │ │ │ their software, while also providing additional time to fix the exploit. │ -│ │ │ │ │ -│ │ │ │ https://bitcoincore.org/en/2018/09/18/release-0.16.3/ │ -│ │ │ │ https://bitcoincore.org/en/2018/09/20/notice/ │ -└─────────────────────────────────┴───────────────────────────┴───────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -``` - -Looking ahead, we can use the command (coming from the same source) `rm` which discusses plans for the future. E.g. -if we load in `ETH` with `load ETH` and use `rm` we receive the following: - -``` -2022 Jul 13, 07:57 (🦋) /crypto/dd/ $ rm - - ETH Roadmap -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Title ┃ Date ┃ Type ┃ Details ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Serenity Phase 0 │ 2020-12-01 │ Network Launch │ Serenity Phase 0 marks Ethereum's initial transition to Ethereum 2.0. This initial phase will introduce the Beacon Chain, which will serve as the backbone for Ethereum 2.0's sharded network │ -│ │ │ │ architecture. As opposed to Ethereum's current Proof-of-Work (PoW) blockchain, the Beacon Chain will use Casper FFG, a specific variation of Proof-of-Stake (PoS), and a system of validators │ -│ │ │ │ to confirm transactions and inhibit Sybil attacks. │ -│ │ │ │ │ -│ │ │ │ Ethereum core developers split the Serenity upgrade into three phases to optimize the development process and limit deployment risks. The specifications for this first phase include: │ -│ │ │ │ Beacon Chain is the core of the Ethereum 2.0 system; it manages the PoS protocol for itself and all of the individual shard chains. The Beacon chain will use Casper the Friendly Finality │ -│ │ │ │ Gadget (Casper FFG) to ensure transaction finality. │ -│ │ │ │ Fork Choice enables validators' clients to automatically select the right chain when the Phase 0 Serenity fork is initiated │ -│ │ │ │ Deposit Contract allows Ethereum stakeholders to transfer funds from ETH 1.0 to ETH 2.0 and claim rights to a validator role on the new PoS chain │ -│ │ │ │ Honest Validator dictates the expected behavior of an "honest validator and slashing specifications with respect to Phase 0 of ETH 2.0 │ -│ │ │ │ │ -│ │ │ │ It is essential to note the launch of Phase 0 will not immediately replace Ethereum 1.0 (also known as Ethereum 1.x). The two chains will coexist for at least until Serenity Phase 1.5 │ -│ │ │ │ arrives, which marks when the current Ethereum chain will merge into the Ethereum 2.0 system a shard within the network. Running the legacy and future chains in parallel may cause ETH │ -│ │ │ │ inflation to increase as both chains will simultaneously mint new tokens. │ -├───────────────────────────────────────────┼────────────┼───────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Muir Glacier │ 2020-01-02 │ Hard Fork Upgrade │ The Muir Glacier hard fork activated at block 9,200,000, which arrived on Jan. 2, 2020. The upgrade only included EIP-2384, which delayed Ethereum's inherent "Difficulty Bomb" for another │ -│ │ │ │ 4,000,000 blocks (approximately 611 days) to prevent block times from increasing (and usability plummeting). Muir Glacier's abrupt arrival, less than a month after Istanbul, marked the third │ -│ │ │ │ time Ethereum core developers opted to delay the Difficulty Bomb (aka Ice Age). │ -│ │ │ │ │ -│ │ │ │ Learn more: │ -│ │ │ │ Ethereum Muir Glacier Upgrade by the Ethereum Cat Herders │ -├───────────────────────────────────────────┼────────────┼───────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Istanbul (Phase I) │ 2019-12-07 │ Hard Fork Upgrade │ The first phase of Istanbul is set to activate at block 9,069,000, almost two months after its initially scheduled launch (Oct. 16, 2019). Istanbul Phase I intends to introduce six new EIPs │ -│ │ │ │ upon activation to help optimize opcode computational costs, improve denial-of-service attack security, and enhance the performance of layer-2 solutions using a │ -│ │ │ │ href="https://messari.io/article/zk-snark"ZK-SNARKs/a or a href="https://messari.io/article/zk-stark"ZK-STARKs/a, among other advancements. The accepted EIPs include: │ -│ │ │ │ EIP-152 adds the ability to verify Zcash-to-Ethereum atomic swaps │ -│ │ │ │ EIP-1108 reduces the costs for ZK-SNARKs │ -│ │ │ │ EIP-1344 improves smart contract ability, especially those used by layer-2 solutions, to track the correct base chain during a hard fork │ -│ │ │ │ EIP-1844 restructures the costs of specific a href="https://messari.io/article/ethereum-virtual-machine"Ethereum Virtual Machine (EVM)/a opcodes to deter spamming attacks and to match each │ -│ │ │ │ operation with its required level of computation │ -│ │ │ │ EIP-2028 reduces the cost of calling data within transactions and the fees associated with ZK-SNARKs and ZK-STARKs │ -│ │ │ │ EIP-2200 alters the cost of storage in the EVM and allows smart contracts to generate more creative functions │ -│ │ │ │ │ -├───────────────────────────────────────────┼────────────┼───────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Metropolis: Constantinople/St. Petersburg │ 2019-02-28 │ Hard Fork Upgrade │ Constantinople, the second phase of Metropolis, was initially scheduled to go live at block 7,080,000 (January 16, 2019). But on January 15, 2019, security auditing firm ChainSecurity │ -│ │ │ │ discovered a vulnerability in one of the accepted EIPs that would enable a reentrancy attack (i.e., the opportunity for an attacker to steal user funds similar to The DAO hack). Core Ethereum │ -│ │ │ │ developers and some projects running on the network voted to delay Constantinople until the developers closed the security loophole. │ -│ │ │ │ │ -│ │ │ │ After a month-long delay, Constantinople and its security patch, St. Petersburg, went live at block 7,280,000, introducing five new code changes to the network: │ -│ │ │ │ EIP-145 added Bitwise shifting instructions to the EVM, making the execution of shifts in smart contracts significantly cheaper │ -│ │ │ │ EIP-1052 expedited inter-smart contract verification (smart contract can verify each other via a hash rather than the entire code set) │ -│ │ │ │ EIP-1014 improved state channel integrations to facilitate the connection to off-chain scaling solutions │ -│ │ │ │ EIP-1283 reduced costs for executing multiple updates within a single transaction (aka the SSTORE opcode) │ -│ │ │ │ EIP-1234 delayed the difficulty bomb for another year and reduced the mining reward from three to two ETH per block (the reduction is also known as the "Thirdening") │ -│ │ │ │ │ -├───────────────────────────────────────────┼────────────┼───────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Metropolis: Byzantium │ 2017-10-16 │ Hard Fork Upgrade │ Byzantium was the first phase of the proposed Metropolis upgrade and activated at block 4,370,000. The Byzantium hard fork included nine EIPs, with EIP-100, EIP-658, and EIP-649, introducing │ -│ │ │ │ the most significant code changes. │ -│ │ │ │ EIP-100 adjusted the difficulty formula to stabilize the ETH issuance rate │ -│ │ │ │ EIP-658 added a new field to transaction receipts to indicate success or failure │ -│ │ │ │ EIP-649 delayed the difficulty bomb (i.e., the Ethereum "ice age") by one year and reduced the block subsidy from five to three ETH │ -│ │ │ │ Details on the remaining Byzantium EIPs are available here. │ -│ │ │ │ │ -└───────────────────────────────────────────┴────────────┴───────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -``` - -As well as a graph that depicts price movements after these announcements. - -![price movements ETH](https://user-images.githubusercontent.com/46355364/178734435-175181e3-a0fe-403c-b59c-c80ee70f6078.png) - -Lastly, keeping the ETH coin loaded, we can also look at some sentiment analysis by acquiring the different sentiment -scores with `score` as follows: - -``` -2022 Jul 13, 08:00 (🦋) /crypto/dd/ $ score - - Different Scores for Loaded Coin -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ Metric ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ Coingecko Rank │ 2.00 │ -├─────────────────────────────────┼────────────┤ -│ Coingecko Score │ 75.87 │ -├─────────────────────────────────┼────────────┤ -│ Developer Score │ 97.43 │ -├─────────────────────────────────┼────────────┤ -│ Community Score │ 58.56 │ -├─────────────────────────────────┼────────────┤ -│ Liquidity Score │ 96.88 │ -├─────────────────────────────────┼────────────┤ -│ Sentiment Votes Up Percentage │ 58.29 │ -├─────────────────────────────────┼────────────┤ -│ Sentiment Votes Down Percentage │ 41.71 │ -├─────────────────────────────────┼────────────┤ -│ Public Interest Score │ 0.31 │ -├─────────────────────────────────┼────────────┤ -│ Facebook Likes │ │ -├─────────────────────────────────┼────────────┤ -│ Twitter Followers │ 2673876.00 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Average Posts 48H │ 3.11 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Average Comments 48H │ 71.44 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Subscribers │ 1340239.00 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Accounts Active 48H │ 972.00 │ -├─────────────────────────────────┼────────────┤ -│ Telegram Channel User Count │ │ -├─────────────────────────────────┼────────────┤ -│ Alexa Rank │ 8793.00 │ -├─────────────────────────────────┼────────────┤ -│ Bing Matches │ │ -└─────────────────────────────────┴────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/active/_index.md b/website/content/terminal/crypto/dd/active/_index.md deleted file mode 100644 index 60df12ee0e0..00000000000 --- a/website/content/terminal/crypto/dd/active/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -usage: active [-s INITIAL_DATE] - [-u END_DATE] - [-i {1h, 24h, 10m, 1w, 1month}] - [--export {csv,json,xlsx}] [-h] -``` - -Display active addresses on a certain blockchain over time [Source: https://glassnode.org] - -The number of unique addresses that were active either as a sender or receiver. Only addresses that were active in successful transactions are counted. - -Supported assets: BTC, ETH, LTC, AAVE, ABT, AMPL, ANT, ARMOR, BADGER, BAL, BAND, BAT, BIX, BNT, BOND, BRD, BUSD, BZRX, CELR, CHSB, CND, COMP, CREAM, CRO, CRV, CVC, CVP, DAI, DDX, DENT, DGX, DHT, DMG, DODO, DOUGH, DRGN, ELF, ENG, ENJ, EURS, FET, FTT, FUN, GNO, GUSD, HEGIC, HOT, HPT, HT, HUSD, INDEX, KCS, LAMB, LBA, LDO, LEO, LINK, LOOM, LRC, MANA, MATIC, MCB, MCO, MFT, MIR, MKR, MLN, MTA, MTL, MX, NDX, NEXO, NFTX, NMR, Nsure, OCEAN, OKB, OMG, PAX, PAY, PERP, PICKLE, PNK, PNT, POLY, POWR, PPT, QASH, QKC, QNT, RDN, REN, REP, RLC, ROOK, RPL, RSR, SAI, SAN, SNT, SNX, STAKE, STORJ, sUSD, SUSHI, TEL, TOP, UBT, UMA, UNI, USDC, USDK, USDT, UTK, VERI, WaBi, WAX, WBTC, WETH, wNMX, WTC, YAM, YFI, ZRX - -``` -arguments: - -s DATE --since DATE Start date (default: 1 year before, e.g., 2020-10-22) - -u DATE --until DATE End date (default: current day, e.g., 2021-10-22) - -i INTERV --interval INTERV Interval frequency (default: 24h) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![active](https://user-images.githubusercontent.com/46355364/154058739-e30fed47-c86f-4aef-a699-1bc69180c607.png) diff --git a/website/content/terminal/crypto/dd/ath/_index.md b/website/content/terminal/crypto/dd/ath/_index.md deleted file mode 100644 index e6215f7c195..00000000000 --- a/website/content/terminal/crypto/dd/ath/_index.md +++ /dev/null @@ -1,31 +0,0 @@ -``` -usage: ath [--export {csv,json,xlsx}] [--vs {usd,btc}] [-h] -``` - -All time high data for loaded coin - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - --vs {usd,btc} currency (default: usd) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:04 (🦋) /crypto/dd/ $ ath - Coin Highs -┌─────────────────────────────────────┬──────────────────────────┐ -│ Metric │ Value │ -├─────────────────────────────────────┼──────────────────────────┤ -│ Current Price USD │ 44302 │ -├─────────────────────────────────────┼──────────────────────────┤ -│ All Time High USD │ 69045 │ -├─────────────────────────────────────┼──────────────────────────┤ -│ All Time High Date USD │ 2021-11-10T14:24:11.849Z │ -├─────────────────────────────────────┼──────────────────────────┤ -│ All Time High Change Percentage USD │ -35.75 │ -└─────────────────────────────────────┴──────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/atl/_index.md b/website/content/terminal/crypto/dd/atl/_index.md deleted file mode 100644 index d7cf95cd6b7..00000000000 --- a/website/content/terminal/crypto/dd/atl/_index.md +++ /dev/null @@ -1,31 +0,0 @@ -``` -usage: atl [--vs {usd,btc}] [--export {csv,json,xlsx}] [-h] -``` - -All time low data for loaded coin - -``` -optional arguments: - --vs {usd,btc} currency (default: usd) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:05 (🦋) /crypto/dd/ $ atl - Coin Lows -┌────────────────────────────────────┬──────────────────────────┐ -│ Metric │ Value │ -├────────────────────────────────────┼──────────────────────────┤ -│ Current Price USD │ 44302 │ -├────────────────────────────────────┼──────────────────────────┤ -│ All Time Low USD │ 67.81 │ -├────────────────────────────────────┼──────────────────────────┤ -│ All Time Low Date USD │ 2013-07-06T00:00:00.000Z │ -├────────────────────────────────────┼──────────────────────────┤ -│ All Time Low Change Percentage USD │ 65317.50 │ -└────────────────────────────────────┴──────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/balance/_index.md b/website/content/terminal/crypto/dd/balance/_index.md deleted file mode 100644 index d5baafc59c3..00000000000 --- a/website/content/terminal/crypto/dd/balance/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -usage: balance [--vs {USDT,TUSD,USDC,BUSD,NGN,RUB,TRY,EUR,IDRT,GBP,UAH,BIDR,AUD,DAI,BRL,VAI,USDP}] [--export {csv,json,xlsx}] [-h] -``` - -Display balance - -``` -optional arguments: - --vs {USDT,TUSD,USDC,BUSD,NGN,RUB,TRY,EUR,IDRT,GBP,UAH,BIDR,AUD,DAI,BRL,VAI,USDP} - Quote currency (what to view coin vs) (default: USDT) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/dd/basic/_index.md b/website/content/terminal/crypto/dd/basic/_index.md deleted file mode 100644 index 34e35748fe2..00000000000 --- a/website/content/terminal/crypto/dd/basic/_index.md +++ /dev/null @@ -1,47 +0,0 @@ -``` -usage: basic [--export {csv,json,xlsx}] [-h] -``` - -Get basic information for coin. Like: name, symbol, rank, type, description, platform, proof_type, contract, tags, parent - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:10 (🦋) /crypto/dd/ $ basic - Basic Coin Information -┌─────────────┬───────────────────────────────────────────────────────────────────────────────┐ -│ Metric │ Value │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ id │ btc-bitcoin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ name │ Bitcoin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ symbol │ BTC │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ rank │ 1 │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ type │ coin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ description │ Bitcoin is a cryptocurrency and worldwide payment system. It is the first │ -│ │ decentralized digital currency, as the system works without a central bank or │ -│ │ single administrator. │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ platform │ bnb-binance-coin │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ proof_type │ Proof of Work │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ contract │ 0x719bd7b3d60f0b194fdbe4570aeda1b3712b4986 │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ tags │ Segwit, Cryptocurrency, Proof Of Work, Payments, Sha256, Mining, Lightning │ -│ │ Network │ -├─────────────┼───────────────────────────────────────────────────────────────────────────────┤ -│ parent │ bnb-binance-coin │ -└─────────────┴───────────────────────────────────────────────────────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/bc/_index.md b/website/content/terminal/crypto/dd/bc/_index.md deleted file mode 100644 index 1caa58e72d0..00000000000 --- a/website/content/terminal/crypto/dd/bc/_index.md +++ /dev/null @@ -1,29 +0,0 @@ -``` -usage: bc [--export {csv,json,xlsx}] [-h] -``` - -Blockchain explorers URLs for loaded coin. Those are sites like etherescan.io or polkascan.io in which you can see all blockchain data e.g. all txs, -all tokens, all contracts... - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:10 (🦋) /crypto/dd/ $ bc - Blockchain URLs -┌────────┬─────────────────────────────────┐ -│ Metric │ Value │ -├────────┼─────────────────────────────────┤ -│ 0 │ https://blockchair.com/bitcoin/ │ -├────────┼─────────────────────────────────┤ -│ 1 │ https://btc.com/ │ -├────────┼─────────────────────────────────┤ -│ 2 │ https://btc.tokenview.com/ │ -└────────┴─────────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/change/_index.md b/website/content/terminal/crypto/dd/change/_index.md deleted file mode 100644 index ee53f3e4bfa..00000000000 --- a/website/content/terminal/crypto/dd/change/_index.md +++ /dev/null @@ -1,26 +0,0 @@ -``` -usage: change [-e EXCHANGE] - [-s INITIAL_DATE] - [-u END_DATE] - [-i {1h, 24h, 10m, 1w, 1month}] - [--export {csv,json,xlsx}] [-h] -``` - -Display 30d change of the supply held in exchange wallets. [Source: https://glassnode.org] - -Supported assets: BTC, ETH, LTC, AAVE, ABT, AMPL, ANT, ARMOR, BADGER, BAL, BAND, BAT, BIX, BNT, BOND, BRD, BUSD, BZRX, CELR, CHSB, CND, COMP, CREAM, CRO, CRV, CVC, CVP, DAI, DDX, DENT, DGX, DHT, DMG, DODO, DOUGH, DRGN, ELF, ENG, ENJ, EURS, FET, FTT, FUN, GNO, GUSD, HEGIC, HOT, HPT, HT, HUSD, INDEX, KCS, LAMB, LBA, LDO, LEO, LINK, LOOM, LRC, MANA, MATIC, MCB, MCO, MFT, MIR, MKR, MLN, MTA, MTL, MX, NDX, NEXO, NFTX, NMR, Nsure, OCEAN, OKB, OMG, PAX, PAY, PERP, PICKLE, PNK, PNT, POLY, POWR, PPT, QASH, QKC, QNT, RDN, REN, REP, RLC, ROOK, RPL, RSR, SAI, SAN, SNT, SNX, STAKE, STORJ, sUSD, SUSHI, TEL, TOP, UBT, UMA, UNI, USDC, USDK, USDT, UTK, VERI, WaBi, WAX, WBTC, WETH, wNMX, WTC, YAM, YFI, ZRX - -Supported exchanges: aggregated, binance, bittrex, coinex, gate.io, gemini, huobi, kucoin, poloniex, bibox, bigone, bitfinex, hitbtc, kraken, okex, bithumb, zb.com, cobinhood, bitmex, bitstamp, coinbase, coincheck, luno - -``` -optional arguments: - -a EXCHANGE Exchange to check (default: aggregated) - -s DATE --since DATE Start date (default: 3 years before, e.g., 2018-10-22) - -u DATE --until DATE End date (default: 2 years before, e.g., 2019-10-22) - -i INTERV --interval INTERV Interval frequency (default: 24h) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![change](https://user-images.githubusercontent.com/46355364/154060004-c5367c72-d25b-48da-a316-35d8d6e5208e.png) - diff --git a/website/content/terminal/crypto/dd/desc/_index.md b/website/content/terminal/crypto/dd/desc/_index.md deleted file mode 100644 index 0b22a4999f9..00000000000 --- a/website/content/terminal/crypto/dd/desc/_index.md +++ /dev/null @@ -1,38 +0,0 @@ -``` -usage: desc [-p {0x,1inch,88mph,aave,abracadabra-money,alchemist,alchemix-finance,algorand,alpha-finance,arweave,autofarm,avalanche,axie-infinity,balancer,bancor,barnbridge,basket-dao,benqi,binance-smart-chain,bitcoin,cap,cardano,centrifuge,clipper,compound,convex-finance,cosmos,cryptex,curve,decentral-games,decred,dforce,dhedge,dodo,dogecoin,dydx,ellipsis-finance,elrond,enzyme-finance,erasure-protocol,ethereum,ethereum-name-service,euler,fantom,fei-protocol,filecoin,futureswap,gmx,goldfinch,harvest-finance,helium,hurricaneswap,idle-finance,index-cooperative,instadapp,integral-protocol,karura,keeperdao,keep-network,kusama,kyber,lido-finance,liquity,litecoin,livepeer,looksrare,loopring,maiar,makerdao,maple-finance,mcdex,metamask,mstable,near-protocol,nexus-mutual,nftx,notional-finance,opensea,optimism,osmosis,pancakeswap,pangolin,perpetual-protocol,piedao,pocket-network,polkadot,polygon,polymarket,pooltogether,powerpool,quickswap,rarible,rari-capital,reflexer,ren,ribbon-finance,rocket-pool,saddle-finance,set-protocol,solana,solend,spookyswap,stake-dao,stellar,sushiswap,synthetix,terra,tezos,the-graph,thorchain,tokemak,tokenlon,tornado-cash,trader-joe,uma,uniswap,unit-protocol,venus,vesper-finance,volmex,wakaswap,yearn-finance,yield-guild-games,yield-yak,zcash,zora}] [-h] [--export EXPORT] -``` - -Display project description [Source: Token Terminal] - -``` -optional arguments: - -p {0x,1inch,88mph,aave,abracadabra-money,alchemist,alchemix-finance,algorand,alpha-finance,arweave,autofarm,avalanche,axie-infinity,balancer,bancor,barnbridge,basket-dao,benqi,binance-smart-chain,bitcoin,cap,cardano,centrifuge,clipper,compound,convex-finance,cosmos,cryptex,curve,decentral-games,decred,dforce,dhedge,dodo,dogecoin,dydx,ellipsis-finance,elrond,enzyme-finance,erasure-protocol,ethereum,ethereum-name-service,euler,fantom,fei-protocol,filecoin,futureswap,gmx,goldfinch,harvest-finance,helium,hurricaneswap,idle-finance,index-cooperative,instadapp,integral-protocol,karura,keeperdao,keep-network,kusama,kyber,lido-finance,liquity,litecoin,livepeer,looksrare,loopring,maiar,makerdao,maple-finance,mcdex,metamask,mstable,near-protocol,nexus-mutual,nftx,notional-finance,opensea,optimism,osmosis,pancakeswap,pangolin,perpetual-protocol,piedao,pocket-network,polkadot,polygon,polymarket,pooltogether,powerpool,quickswap,rarible,rari-capital,reflexer,ren,ribbon-finance,rocket-pool,saddle-finance,set-protocol,solana,solend,spookyswap,stake-dao,stellar,sushiswap,synthetix,terra,tezos,the-graph,thorchain,tokemak,tokenlon,tornado-cash,trader-joe,uma,uniswap,unit-protocol,venus,vesper-finance,volmex,wakaswap,yearn-finance,yield-guild-games,yield-yak,zcash,zora}, --project {0x,1inch,88mph,aave,abracadabra-money,alchemist,alchemix-finance,algorand,alpha-finance,arweave,autofarm,avalanche,axie-infinity,balancer,bancor,barnbridge,basket-dao,benqi,binance-smart-chain,bitcoin,cap,cardano,centrifuge,clipper,compound,convex-finance,cosmos,cryptex,curve,decentral-games,decred,dforce,dhedge,dodo,dogecoin,dydx,ellipsis-finance,elrond,enzyme-finance,erasure-protocol,ethereum,ethereum-name-service,euler,fantom,fei-protocol,filecoin,futureswap,gmx,goldfinch,harvest-finance,helium,hurricaneswap,idle-finance,index-cooperative,instadapp,integral-protocol,karura,keeperdao,keep-network,kusama,kyber,lido-finance,liquity,litecoin,livepeer,looksrare,loopring,maiar,makerdao,maple-finance,mcdex,metamask,mstable,near-protocol,nexus-mutual,nftx,notional-finance,opensea,optimism,osmosis,pancakeswap,pangolin,perpetual-protocol,piedao,pocket-network,polkadot,polygon,polymarket,pooltogether,powerpool,quickswap,rarible,rari-capital,reflexer,ren,ribbon-finance,rocket-pool,saddle-finance,set-protocol,solana,solend,spookyswap,stake-dao,stellar,sushiswap,synthetix,terra,tezos,the-graph,thorchain,tokemak,tokenlon,tornado-cash,trader-joe,uma,uniswap,unit-protocol,venus,vesper-finance,volmex,wakaswap,yearn-finance,yield-guild-games,yield-yak,zcash,zora} - Choose project of interest (default: btc) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Aug 28, 19:09 (🦋) /crypto/dd/ $ desc cardano -HOW - Validators process transactions and receive fees from users (supply-side revenue). - -WHO - ADA holders own and govern the protocol. They currently do not take a cut of the total transaction fees paid by users (protocol revenue). - -WHAT - Cardano is a smart contract platform for decentralized applications (a blockchain). Cardano was founded by Charles Hoskinson & Jeremy Wood and launched in 2017. - -FUNDING - Cardano has raised approx. $62.2M. - -COMPETITION - Smart contract platforms such as Cosmos, Ethereum, Tezos, etc. - -BUSINESS MODEL - Cardano is a smart contract platform for dApps. - -GITHUB CONTRIBUTORS - 533 -``` diff --git a/website/content/terminal/crypto/dd/dev/_index.md b/website/content/terminal/crypto/dd/dev/_index.md deleted file mode 100644 index 92e4285919e..00000000000 --- a/website/content/terminal/crypto/dd/dev/_index.md +++ /dev/null @@ -1,38 +0,0 @@ -``` -usage: dev [--export {csv,json,xlsx}] [-h] -``` - -Developers data for loaded coin. If the development data is available you can see how the code development of given coin is going on. There are some statistics that shows number of stars, forks, subscribers, pull requests, commits, merges, contributors on github. - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:13 (🦋) /crypto/dd/ $ dev - Developers Data for Loaded Coin -┌───────────────────────────┬───────┐ -│ Metric │ Value │ -├───────────────────────────┼───────┤ -│ Forks │ 31593 │ -├───────────────────────────┼───────┤ -│ Stars │ 61894 │ -├───────────────────────────┼───────┤ -│ Subscribers │ 3904 │ -├───────────────────────────┼───────┤ -│ Total Issues │ 6729 │ -├───────────────────────────┼───────┤ -│ Closed Issues │ 6114 │ -├───────────────────────────┼───────┤ -│ Pull Requests Merged │ 9418 │ -├───────────────────────────┼───────┤ -│ Pull Request Contributors │ 771 │ -├───────────────────────────┼───────┤ -│ Commit Count 4 Weeks │ 266 │ -└───────────────────────────┴───────┘ -``` diff --git a/website/content/terminal/crypto/dd/eb/_index.md b/website/content/terminal/crypto/dd/eb/_index.md deleted file mode 100644 index 1d863d7b3aa..00000000000 --- a/website/content/terminal/crypto/dd/eb/_index.md +++ /dev/null @@ -1,27 +0,0 @@ -``` -usage: eb [-e EXCHANGE] - [-p {True, False}] - [-s INITIAL_DATE] - [-u END_DATE] - [-i {1h, 24h, 10m, 1w, 1month}] - [--export {csv,json,xlsx}] [-h] -``` - -Display total amount of coins held on exchange addresses in units and percentage. [Source: https://glassnode.org] - -Supported assets: BTC, ETH, LTC, AAVE, ABT, AMPL, ANT, ARMOR, BADGER, BAL, BAND, BAT, BIX, BNT, BOND, BRD, BUSD, BZRX, CELR, CHSB, CND, COMP, CREAM, CRO, CRV, CVC, CVP, DAI, DDX, DENT, DGX, DHT, DMG, DODO, DOUGH, DRGN, ELF, ENG, ENJ, EURS, FET, FTT, FUN, GNO, GUSD, HEGIC, HOT, HPT, HT, HUSD, INDEX, KCS, LAMB, LBA, LDO, LEO, LINK, LOOM, LRC, MANA, MATIC, MCB, MCO, MFT, MIR, MKR, MLN, MTA, MTL, MX, NDX, NEXO, NFTX, NMR, Nsure, OCEAN, OKB, OMG, PAX, PAY, PERP, PICKLE, PNK, PNT, POLY, POWR, PPT, QASH, QKC, QNT, RDN, REN, REP, RLC, ROOK, RPL, RSR, SAI, SAN, SNT, SNX, STAKE, STORJ, sUSD, SUSHI, TEL, TOP, UBT, UMA, UNI, USDC, USDK, USDT, UTK, VERI, WaBi, WAX, WBTC, WETH, wNMX, WTC, YAM, YFI, ZRX - -Supported exchanges: aggregated, binance, bittrex, coinex, gate.io, gemini, huobi, kucoin, poloniex, bibox, bigone, bitfinex, hitbtc, kraken, okex, bithumb, zb.com, cobinhood, bitmex, bitstamp, coinbase, coincheck, luno - -``` -arguments: - -e EXCHANGE Exchange to check (default: aggregated) - -p {True, False} Show percentage instead of stacked value (default: False) - -s DATE --since DATE Start date (default: 3 years before, e.g., 2018-10-22) - -u DATE --until DATE End date (default: 2 years before, e.g., 2019-10-22) - -i INTERV --interval INTERV Interval frequency (default: 24h) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![eb](https://user-images.githubusercontent.com/46355364/154060160-3102de99-bed7-4e3b-bc98-81c684eefcb0.png) diff --git a/website/content/terminal/crypto/dd/events/_index.md b/website/content/terminal/crypto/dd/events/_index.md deleted file mode 100644 index 5e5f5aea7c1..00000000000 --- a/website/content/terminal/crypto/dd/events/_index.md +++ /dev/null @@ -1,55 +0,0 @@ -``` -usage: events [-l N] [-s {date,date_to,name,description,is_conference}] [--reverse] [-u] [--export {csv,json,xlsx}] [-h] -``` - -Show information about most important coins events. Most of coins doesn't have any events. You can display only N number of events with --limit -parameter. You can sort data by id, date , date_to, name, description, is_conference --sort parameter and also with --reverse flag to sort -ascending. You can use additional flag --urls to see urls for each event Displays: date , date_to, name, description, is_conference, link, -proof_image_link - -``` -optional arguments: - -l N, --limit N Limit of records (default: 10) - -s {date,date_to,name,description,is_conference}, --sort {date,date_to,name,description,is_conference} - Sort by given column. Default: date (default: date) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is show this help message (default: False) - -u, --urls Flag to show urls. If you will use that flag you will see only date, name, link columns (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:14 (🦋) /crypto/dd/ $ events - All Events -┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────────┬───────────────┐ -│ date │ date_to │ name │ description │ is_conference │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2021-06-11 │ None │ Ask El Salvador for advice: Cuba suspends dollar cash deposits in banks due to US sanctions │ │ False │ -│ 00:00:00 │ │ │ │ │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2021-06-11 │ None │ One of the Richest Bitcoin Whales in History Bought $138,000,000 in BTC Amid Market Turmoil – AronBoss │ │ False │ -│ 00:00:00 │ │ │ │ │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2021-05-10 │ None │ Bitcoin’s upcoming Taproot upgrade and why it matters for the network │ │ False │ -│ 00:00:00 │ │ │ │ │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2021-03-24 │ 2021-03-26 │ THE CRYPTO GATHERING │ │ False │ -│ 08:00:00 │ 23:00:00 │ │ │ │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2018-10-09 │ 2018-10-09 │ Blockchain & Bitcoin Conference Switzerland │ The second conference organized by │ True │ -│ 09:00:00 │ 18:00:00 │ │ Smile-Expo company in Geneva, the │ │ -│ │ │ │ European fintech hub. The conference │ │ -│ │ │ │ will also feature the demozone. │ │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2018-09-28 │ 2018-09-30 │ Super Conference │ KWIC, Kitchener - Waterloo, ON, Canada. │ True │ -│ 20:00:00 │ 16:00:00 │ │ 29 September, 2018 │ │ -├────────────┼────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────┼───────────────┤ -│ 2018-07-10 │ None │ SEC- ETF VanEck decision │ │ False │ -│ 12:00:00 │ │ │ │ │ -└────────────┴────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────┴───────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/ex/_index.md b/website/content/terminal/crypto/dd/ex/_index.md deleted file mode 100644 index 22ec7f1947f..00000000000 --- a/website/content/terminal/crypto/dd/ex/_index.md +++ /dev/null @@ -1,19 +0,0 @@ -``` -usage: ex [-l N] [-s {id,name,adjusted_volume_24h_share,fiats}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Get all exchanges found for given coin. You can display only N number of exchanges with --limit parameter. You can sort data by id, name, -adjusted_volume_24h_share, fiats --sort parameter and also with --reverse flag to sort ascending. Displays: id, name, adjusted_volume_24h_share, fiats - -``` -optional arguments: - -l N, --limit N Limit of records (default: 10) - -s {id,name,adjusted_volume_24h_share,fiats}, --sort {id,name,adjusted_volume_24h_share,fiats} - Sort by given column. Default: date (default: adjusted_volume_24h_share) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/dd/fr/_index.md b/website/content/terminal/crypto/dd/fr/_index.md deleted file mode 100644 index 349f5868b8f..00000000000 --- a/website/content/terminal/crypto/dd/fr/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -`usage: fr [-h] [--export EXPORT]` - -Display asset's fundraising details [Source: https://messari.io] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/fundrate/_index.md b/website/content/terminal/crypto/dd/fundrate/_index.md deleted file mode 100644 index 4fa19d40b9d..00000000000 --- a/website/content/terminal/crypto/dd/fundrate/_index.md +++ /dev/null @@ -1,11 +0,0 @@ -``` -usage: fundrate [-h] [--export EXPORT] -``` - -Displays funding rate by exchange for a certain asset [Source: https://coinglass.github.io/API-Reference/] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` diff --git a/website/content/terminal/crypto/dd/funot/_index.md b/website/content/terminal/crypto/dd/funot/_index.md deleted file mode 100644 index 0eb12033d42..00000000000 --- a/website/content/terminal/crypto/dd/funot/_index.md +++ /dev/null @@ -1,24 +0,0 @@ -``` -usage: funot [-m {twitter_followers,gmv_annualized,market_cap,take_rate,revenue,revenue_protocol,tvl,pe,pe_circulating,ps,ps_circulating}] - [-p {0x,1inch,88mph,aave,abracadabra-money,alchemist,alchemix-finance,algorand,alpha-finance,arweave,autofarm,avalanche,axie-infinity,balancer,bancor,barnbridge,basket-dao,benqi,binance-smart-chain,bitcoin,cap,cardano,centrifuge,clipper,compound,convex-finance,cosmos,cryptex,curve,decentral-games,decred,dforce,dhedge,dodo,dogecoin,dydx,ellipsis-finance,elrond,enzyme-finance,erasure-protocol,ethereum,ethereum-name-service,euler,fantom,fei-protocol,filecoin,futureswap,gmx,goldfinch,harvest-finance,helium,hurricaneswap,idle-finance,index-cooperative,instadapp,integral-protocol,karura,keeperdao,keep-network,kusama,kyber,lido-finance,liquity,litecoin,livepeer,looksrare,loopring,maiar,makerdao,maple-finance,mcdex,metamask,mstable,near-protocol,nexus-mutual,nftx,notional-finance,opensea,optimism,osmosis,pancakeswap,pangolin,perpetual-protocol,piedao,pocket-network,polkadot,polygon,polymarket,pooltogether,powerpool,quickswap,rarible,rari-capital,reflexer,ren,ribbon-finance,rocket-pool,saddle-finance,set-protocol,solana,solend,spookyswap,stake-dao,stellar,sushiswap,synthetix,terra,tezos,the-graph,thorchain,tokemak,tokenlon,tornado-cash,trader-joe,uma,uniswap,unit-protocol,venus,vesper-finance,volmex,wakaswap,yearn-finance,yield-guild-games,yield-yak,zcash,zora}] [--export EXPORT] -``` - -Display fundamental metric over time [Source: Token Terminal] - -``` -optional arguments: - -m {twitter_followers,gmv_annualized,market_cap,take_rate,revenue,revenue_protocol,tvl,pe,pe_circulating,ps,ps_circulating}, --metric {twitter_followers,gmv_annualized,market_cap,take_rate,revenue,revenue_protocol,tvl,pe,pe_circulating,ps,ps_circulating} - Choose metric of interest (default: ) - -p {0x,1inch,88mph,aave,abracadabra-money,alchemist,alchemix-finance,algorand,alpha-finance,arweave,autofarm,avalanche,axie-infinity,balancer,bancor,barnbridge,basket-dao,benqi,binance-smart-chain,bitcoin,cap,cardano,centrifuge,clipper,compound,convex-finance,cosmos,cryptex,curve,decentral-games,decred,dforce,dhedge,dodo,dogecoin,dydx,ellipsis-finance,elrond,enzyme-finance,erasure-protocol,ethereum,ethereum-name-service,euler,fantom,fei-protocol,filecoin,futureswap,gmx,goldfinch,harvest-finance,helium,hurricaneswap,idle-finance,index-cooperative,instadapp,integral-protocol,karura,keeperdao,keep-network,kusama,kyber,lido-finance,liquity,litecoin,livepeer,looksrare,loopring,maiar,makerdao,maple-finance,mcdex,metamask,mstable,near-protocol,nexus-mutual,nftx,notional-finance,opensea,optimism,osmosis,pancakeswap,pangolin,perpetual-protocol,piedao,pocket-network,polkadot,polygon,polymarket,pooltogether,powerpool,quickswap,rarible,rari-capital,reflexer,ren,ribbon-finance,rocket-pool,saddle-finance,set-protocol,solana,solend,spookyswap,stake-dao,stellar,sushiswap,synthetix,terra,tezos,the-graph,thorchain,tokemak,tokenlon,tornado-cash,trader-joe,uma,uniswap,unit-protocol,venus,vesper-finance,volmex,wakaswap,yearn-finance,yield-guild-games,yield-yak,zcash,zora}, --project {0x,1inch,88mph,aave,abracadabra-money,alchemist,alchemix-finance,algorand,alpha-finance,arweave,autofarm,avalanche,axie-infinity,balancer,bancor,barnbridge,basket-dao,benqi,binance-smart-chain,bitcoin,cap,cardano,centrifuge,clipper,compound,convex-finance,cosmos,cryptex,curve,decentral-games,decred,dforce,dhedge,dodo,dogecoin,dydx,ellipsis-finance,elrond,enzyme-finance,erasure-protocol,ethereum,ethereum-name-service,euler,fantom,fei-protocol,filecoin,futureswap,gmx,goldfinch,harvest-finance,helium,hurricaneswap,idle-finance,index-cooperative,instadapp,integral-protocol,karura,keeperdao,keep-network,kusama,kyber,lido-finance,liquity,litecoin,livepeer,looksrare,loopring,maiar,makerdao,maple-finance,mcdex,metamask,mstable,near-protocol,nexus-mutual,nftx,notional-finance,opensea,optimism,osmosis,pancakeswap,pangolin,perpetual-protocol,piedao,pocket-network,polkadot,polygon,polymarket,pooltogether,powerpool,quickswap,rarible,rari-capital,reflexer,ren,ribbon-finance,rocket-pool,saddle-finance,set-protocol,solana,solend,spookyswap,stake-dao,stellar,sushiswap,synthetix,terra,tezos,the-graph,thorchain,tokemak,tokenlon,tornado-cash,trader-joe,uma,uniswap,unit-protocol,venus,vesper-finance,volmex,wakaswap,yearn-finance,yield-guild-games,yield-yak,zcash,zora} - Choose project of interest (default: btc) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: -``` -2022 Aug 28, 19:08 (🦋) /crypto/dd/ $ funot -m revenue -p solana -``` - -Screenshot 2022-08-29 at 00 08 53 - diff --git a/website/content/terminal/crypto/dd/gh/_index.md b/website/content/terminal/crypto/dd/gh/_index.md deleted file mode 100644 index 0ba557d9c0a..00000000000 --- a/website/content/terminal/crypto/dd/gh/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: gh [-i INTERVAL] [-d DEV] [-s START] [-end END] [-h] [--export EXPORT] -``` - -Display github activity over time for a given coin. [Source: https://santiment.net/] - -``` -optional arguments: - -i INTERVAL, --interval INTERVAL - Frequency interval. Default: 1d (default: 1w) - -d DEV, --dev DEV Filter only for development activity. Default: False (default: False) - -s START, --start START - Initial date. Default: A year ago (default: 2021-04-25) - -end END, --end END End date. Default: Today (default: 2022-04-25) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` diff --git a/website/content/terminal/crypto/dd/gov/_index.md b/website/content/terminal/crypto/dd/gov/_index.md deleted file mode 100644 index 5ccd54dd214..00000000000 --- a/website/content/terminal/crypto/dd/gov/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -`usage: gov [-h] [--export EXPORT]` - -Display asset's governance [Source: https://messari.io] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/info/_index.md b/website/content/terminal/crypto/dd/info/_index.md deleted file mode 100644 index 40deea5ef6a..00000000000 --- a/website/content/terminal/crypto/dd/info/_index.md +++ /dev/null @@ -1,73 +0,0 @@ -``` -usage: info [--export {csv,json,xlsx}] [-h] -``` - -Shows basic information about loaded coin like: Name, Symbol, Description, Market Cap, Public Interest, Supply, and Price related metrics - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:34 (🦋) /crypto/dd/ $ info - Basic Coin Information -┌─────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────┐ -│ Metric │ Value │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Id │ bitcoin │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Name │ Bitcoin │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Symbol │ btc │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Description │ Bitcoin is the first successful internet money based on peer-to-peer technology; │ -│ │ whereby no central bank or authority is involved in the transaction and │ -│ │ production of the Bitcoin currency. It was created by an anonymous │ -│ │ individual/group under the name, Satoshi Nakamoto. The source code is available │ -│ │ publicly as an open source project, anybody can look at it and be part of the │ -│ │ developmental process. Bitcoin is changing the way we see money as we speak. The │ -│ │ idea was to produce a means of exchange, independent of any central authority, │ -│ │ that could be transferred electronically in a secure, verifiable and immutable │ -│ │ way. It is a decentralized peer-to-peer internet currency making mobile payment │ -│ │ easy, very low transaction fees, protects your identity, and it works anywhere │ -│ │ all the time with no central authority and banks. Bitcoin is designed to have │ -│ │ only 21 million BTC ever created, thus making it a deflationary currency. │ -│ │ Bitcoin uses the SHA-256 hashing algorithm with an average transaction │ -│ │ confirmation time of 10 minutes. Miners today are mining Bitcoin using ASIC chip │ -│ │ dedicated to only mining Bitcoin, and the hash rate has shot up to peta hashes. │ -│ │ Being the first successful online cryptography currency, Bitcoin has inspired │ -│ │ other alternative currencies such as Litecoin, Peercoin, Primecoin, and so on. │ -│ │ The cryptocurrency then took off with the innovation of the turing-complete │ -│ │ smart contract by Ethereum which led to the development of other amazing │ -│ │ projects such as EOS, Tron, and even crypto-collectibles such as CryptoKitties. │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Contract Address │ {} │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Market Cap Rank │ 1 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Public Interest Score │ 0.34 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Total Supply │ 21000000.00 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Max Supply │ 21000000.00 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Circulating Supply │ 18958987.00 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Price Change Percentage 24H │ 4.47 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Price Change Percentage 7D │ 0.82 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Price Change Percentage 30D │ 2.41 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Current Price Btc │ 1.00 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Current Price Eth │ 14.27 │ -├─────────────────────────────┼──────────────────────────────────────────────────────────────────────────────────┤ -│ Current Price Usd │ 44269 │ -└─────────────────────────────┴──────────────────────────────────────────────────────────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/inv/_index.md b/website/content/terminal/crypto/dd/inv/_index.md deleted file mode 100644 index 96dda7fa61c..00000000000 --- a/website/content/terminal/crypto/dd/inv/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -`usage: inv [-h] [--export EXPORT]` - -Display asset's investors [Source: https://messari.io] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/links/_index.md b/website/content/terminal/crypto/dd/links/_index.md deleted file mode 100644 index 8b4076bd221..00000000000 --- a/website/content/terminal/crypto/dd/links/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -`usage: links [-h] [--export EXPORT]` - -Display asset's links [Source: https://messari.io] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/liquidations/_index.md b/website/content/terminal/crypto/dd/liquidations/_index.md deleted file mode 100644 index d443a5497ec..00000000000 --- a/website/content/terminal/crypto/dd/liquidations/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: liquidations - [--export {csv,json,xlsx}] [-h] -``` - -Display the liquidation data for a certain cryptocurrency. [Source: https://coinglass.github.io/API-Reference/] -Crypto must be loaded (e.g., `load btc`) before running this feature. - -The Liquidations counts the daily Liquidations of futures contracts across all exchanges and currencies. The liquidation history across all exchanges can be viewed through the historical Liquidations. - -``` -optional arguments: - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![oi](https://user-images.githubusercontent.com/1673206/186211230-e095fe05-6d86-4d6a-aa2d-dd84dee4ad52.png) \ No newline at end of file diff --git a/website/content/terminal/crypto/dd/market/_index.md b/website/content/terminal/crypto/dd/market/_index.md deleted file mode 100644 index e3acd6b7d27..00000000000 --- a/website/content/terminal/crypto/dd/market/_index.md +++ /dev/null @@ -1,74 +0,0 @@ -``` -usage: market [--export {csv,json,xlsx}] [-h] -``` - -Market data for loaded coin. There you find metrics like: Market Cap, Supply, Circulating Supply, Price, Volume and many others. - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:41 (🦋) /crypto/dd/ $ market - Market Data -┌──────────────────────────────────────────┬─────────────────┐ -│ Metric │ Value │ -├──────────────────────────────────────────┼─────────────────┤ -│ Market Cap Rank │ 1.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Total Supply │ 21000000.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Max Supply │ 21000000.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Circulating Supply │ 18958987.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Price Change Percentage 24H │ 4.47 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Price Change Percentage 7D │ 0.82 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Price Change Percentage 30D │ 2.41 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Price Change Percentage 60D │ -7.18 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Price Change Percentage 1Y │ -8.93 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Market Cap Change 24H │ 39455964995.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Market Cap Btc │ 18958987.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Market Cap Eth │ 270479740.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Market Cap Usd │ 839296434756.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Fully Diluted Valuation Btc │ 21000000.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Fully Diluted Valuation Eth │ 299597998.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Fully Diluted Valuation Usd │ 929650151133.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Total Volume Btc │ 470419.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Total Volume Eth │ 6711079.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Total Volume Usd │ 20824423212.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ High 24H Btc │ 1.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ High 24H Eth │ 14.66 │ -├──────────────────────────────────────────┼─────────────────┤ -│ High 24H Usd │ 44410.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Low 24H Btc │ 1.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Low 24H Eth │ 14.23 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Low 24H Usd │ 42026.00 │ -├──────────────────────────────────────────┼─────────────────┤ -│ Circulating Supply To Total Supply Ratio │ 0.90 │ -└──────────────────────────────────────────┴─────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/mcapdom/_index.md b/website/content/terminal/crypto/dd/mcapdom/_index.md deleted file mode 100644 index 673c3dbc50a..00000000000 --- a/website/content/terminal/crypto/dd/mcapdom/_index.md +++ /dev/null @@ -1,19 +0,0 @@ -``` -usage: mcapdom [-i {5m,15m,30m,1h,1d,1w}] [-s START] [-end END] [-h] - [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Display asset's percentage share of total crypto circulating market cap [Source: https://messari.io] - -``` -optional arguments: - -i {5m,15m,30m,1h,1d,1w}, --interval {5m,15m,30m,1h,1d,1w} - Frequency interval. Default: 1d (default: 1d) - -s START, --start START - Initial date. Default: A year ago (default: 2021-03-14) - -end END, --end END End date. Default: Today (default: 2022-03-14) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg - (default: ) -``` diff --git a/website/content/terminal/crypto/dd/mkt/_index.md b/website/content/terminal/crypto/dd/mkt/_index.md deleted file mode 100644 index 2f3719078f4..00000000000 --- a/website/content/terminal/crypto/dd/mkt/_index.md +++ /dev/null @@ -1,76 +0,0 @@ -``` -usage: mkt - [--vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK}] - [-l N] [-s {pct_volume_share,exchange,pair,trust_score,volume,price}] [--reverse] [-u] [--export {csv,json,xlsx}] [-h] -``` - -Get all markets found for given coin. You can display only N number of markets with --limit parameter. You can sort data by pct_volume_share, -exchange, pair, trust_score, volume, price --sort parameter and also with --reverse flag to sort ascending. You can use additional flag --urls to -see urls for each market Displays: exchange, pair, trust_score, volume, price, pct_volume_share, - -``` -optional arguments: - --vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK} - Quoted currency. Default USD (default: USD) - -t TOP, --top TOP Limit of records (default: 20) - -s {pct_volume_share,exchange,pair,trust_score,volume,price}, --sort {pct_volume_share,exchange,pair,trust_score,volume,price} - Sort by given column. Default: pct_volume_share (default: pct_volume_share) - --r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is show this help message (default: False) - -u, --urls Flag to show urls. If you will use that flag you will see only: exchange, pair, trust_score, market_url columns (default: - False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:41 (🦋) /crypto/dd/ $ mkt - All Markets -┌─────────────────────┬──────────┬─────────────┬──────────────────┬───────────┬────────────────┐ -│ exchange │ pair │ trust_score │ pct_volume_share │ usd_price │ usd_volume │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ QB │ BTC/USDT │ low │ 76.66 │ 44335.56 │ 83125013156.79 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Bitenium │ BTC/USDT │ no_data │ 1.70 │ 44337.16 │ 1840286891.89 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Binance │ BTC/USDT │ high │ 1.69 │ 44340.62 │ 1829582324.62 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Crypto.com Exchange │ BTC/USDT │ low │ 1.41 │ 44329.00 │ 1524907447.06 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Indoex │ BTC/USD │ no_data │ 0.71 │ 44257.37 │ 767372786.82 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Coinbase │ BTC/USD │ high │ 0.65 │ 44305.95 │ 700692544.59 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Gleec BTC Exchange │ BTC/USDT │ no_data │ 0.63 │ 44353.43 │ 681039760.57 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ HitBTC │ BTC/USDT │ high │ 0.63 │ 44351.01 │ 681002641.50 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Bequant │ BTC/USDT │ low │ 0.63 │ 44331.91 │ 679750799.42 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ FMFW.io │ BTC/USD │ low │ 0.63 │ 44205.77 │ 678518719.32 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Binance │ BTC/BUSD │ high │ 0.53 │ 44309.66 │ 572365752.88 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ FTX (Spot) │ BTC/USD │ medium │ 0.45 │ 44209.00 │ 492815904.21 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Huobi │ BTC/USDT │ low │ 0.44 │ 44340.66 │ 479152896.05 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Indoex │ BTC/EUR │ no_data │ 0.42 │ 44250.15 │ 453236652.77 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Kucoin │ BTC/USDT │ low │ 0.40 │ 44341.16 │ 436318305.41 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Bitrue │ BTC/USDT │ low │ 0.37 │ 44337.33 │ 403067095.03 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Lbank │ BTC/USDT │ low │ 0.36 │ 44343.55 │ 385493474.14 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ BigONE │ BTC/USDT │ low │ 0.35 │ 44334.78 │ 377459785.89 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ Simex │ BTC/USD │ low │ 0.33 │ 44237.02 │ 355967120.52 │ -├─────────────────────┼──────────┼─────────────┼──────────────────┼───────────┼────────────────┤ -│ DigiFinex │ BTC/USDT │ high │ 0.31 │ 44394.03 │ 339944185.15 │ -└─────────────────────┴──────────┴─────────────┴──────────────────┴───────────┴────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/mt/_index.md b/website/content/terminal/crypto/dd/mt/_index.md deleted file mode 100644 index 055ee4d11ba..00000000000 --- a/website/content/terminal/crypto/dd/mt/_index.md +++ /dev/null @@ -1,22 +0,0 @@ -`usage: mt [--list] [-t {exch.bittrex.flow.net,...}] [-i {5m,15m,30m,1h,1d,1w}] [-s START] [-end END] [--include-paid] [-q QUERY [QUERY ...]] [-h] [--export EXPORT] [-l LIMIT]` - -Display messari timeseries [Source: https://messari.io] - -```` -optional arguments: - --list Flag to show available timeseries (default: False) - -t {exch.bittrex.flow.net,exch.sply.bitstamp,addr.bal.100k.ntv.cnt,exch.sply.binance,utxo.age.med,exch.kraken.flow.out.ntv,exch.flow.out.ntv,diff.avg,utxo.age.val.avg,twitter.followers,blk.cnt,hashrate.30d,sply.addr.bal.1m.ntv,addr.bal.1m.cnt,exch.huobi.flow.in.ntv,min.rev.usd,utxo.prof.cnt,blk.int.avg,exch.binance.flow.in,sply.act.4y,txn.tfr.val.adj.ntv,exch.sply.bittrex.ntv,sply.rvv.4y,blk.unc.rew,exch.sply,exch.sply.usd,exch.binance.flow.net.ntv,fees.ntv,sply.total.iss,hashrate,sply.act.30d,txn.tfr.erc721.cnt,exch.gemini.flow.net.ntv,exch.poloniex.flow.out,exch.sply.kraken.ntv,exch.flow.in.usd,addr.bal.10.cnt,exch.bitstamp.flow.net.ntv,exch.sply.binance.ntv,telegram.users,exch.huobi.flow.net,nvt.adj,addr.bal.1.ntv.cnt,exch.gemini.flow.in,cg.sply.circ,exch.sply.bitfinex.ntv,exch.bitmex.flow.in.ntv,exch.bittrex.flow.out,miner.1hop.sply.ntv,txn.tkn.cnt,addr.bal.1m.ntv.cnt,exch.bitstamp.flow.in.ntv,hash.rev.ntv,txn.tfr.val.ntv,utxo.cnt,addr.bal.0.01.ntv.cnt,exch.bitmex.flow.out.ntv,rvt.adj.90d.ma,sply.act.3y,sply.addr.bal.1k.ntv,sply.addr.bal.1.ntv,sply.rvv.5y,sply.shld,addr.bal.0.001.ntv.cnt,exch.bitfinex.flow.net,exch.poloniex.flow.in,exch.sply.bitmex,txn.tfr.avg.ntv,txn.gas,blk.hgt,exch.gemini.flow.out,exch.sply.bitfinex,sply.act.180d,sply.addr.bal.1m,txn.cnt,exch.binance.flow.in.ntv,exch.poloniex.flow.out.ntv,mcap.realized,sply.act.90d,exch.bitstamp.flow.in,exch.bittrex.flow.in,exch.poloniex.flow.in.ntv,exch.sply.huobi.ntv,exch.flow.out.usd,price,addr.bal.1k.ntv.cnt,addr.bal.100.ntv.cnt,exch.kraken.flow.net.ntv,txn.fee.med,sply.act.1y,txn.cont.call.succ.cnt,txn.tfr.erc20.cnt,addr.bal.10k.ntv.cnt,blk.size.bytes.avg,exch.binance.flow.net,exch.binance.flow.out,sply.rvv.180d,sply.rvv.7d,addr.cnt,exch.bittrex.flow.out.ntv,sply.addr.bal.100.ntv,sply.rvv.2y,sply.top.100,txn.cnt.sec,exch.bitfinex.flow.in,exch.bitfinex.flow.out.ntv,exch.sply.poloniex.ntv,sply.cont.usd,exch.bittrex.flow.net.ntv,exch.flow.out.ntv.incl,sply.addr.bal.0.001.ntv,txn.vol,txn.fee.avg,txn.fee.avg.ntv,real.vol,exch.poloniex.flow.net,exch.kraken.flow.in.ntv,txn.cont.call.cnt,exch.flow.out.usd.incl,exch.flow.in.ntv.incl,new.iss.ntv,fees.pct.rev,exch.gemini.flow.net,exch.bitstamp.flow.out,exch.gemini.flow.out.ntv,exch.kraken.flow.out,addr.act.sent.cnt,exch.bittrex.flow.in.ntv,exch.sply.gemini,sply.act.2y,sply.act.7d,sply.top.1pct,txn.cont.cnt,sply.liquid,addr.bal.100k.cnt,exch.bitfinex.flow.net.ntv,exch.huobi.flow.out,txn.fee.med.ntv,blk.unc.rew.ntv,hashrate.rev,sply.addr.bal.100,sply.addr.bal.100k.ntv,sply.rvv.30d,txn.tsfr.cnt,mcap.dom,act.addr.cnt,exch.binance.flow.out.ntv,sply.act.pct.1y,blk.unc.rew.pct,exch.bitstamp.flow.out.ntv,exch.sply.bittrex,sply.total.iss.ntv,addr.bal.0.1.ntv.cnt,sply.addr.bal.0.1.ntv,sply.top.10pct,exch.sply.bitstamp.ntv,nvt.adj.90d.ma,txn.cont.creat.cnt,exch.huobi.flow.in,exch.flow.in.ntv,sply.act.evr,sply.addr.bal.100k,txn.erc721.cnt,exch.bitmex.flow.in,hashrate.rev.ntv,sply.addr.bal.10.ntv,sply.rvv.90d,mcap.out,miner.rev.total,sply.addr.bal.1k,exch.flow.in.usd.incl,sply.act.5y,txn.gas.limit.avg,mcap.circ,daily.shp,addr.bal.10m.cnt,blk.size.byte,miner.sply,reddit.active.users,exch.poloniex.flow.net.ntv,sply.rvv.1y,exch.bitmex.flow.net,exch.bitmex.flow.net.ntv,exch.bitfinex.flow.out,exch.sply.poloniex,txn.gas.limit,txn.tfr.val.med,addr.bal.1k.cnt,fees,sply.addr.bal.10k.ntv,sply.utxo.prof,addr.bal.10.ntv.cnt,exch.kraken.flow.net,blk.gas.limit.avg,iss.rate,txn.cont.dest.cnt,txn.tfr.val.med.ntv,sply.circ,new.iss.usd,miner.sply.ntv,sply.addr.bal.10,blk.wght.total,sply.addr.bal.1,txn.tsfr.val.avg,utxo.loss.cnt,rvt.adj,exch.bitstamp.flow.net,sply.out,txn.erc20.cnt,utxo.age.avg,reddit.subscribers,exch.huobi.flow.net.ntv,iss.rate.day,exch.sply.gemini.ntv,hash.rev,sply.act.1d,miner.1hop.sply,sply.act.10y,sply.rvv.3y,addr.bal.10k.cnt,exch.bitfinex.flow.in.ntv,exch.kraken.flow.in,exch.huobi.flow.out.ntv,txn.tsfr.val.adj,exch.sply.huobi,addr.bal.1.cnt,min.rev.ntv,sply.addr.bal.10k,addr.act.rcv.cnt,exch.sply.kraken,sply.addr.bal.10m,blk.wght.avg,sply.utxo.loss,addr.bal.100.cnt,exch.sply.bitmex.ntv,txn.gas.avg,sply.addr.bal.0.01.ntv,sply.cont.ntv,daily.vol,blk.unc.cnt,exch.gemini.flow.in.ntv,exch.bitmex.flow.out}, --timeseries {exch.bittrex.flow.net,exch.sply.bitstamp,addr.bal.100k.ntv.cnt,exch.sply.binance,utxo.age.med,exch.kraken.flow.out.ntv,exch.flow.out.ntv,diff.avg,utxo.age.val.avg,twitter.followers,blk.cnt,hashrate.30d,sply.addr.bal.1m.ntv,addr.bal.1m.cnt,exch.huobi.flow.in.ntv,min.rev.usd,utxo.prof.cnt,blk.int.avg,exch.binance.flow.in,sply.act.4y,txn.tfr.val.adj.ntv,exch.sply.bittrex.ntv,sply.rvv.4y,blk.unc.rew,exch.sply,exch.sply.usd,exch.binance.flow.net.ntv,fees.ntv,sply.total.iss,hashrate,sply.act.30d,txn.tfr.erc721.cnt,exch.gemini.flow.net.ntv,exch.poloniex.flow.out,exch.sply.kraken.ntv,exch.flow.in.usd,addr.bal.10.cnt,exch.bitstamp.flow.net.ntv,exch.sply.binance.ntv,telegram.users,exch.huobi.flow.net,nvt.adj,addr.bal.1.ntv.cnt,exch.gemini.flow.in,cg.sply.circ,exch.sply.bitfinex.ntv,exch.bitmex.flow.in.ntv,exch.bittrex.flow.out,miner.1hop.sply.ntv,txn.tkn.cnt,addr.bal.1m.ntv.cnt,exch.bitstamp.flow.in.ntv,hash.rev.ntv,txn.tfr.val.ntv,utxo.cnt,addr.bal.0.01.ntv.cnt,exch.bitmex.flow.out.ntv,rvt.adj.90d.ma,sply.act.3y,sply.addr.bal.1k.ntv,sply.addr.bal.1.ntv,sply.rvv.5y,sply.shld,addr.bal.0.001.ntv.cnt,exch.bitfinex.flow.net,exch.poloniex.flow.in,exch.sply.bitmex,txn.tfr.avg.ntv,txn.gas,blk.hgt,exch.gemini.flow.out,exch.sply.bitfinex,sply.act.180d,sply.addr.bal.1m,txn.cnt,exch.binance.flow.in.ntv,exch.poloniex.flow.out.ntv,mcap.realized,sply.act.90d,exch.bitstamp.flow.in,exch.bittrex.flow.in,exch.poloniex.flow.in.ntv,exch.sply.huobi.ntv,exch.flow.out.usd,price,addr.bal.1k.ntv.cnt,addr.bal.100.ntv.cnt,exch.kraken.flow.net.ntv,txn.fee.med,sply.act.1y,txn.cont.call.succ.cnt,txn.tfr.erc20.cnt,addr.bal.10k.ntv.cnt,blk.size.bytes.avg,exch.binance.flow.net,exch.binance.flow.out,sply.rvv.180d,sply.rvv.7d,addr.cnt,exch.bittrex.flow.out.ntv,sply.addr.bal.100.ntv,sply.rvv.2y,sply.top.100,txn.cnt.sec,exch.bitfinex.flow.in,exch.bitfinex.flow.out.ntv,exch.sply.poloniex.ntv,sply.cont.usd,exch.bittrex.flow.net.ntv,exch.flow.out.ntv.incl,sply.addr.bal.0.001.ntv,txn.vol,txn.fee.avg,txn.fee.avg.ntv,real.vol,exch.poloniex.flow.net,exch.kraken.flow.in.ntv,txn.cont.call.cnt,exch.flow.out.usd.incl,exch.flow.in.ntv.incl,new.iss.ntv,fees.pct.rev,exch.gemini.flow.net,exch.bitstamp.flow.out,exch.gemini.flow.out.ntv,exch.kraken.flow.out,addr.act.sent.cnt,exch.bittrex.flow.in.ntv,exch.sply.gemini,sply.act.2y,sply.act.7d,sply.top.1pct,txn.cont.cnt,sply.liquid,addr.bal.100k.cnt,exch.bitfinex.flow.net.ntv,exch.huobi.flow.out,txn.fee.med.ntv,blk.unc.rew.ntv,hashrate.rev,sply.addr.bal.100,sply.addr.bal.100k.ntv,sply.rvv.30d,txn.tsfr.cnt,mcap.dom,act.addr.cnt,exch.binance.flow.out.ntv,sply.act.pct.1y,blk.unc.rew.pct,exch.bitstamp.flow.out.ntv,exch.sply.bittrex,sply.total.iss.ntv,addr.bal.0.1.ntv.cnt,sply.addr.bal.0.1.ntv,sply.top.10pct,exch.sply.bitstamp.ntv,nvt.adj.90d.ma,txn.cont.creat.cnt,exch.huobi.flow.in,exch.flow.in.ntv,sply.act.evr,sply.addr.bal.100k,txn.erc721.cnt,exch.bitmex.flow.in,hashrate.rev.ntv,sply.addr.bal.10.ntv,sply.rvv.90d,mcap.out,miner.rev.total,sply.addr.bal.1k,exch.flow.in.usd.incl,sply.act.5y,txn.gas.limit.avg,mcap.circ,daily.shp,addr.bal.10m.cnt,blk.size.byte,miner.sply,reddit.active.users,exch.poloniex.flow.net.ntv,sply.rvv.1y,exch.bitmex.flow.net,exch.bitmex.flow.net.ntv,exch.bitfinex.flow.out,exch.sply.poloniex,txn.gas.limit,txn.tfr.val.med,addr.bal.1k.cnt,fees,sply.addr.bal.10k.ntv,sply.utxo.prof,addr.bal.10.ntv.cnt,exch.kraken.flow.net,blk.gas.limit.avg,iss.rate,txn.cont.dest.cnt,txn.tfr.val.med.ntv,sply.circ,new.iss.usd,miner.sply.ntv,sply.addr.bal.10,blk.wght.total,sply.addr.bal.1,txn.tsfr.val.avg,utxo.loss.cnt,rvt.adj,exch.bitstamp.flow.net,sply.out,txn.erc20.cnt,utxo.age.avg,reddit.subscribers,exch.huobi.flow.net.ntv,iss.rate.day,exch.sply.gemini.ntv,hash.rev,sply.act.1d,miner.1hop.sply,sply.act.10y,sply.rvv.3y,addr.bal.10k.cnt,exch.bitfinex.flow.in.ntv,exch.kraken.flow.in,exch.huobi.flow.out.ntv,txn.tsfr.val.adj,exch.sply.huobi,addr.bal.1.cnt,min.rev.ntv,sply.addr.bal.10k,addr.act.rcv.cnt,exch.sply.kraken,sply.addr.bal.10m,blk.wght.avg,sply.utxo.loss,addr.bal.100.cnt,exch.sply.bitmex.ntv,txn.gas.avg,sply.addr.bal.0.01.ntv,sply.cont.ntv,daily.vol,blk.unc.cnt,exch.gemini.flow.in.ntv,exch.bitmex.flow.out} - Messari timeseries id. Default: txn.vol (default: txn.vol) - -i {5m,15m,30m,1h,1d,1w}, --interval {5m,15m,30m,1h,1d,1w} - Frequency interval. Default: 1d (default: 1d) - -s START, --start START - Initial date. Default: A year ago (default: 2021-04-26) - -end END, --end END End date. Default: Today (default: 2022-04-26) - --include-paid Flag to show both paid and free sources (default: False) - -q QUERY [QUERY ...], --query QUERY [QUERY ...] - Query to search across all messari timeseries (default: ) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10)``` -```` diff --git a/website/content/terminal/crypto/dd/news/_index.md b/website/content/terminal/crypto/dd/news/_index.md deleted file mode 100644 index 6a4f29bf219..00000000000 --- a/website/content/terminal/crypto/dd/news/_index.md +++ /dev/null @@ -1,51 +0,0 @@ -``` -usage: news [-l LIMIT] [-k {news,media}] - [--filter {rising,hot,bullish,bearish,important,saved,lol}] - [-r {en,de,es,fr,nl,it,pt,ru}] - [-s {published_at,domain,title,negative_votes,positive_votes}] [--reverse] - [-u] [-h] [--export EXPORT] -``` - -Display most recent news on the given coin from CryptoPanic aggregator platform. [Source: https://cryptopanic.com/] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - display N number records (default: 10) - -k {news,media}, --kind {news,media} - Filter by category of news. Available values: news or media. - (default: news) - --filter {rising,hot,bullish,bearish,important,saved,lol} - Filter by kind of news. One from list: - rising|hot|bullish|bearish|important|saved|lol (default: None) - -r {en,de,es,fr,nl,it,pt,ru}, --region {en,de,es,fr,nl,it,pt,ru} - Filter news by regions. Available regions are: en (English), de - (Deutsch), nl (Dutch), es (Español), fr (Français), it (Italiano), - pt (Português), ru (Русский) (default: en) - -s {published_at,domain,title,negative_votes,positive_votes}, --sort {published_at,domain,title,negative_votes,positive_votes} - Sort by given column. Default: published_at (default: - published_at) - --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -u, --urls Flag to disable urls. If you will use the flag you will hide the - column with urls (default: True) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Apr 25, 09:49 (🦋) /crypto/dd/ $ news - Most Recent News -┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -┃ published_at ┃ title ┃ link ┃ -┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ 2022-04-24 │ Major German Bank Applies For Crypto │ https://cryptopanic.com/news/15005355/Maj… │ -│ │ Custody License │ │ -├──────────────┼─────────────────────────────────────────────┼────────────────────────────────────────────┤ -│ 2022-04-24 │ These Two Companies Will Let You Buy a │ https://cryptopanic.com/news/15005488/The… │ -│ │ House with Crypto │ │ -├──────────────┼─────────────────────────────────────────────┼──────────────────────────────────────────── -``` diff --git a/website/content/terminal/crypto/dd/nonzero/_index.md b/website/content/terminal/crypto/dd/nonzero/_index.md deleted file mode 100644 index 07b7cba5ff2..00000000000 --- a/website/content/terminal/crypto/dd/nonzero/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -usage: non-zero [-s INITIAL_DATE] - [-u END_DATE] - [-i {1h, 24h, 10m, 1w, 1month}] - [--export {csv,json,xlsx}] [-h] -``` - -Display addresses with non-zero balance on a certain blockchain over time [Source: https://glassnode.org] - -Number of unique addresses holding a positive amount of coins. - -Supported assets: BTC, ETH, LTC, AAVE, ABT, AMPL, ANT, ARMOR, BADGER, BAL, BAND, BAT, BIX, BNT, BOND, BRD, BUSD, BZRX, CELR, CHSB, CND, COMP, CREAM, CRO, CRV, CVC, CVP, DAI, DDX, DENT, DGX, DHT, DMG, DODO, DOUGH, DRGN, ELF, ENG, ENJ, EURS, FET, FTT, FUN, GNO, GUSD, HEGIC, HOT, HPT, HT, HUSD, INDEX, KCS, LAMB, LBA, LDO, LEO, LINK, LOOM, LRC, MANA, MATIC, MCB, MCO, MFT, MIR, MKR, MLN, MTA, MTL, MX, NDX, NEXO, NFTX, NMR, Nsure, OCEAN, OKB, OMG, PAX, PAY, PERP, PICKLE, PNK, PNT, POLY, POWR, PPT, QASH, QKC, QNT, RDN, REN, REP, RLC, ROOK, RPL, RSR, SAI, SAN, SNT, SNX, STAKE, STORJ, sUSD, SUSHI, TEL, TOP, UBT, UMA, UNI, USDC, USDK, USDT, UTK, VERI, WaBi, WAX, WBTC, WETH, wNMX, WTC, YAM, YFI, ZRX - -``` -arguments: - -s DATE --since DATE Start date (default: 2 years before, e.g., 2019-10-22) - -u DATE --until DATE End date (default: year before, e.g., 2020-10-22) - -i INTERV --interval INTERV Interval frequency (default: 24h) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![nonzero](https://user-images.githubusercontent.com/46355364/154064344-5b7825c8-9243-47ba-9930-0f5f7e3282a4.png) diff --git a/website/content/terminal/crypto/dd/ob/_index.md b/website/content/terminal/crypto/dd/ob/_index.md deleted file mode 100644 index ba7dd822548..00000000000 --- a/website/content/terminal/crypto/dd/ob/_index.md +++ /dev/null @@ -1,12 +0,0 @@ -`usage: ob [-e EXCHANGE] [--vs {usdt,usdc,btc}] [-h] [--export EXPORT]` - -Get the order book for selected coin - -``` -optional arguments: - -e {aax,ascendex,bequant,bibox,bigone,binance,binancecoinm,binanceus,binanceusdm,bit2c,bitbank,bitbay,bitbns,bitcoincom,bitfinex,bitfinex2,bitflyer,bitforex,bitget,bithumb,bitmart,bitmex,bitopro,bitpanda,bitrue,bitso,bitstamp,bitstamp1,bittrex,bitvavo,bkex,bl3p,blockchaincom,btcalpha,btcbox,btcmarkets,btctradeua,btcturk,buda,bw,bybit,bytetrade,cdax,cex,coinbase,coinbaseprime,coinbasepro,coincheck,coinex,coinfalcon,coinflex,coinmate,coinone,coinspot,crex24,cryptocom,currencycom,delta,deribit,digifinex,eqonex,exmo,flowbtc,fmfwio,ftx,ftxus,gateio,gemini,hitbtc,hitbtc3,hollaex,huobi,huobijp,huobipro,idex,independentreserve,indodax,itbit,kraken,kucoin,kucoinfutures,kuna,latoken,lbank,lbank2,liquid,luno,lykke,mercado,mexc,mexc3,ndax,novadax,oceanex,okcoin,okex,okex5,okx,paymium,phemex,poloniex,probit,qtrade,ripio,stex,therock,tidebit,tidex,timex,upbit,vcc,wavesexchange,wazirx,whitebit,woo,xena,yobit,zaif,zb,zipmex,zonda}, --exchange {aax,ascendex,bequant,bibox,bigone,binance,binancecoinm,binanceus,binanceusdm,bit2c,bitbank,bitbay,bitbns,bitcoincom,bitfinex,bitfinex2,bitflyer,bitforex,bitget,bithumb,bitmart,bitmex,bitopro,bitpanda,bitrue,bitso,bitstamp,bitstamp1,bittrex,bitvavo,bkex,bl3p,blockchaincom,btcalpha,btcbox,btcmarkets,btctradeua,btcturk,buda,bw,bybit,bytetrade,cdax,cex,coinbase,coinbaseprime,coinbasepro,coincheck,coinex,coinfalcon,coinflex,coinmate,coinone,coinspot,crex24,cryptocom,currencycom,delta,deribit,digifinex,eqonex,exmo,flowbtc,fmfwio,ftx,ftxus,gateio,gemini,hitbtc,hitbtc3,hollaex,huobi,huobijp,huobipro,idex,independentreserve,indodax,itbit,kraken,kucoin,kucoinfutures,kuna,latoken,lbank,lbank2,liquid,luno,lykke,mercado,mexc,mexc3,ndax,novadax,oceanex,okcoin,okex,okex5,okx,paymium,phemex,poloniex,probit,qtrade,ripio,stex,therock,tidebit,tidex,timex,upbit,vcc,wavesexchange,wazirx,whitebit,woo,xena,yobit,zaif,zb,zipmex,zonda} - Exchange to search for order book (default: binance) - --vs {usdt,usdc,btc} Quote currency (what to view coin vs) (default: usdt) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` diff --git a/website/content/terminal/crypto/dd/oi/_index.md b/website/content/terminal/crypto/dd/oi/_index.md deleted file mode 100644 index 5d7aaa269ca..00000000000 --- a/website/content/terminal/crypto/dd/oi/_index.md +++ /dev/null @@ -1,25 +0,0 @@ -``` -usage: oi [-i {0, 1, 2, 4}] - [--export {csv,json,xlsx}] [-h] -``` - -Display the open interest per exchange for a certain cryptocurrency. [Source: https://coinglass.github.io/API-Reference/] -Crypto must be loaded (e.g., `load btc`) before running this feature. - -The total Bitcoin futures open interest across cryptocurrency exchanges, where open interest is calculated as the estimated notional value of all open futures positions, or the aggregate dollar value of outstanding contract specified BTC deliverables. Includes the largest exchanges with trustworthy reporting of exchange volume metrics. - -Interval: - -- ALL: 0 -- 1H: 2 -- 4H: 1 -- 12H: 4 - -``` -optional arguments: - -i INTERV --interval INTERV Interval frequency (default: 0) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![oi](https://user-images.githubusercontent.com/46355364/154086745-17c2b33a-e1bf-40b1-8ac8-3422fe081e96.png) diff --git a/website/content/terminal/crypto/dd/pi/_index.md b/website/content/terminal/crypto/dd/pi/_index.md deleted file mode 100644 index 1381e1a68b9..00000000000 --- a/website/content/terminal/crypto/dd/pi/_index.md +++ /dev/null @@ -1,72 +0,0 @@ -`usage: pi [-h] [--export EXPORT]` - -Display asset's project info [Source: https://messari.io] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Jul 13, 07:51 (🦋) /crypto/dd/ $ pi - - BTC General Info -┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Metric ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Project Details │ Bitcoin is the first distributed consensus-based censorship-resistant, permissionless, peer-to-peer payment settlement network with a provably scarce, programmable, native currency. │ -│ │ Bitcoin (BTC), the native asset of the Bitcoin blockchain, is the world's first digital currency without a central bank or administrator. The Bitcoin network is an emergent decentralized monetary institution that exists through the interplay │ -│ │ between full nodes, miners, and developers. It is set by a social contract that is created and opted into by the users of the network and hardened │ -│ │ through >game theory and cryptography. Bitcoin is the first, oldest, and largest cryptocurrency in the world. │ -├────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Technology Details │ "Bitcoin" is a label used for a protocol and a currency. │ -│ │ │ -│ │ Bitcoin, the currency, is bits of data usable outside the limitations of the protocol using second-layer solutions like Lightning Network payment channels. │ -│ │ │ -│ │ Bitcoin, the protocol, is a distributed, time-stamped ledger of unspent transaction output (UTXO) transfers stored in an append-only chain of 1MB data blocks. A network of mining and economic nodes maintains this ledger by validating, propagating, and fighting to include mempool transactions in new blocks. Economic nodes (aka "full nodes") │ -│ │ receive transactions from other network participants, validate them against network consensus rules and double-spend vectors, and propagate the transactions to other full nodes that also validate and propagate. Valid transactions are sent to the │ -│ │ network's mempool waiting for mining nodes to confirm them via inclusion in the next block. │ -│ │ │ -│ │ Mining nodes work to empty the mempool usually in a highest-to-lowest fee order by picking transactions to include in the next block and racing against each other to generate a hash less than the target number set by Bitcoin's difficulty │ -│ │ adjustment algorithm. Bitcoin uses a Proof-of-Work (PoW) consensus mechanism to establish the chain of blocks with the most accumulated “work” (a.k.a., energy spent on solved hashes) as the valid chain. Other network peers can cheaply verify the │ -│ │ chain’s work. │ -│ │ │ -│ │ Mining difficulty regularly adjusts to maintain Bitcoin's average ten-minute block schedule. Mining nodes add new blocks to whatever chain has the largest accumulated proof of work maintained by a network of economic nodes with downloaded copies │ -│ │ of the same chain. │ -│ │ │ -│ │ Learn More: │ -│ │ Bitcoin Developer's Guide │ -│ │ Mastering Bitcoin │ -└────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ - - BTC Public Repositories -┏━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓ -┃ Name ┃ Link ┃ License_type ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩ -│ Bitcoin Core Repository │ https://github.com/bitcoin/bitcoin │ MIT License │ -└─────────────────────────┴────────────────────────────────────┴──────────────┘ - - BTC Vulnerabilities -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Title ┃ Date ┃ Type ┃ Details ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Value Overflow Incident │ 2010-08-06 04:00:00+00:00 │ Inflation │ On 6 August 2010, a major vulnerability in the bitcoin protocol was spotted. Transactions weren't properly verified before they were included in the transaction log or blockchain, which let │ -│ │ │ │ users bypass bitcoin's economic restrictions and create an indefinite number of bitcoins. On 15 August, the vulnerability was exploited; over 184 billion bitcoins were generated in a transaction │ -│ │ │ │ and sent to two addresses on the network. Within hours, the transaction was spotted and erased from the transaction log after the bug was fixed and the network forked to an updated version of │ -│ │ │ │ the bitcoin protocol. This was the only major security flaw found and exploited in bitcoin's history. │ -├─────────────────────────────────┼───────────────────────────┼───────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ -│ Denial of Service Vulnerability │ 2018-09-20 04:00:00+00:00 │ Inflation │ On September 17, Bitcoin Core developers discovered that older versions of Bitcoin Core will crash if they try to process a block containing a transaction that attempts to spend the same input │ -│ │ │ │ twice. Such blocks are invalid, so they can only be created by a miner willing to sacrifice their allowed income for creating a block of at least 12.5 BTC (about $80,000 USD as of this writing). │ -│ │ │ │ │ -│ │ │ │ Soon after discovering the DDoS attack vulnerability, Bitcoin Core developers also discovered an inflation bug which they quickly determined had the same root cause and fix. They decided to │ -│ │ │ │ disclose the DDoS vulnerability immediately while keeping the inflation bug quiet. This provided developers time to reach out to miners, businesses, and other affected systems about upgrading │ -│ │ │ │ their software, while also providing additional time to fix the exploit. │ -│ │ │ │ │ -│ │ │ │ https://bitcoincore.org/en/2018/09/18/release-0.16.3/ │ -│ │ │ │ https://bitcoincore.org/en/2018/09/20/notice/ │ -└─────────────────────────────────┴───────────────────────────┴───────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ -``` \ No newline at end of file diff --git a/website/content/terminal/crypto/dd/ps/_index.md b/website/content/terminal/crypto/dd/ps/_index.md deleted file mode 100644 index 5aaed0d4efe..00000000000 --- a/website/content/terminal/crypto/dd/ps/_index.md +++ /dev/null @@ -1,80 +0,0 @@ -``` -usage: ps - [--vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK}] - [--export {csv,json,xlsx}] [-h] -``` - -Get price and supply related metrics for given coin. - -``` -optional arguments: - --vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK} - Quoted currency. Default USD (default: USD) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 07:46 (🦋) /crypto/dd/ $ ps - Coin Information -┌────────────────────────────┬─────────────────────┐ -│ Metric │ Value │ -├────────────────────────────┼─────────────────────┤ -│ id │ btc-bitcoin │ -├────────────────────────────┼─────────────────────┤ -│ name │ Bitcoin │ -├────────────────────────────┼─────────────────────┤ -│ symbol │ BTC │ -├────────────────────────────┼─────────────────────┤ -│ rank │ 1 │ -├────────────────────────────┼─────────────────────┤ -│ circulating_supply │ 18.959 M │ -├────────────────────────────┼─────────────────────┤ -│ total_supply │ 18.959 M │ -├────────────────────────────┼─────────────────────┤ -│ max_supply │ 21 M │ -├────────────────────────────┼─────────────────────┤ -│ beta_value │ 0.896 │ -├────────────────────────────┼─────────────────────┤ -│ first_data_at │ 2010-07-17 00:00:00 │ -├────────────────────────────┼─────────────────────┤ -│ last_updated │ 2022-02-15 12:43:09 │ -├────────────────────────────┼─────────────────────┤ -│ usd_price │ 44.331 K │ -├────────────────────────────┼─────────────────────┤ -│ usd_volume_24h │ 108.460 B │ -├────────────────────────────┼─────────────────────┤ -│ usd_volume_24h_change_24h │ 122.920 │ -├────────────────────────────┼─────────────────────┤ -│ usd_market_cap │ 840.463 B │ -├────────────────────────────┼─────────────────────┤ -│ usd_market_cap_change_24h │ 4.540 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_15m │ 0.020 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_30m │ -0.200 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_1h │ -0.100 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_6h │ 1.450 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_12h │ 3.980 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_24h │ 4.530 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_7d │ 2.010 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_30d │ 2.860 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_change_1y │ -6.670 │ -├────────────────────────────┼─────────────────────┤ -│ usd_ath_price │ 68.692 K │ -├────────────────────────────┼─────────────────────┤ -│ usd_ath_date │ 2021-11-10 16:51:15 │ -├────────────────────────────┼─────────────────────┤ -│ usd_percent_from_price_ath │ -35.370 │ -└────────────────────────────┴─────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/rm/_index.md b/website/content/terminal/crypto/dd/rm/_index.md deleted file mode 100644 index b4f6174355b..00000000000 --- a/website/content/terminal/crypto/dd/rm/_index.md +++ /dev/null @@ -1,10 +0,0 @@ -`usage: rm [--chart] [-h] [--export EXPORT]` - -Display asset's roadmap [Source: https://messari.io] - -``` -optional arguments: - --chart Flag to show chart with coin price and roadmap dates (default: False) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/score/_index.md b/website/content/terminal/crypto/dd/score/_index.md deleted file mode 100644 index 73357917c88..00000000000 --- a/website/content/terminal/crypto/dd/score/_index.md +++ /dev/null @@ -1,58 +0,0 @@ -``` -usage: score [--export {csv,json,xlsx}] [-h] -``` - -In this view you can find different kind of scores for loaded coin. Those scores represents different rankings, sentiment metrics, some user stats -and others. You will see CoinGecko scores, Developer Scores, Community Scores, Sentiment, Reddit scores and many others. - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:47 (🦋) /crypto/dd/ $ score - - Different Scores for Loaded Coin -┌─────────────────────────────────┬────────────┐ -│ Metric │ Value │ -├─────────────────────────────────┼────────────┤ -│ Coingecko Rank │ 1.00 │ -├─────────────────────────────────┼────────────┤ -│ Coingecko Score │ 80.77 │ -├─────────────────────────────────┼────────────┤ -│ Developer Score │ 98.91 │ -├─────────────────────────────────┼────────────┤ -│ Community Score │ 72.62 │ -├─────────────────────────────────┼────────────┤ -│ Liquidity Score │ 100.25 │ -├─────────────────────────────────┼────────────┤ -│ Sentiment Votes Up Percentage │ 83.17 │ -├─────────────────────────────────┼────────────┤ -│ Sentiment Votes Down Percentage │ 16.83 │ -├─────────────────────────────────┼────────────┤ -│ Public Interest Score │ 0.34 │ -├─────────────────────────────────┼────────────┤ -│ Facebook Likes │ │ -├─────────────────────────────────┼────────────┤ -│ Twitter Followers │ 4669906.00 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Average Posts 48H │ 7.46 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Average Comments 48H │ 1298.00 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Subscribers │ 3908131.00 │ -├─────────────────────────────────┼────────────┤ -│ Reddit Accounts Active 48H │ 5154.00 │ -├─────────────────────────────────┼────────────┤ -│ Telegram Channel User Count │ │ -├─────────────────────────────────┼────────────┤ -│ Alexa Rank │ 9440.00 │ -├─────────────────────────────────┼────────────┤ -│ Bing Matches │ │ -└─────────────────────────────────┴────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/social/_index.md b/website/content/terminal/crypto/dd/social/_index.md deleted file mode 100644 index bedc7219118..00000000000 --- a/website/content/terminal/crypto/dd/social/_index.md +++ /dev/null @@ -1,31 +0,0 @@ -``` -usage: social [--export {csv,json,xlsx}] [-h] -``` - -Shows social media corresponding to loaded coin. You can find there name of telegram channel, urls to twitter, reddit, bitcointalk, facebook and -discord. - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:47 (🦋) /crypto/dd/ $ social - Social Media for Loaded Coin -┌───────────┬───────────────────────────────────┐ -│ Metric │ Value │ -├───────────┼───────────────────────────────────┤ -│ Telegram │ │ -├───────────┼───────────────────────────────────┤ -│ Twitter │ https://twitter.com/bitcoin │ -├───────────┼───────────────────────────────────┤ -│ Subreddit │ https://www.reddit.com/r/Bitcoin/ │ -├───────────┼───────────────────────────────────┤ -│ Facebook │ bitcoins │ -└───────────┴───────────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/stats/_index.md b/website/content/terminal/crypto/dd/stats/_index.md deleted file mode 100644 index 6428d54954c..00000000000 --- a/website/content/terminal/crypto/dd/stats/_index.md +++ /dev/null @@ -1,37 +0,0 @@ -``` -usage: stats [--vs {UST,EUR,USDC,USDT,GBP,USD}] [--export {csv,json,xlsx}] [-h] -``` - -Display coin stats - -``` -optional arguments: - --vs {UST,EUR,USDC,USDT,GBP,USD} - Quote currency (what to view coin vs) (default: USDT) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:47 (🦋) /crypto/dd/ $ stats - - 24 hr Product Stats -┌──────────────┬────────────────┐ -│ Metric │ Value │ -├──────────────┼────────────────┤ -│ open │ 42551.99 │ -├──────────────┼────────────────┤ -│ high │ 44428.47 │ -├──────────────┼────────────────┤ -│ low │ 41800 │ -├──────────────┼────────────────┤ -│ volume │ 743.03129474 │ -├──────────────┼────────────────┤ -│ last │ 44183.84 │ -├──────────────┼────────────────┤ -│ volume_30day │ 22665.06104665 │ -└──────────────┴────────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/team/_index.md b/website/content/terminal/crypto/dd/team/_index.md deleted file mode 100644 index fa60f778ad2..00000000000 --- a/website/content/terminal/crypto/dd/team/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -`usage: team [-h] [--export EXPORT]` - -Display asset's team [Source: https://messari.io] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/tk/_index.md b/website/content/terminal/crypto/dd/tk/_index.md deleted file mode 100644 index f5b21afc795..00000000000 --- a/website/content/terminal/crypto/dd/tk/_index.md +++ /dev/null @@ -1,9 +0,0 @@ -`usage: tk [-h] [--export EXPORT` - -Display asset's tokenomics [Source: https://messari.io] - -``` -optional arguments: --h, --help show this help message (default: False) ---export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/dd/trades/_index.md b/website/content/terminal/crypto/dd/trades/_index.md deleted file mode 100644 index 4b5f8474ee3..00000000000 --- a/website/content/terminal/crypto/dd/trades/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -`usage: trades [-e EXCHANGE] [--vs {usdt,usdc,btc}] [-h] [--export EXPORT] [-l LIMIT]` - -Get the latest trades for selected coin - -``` -optional arguments: - -e {aax,ascendex,bequant,bibox,bigone,binance,binancecoinm,binanceus,binanceusdm,bit2c,bitbank,bitbay,bitbns,bitcoincom,bitfinex,bitfinex2,bitflyer,bitforex,bitget,bithumb,bitmart,bitmex,bitopro,bitpanda,bitrue,bitso,bitstamp,bitstamp1,bittrex,bitvavo,bkex,bl3p,blockchaincom,btcalpha,btcbox,btcmarkets,btctradeua,btcturk,buda,bw,bybit,bytetrade,cdax,cex,coinbase,coinbaseprime,coinbasepro,coincheck,coinex,coinfalcon,coinflex,coinmate,coinone,coinspot,crex24,cryptocom,currencycom,delta,deribit,digifinex,eqonex,exmo,flowbtc,fmfwio,ftx,ftxus,gateio,gemini,hitbtc,hitbtc3,hollaex,huobi,huobijp,huobipro,idex,independentreserve,indodax,itbit,kraken,kucoin,kucoinfutures,kuna,latoken,lbank,lbank2,liquid,luno,lykke,mercado,mexc,mexc3,ndax,novadax,oceanex,okcoin,okex,okex5,okx,paymium,phemex,poloniex,probit,qtrade,ripio,stex,therock,tidebit,tidex,timex,upbit,vcc,wavesexchange,wazirx,whitebit,woo,xena,yobit,zaif,zb,zipmex,zonda}, --exchange {aax,ascendex,bequant,bibox,bigone,binance,binancecoinm,binanceus,binanceusdm,bit2c,bitbank,bitbay,bitbns,bitcoincom,bitfinex,bitfinex2,bitflyer,bitforex,bitget,bithumb,bitmart,bitmex,bitopro,bitpanda,bitrue,bitso,bitstamp,bitstamp1,bittrex,bitvavo,bkex,bl3p,blockchaincom,btcalpha,btcbox,btcmarkets,btctradeua,btcturk,buda,bw,bybit,bytetrade,cdax,cex,coinbase,coinbaseprime,coinbasepro,coincheck,coinex,coinfalcon,coinflex,coinmate,coinone,coinspot,crex24,cryptocom,currencycom,delta,deribit,digifinex,eqonex,exmo,flowbtc,fmfwio,ftx,ftxus,gateio,gemini,hitbtc,hitbtc3,hollaex,huobi,huobijp,huobipro,idex,independentreserve,indodax,itbit,kraken,kucoin,kucoinfutures,kuna,latoken,lbank,lbank2,liquid,luno,lykke,mercado,mexc,mexc3,ndax,novadax,oceanex,okcoin,okex,okex5,okx,paymium,phemex,poloniex,probit,qtrade,ripio,stex,therock,tidebit,tidex,timex,upbit,vcc,wavesexchange,wazirx,whitebit,woo,xena,yobit,zaif,zb,zipmex,zonda} - Exchange to search for order book (default: binance) - --vs {usdt,usdc,btc} Quote currency (what to view coin vs) (default: usdt) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` diff --git a/website/content/terminal/crypto/dd/twitter/_index.md b/website/content/terminal/crypto/dd/twitter/_index.md deleted file mode 100644 index 4ca4d7b7d17..00000000000 --- a/website/content/terminal/crypto/dd/twitter/_index.md +++ /dev/null @@ -1,65 +0,0 @@ -``` -usage: twitter [-l N] [-s {date,user_name,status,retweet_count,like_count}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Show last 10 tweets for given coin. You can display only N number of tweets with --limit parameter. You can sort data by date, user_name, status, -retweet_count, like_count --sort parameter and also with --reverse flag to sort ascending. Displays: date, user_name, status, retweet_count, like_count - -``` -optional arguments: - -l N, --limit N Limit of records (default: 10) - -s {date,user_name,status,retweet_count,like_count}, --sort {date,user_name,status,retweet_count,like_count} - Sort by given column. Default: date (default: date) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:49 (🦋) /crypto/dd/ $ twitter - Twitter Timeline -┌────────────┬────────────────┬──────────────────────────────────────────────────────────────────────────────────┬───────────────┬────────────┐ -│ date │ user_name │ status │ retweet_count │ like_count │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-10-27 │ bitcoincoreorg │ Bitcoin Core 0.20.2 (backports) was released It is available from │ 67 │ 153 │ -│ 10:55:48 │ │ https://t.co/ea0sMBjrp2 Release mail: https://t.co/KahVJFcZ9d │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-09-13 │ bitcoincoreorg │ Bitcoin Core 22.0 was released! It is available from https://t.co/WpMuMaejz1 │ 366 │ 1065 │ -│ 22:01:09 │ │ Release mail: https://t.co/ZvZKXZ0iLD │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-07-20 │ LukeDashjr │ PSA: @BitcoinCoreOrg (#Bitcoin Core) is NOT soliciting or performing closed │ 88 │ 0 │ -│ 21:51:31 │ │ testing of any beta or other software.If you get an email inviting you, be │ │ │ -│ │ │ aware it is spam and their "testing version" is almost certainly malware.Note: │ │ │ -│ │ │ the "From" on emails is NOT secure and faked. │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-07-03 │ bitcoincoreorg │ A reminder that Bitcoin Core is available for download worldwide through │ 192 │ 577 │ -│ 08:25:13 │ │ https://t.co/WpMuMaejz1 . It is also available through BitTorrent. │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-06-03 │ pwuille │ In version 0.21 @bitcoincoreorg added support for Tor V3: │ 73 │ 0 │ -│ 17:16:25 │ │ https://t.co/yIUqYjqQnGFor the next major release we're dropping V2 support. │ │ │ -│ │ │ Their usability will rapidly diminish the next few months, as they're deprecated │ │ │ -│ │ │ and @torproject will soon remove support. https://t.co/XEUbSnVmCe │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-05-02 │ bitcoincoreorg │ Bitcoin Core 0.21.1 was released! It is available from https://t.co/WpMuMaejz1 │ 159 │ 583 │ -│ 07:21:00 │ │ Release mail: https://t.co/TuFxSkQABE │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-04-19 │ bitcoincoreorg │ Bitcoin Core 0.21.1 release candidate 1 available https://t.co/BSQjJiRuHw │ 59 │ 222 │ -│ 04:59:28 │ │ https://t.co/KQMiZFHnZy │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-01-19 │ achow101 │ I'm launching a Bitcoin Core usage survey: https://t.co/O3mbn4vnCPThe survey │ 106 │ 0 │ -│ 20:59:02 │ │ will help us learn about who, how, and why people use Bitcoin Core so that we │ │ │ -│ │ │ can improve it in the future. If you have any feedback about the software you │ │ │ -│ │ │ want to leave, this is the place to do it. │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2021-01-14 │ bitcoincoreorg │ Bitcoin Core 0.21.0 was released It is available from https://t.co/jnWN8LRX75 │ 283 │ 907 │ -│ 14:09:31 │ │ Release mail: https://t.co/6dFNUj3K4d │ │ │ -├────────────┼────────────────┼──────────────────────────────────────────────────────────────────────────────────┼───────────────┼────────────┤ -│ 2020-08-01 │ bitcoincoreorg │ Bitcoin Core 0.20.1 was released It is available from https://t.co/Uy9NJ11mih │ 216 │ 544 │ -│ 13:15:33 │ │ (main website update pending) Release mail: https://t.co/95MXgRvN7Z │ │ │ -└────────────┴────────────────┴──────────────────────────────────────────────────────────────────────────────────┴───────────────┴────────────┘ -``` diff --git a/website/content/terminal/crypto/dd/web/_index.md b/website/content/terminal/crypto/dd/web/_index.md deleted file mode 100644 index a14bdd0e52e..00000000000 --- a/website/content/terminal/crypto/dd/web/_index.md +++ /dev/null @@ -1,28 +0,0 @@ -``` -usage: web [--export {csv,json,xlsx}] [-h] -``` - -Websites found for given Coin. You can find there urls to homepage, forum, announcement site and others. - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:49 (🦋) /crypto/dd/ $ web - Websites for Loaded Coin -┌────────────────────┬──────────────────────────┐ -│ Metric │ Value │ -├────────────────────┼──────────────────────────┤ -│ Homepage │ http://www.bitcoin.org │ -├────────────────────┼──────────────────────────┤ -│ Official Forum Url │ https://bitcointalk.org/ │ -├────────────────────┼──────────────────────────┤ -│ Announcement Url │ │ -└────────────────────┴──────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/defi/_index.md b/website/content/terminal/crypto/defi/_index.md deleted file mode 100644 index 045f58dea51..00000000000 --- a/website/content/terminal/crypto/defi/_index.md +++ /dev/null @@ -1,156 +0,0 @@ ---- -title: Introduction to Cryptocurrency Decentralized Finance (DeFi) -keywords: "cryptocurrency, defi, decentralized finance, crypto, dapps, uniswap, funding, luna, terra, blockchain" -excerpt: "An Introduction to Cryptocurrency DeFi menu, within the Cryptocurrency Menu, -with a brief overview of the features." -geekdocCollapseSection: true ---- - -The Cryptocurrency Decentralized Finance (DeFi) menu gives the user the ability to delve deeper into Uniswap statistics (tokens, stats and pairs), -information about dApps (gdapps and stvl) -as well as information about terra blockchain (sreturn) and luna (lcsc). - -## How to use - -The Cryptocurrency Decentralized Finance (DeFi) menu is called upon by typing `defi`, while inside the `crypto` menu, which opens the following menu: - -![Cryptocurrency Decentralized Finance (DeFi) menu](https://user-images.githubusercontent.com/46355364/178734540-716f2232-20a4-4f31-b8a8-10c0badfd5dd.png) - -Alternatively, you can also type `/crypto/defi`. Within the Cryptocurrency Decentralized Finance (DeFi) menu you can -find features that delve deeper in the world of decentralized finance. - -## Examples - -Delving deeper in Uniswap, we can start bij looking at the tokens trade-able with `tokens`: - -```txt -2022 Jul 19, 11:04 (🦋) /crypto/defi/ $ tokens - - UniSwarp DEX Trade-able Tokens -┏━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━┓ -┃ index ┃ symbol ┃ name ┃ tradeVolumeUSD ┃ totalLiquidity ┃ txCount ┃ -┡━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━┩ -│ 0 │ BID │ TopBidder │ 23.5M │ 1.9M │ 2736 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 1 │ CHI │ Chi Gastoken by 1inch │ 19.4M │ 19.9K │ 76000 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 2 │ XDEX │ XDEFI Governance Token │ 18.7M │ 7.7M │ 4449 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 3 │ TUSD │ TrueUSD │ 176.2M │ 42K │ 47439 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 4 │ LON │ Tokenlon │ 522.3M │ 2M │ 59116 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 5 │ dDai │ Dharma Dai │ 0 │ 4 │ 1 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 6 │ STRIP │ StripInu2 │ 0 │ 0 │ 614 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 7 │ GST2 │ Gastoken.io │ 2.1M │ 127 │ 10912 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 8 │ XGME │ GameStonk.online │ 0 │ 35.7K │ 65 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 9 │ SHKOOBYSHNAX │ SHKOOBY INU SHNAX │ 0 │ 0 │ 47 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 10 │ PORN │ Porn DAO │ 2.3M │ 1.9K │ 321 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 11 │ TGBP │ TrueGBP │ 24.1K │ 4K │ 791 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 12 │ $STEALTH │ Stealth Standard │ 9.2M │ 193.4M │ 1623 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 13 │ ADIDAS │ Adidas Originals Metaverse │ 4.5M │ 0 │ 488 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 14 │ Nike │ Nike RTFKT Studio │ 75.8K │ 0 │ 15 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 15 │ DLTA │ delta.theta │ 3.1M │ 4.2M │ 3015 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 16 │ Nike │ Nike Metaverse │ 4.5M │ 0 │ 669 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 17 │ Nike │ Nike RTFKT Studio │ 131.6K │ 0 │ 35 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 18 │ PRADA │ Prada Metaverse │ 894.8K │ 0 │ 196 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 19 │ TCAD │ TrueCAD │ 6.5K │ 650 │ 142 │ -└───────┴──────────────┴────────────────────────────┴────────────────┴────────────────┴─────────┘ -``` - -Furthermore, we can also look at the recently added pairs with `pairs`: - -```txt -2022 Jul 19, 11:03 (🦋) /crypto/defi/ $ pairs - - Latest Added Pairs on Uniswap DEX -┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┓ -┃ created ┃ pair ┃ token0 ┃ token1 ┃ volumeUSD ┃ txCount ┃ totalSupply ┃ -┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━┩ -│ 2022-07-18 18:53:14 │ SFMOON/USDC │ SuperFullMoon │ USD//C │ 2M │ 740 │ 5.7K │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-17 06:53:05 │ WETH/FTP │ Wrapped Ether │ For The People │ 609.4K │ 222 │ 1.2M │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-15 13:29:40 │ WETH/MJOLNIR │ Wrapped Ether │ Bull Machine │ 365.3K │ 1091 │ 128.5K │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-15 01:02:28 │ GOOSE/WETH │ Goose Coin │ Wrapped Ether │ 4.3M │ 2267 │ 656.1K │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-12 12:16:52 │ icc/USDT │ ICC │ Tether USD │ 59.4K │ 783 │ 0 │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-11 21:21:08 │ MEME/WETH │ MEME COIN │ Wrapped Ether │ 218.1K │ 2935 │ 20.3K │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-11 13:16:51 │ BOI/WETH │ Yellow Boi │ Wrapped Ether │ 233.1K │ 2397 │ 0 │ -├─────────────────────┼──────────────┼───────────────┼────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-07-10 20:09:26 │ WOW/WETH │ LongDoge │ Wrapped Ether │ 350.2K │ 1928 │ 316 │ -└─────────────────────┴──────────────┴───────────────┴────────────────┴───────────┴─────────┴─────────────┘ -``` - -When interested in dApps, it is possible to find the top DeFI dApps grouped by chain with `gdapps`: - -![top DeFI dApps grouped by chain](https://user-images.githubusercontent.com/46355364/178734582-c9b96ce5-e0d5-4913-9e7d-ced35e4118d7.png) - -Including a list of recent dApps with `ldapps`: - -```txt -2022 Jul 19, 11:01 (🦋) /crypto/defi/ $ ldapps - -┏━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━┓ -┃ Name ┃ Symbol ┃ Category ┃ Chains ┃ Change 1H ┃ Change 1D (%) ┃ Change 7D ┃ TVL ($) ┃ -┃ ┃ ┃ ┃ ┃ (%) ┃ ┃ (%) ┃ ┃ -┡━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━┩ -│ MakerDAO │ MKR │ CDP │ Ethereum │ 0.19 │ 2.21 │ 15.17 │ 8.538 B │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ Polygon │ MATIC │ Chain │ Polygon │ 0.29 │ 2.51 │ 28.58 │ 7.445 B │ -│ Bridge & │ │ │ │ │ │ │ │ -│ Staking │ │ │ │ │ │ │ │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ Lido │ LDO │ Liquid │ Ethereum, │ -0.16 │ 5.06 │ 45.24 │ 6.750 B │ -│ │ │ Staking │ Solana, │ │ │ │ │ -│ │ │ │ Moonriver, │ │ │ │ │ -│ │ │ │ Terra │ │ │ │ │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ Uniswap │ UNI │ Dexes │ Ethereum, │ -0.34 │ 1.64 │ 21.93 │ 5.905 B │ -│ │ │ │ Polygon, │ │ │ │ │ -│ │ │ │ Arbitrum, │ │ │ │ │ -│ │ │ │ Optimism, │ │ │ │ │ -│ │ │ │ Celo │ │ │ │ │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ Curve │ CRV │ Dexes │ Ethereum, │ 0.03 │ 1.87 │ 15.60 │ 5.852 B │ -│ │ │ │ Polygon, │ │ │ │ │ -│ │ │ │ Avalanche, │ │ │ │ │ -│ │ │ │ Fantom, │ │ │ │ │ -│ │ │ │ Arbitrum, │ │ │ │ │ -│ │ │ │ xDai, │ │ │ │ │ -│ │ │ │ Moonbeam, │ │ │ │ │ -│ │ │ │ Optimism, │ │ │ │ │ -│ │ │ │ Harmony, │ │ │ │ │ -│ │ │ │ Aurora │ │ │ │ │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ WBTC │ WBTC │ Bridge │ Ethereum │ 1.54 │ 1.52 │ 7.59 │ 5.339 B │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ AAVE V2 │ AAVE │ Lending │ Ethereum, │ 0.62 │ 2.22 │ 15.62 │ 4.993 B │ -│ │ │ │ Polygon, │ │ │ │ │ -│ │ │ │ Avalanche │ │ │ │ │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ Convex │ CVX │ Yield │ Ethereum │ -0.08 │ 4.28 │ 17.98 │ 3.909 B │ -│ Finance │ │ │ │ │ │ │ │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ JustLend │ JST │ Lending │ Tron │ -0.44 │ -0.18 │ 3.43 │ 3.311 B │ -├──────────────┼────────┼──────────────┼───────────────┼──────────────┼───────────────┼──────────────┼─────────┤ -│ PancakeSwap │ CAKE │ Dexes │ Binance │ 0.02 │ 0.90 │ 5.93 │ 2.996 B │ -└──────────────┴────────┴──────────────┴───────────────┴──────────────┴───────────────┴──────────────┴─────────┘ -``` diff --git a/website/content/terminal/crypto/defi/anchor/_index.md b/website/content/terminal/crypto/defi/anchor/_index.md deleted file mode 100644 index f6e3642b47e..00000000000 --- a/website/content/terminal/crypto/defi/anchor/_index.md +++ /dev/null @@ -1,22 +0,0 @@ -``` -usage: anchor [--transactions] [--address ADDRESS] [-h] [--export {csv,json,xlsx}] -``` - -Displays anchor protocol earnings data of a certain terra address [Source: ] - -``` -optional arguments: - --transactions Flag to show transactions history in anchor earn - --address ADDRESS Terra address. Valid terra addresses start with 'terra' (default: None) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Mar 18, 14:29 (🦋) /crypto/defi/ $ anchor terra13kc0x8kr3sq8226myf4nmanmn2mrk9s5s9wsnz --transactions -``` - -![anchor](https://user-images.githubusercontent.com/43375532/159065235-e8fb189d-f670-4391-a7fc-064640b9607d.png) diff --git a/website/content/terminal/crypto/defi/aterra/_index.md b/website/content/terminal/crypto/defi/aterra/_index.md deleted file mode 100644 index d23757b0de1..00000000000 --- a/website/content/terminal/crypto/defi/aterra/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -usage: aterra [--asset {ust,luna,sdt}] [--address ADDRESS] [-h] [--export {csv,json,xlsx}] -``` - -Displays the 30-day history of an asset in a certain terra address. [Source: ] - -``` -optional arguments: - --asset {ust,luna,sdt} - Terra asset {ust,luna,sdt} Default: ust (default: ust) - --address ADDRESS Terra address. Valid terra addresses start with 'terra' (default: None) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:00 (🦋) /crypto/defi/ $ aterra --asset luna --address terra18vnrzlzm2c4xfsx382pj2xndqtt00rvhu24sqe -``` - -![aterra](https://user-images.githubusercontent.com/46355364/154049081-7f2298ba-8a0e-4aaa-a5b1-5bc4f92af312.png) diff --git a/website/content/terminal/crypto/defi/ayr/_index.md b/website/content/terminal/crypto/defi/ayr/_index.md deleted file mode 100644 index 2be531b52ee..00000000000 --- a/website/content/terminal/crypto/defi/ayr/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -usage: ayr [-h] [--export {csv,json,xlsx}] -``` - -Displays the 30-day history of the Anchor Yield Reserve. An increasing yield reserve indicates that the return on collateral staked by borrowers in Anchor is greater than the yield paid to depositors. A decreasing yield reserve means yield paid to depositors is outpacing the staking returns of borrower's collateral. TLDR: Shows the address that contains UST that is paid on anchor interest earn. [Source: https://terra.engineer/] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -![ayr](https://user-images.githubusercontent.com/46355364/154049600-71d940f6-c7f3-4c50-a939-f76e539ed5cf.png) diff --git a/website/content/terminal/crypto/defi/dtvl/_index.md b/website/content/terminal/crypto/defi/dtvl/_index.md deleted file mode 100644 index cab61cb2559..00000000000 --- a/website/content/terminal/crypto/defi/dtvl/_index.md +++ /dev/null @@ -1,1089 +0,0 @@ -``` -usage: dtvl [-d DAPPS] [--export {csv,json,xlsx}] [-h] -``` - -Displays historical TVL of different dApps. [Source: https://docs.llama.fi/api] - -``` -optional arguments: - -d DAPPS, --dapps DAPPS - dApps to search historical TVL. Should be split by , e.g.: anchor,sushiswap,pancakeswap (default: None) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -![dtvl](https://user-images.githubusercontent.com/46355364/154051510-e048f525-e9d3-4eae-a0c9-dbea62843310.png) - -The available dApps are: -``` -0.exchange -1bch -1inch-network -1swap -88mph -8ightdao -aave -aavegotchi -abracadabra -acoconut -across -acryptos -acumen -adamant-finance -adena-finance -afraswap -agarthadao -agave -aladdin-dao -alchemist -alchemix -aldrin -algofi -aliensfarm -alita-finance -alium-swap -alkemi -allbridge -allinx -almond -alpaca-city -alpaca-finance -alpha-finance -amogus-dao -amun-tokens -amy-finance -anchor -anchorswap -angle -ankr -annex -ante-finance -aperocket -apeswap -apollodao -apricot-finance -apwine -apy-finance -aquarius -ara-finance -arbicheems -arbinyan -arbirise-finance -arbis-finance -arcx -arenaswap -arkadiko -armor -arrow -artemis-protocol -asgard-dao -asgard-finance -asol -astroport -atlantis-loans -atlas-usv -atmossoft -atrix -auctus -augmented-finance -augur -augury-finance -auroraswap -autofarm -autoshark -avalaunch -avalps -avaviking -avaware -axedao -axial -aztec -b.protocol -babylon-finance -babypig-finance -babyswap -back-finance -bacondao -badger-dao -bagels-finance -baguette -baker-guild -bakeryswap -balanced -balancer -bamboodefi -bananafarm -banano -bancor -banksy-farm -bao-finance -barnbridge -base-protocol -basis-cash -basketdao -beanstalk -bear-finance -bearn -becoswap -beefy-finance -beethoven-x -beglobal-finance -behodler -bella-protocol -belt-finance -benqi -benswap -bepswap -beta-finance -bifi -big-data-protocol -billion-happiness -bishares -biswap -bitant -bitpif -blackbird-finance -blackpool -blizzard -blizz-finance -bnbminer-finance -bogged-finance -bondappetit -boofinance -borgswap -boringdao -bossswap -bouje-finance -bourbon-dao -brahma -bridge-mutual -brinc -bring.finance -brokoli-network -bscstation -bscswap -bt.finance -btc-proxy -btcst -buffaloswap -bumper-finance -bunny -bunnypark -bxh -cafeswap -cakedao -canary -cap -capital-dao -carbon-finance -carbonswap -cardstarter -caribou-finance -cashcow-finance -cashcow-protocol -cashio -cbridge -cerberusdao -chad-finance -chainge-finance -chainport -channels-finance -chargedefi -charm-finance -cheesedao -cherryswap -chest-finance -chfry-finance -chickenswap -chikn-farm -chronicle -chronoswap -clipper -cobraswap -coffin-finance -cofix -coinswap-space -coinwind -colony -cometh -complifi -complus-network -component -composable-finance -compound -connext -convergence -convex-finance -cook-finance -corgiswap -cougarswap -coup-farm -cover-protocol -cozy-finance -cream-finance -creamswap -crodex -cronaswap -crow-finance -crunchy-network -cryptex -cryptoyieldfocus -crystl-finance -cub-finance -curve -cvault-finance -cvi-finance -cyber-dog -cyberfantasyfembots -cybertime -cycle-finance -cyclone -cyclos -dao-maker -daoventures -dapp-account-dao -dark-matter -ddex -decubate -deepseadao -deerfi -defibox -defichain-dex -defichain-loans -defidollar-dao -defi-halal -defi-kingdoms -defily -definer -definix -defiplaza -defirex -defisaver -defis-network -defi-swap -defi-yield-protocol -defrost -defyswap -dehive -demeter -depth -deri-protocol -derivadex -deversifi -dev-protocol -dforce -dfx-finance -dfyn-network -dhedge -dino.exchange -dinosaur-eggs -dinoswap -dios-finance -dodo -doki-doki-finance -domani-protocol -donkey -dopex -dopple-finance -draco-force -dracula -drift -drops -duckydefi -dungeonswap -dydx -ecurve -eggtartswap -element-finance -elephantdex -eleven-finance -elk -ellipsis-finance -embr-finance -emerald-swap -emiswap -empiredex -energiswap -enterdao -entropyfi -enzyme-finance -eosauthority-rex -erasure -ergodex -ester-finance -ethernity-chain -euler -euphoria -everestdao -everipedia -everrise -evolutionland -exinswap -exodia -fabric -fantohm -fantompup -farmersonly -farm-hero -feeder-finance -fegex -fei-protocol -ferrum -fiat-dao -filda -finnexus -firebird -firedao -flame-defi -flamincome -flamingo-finance -flare-loans -flarex -flashstake -flexa -float-capital -float-protocol -fluity -flux-protocol -fodl-finance -forcedao -fortress -fortube -fortune-dao -fractional-art -francium -frax -freeliquid -freeriver -friktion -frost-finance -ftm-frens -fuji-dao -furucombo -fusefi -futureswap -fuzz-finance -gains-network -gaj-finance -galatea-cash -galaxygoogle-dao -gamma -gearbox -geist-finance -genesis-finance -genesys -genshiro -geyser -gibxswap -giza-dao -glide-finance -globiance -gmx -gnosis -goldfinch -golff-protocol -gondola-finance -goose-finance -goswap -governor-dao -grassland-finance -gravity-finance -grim-finance -gro -growth-defi -guard(helmet) -g-uni -gyro -hades-swap -hakka-finance -halodao -handle-fi -harvest-finance -hbtc -hector-dao -hegic -helios-prime -hermes-defi -hex -hfione -honeyfarm -honeyswap -hop-protocol -hotpot-finance -hpdex -hswap -huckleberry -hundred-finance -hunny-finance -hurricaneswap -hyper-finance -hyperswap -ice-colony -ice-dao -ichi-farm -ideamarket -idex -idle-finance -ifpool -ifswap -illuvium -impermax-finance -impossible-finance -imtoken -index-coop -indexed-finance -injective-protocol -ink-protocol -instadapp -instrumental-finance -insurace -integral -inverse-finance -invictusdao -iron-finance -itrust-finance -jade-protocol -jaguarswap -jarvis-network -jet -jetfuel-finance -jetswap -jpool -jswap -justcryptos -justlend -juststables -kaco-finance -kafe-finance -kaidex -kalata -karma-dao -karura-dollar-(kusd) -karura-liquid-staking -karura-swap -katana -katana-dex -kava -kava-lend -kava-swap -kawaiiswap -kebab-finance -keep3r-network -keeperdao -keep-network -kimochi -kine-finance -kingdefi -kitty-finance -klayswap -klend -klima-dao -klondike-finance -knightswap-finance -knit-finance -koala-defi -kogefarm -kokomoswap -kokoswap -kolibri -kronos-dao -kryptodex -kswap-finance -kuswap -kuu-finance -kwikswap -kyber -larix -latteswap -layer2-finance -leaguedao -lemonswap -lendhub -leonicornswap -levinswap -lido -lien -life-dao -lightning-network -linear-finance -liqee -liquid-driver -liquidrium -liquidswap -liquity -lixir-finance -lobis -longdrink -loop-finance -loopring -lootswap -loterra -louverture -luaswap -lumenswap -luxor-money -lydia -lyra -macaronswap -magic-land -magnet-dao -maiar-exchange -makerdao -makiswap -mama-dao -mango-markets -manifest -mantra-dao -maple -marginswap -marinade-finance -market -mars-ecosystem -marshmallowdefi -mars-poolin -matrix-farm -maximizer -mcdex -mdex -mean-finance -mensa-protocol -mento -meowswap -mercurial-finance -mercurity -merit-circle -merlin -meso-finance -metacrono -meta-pool -metareserve -metaversepro -metronome -mfinance -midasdao -mimas-finance -mimo-defi -miningtycoon -miniswap -minmax-finance -mint-club -mintswap -mirai -mirror -mistswap -mm-finance -mm-optimizer -mobius-finance -mobius-money -mobox -mochifi -mochiswap -mojitoswap -moneyonchain -monox -moola-market -moondao -moonfarm -mooniswap -moonpot -moonswap -morpheus-swap -mstable -muesliswap -multichain -multi-chain-miner -multiplier -mushrooms-finance -n3rd-finance -nacho-finance -naos-finance -nasdex -nearpad -necc -neku -nemesis-dao -nerve -nerve-network -nest-protocol -netswap -neutrino -newdex -newland -nexus-mutual -nexus-protocol -nft20 -nftb -nftx -nidhi-dao -niifi -nileriver -niob-finance -notional -nowswap -nsure -nuls -numbers-protocol -o2-dao -o3-swap -oakfarm -obswap -ocean-protocol -ocp-finance -oddz -oh-finance -ola-finance -olive-cash -olympus-dao -omicron -omm -ondo-finance -one-cash -onedao-finance -oneswap -only1 -onx-finance -ooki -oolongswap -opendao -openleverage -openocean -openswap -opium -optidoge -optinyan -opyn -oraichain -orca -orcadao -origin-dollar -orion-money -orion-protocol -osmosis -otterclam -ouchi-finance -overnight -ovr -oxygen -pacoca -padswap -paint-swap -pala -paladin-finance -pancakeswap -pandaswap -pando -pangolin -pantherswap -papa-dao -paraswap -parrot-defi -parrot-protocol -partyswap -peakdefi -pendle -penguin-finance -percent-finance -perlin -perpetual-protocol -phoenix-finance -photonswap-finance -pickle -pidao-finance -piedao -piggy -piggybank-dao -piggy-finance -pika-protocol -pilot-protocol -pinkswap -pinyottas -pippi -piratedao -pizza -planet-finance -platypus-finance -plenty-defi -pnetwork -pods-finance -pole-aggregator -polkaex -polkamarkets -polkastarter -polkaswap -polly-finance -polycat -polydex -polydex-cryption-network -polygon-bridge-&-staking -polygonfarm-finance -polymarket -polyquity -polyroll -polyshield -polywhale-finance -polyyeld-finance -poof-cash -pooltogether -popsicle-finance -pop-town -port-finance -position-exchange -potluck-protocol -powerbomb-finance -powerpool -predictcoin -premia -primitive -pstake -psyoptions -pumpkin-dao -purefi -pureswap -pylon-protocol -qian -qidao -qilin -quarry -qubit -quickswap -quipuswap -rabbit-finance -radao -ragnarokdao -ramp -ram-protocol -rari-capital -rarify -raven -raydium -realt -reaper-farm -redacted-cartel -ref-finance -reflexer -renvm -reserve -retreeb -retrodefi -revault -reverse -revest-finance -ribbon-finance -risq-protocol -rivrkitty -robiniaswap -robo-advisor-for-yield -robo-vault -rocket-pool -rocketswap -romedao -rose -rskswap -rubicon -r-u-generous -ruler -saber -sablier-finance -saddle-finance -safedollar -safeohm -safeswap -saffron-finance -sakeperp -salem-finance -samodao -sapphire-defi -sashimiswap -scarab-finance -scarecrow-finance -scientix -scream -seadex -secret-bridge -secret-network -secretswap -securedao -seeder-finance -sencha -senpaiswap -sentre -serum -serum-swap -set-protocol -s-finance -shadecash -shapeshift -sharedstake -sheepdex -sheesha-finance -shell-protocol -sherlock -shiba-fantom -shibance -shibaswap -shield -shinobi -sifchain -singular-farm -siren -skeleton-finance -smartcoin -smartdex -smolswap -smoothy -snowball -snowbank -snowcatdao -snowdog -snowswap -socean -socialswap -soda-protocol -solana-farm -solarbeam -solend -solo-top -solyard -sonicswap -soulswap -sovryn -soy-finance -spartacus -spectrum-protocol -sperax-usd -spicy-dao -spicyswap -spiritdao -spiritswap -spookyswap -squiddao -squid-defi -squid-stake -stabilize -stacker-ventures -stacks-staking -stader -stafi -stakedao -stakehound -stakesteak -stakewise -standard-protocol -stand-cash -stargate-finance -starterra -steakbank-finance -stellarx -stonedefi -stormswap -strike -strudel-finance -summit-defi -sumswap -sun.io -sunflower-finance -sunflowerswap -sunny -sunrise-gaming -sunswap -superfarm -superfluid -sushiswap -suterusu -swamp-finance -swap-cat -swapmatic -swapp -swapperchan -swapr -swarm-markets -swerve -swift-finance -swing-dao -swipe -swop -symmetric -synapse -sync-network -synlev -synthetify -synthetix -taichi -talent-protocol -tangoswap -tarot -tectonic -teddy-cash -telcoin -telos-swap -templar-dao -temple-dao -tempodao -tempus-finance -tendieswap -tenet -ten-finance -terraswap -tesseract -tethys-finance -tetu -tezos-liquidity-baking -thales -the-dragons-lair -the-grand-banks -the-sandbox -the-seed-farm -thetanuts -thorchain -thoreum-finance -thorstarter -thorusfi -tidal-finance -timewarp -tinlake -tinyman -tokemak -tokenlon -tomb-finance -tomofinance -ton-swap -topshelf -tornadao -tornado-cash -totemfi -tracer -trader-joe -tranche-finance -tranchess -tranquil-finance -trava-finance -treedefi -trick-or-treat-farm -trisolaris -tropical-finance -truefi -ttswap -tulip-protocol -twindex -typhoon-cash -ubeswap -ubiquity-dao -umami-finance -uma-protocol -umbrella-network -umbria-network -unagii -undead-finance -unfederalreserve -unicly -unifarm -unifi -unilend -union-finance -unipower -unirex-finance -uniswap -unite-finance -unit-protocol -unitrade -universe-finance -universe-xyz -unore -unslashed -unusdao -upfi-network -valhalladao -valkyrie -valuedefi -value-liquid -vampireswap -vanilla -vaporwave -varen -vaulty-finance -vee-finance -venus -vesper -vexchange -vigor -vikingsfinance -viperswap -vires-finance -volmex -vortex-dao -voyager -vultureswap -vvs-finance -wagmidao -wagyuswap -waka-finance -wannaswap -wanswap-dex -wardenswap -warp-protocol -wasabix -waterloan -wault -waves-exchange -wbtc -wepiggy -westarter -whale-loans -wheat-protocol -whiteheart -wild-credit -wing-finance -wingswap -wisteria-swap -witswap -wonderland -wraithswap -wrapped -wrapped-bnb -wrap-protocol -xdai-stake-bridge -xdefi -xdollar -xenophon -xensa -xeus -xmas-past -xsigma -xtoken -xusd-money -yam-finance -yapeswap -yaxis -yearn-finance -yel-finance -yetiswap -yfdai -yfii -yieldly -yield-protocol -yield-yak -yogi-finance -yokaiswap -yoshi-exchange -youswap -youves -ysl.io -zabu-finance -zai-finance -zencha-finance -zenlink -zeus-finance -zigzag -zilswap -zkswap -zlot -zodiacdao -zoocoin -zookeeper -zoomswap -zunami -zyxswap -``` diff --git a/website/content/terminal/crypto/defi/gacc/_index.md b/website/content/terminal/crypto/defi/gacc/_index.md deleted file mode 100644 index 546501333a7..00000000000 --- a/website/content/terminal/crypto/defi/gacc/_index.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -usage: gacc [-l LIMIT] [--cumulative] [-k {active,total}] [-h] [--export EXPORT] -``` -Displays terra blockchain account growth history. [Source: https://fcd.terra.dev/swagger] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of days to show (default: 90) - --cumulative Show cumulative or discrete values. For active accounts only discrete value are available (default: True) - -k {active,total}, --kind {active,total} - Total account count or active account count. Default: total (default: total) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![gacc](https://user-images.githubusercontent.com/46355364/154051829-8225869b-6ea8-434e-afd6-51b9c81e0ade.png) diff --git a/website/content/terminal/crypto/defi/gdapps/_index.md b/website/content/terminal/crypto/defi/gdapps/_index.md deleted file mode 100644 index ed5a7e38674..00000000000 --- a/website/content/terminal/crypto/defi/gdapps/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: gdapps [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` - -Display top dApps (in terms of TVL) grouped by chain. [Source: https://docs.llama.fi/api] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of top dApps to display (default: 40) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -![gdapps](https://user-images.githubusercontent.com/46355364/154051959-ca11b04f-8f53-4299-8c20-13ea75869082.png) diff --git a/website/content/terminal/crypto/defi/lcsc/_index.md b/website/content/terminal/crypto/defi/lcsc/_index.md deleted file mode 100644 index ef45938b80c..00000000000 --- a/website/content/terminal/crypto/defi/lcsc/_index.md +++ /dev/null @@ -1,22 +0,0 @@ -``` -usage: lcsc [-d DAYS] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [-l LIMIT] -``` - -Display Luna circulating supply changes stats. [Source: Smartstake.io] Follow these steps to get the key token: - -1. Head to https://terra.smartstake.io/ -2. Right click on your browser and choose Inspect -3. Select Network tab (by clicking on the expand button next to Source tab) -4. Go to Fetch/XHR tab, and refresh the page -5. Get the option looks similar to the following: `listData?type=history&dayCount=30` -6. Extract the key and token out of the URL - -``` -optional arguments: - -d DAYS, --days DAYS Number of days to display. Default: 30 days (default: 30) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 5) -``` diff --git a/website/content/terminal/crypto/defi/ldapps/_index.md b/website/content/terminal/crypto/defi/ldapps/_index.md deleted file mode 100644 index 4cce531fda7..00000000000 --- a/website/content/terminal/crypto/defi/ldapps/_index.md +++ /dev/null @@ -1,51 +0,0 @@ -``` -usage: ldapps [-l LIMIT] [-s {tvl,symbol,category,chains,change_1h,change_1d,change_7d,name}] [--reverse] [--desc] [-h] [--export {csv,json,xlsx}] -``` - -Display information about listed DeFi Protocols on DeFi Llama. [Source:] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of records to display (default: 10) - -s {tvl,symbol,category,chains,change_1h,change_1d,change_7d,name}, --sort {tvl,symbol,category,chains,change_1h,change_1d,change_7d,name} - Sort by given column. Default: tvl (default: tvl) --r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) --desc Flag to display description of protocol (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:24 (🦋) /crypto/defi/ $ ldapps -┌──────────────────────────┬────────┬──────────┬──────────────────────────────────────────────────┬───────────────┬───────────────┬───────────────┬──────────┐ -│ Name │ Symbol │ Category │ Chains │ Change 1H (%) │ Change 1D (%) │ Change 7D (%) │ TVL ($) │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Curve │ CRV │ Dexes │ Ethereum, Avalanche, Fantom, Polygon, Arbitrum, │ 0.00 │ 1.26 │ 1.24 │ 19.752 B │ -│ │ │ │ xDai, Harmony, Optimism │ │ │ │ │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ MakerDAO │ MKR │ CDP │ Ethereum │ 0.00 │ 4.68 │ -0.35 │ 17.551 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Convex Finance │ CVX │ Yield │ Ethereum │ -0.00 │ 1.98 │ 0.40 │ 13.657 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ AAVE │ AAVE │ Lending │ Ethereum, Avalanche, Polygon │ 0.00 │ 3.06 │ -0.02 │ 13.597 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ WBTC │ WBTC │ Bridge │ Ethereum │ 0.13 │ 5.03 │ 1.06 │ 11.633 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Polygon Bridge & Staking │ MATIC │ Chain │ Polygon │ 0.00 │ -1.84 │ 1.42 │ 10.344 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Lido │ LDO │ Staking │ Ethereum, Terra, Solana │ 0.00 │ 8.70 │ 0.42 │ 9.626 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Anchor │ ANC │ Lending │ Terra │ -0.00 │ 5.25 │ 5.51 │ 8.401 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Uniswap │ UNI │ Dexes │ Ethereum, Polygon, Arbitrum, Optimism │ 0.78 │ 5.38 │ 0.13 │ 7.652 B │ -├──────────────────────────┼────────┼──────────┼──────────────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼──────────┤ -│ Multichain │ MULTI │ Bridge │ Fantom, Avalanche, Ethereum, Binance, Moonriver, │ 0.00 │ 3.05 │ -5.37 │ 7.305 B │ -│ │ │ │ Arbitrum, Harmony, OKExChain, Polygon, Telos, │ │ │ │ │ -│ │ │ │ Heco, xDai, Kucoin, Syscoin │ │ │ │ │ -└──────────────────────────┴────────┴──────────┴──────────────────────────────────────────────────┴───────────────┴───────────────┴───────────────┴──────────┘ -``` diff --git a/website/content/terminal/crypto/defi/newsletter/_index.md b/website/content/terminal/crypto/defi/newsletter/_index.md deleted file mode 100644 index 7d667ed9760..00000000000 --- a/website/content/terminal/crypto/defi/newsletter/_index.md +++ /dev/null @@ -1,38 +0,0 @@ -``` -usage: newsletter [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` - -Display DeFi related substack newsletters. [Source: substack.com] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of records to display (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:26 (🦋) /crypto/defi/ $ newsletter - Substack Newsletters -┌───────────────────────────────────────────────────┬─────────────────────┬─────────────────────────────────────────────────────────────────────────┐ -│ Title │ Date │ Link │ -├───────────────────────────────────────────────────┼─────────────────────┼─────────────────────────────────────────────────────────────────────────┤ -│ DEBRIEF - Crypto in Washington | Congressman Tom │ 2022-02-14 11:30:49 │ https://shows.banklesshq.com/p/debrief-crypto-in-washington-congressman │ -│ Emmer │ │ │ -├───────────────────────────────────────────────────┼─────────────────────┼─────────────────────────────────────────────────────────────────────────┤ -│ 105 - Crypto in Washington | Congressman Tom │ 2022-02-14 11:30:48 │ https://shows.banklesshq.com/p/-105-crypto-in-washington-congressman │ -│ Emmer │ │ │ -├───────────────────────────────────────────────────┼─────────────────────┼─────────────────────────────────────────────────────────────────────────┤ -│ EARLY ACCESS - Crypto in Washington | Congressman │ 2022-02-11 23:14:23 │ https://shows.banklesshq.com/p/early-access-crypto-in-washington │ -│ Tom Emmer │ │ │ -├───────────────────────────────────────────────────┼─────────────────────┼─────────────────────────────────────────────────────────────────────────┤ -│ ROLLUP: Bitfinex Hack | Super Crypto Bowl | Aave │ 2022-02-11 13:23:29 │ https://shows.banklesshq.com/p/-rollup-bitfinex-hack-super-crypto │ -│ Social Network | Vitalik Supports Assange DAO11 │ │ │ -├───────────────────────────────────────────────────┼─────────────────────┼─────────────────────────────────────────────────────────────────────────┤ -│ Syscoin Ecosystem Update: Pegasys DEX Launch │ 2022-01-28 18:59:03 │ https://defislate.substack.com/p/syscoin-ecosystem-update-pegasys │ -└───────────────────────────────────────────────────┴─────────────────────┴─────────────────────────────────────────────────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/defi/pairs/_index.md b/website/content/terminal/crypto/defi/pairs/_index.md deleted file mode 100644 index 2d187d957da..00000000000 --- a/website/content/terminal/crypto/defi/pairs/_index.md +++ /dev/null @@ -1,52 +0,0 @@ -``` -usage: pairs [-l LIMIT] [-v VOL] [-tx TX] [--days DAYS] [-s {created,pair,token0,token1,volumeUSD,txCount,totalSupply}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display Lastly added pairs on Uniswap DEX. [Source: ] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of records to display (default: 10) - -v VOL, --vol VOL Minimum trading volume (default: 100) - -tx TX, --tx TX Minimum number of transactions (default: 100) - --days DAYS Number of days the pair has been active, (default: 10) - -s {created,pair,token0,token1,volumeUSD,txCount,totalSupply}, --sort {created,pair,token0,token1,volumeUSD,txCount,totalSupply} - Sort by given column. Default: created (default: created) - -r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:27 (🦋) /crypto/defi/ $ pairs - Latest Added Pairs on Uniswap DEX -┌─────────────────────┬────────────────┬──────────────────────────────────────┬────────────────────┬───────────┬─────────┬─────────────┐ -│ created │ pair │ token0 │ token1 │ volumeUSD │ txCount │ totalSupply │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-15 07:28:54 │ LIKI/WETH │ Lion King │ Wrapped Ether │ 1.3M │ 327 │ 0 │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-15 05:26:25 │ X2Y2/WETH │ X2Y2Token │ Wrapped Ether │ 51.1M │ 2550 │ 124K │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-14 20:09:09 │ SIN/WETH │ Sins │ Wrapped Ether │ 2.5M │ 1334 │ 0 │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-14 19:41:24 │ YouTube/WETH │ YouTube Metaverse │ Wrapped Ether │ 637.5K │ 105 │ 1.2M │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-14 18:13:14 │ ALI/USDC │ Artificial Liquid Intelligence Token │ USD//C │ 4.3M │ 490 │ 3 │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-14 16:49:02 │ SuperBowl/WETH │ SuperBowl Metaverse │ Wrapped Ether │ 3.1M │ 161 │ 1.3M │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-14 13:31:57 │ LUSHI/WETH │ LuckyShinu │ Wrapped Ether │ 485.3K │ 770 │ 1.3K │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-14 13:22:44 │ Google/WETH │ Google Metaverse │ Wrapped Ether │ 3.4M │ 189 │ 745.7K │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-13 18:04:58 │ WETH/SKYWALKER │ Wrapped Ether │ Skywalker Protocol │ 888.2K │ 104 │ 54 │ -├─────────────────────┼────────────────┼──────────────────────────────────────┼────────────────────┼───────────┼─────────┼─────────────┤ -│ 2022-02-13 17:56:36 │ McDonalds/WETH │ McDonalds Metaverse │ Wrapped Ether │ 2.6M │ 208 │ 1.9M │ -└─────────────────────┴────────────────┴──────────────────────────────────────┴────────────────────┴───────────┴─────────┴─────────────┘ -``` diff --git a/website/content/terminal/crypto/defi/pools/_index.md b/website/content/terminal/crypto/defi/pools/_index.md deleted file mode 100644 index 2812111858a..00000000000 --- a/website/content/terminal/crypto/defi/pools/_index.md +++ /dev/null @@ -1,49 +0,0 @@ -``` -usage: pairs [-l LIMIT] [-s {volumeUSD,token0.name,token0.symbol,token1.name,token1.symbol,volumeUSD,txCount}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display uniswap pools by volume. [Source: ] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of records to display (default: 10) - -s {volumeUSD,token0.name,token0.symbol,token1.name,token1.symbol,volumeUSD,txCount}, --sort {volumeUSD,token0.name,token0.symbol,token1.name,token1.symbol,volumeUSD,txCount} - Sort by given column. Default: volumeUSD (default: volumeUSD) - -r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:28 (🦋) /crypto/defi/ $ pools - Uniswap Pools -┌───────────────────────┬───────────────┬───────────────────┬───────────────┬───────────┬─────────┐ -│ token0.name │ token0.symbol │ token1.name │ token1.symbol │ volumeUSD │ txCount │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ INFI │ INFI │ Wrapped Ether │ WETH │ 99.5M │ 41195 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ UnFederalReserveToken │ eRSDL │ Wrapped Ether │ WETH │ 994M │ 148106 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ Dinger Token │ DINGER │ Wrapped Ether │ WETH │ 99.4M │ 27552 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ CliffordInu │ CLIFF │ Wrapped Ether │ WETH │ 99.2M │ 38398 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ Wrapped Ether │ WETH │ Gen Shards │ GS │ 99M │ 16773 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ Wrapped Ether │ WETH │ 0x Protocol Token │ ZRX │ 98.9M │ 37163 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ GET │ GET │ Wrapped Ether │ WETH │ 98.9M │ 21632 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ AMPnet APX Token │ AAPX │ Wrapped Ether │ WETH │ 98.7M │ 22957 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ Wrapped Ether │ WETH │ RMPL │ RMPL │ 97.7M │ 46404 │ -├───────────────────────┼───────────────┼───────────────────┼───────────────┼───────────┼─────────┤ -│ DSLA │ DSLA │ Wrapped Ether │ WETH │ 97.5M │ 37901 │ -└───────────────────────┴───────────────┴───────────────────┴───────────────┴───────────┴─────────┘ -``` diff --git a/website/content/terminal/crypto/defi/sinfo/_index.md b/website/content/terminal/crypto/defi/sinfo/_index.md deleted file mode 100644 index ba16a8c1665..00000000000 --- a/website/content/terminal/crypto/defi/sinfo/_index.md +++ /dev/null @@ -1,15 +0,0 @@ -``` -usage: sinfo [-a ADDRESS] [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` -Displays staking info of a certain terra address. [Source: https://fcd.terra.dev/swagger] - -``` -optional arguments: - -a ADDRESS, --address ADDRESS - Terra address. Valid terra addresses start with 'terra' (default: None) - -l LIMIT, --limit LIMIT - Number of delegations (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` \ No newline at end of file diff --git a/website/content/terminal/crypto/defi/sratio/_index.md b/website/content/terminal/crypto/defi/sratio/_index.md deleted file mode 100644 index 5b3b9d2bfa1..00000000000 --- a/website/content/terminal/crypto/defi/sratio/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: sratio [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Displays terra blockchain staking ratio history. [Source: https://fcd.terra.dev/swagger] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of days to show (default: 90) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![sratio](https://user-images.githubusercontent.com/46355364/154053989-81ffd06a-db35-402b-ac27-4a5ae17158bf.png) diff --git a/website/content/terminal/crypto/defi/sreturn/_index.md b/website/content/terminal/crypto/defi/sreturn/_index.md deleted file mode 100644 index 7d652933238..00000000000 --- a/website/content/terminal/crypto/defi/sreturn/_index.md +++ /dev/null @@ -1,15 +0,0 @@ -``` -usage: sreturn [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` -Displays terra blockchain staking returns history. [Source: https://fcd.terra.dev/swagger] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of days to show (default: 90) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![sreturn](https://user-images.githubusercontent.com/46355364/154054156-d57ad946-88dd-4766-a4f9-ec5a9bfebab7.png) diff --git a/website/content/terminal/crypto/defi/stats/_index.md b/website/content/terminal/crypto/defi/stats/_index.md deleted file mode 100644 index e50b42db07e..00000000000 --- a/website/content/terminal/crypto/defi/stats/_index.md +++ /dev/null @@ -1,32 +0,0 @@ -``` -usage: stats [-h] [--export {csv,json,xlsx}] -``` - -Display base statistics about Uniswap DEX. [Source: ] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:33 (🦋) /crypto/defi/ $ stats - Uniswap DEX Base Statistics -┌───────────────────┬────────┐ -│ Metric │ Value │ -├───────────────────┼────────┤ -│ totalVolumeUSD │ 393.2B │ -├───────────────────┼────────┤ -│ totalLiquidityUSD │ 3.3B │ -├───────────────────┼────────┤ -│ pairCount │ 63.3K │ -├───────────────────┼────────┤ -│ txCount │ 73.6M │ -├───────────────────┼────────┤ -│ totalLiquidityETH │ 1.1M │ -└───────────────────┴────────┘ -``` diff --git a/website/content/terminal/crypto/defi/stvl/_index.md b/website/content/terminal/crypto/defi/stvl/_index.md deleted file mode 100644 index 70f4ff7d135..00000000000 --- a/website/content/terminal/crypto/defi/stvl/_index.md +++ /dev/null @@ -1,16 +0,0 @@ -``` -usage: stvl [-l LIMIT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}]] -``` - -Displays historical values of the total sum of TVLs from all listed dApps. [Source: https://docs.llama.fi/api] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of records to display (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -![stvl](https://user-images.githubusercontent.com/46355364/154054369-2c9dd45c-26b6-4255-81f6-7e839169c786.png) diff --git a/website/content/terminal/crypto/defi/swaps/_index.md b/website/content/terminal/crypto/defi/swaps/_index.md deleted file mode 100644 index 1a3705b5eac..00000000000 --- a/website/content/terminal/crypto/defi/swaps/_index.md +++ /dev/null @@ -1,49 +0,0 @@ -``` -usage: swaps [-l LIMIT] [-s {timestamp,token0,token1,amountUSD}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display last swaps done on Uniswap DEX. [Source: ] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of records to display (default: 10) - -s {timestamp,token0,token1,amountUSD}, --sort {timestamp,token0,token1,amountUSD} - Sort by given column. Default: timestamp (default: timestamp) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is show this help message (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:34 (🦋) /crypto/defi/ $ swaps - Last Uniswap Swaps -┌─────────────────────────────────────┬─────────┬────────┬─────────────────────┐ -│ timestamp │ token0 │ token1 │ amountUSD │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 989.8036910116636250215132843852658 │ SAITAMA │ WETH │ 2022-02-15 12:34:21 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 96.90289143394234014296291034812848 │ WETH │ RBIS │ 2022-02-15 12:34:16 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 96.13166689256472937997500656514648 │ CRO │ WETH │ 2022-02-15 12:34:16 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 5870.220427980296531839870124291824 │ BASD │ WETH │ 2022-02-15 12:34:16 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 58.91252385247121053891350741753916 │ WETH │ RIOT │ 2022-02-15 12:34:21 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 3429.451646829620606429002872853048 │ STRONG │ WETH │ 2022-02-15 12:34:16 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 197.7374918341423326217509222074952 │ HEX │ WETH │ 2022-02-15 12:34:16 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 19.09615292253938809540600951822232 │ SAITAMA │ WETH │ 2022-02-15 12:34:21 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 1550.329575065031856287197563619452 │ WETH │ NFT │ 2022-02-15 12:34:16 │ -├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤ -│ 13146.79479655147014131543533949295 │ WETH │ MIND │ 2022-02-15 12:34:16 │ -└─────────────────────────────────────┴─────────┴────────┴─────────────────────┘ -``` diff --git a/website/content/terminal/crypto/defi/tokens/_index.md b/website/content/terminal/crypto/defi/tokens/_index.md deleted file mode 100644 index 5daa3fc7bdc..00000000000 --- a/website/content/terminal/crypto/defi/tokens/_index.md +++ /dev/null @@ -1,68 +0,0 @@ -``` -usage: tokens [--skip SKIP] [--limit LIMIT] [-s {index,symbol,name,tradeVolumeUSD,totalLiquidity,txCount}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display tokens trade-able on Uniswap DEX [Source: ] - -``` -optional arguments: - --skip SKIP Number of records to skip (default: 0) - --limit LIMIT Number of records to display (default: 20) - -s {index,symbol,name,tradeVolumeUSD,totalLiquidity,txCount}, --sort {index,symbol,name,tradeVolumeUSD,totalLiquidity,txCount} - Sort by given column. Default: index (default: index) --r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:36 (🦋) /crypto/defi/ $ tokens - UniSwarp DEX Trade-able Tokens -┌───────┬──────────────┬────────────────────────────┬────────────────┬────────────────┬─────────┐ -│ index │ symbol │ name │ tradeVolumeUSD │ totalLiquidity │ txCount │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 0 │ BID │ TopBidder │ 17.9M │ 1.9M │ 2496 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 1 │ CHI │ Chi Gastoken by 1inch │ 19.4M │ 25K │ 75833 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 2 │ XDEX │ XDEFI Governance Token │ 18.7M │ 6.1M │ 4316 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 3 │ TUSD │ TrueUSD │ 176.2M │ 71.5K │ 46582 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 4 │ LON │ Tokenlon │ 504M │ 2.3M │ 56107 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 5 │ dDai │ Dharma Dai │ 0 │ 4 │ 1 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 6 │ STRIP │ StripInu2 │ 0 │ 0 │ 614 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 7 │ GST2 │ Gastoken.io │ 2.1M │ 142 │ 10888 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 8 │ XGME │ GameStonk.online │ 0 │ 35.7K │ 65 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 9 │ SHKOOBYSHNAX │ SHKOOBY INU SHNAX │ 0 │ 0 │ 47 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 10 │ PORN │ Porn DAO │ 2.3M │ 1.9K │ 321 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 11 │ TGBP │ TrueGBP │ 24.1K │ 4.1K │ 740 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 12 │ $STEALTH │ Stealth Standard │ 9.2M │ 165.5M │ 1622 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 13 │ ADIDAS │ Adidas Originals Metaverse │ 4.5M │ 0 │ 488 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 14 │ Nike │ Nike RTFKT Studio │ 75.8K │ 0 │ 15 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 15 │ DLTA │ delta.theta │ 3.1M │ 2M │ 2611 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 16 │ Nike │ Nike Metaverse │ 4.5M │ 0 │ 669 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 17 │ Nike │ Nike RTFKT Studio │ 131.6K │ 0 │ 35 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 18 │ PRADA │ Prada Metaverse │ 894.8K │ 0 │ 196 │ -├───────┼──────────────┼────────────────────────────┼────────────────┼────────────────┼─────────┤ -│ 19 │ TCAD │ TrueCAD │ 6.5K │ 599 │ 141 │ -└───────┴──────────────┴────────────────────────────┴────────────────┴────────────────┴─────────┘ -``` diff --git a/website/content/terminal/crypto/defi/validators/_index.md b/website/content/terminal/crypto/defi/validators/_index.md deleted file mode 100644 index 69a42ab60a1..00000000000 --- a/website/content/terminal/crypto/defi/validators/_index.md +++ /dev/null @@ -1,47 +0,0 @@ -``` -usage: validators [-l LIMIT] [-s {validatorName,tokensAmount,votingPower,commissionRate,status,uptime}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Displays information about terra validators. [Source: ] - -``` -optional arguments: - -l LIMIT, --limit LIMIT - Number of validators to show (default: 10) - -s {validatorName,tokensAmount,votingPower,commissionRate,status,uptime}, --sort {validatorName,tokensAmount,votingPower,commissionRate,status,uptime} - Sort by given column. Default: votingPower (default: votingPower) --r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:36 (🦋) /crypto/defi/ $ validators -┌──────────────────────────────────────────────┬─────────────────────┬───────────────┬────────────────┬───────────────────┬────────┬──────────┐ -│ Account address │ Validator name │ Tokens amount │ Voting power % │ Commission rate % │ Status │ Uptime % │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra1259cmu5zyklsdkmgstxhwqpe0utfe5hhyygjdc │ Orion.Money │ 21.9M │ 7.20 │ 5.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra15zcjduavxc5mkp8qcqs9eyhwlqwdlrzy6anwpg │ B-Harvest │ 17.9M │ 5.88 │ 5.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra123gn6j23lmexu0qx5qhmgxgunmjcqsx8g5ueq2 │ Staking Fund │ 15.7M │ 5.17 │ 10.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra1v5hrqlv8dqgzvy0pwzqzg0gxy899rm4kdn0jp4 │ DokiaCapital │ 10.3M │ 3.38 │ 5.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra1kprce6kc08a6l03gzzh99hfpazfjeczfpd6td0 │ Certus One │ 9M │ 2.96 │ 10.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra1p54hc4yy2ajg67j645dn73w3378j6k05v52cnk │ hashed │ 7.7M │ 2.53 │ 10.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra1va2ew92dtkhffduswr83elf3nfvl4xg48rguwl │ NOD Games │ 7.4M │ 2.44 │ 0.00 │ active │ 99.99 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra175hhkyxmkp8hf2zrzka7cnn7lk6mudtv4nsp2x │ DSRV - CHAISCAN.com │ 6.7M │ 2.22 │ 10.00 │ active │ 100.00 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra162892yn0tf8dxl8ghgneqykyr8ufrwmcs6vft5 │ Luna Maximalists │ 6.5M │ 2.14 │ 20.00 │ active │ 99.98 │ -├──────────────────────────────────────────────┼─────────────────────┼───────────────┼────────────────┼───────────────────┼────────┼──────────┤ -│ terra1h6rf7y2ar5vz64q8rchz5443s3tqnswrpxe69f │ Staked │ 6.3M │ 2.08 │ 10.00 │ active │ 100.00 │ -└──────────────────────────────────────────────┴─────────────────────┴───────────────┴────────────────┴───────────────────┴────────┴──────────┘ -``` diff --git a/website/content/terminal/crypto/defi/vaults/_index.md b/website/content/terminal/crypto/defi/vaults/_index.md deleted file mode 100644 index 151fcc35241..00000000000 --- a/website/content/terminal/crypto/defi/vaults/_index.md +++ /dev/null @@ -1,59 +0,0 @@ -``` -usage: vaults [-c {ethereum,polygon,avalanche,bsc,terra,fantom,moonriver,celo,heco,okex,cronos,arbitrum,eth,harmony,fuse,defichain,solana,optimism,kusama}] - [-p {aave,acryptos,alpaca,anchor,autofarm,balancer,bancor,beefy,belt,compound,convex,cream,curve,defichain,geist,lido,liquity,mirror,pancakeswap,raydium,sushi,tarot,traderjoe,tulip,ubeswap,uniswap,venus,yearn}] - [-k {lp,single,noimploss,stable}] [-t LIMIT] [-s {name,chain,protocol,apy,tvl,link}] [--reverse] [-l] [-h] [--export {csv,json,xlsx}] -``` - -Display Top DeFi Vaults. [Source: https://coindix.com/] - -``` -optional arguments: - -c {ethereum,polygon,avalanche,bsc,terra,fantom,moonriver,celo,heco,okex,cronos,arbitrum,eth,harmony,fuse,defichain,solana,optimism,kusama}, --chain {ethereum,polygon,avalanche,bsc,terra,fantom,moonriver,celo,heco,okex,cronos,arbitrum,eth,harmony,fuse,defichain,solana,optimism,kusama} - Blockchain name e.g. ethereum, terra (default: None) - -p {aave,acryptos,alpaca,anchor,autofarm,balancer,bancor,beefy,belt,compound,convex,cream,curve,defichain,geist,lido,liquity,mirror,pancakeswap,raydium,sushi,tarot,traderjoe,tulip,ubeswap,uniswap,venus,yearn}, --protocol {aave,acryptos,alpaca,anchor,autofarm,balancer,bancor,beefy,belt,compound,convex,cream,curve,defichain,geist,lido,liquity,mirror,pancakeswap,raydium,sushi,tarot,traderjoe,tulip,ubeswap,uniswap,venus,yearn} - DeFi protocol name e.g. aave, uniswap (default: None) - -k {lp,single,noimploss,stable}, --kind {lp,single,noimploss,stable} - Kind/type of vault e.g. lp, single, noimploss, stable (default: None) - -t LIMIT, --top LIMIT - Number of records to display (default: 10) - -s {name,chain,protocol,apy,tvl,link}, --sort {name,chain,protocol,apy,tvl,link} - Sort by given column. Default: timestamp (default: apy) - -r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) - -l, --links Flag to show vault link (default: True) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 May 26, 07:19 (�) /crypto/defi/ $ vaults - - Top DeFi Vaults -┌──────────────────────┬───────────┬──────────┬───────────┬──────────┐ -│ Name │ Chain │ Protocol │ APY (%) │ TVL ($) │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ ESHARE-BNB │ BNB Chain │ Beefy │ 3034.87 % │ 1.587 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ BSHARE-FTM │ Fantom │ Beefy │ 1545.3 % │ 1.637 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ ust-wormholeUST-3Crv │ Ethereum │ Convex │ 1471.74 % │ 2.600 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ GRAPE-MIM │ Avalanche │ Beefy │ 1404.84 % │ 1.110 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ BASED-TOMB │ Fantom │ Beefy │ 527.77 % │ 1.139 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ EMP-ETH │ BNB Chain │ Beefy │ 362.55 % │ 1.257 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ BADGER-WBTC │ Ethereum │ Balancer │ 340.54 % │ 15.150 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ BSW-BNB │ BNB Chain │ Alpaca │ 280.7 % │ 1.863 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ WBTC-OSMO │ Osmosis │ Osmosis │ 231.2 % │ 4.730 M │ -├──────────────────────┼───────────┼──────────┼───────────┼──────────┤ -│ ROWAN-OSMO │ Osmosis │ Osmosis │ 228.72 % │ 1.834 M │ -└──────────────────────┴───────────┴──────────┴───────────┴──────────┘ - -``` diff --git a/website/content/terminal/crypto/disc/_index.md b/website/content/terminal/crypto/disc/_index.md deleted file mode 100644 index 37288979d8c..00000000000 --- a/website/content/terminal/crypto/disc/_index.md +++ /dev/null @@ -1,146 +0,0 @@ ---- -title: Introduction to Cryptocurrency Discovery -keywords: "cryptocurrency, discovery, nft, app, decentralized, coins" -excerpt: "An Introduction to Cryptocurrency Discovery, within the Cryptocurrency Menu, -with a brief overview of the features." -geekdocCollapseSection: true ---- - -The Cryptocurrency Discovery menu provides the option to look into a wide selection of trending coins (trending), gainers and losers -(gainers and losers) as well as -NFTs (nft) and decentralized apps (dex). - -## How to use - -The Cryptocurrency Discovery menu is called upon by typing `disc`, while inside the `crypto` menu, which opens the following menu: - -![Cryptocurrency Discovery Menu](https://user-images.githubusercontent.com/46355364/178532081-747a3a32-df67-4714-b969-074a4ee3e885.png) - -Alternatively, you can also type `/crypto/disc`. Within the Cryptocurrency Discovery menu you have a variety of options -to find that information about a coin, a NFT, a specific blockchain game, decentralized app or exchange. E.g. we can -look into the top coins by typing `top` which returns the following table: - -``` -2022 Jul 12, 05:06 (🦋) /crypto/disc/ $ top - -┏━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ -┃ Symbol ┃ Name ┃ Volume [$] ┃ Market Cap ┃ Market Cap Rank ┃ 7D Change [%] ┃ 24H Change [%] ┃ -┡━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ -│ btc │ Bitcoin │ 21.1B │ 377.6B │ 1 │ -2.38 │ -3.83 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ eth │ Ethereum │ 11.4B │ 127.7B │ 2 │ -7.47 │ -6.85 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdt │ Tether │ 46.4B │ 66B │ 3 │ 0.02 │ -0.03 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdc │ USD Coin │ 4.5B │ 55.5B │ 4 │ -0.06 │ -0.08 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ bnb │ BNB │ 633.4M │ 36.5B │ 5 │ -3.59 │ -3.30 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ busd │ Binance USD │ 4.9B │ 18B │ 6 │ -0.20 │ -0.12 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ xrp │ XRP │ 895.6M │ 15.1B │ 7 │ -4.81 │ -3.58 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ ada │ Cardano │ 672.3M │ 14.6B │ 8 │ -7.89 │ -5.16 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ sol │ Solana │ 786.6M │ 11.6B │ 9 │ -8.54 │ -4.66 │ -├────────┼─────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ doge │ Dogecoin │ 271.8M │ 8.2B │ 10 │ -11.58 │ -5.68 │ -└────────┴─────────────┴────────────┴────────────┴─────────────────┴───────────────┴────────────────┘ -``` - -## Examples - -It is possible to delve deeper into a specific country by defining this for `top`. For example, you can look at -stable coins by typing `top stablecoins` which returns the following: - -``` -2022 Jul 12, 05:13 (🦋) /crypto/disc/ $ top stablecoins - -┏━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ -┃ Symbol ┃ Name ┃ Volume [$] ┃ Market Cap ┃ Market Cap Rank ┃ 7D Change [%] ┃ 24H Change [%] ┃ -┡━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ -│ usdt │ Tether │ 46.5B │ 66B │ 3.00 │ 0.10 │ 0.04 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdc │ USD Coin │ 4.5B │ 55.6B │ 4.00 │ 0.00 │ 0.08 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ busd │ Binance USD │ 4.9B │ 18B │ 6.00 │ -0.14 │ 0.00 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ dai │ Dai │ 198.5M │ 6.5B │ 12.00 │ 0.20 │ 0.07 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ frax │ Frax │ 4.6M │ 1.4B │ 40.00 │ 0.13 │ -0.04 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ tusd │ TrueUSD │ 71M │ 1.2B │ 44.00 │ 0.16 │ 0.18 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdp │ Pax Dollar │ 6.9M │ 848.7M │ 56.00 │ 0.15 │ 0.32 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdn │ Neutrino USD │ 2.7M │ 750.3M │ 60.00 │ 0.14 │ 0.10 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdd │ USDD │ 79.2M │ 722.1M │ 63.00 │ 0.42 │ 0.16 │ -├────────┼─────────────────┼────────────┼────────────┼─────────────────┼───────────────┼────────────────┤ -│ ustc │ TerraClassicUSD │ 52.8M │ 434.6M │ 91.00 │ -30.88 │ -11.03 │ -└────────┴─────────────────┴────────────┴────────────┴─────────────────┴───────────────┴────────────────┘ -``` - -Furthermore, we can also look into NFTs by calling `nft` where we can apply sorting by using the `--sort` flag and -selecting one of the options (using the arrow keys). For example: - -``` -2022 Jul 12, 05:16 (🦋) /crypto/disc/ $ nft --sort Avg Price [$] - - Top NFT collections -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ Name ┃ Protocols ┃ Floor Price [$] ┃ Avg Price [$] ┃ Market Cap [$] ┃ Volume [$] ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ Bored Ape Yacht Club │ ethereum │ 106.7K │ 123.9K │ 1.1B │ 1.1M │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ CryptoPunks │ ethereum │ 80K │ 111K │ 800.1M │ 1.2M │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Moonbirds │ ethereum │ 28.8K │ 33.5K │ 288M │ 200.8K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Mutant Ape Yacht Club │ ethereum │ 20.7K │ 23.6K │ 402M │ 920.1K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Doodles V4 │ ethereum │ 14.9K │ 16.7K │ 149.4M │ 384.3K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ CLONE X - X TAKASHI MURAKAMI │ ethereum │ 12K │ 14.8K │ 232.1M │ 326.7K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Azuki │ ethereum │ 13.3K │ 14.7K │ 133.3M │ 205.7K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Bored Ape Kennel Club │ ethereum │ 8.6K │ 10.8K │ 83M │ 118.8K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Space Doodles │ ethereum │ 16K │ 10K │ 89M │ 10K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ VeeFriends │ ethereum │ 9.2K │ 8.8K │ 94.1M │ 35.4K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Meebits │ ethereum │ 6.4K │ 8.7K │ 128M │ 1.1M │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Otherdeed for Otherside │ ethereum │ 3.1K │ 5.9K │ 306.1M │ 562.6K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Fluf World │ ethereum │ 11.3K │ 5K │ 113.2M │ 25.2K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ Cyber Kongz │ ethereum │ 22.9K │ 3.1K │ 114.7M │ 3.1K │ -├──────────────────────────────┼───────────┼─────────────────┼───────────────┼────────────────┼────────────┤ -│ SandVegasCasinoClub Official │ ethereum │ -1 │ 336 │ 49.9M │ 3.7K │ -└──────────────────────────────┴───────────┴─────────────────┴───────────────┴────────────────┴────────────┘ -``` - -Lastly, we can obtain the top 5 decentralized applications, sorted by daily user by using `dapps` which returns -the following: - -``` -2022 Jul 12, 05:19 (🦋) /crypto/disc/ $ dapps -l 5 - - Top Decentralized Applications -┏━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ -┃ Name ┃ Category ┃ Protocols ┃ Daily Users ┃ Daily Volume [$] ┃ -┡━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ -│ Splinterlands │ games │ hive,wax │ 305.1K │ 8K │ -├───────────────┼──────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ PancakeSwap │ defi │ binance-smart-chain │ 289.3K │ 223.7M │ -├───────────────┼──────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Alien Worlds │ games │ wax,binance-smart-chain │ 235.6K │ 759.2K │ -├───────────────┼──────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Farmers World │ games │ wax │ 111.7K │ 2.3K │ -├───────────────┼──────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ AtomicAssets │ other │ wax,eos │ 108.9K │ 226.3K │ -└───────────────┴──────────┴─────────────────────────┴─────────────┴──────────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/dapps/_index.md b/website/content/terminal/crypto/disc/dapps/_index.md deleted file mode 100644 index 2045d75442d..00000000000 --- a/website/content/terminal/crypto/disc/dapps/_index.md +++ /dev/null @@ -1,47 +0,0 @@ -``` -usage: dapps [-l LIMIT] [-s SORTBY [SORTBY ...]] [-h] [--export EXPORT] -``` - -Shows top decentralized applications [Source: ] - -Accepts --sort {Name,Category,Protocols,Daily Users,Daily Volume [$]} to sort by column - -``` -optional arguments: - -l N, --limit N display N records (default: 15) - -s --sort {Name,Category,Protocols,Daily Users,Daily Volume [$]} - Sort by given column - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 06:52 (🦋) /crypto/disc/ $ dapps - Top Decentralized Applications -┌───────────────┬──────────────┬─────────────────────────┬─────────────┬──────────────────┐ -│ Name │ Category │ Protocols │ Daily Users │ Daily Volume [$] │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Splinterlands │ games │ hive,wax │ 305.1K │ 8K │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ PancakeSwap │ defi │ binance-smart-chain │ 289.3K │ 223.7M │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Alien Worlds │ games │ wax,binance-smart-chain │ 235.6K │ 759.2K │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Farmers World │ games │ wax │ 111.7K │ 2.3K │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ AtomicAssets │ other │ wax,eos │ 108.9K │ 226.3K │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Axie Infinity │ games │ ronin,ethereum │ 90.9K │ 11.6M │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Upland │ games │ eos │ 63.3K │ 0 │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ OpenSea │ marketplaces │ ethereum,polygon │ 54K │ 200M │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Katana │ defi │ ronin │ 45.9K │ 92.7M │ -├───────────────┼──────────────┼─────────────────────────┼─────────────┼──────────────────┤ -│ Magic Eden │ marketplaces │ solana │ 40.2K │ 18.5M │ -└───────────────┴──────────────┴─────────────────────────┴─────────────┴──────────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/dex/_index.md b/website/content/terminal/crypto/disc/dex/_index.md deleted file mode 100644 index e65ae3a024d..00000000000 --- a/website/content/terminal/crypto/disc/dex/_index.md +++ /dev/null @@ -1,47 +0,0 @@ -``` -usage: dex [-l LIMIT] [-s SORTBY [SORTBY ...]] [-h] [--export EXPORT] -``` - -Shows top decentralized exchanges [Source: ] - -Accepts --sort {Name,Daily Users,Daily Volume [$]} to sort by column - -``` -optional arguments: - -l N, --limit N display N records (default: 15) - -s --sort {Name,Daily Users,Daily Volume [$]} - Sort by given column - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 06:52 (🦋) /crypto/disc/ $ dex - Top Decentralized Exchanges -┌───────────────┬─────────────┬──────────────────┐ -│ Name │ Daily Users │ Daily Volume [$] │ -├───────────────┼─────────────┼──────────────────┤ -│ Splinterlands │ 305.1K │ 8K │ -├───────────────┼─────────────┼──────────────────┤ -│ PancakeSwap │ 289.3K │ 223.7M │ -├───────────────┼─────────────┼──────────────────┤ -│ Alien Worlds │ 235.6K │ 759.2K │ -├───────────────┼─────────────┼──────────────────┤ -│ Farmers World │ 111.7K │ 2.3K │ -├───────────────┼─────────────┼──────────────────┤ -│ AtomicAssets │ 108.9K │ 226.3K │ -├───────────────┼─────────────┼──────────────────┤ -│ Axie Infinity │ 90.9K │ 11.6M │ -├───────────────┼─────────────┼──────────────────┤ -│ Upland │ 63.3K │ 0 │ -├───────────────┼─────────────┼──────────────────┤ -│ OpenSea │ 54K │ 200M │ -├───────────────┼─────────────┼──────────────────┤ -│ Katana │ 45.9K │ 92.7M │ -├───────────────┼─────────────┼──────────────────┤ -│ Magic Eden │ 40.2K │ 18.5M │ -└───────────────┴─────────────┴──────────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/gainers/_index.md b/website/content/terminal/crypto/disc/gainers/_index.md deleted file mode 100644 index 9f9b6e8e799..00000000000 --- a/website/content/terminal/crypto/disc/gainers/_index.md +++ /dev/null @@ -1,57 +0,0 @@ -``` -usage: gainers [-p {14d,1h,1y,200d,24h,30d,7d}] [-l LIMIT] [-s SORTBY [SORTBY ...]] [-h] [--export {csv,json,xlsx}] -``` - -Shows Largest Gainers - coins which gain the most in given period. You can use parameter --period to set which timeframe are you interested in: {14d,1h,1y,200d,24h,30d,7d} You can look on only N number of records with --limit, You cansort by {Symbol, Name, Price [$], Market Cap [$], Market Cap Rank, Volume [$]} with --sort. - -``` -optional arguments: - -p {14d,1h,1y,200d,24h,30d,7d}, --period {14d,1h,1y,200d,24h,30d,7d} - time period, one from {14d,1h,1y,200d,24h,30d,7d} (default: 1h) - -l LIMIT, --limit LIMIT - Number of records to display (default: 15) - -s SORTBY [SORTBY ...], --sort SORTBY [SORTBY ...] - Sort by given column. Default: Market Cap Rank (default: Market Cap Rank) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:38 (🦋) /crypto/disc/ $ gainers -┌────────┬─────────────────┬───────────┬────────────────┬─────────────────┬────────────┬───────────────┐ -│ Symbol │ Name │ Price [$] │ Market Cap [$] │ Market Cap Rank │ Volume [$] │ Change 1h [%] │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ xrp │ XRP │ 0.84 │ 39.9B │ 6 │ 3.2B │ 0.29 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ luna │ Terra │ 56.50 │ 22.4B │ 9 │ 1B │ 0.14 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ usdc │ USD Coin │ 1.00 │ 52.6B │ 5 │ 3B │ 0.12 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ bnb │ Binance Coin │ 429.85 │ 72.2B │ 4 │ 709.6M │ 0.12 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ btc │ Bitcoin │ 44275.00 │ 838.8B │ 1 │ 20.6B │ 0.11 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ usdt │ Tether │ 1.00 │ 78.5B │ 3 │ 43.3B │ 0.08 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ busd │ Binance USD │ 1.00 │ 17.6B │ 13 │ 3B │ -0.04 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ dot │ Polkadot │ 19.79 │ 21.4B │ 11 │ 672.9M │ -0.12 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ eth │ Ethereum │ 3100.92 │ 370.6B │ 2 │ 14.4B │ -0.24 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ shib │ Shiba Inu │ 0.00 │ 17.2B │ 14 │ 1.1B │ -0.34 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ ada │ Cardano │ 1.09 │ 34.9B │ 7 │ 1B │ -0.41 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ doge │ Dogecoin │ 0.15 │ 19.9B │ 12 │ 604.3M │ -0.50 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ AVAX │ Avalanche │ 88.42 │ 21.7B │ 10 │ 894.8M │ -0.65 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ sol │ Solana │ 102.75 │ 32.7B │ 8 │ 1.8B │ -0.76 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ cro │ Crypto.com Coin │ 0.50 │ 12.5B │ 15 │ 200.8M │ -1.21 │ -└────────┴─────────────────┴───────────┴────────────────┴─────────────────┴────────────┴───────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/games/_index.md b/website/content/terminal/crypto/disc/games/_index.md deleted file mode 100644 index 82f05fab7ff..00000000000 --- a/website/content/terminal/crypto/disc/games/_index.md +++ /dev/null @@ -1,47 +0,0 @@ -``` -usage: games [-l LIMIT] [-s SORTBY [SORTBY ...]] [-h] [--export EXPORT] -``` - -Shows top blockchain games [Source: ] - -Accepts --sort {Name,Daily Users,Daily Volume [$]} to sort by column - -``` -optional arguments: - -l N, --limit N display N records (default: 15) - -s --sort {Name,Daily Users,Daily Volume [$]} - Sort by given column - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 06:53 (🦋) /crypto/disc/ $ games - Top Blockchain Games -┌───────────────┬─────────────┬──────────────────┐ -│ Name │ Daily Users │ Daily Volume [$] │ -├───────────────┼─────────────┼──────────────────┤ -│ Splinterlands │ 305.1K │ 8K │ -├───────────────┼─────────────┼──────────────────┤ -│ PancakeSwap │ 289.3K │ 223.7M │ -├───────────────┼─────────────┼──────────────────┤ -│ Alien Worlds │ 235.6K │ 759.2K │ -├───────────────┼─────────────┼──────────────────┤ -│ Farmers World │ 111.7K │ 2.3K │ -├───────────────┼─────────────┼──────────────────┤ -│ AtomicAssets │ 108.9K │ 226.3K │ -├───────────────┼─────────────┼──────────────────┤ -│ Axie Infinity │ 90.9K │ 11.6M │ -├───────────────┼─────────────┼──────────────────┤ -│ Upland │ 63.3K │ 0 │ -├───────────────┼─────────────┼──────────────────┤ -│ OpenSea │ 54K │ 200M │ -├───────────────┼─────────────┼──────────────────┤ -│ Katana │ 45.9K │ 92.7M │ -├───────────────┼─────────────┼──────────────────┤ -│ Magic Eden │ 40.2K │ 18.5M │ -└───────────────┴─────────────┴──────────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/losers/_index.md b/website/content/terminal/crypto/disc/losers/_index.md deleted file mode 100644 index 2a7c5ed7984..00000000000 --- a/website/content/terminal/crypto/disc/losers/_index.md +++ /dev/null @@ -1,57 +0,0 @@ -``` -usage: losers [-p {14d,1h,1y,200d,24h,30d,7d}] [-l LIMIT] [-s SORTBY [SORTBY ...]] [-h] [--export {csv,json,xlsx}] -``` - -Shows Largest Losers - coins which price dropped the most in given period You can use parameter --period to set which timeframe are you interested in: {14d,1h,1y,200d,24h,30d,7d} You can look on only N number of records with --limit. You can sort by {Symbol,Name,Price [$],Market Cap [$],Market Cap Rank,Volume [$]} with --sort. - -``` -optional arguments: - -p {14d,1h,1y,200d,24h,30d,7d}, --period {14d,1h,1y,200d,24h,30d,7d} - time period, one from {14d,1h,1y,200d,24h,30d,7d} (default: 1h) - -l LIMIT, --limit LIMIT - Number of records to display (default: 15) - -s SORTBY [SORTBY ...], --sort SORTBY [SORTBY ...] - Sort by given column. Default: Market Cap Rank (default: Market Cap Rank) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:43 (🦋) /crypto/disc/ $ losers -┌────────┬─────────────────┬───────────┬────────────────┬─────────────────┬────────────┬───────────────┐ -│ Symbol │ Name │ Price [$] │ Market Cap [$] │ Market Cap Rank │ Volume [$] │ Change 1h [%] │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ cro │ Crypto.com Coin │ 0.50 │ 12.5B │ 15 │ 200.8M │ -1.21 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ sol │ Solana │ 102.75 │ 32.7B │ 8 │ 1.8B │ -0.76 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ doge │ Dogecoin │ 0.15 │ 19.9B │ 12 │ 604.3M │ -0.50 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ AVAX │ Avalanche │ 88.66 │ 21.7B │ 10 │ 899.9M │ -0.38 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ ada │ Cardano │ 1.09 │ 34.9B │ 7 │ 1B │ -0.31 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ shib │ Shiba Inu │ 0.00 │ 17.2B │ 14 │ 1.1B │ -0.26 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ eth │ Ethereum │ 3100.92 │ 370.6B │ 2 │ 14.4B │ -0.24 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ dot │ Polkadot │ 19.79 │ 21.4B │ 11 │ 672.9M │ -0.12 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ busd │ Binance USD │ 1.00 │ 17.6B │ 13 │ 3B │ -0.06 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ bnb │ Binance Coin │ 429.57 │ 72.2B │ 4 │ 1.8B │ 0.05 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ usdt │ Tether │ 1.00 │ 78.5B │ 3 │ 43.3B │ 0.08 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ luna │ Terra │ 56.47 │ 22.4B │ 9 │ 1B │ 0.08 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ btc │ Bitcoin │ 44275.00 │ 838.8B │ 1 │ 20.6B │ 0.11 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ usdc │ USD Coin │ 1.00 │ 52.6B │ 5 │ 3B │ 0.12 │ -├────────┼─────────────────┼───────────┼────────────────┼─────────────────┼────────────┼───────────────┤ -│ xrp │ XRP │ 0.84 │ 39.9B │ 6 │ 3.2B │ 0.29 │ -└────────┴─────────────────┴───────────┴────────────────┴─────────────────┴────────────┴───────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/nft/_index.md b/website/content/terminal/crypto/disc/nft/_index.md deleted file mode 100644 index 40fa40dc7f1..00000000000 --- a/website/content/terminal/crypto/disc/nft/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: nft [-l LIMIT] [-s SORTBY [SORTBY ...]] [-h] [--export EXPORT] -``` - -Shows top NFT collections [Source: https://dappradar.com/] - -Accepts --sort {Name,Protocols,Floor Price [$],Avg Price [$],Market Cap [$],Volume [$]} to sort by column - -``` -optional arguments: - -l N, --limit N display N records (default: 15) - -s --sort {Name,Protocols,Floor Price [$],Avg Price [$],Market Cap [$],Volume [$]} - Sort by given column - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/disc/search/_index.md b/website/content/terminal/crypto/disc/search/_index.md deleted file mode 100644 index 67263a1331d..00000000000 --- a/website/content/terminal/crypto/disc/search/_index.md +++ /dev/null @@ -1,54 +0,0 @@ -``` -usage: search [-q QUERY [QUERY ...]] [-c {currencies,exchanges,icos,people,tags,all}] [-l LIMIT] [-s {category,id,name}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Search over CoinPaprika API You can display only top N number of results with --top parameter. You can sort data by id, name , category --sort -parameter and also with --reverse flag to sort ascending. To choose category in which you are searching for use --cat/-c parameter. Available -categories: currencies|exchanges|icos|people|tags|all Displays: id, name, category - -``` -optional arguments: - -q QUERY [QUERY ...], --query QUERY [QUERY ...] - phrase for search (default: None) - -c {currencies,exchanges,icos,people,tags,all}, --cat {currencies,exchanges,icos,people,tags,all} - Categories to search: currencies|exchanges|icos|people|tags|all. Default: all (default: all) - -l LIMIT, --limit LIMIT - Limit of records (default: 10) - -s {category,id,name}, --sort {category,id,name} - Sort by given column. Default: id (default: id) --r, --reverse Data is sorted in descending order by default. Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) --h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:51 (🦋) /crypto/disc/ $ search -q bitcoin - CoinPaprika Results -┌─────────────────────────┬──────────────────────┬────────────┐ -│ id │ name │ category │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bbtc-baby-bitcoin │ Baby Bitcoin │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bc-bitcoin-confidential │ Bitcoin Confidential │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bca-bitcoin-atom │ Bitcoin Atom │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bcd-bitcoin-diamond │ Bitcoin Diamond │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bcf-bitcoin-fast │ Bitcoin Fast │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bch-bitcoin-cash │ Bitcoin Cash │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bch-bitcoin-cash-token │ Bitcoin Cash Token │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bci-bitcoin-interest │ Bitcoin Interest │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bcr-bitcoinrock │ BITCOINROCK │ currencies │ -├─────────────────────────┼──────────────────────┼────────────┤ -│ bct-bitcointrust │ BitcoinTrust │ currencies │ -└─────────────────────────┴──────────────────────┴────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/top/_index.md b/website/content/terminal/crypto/disc/top/_index.md deleted file mode 100644 index 9fc48d10944..00000000000 --- a/website/content/terminal/crypto/disc/top/_index.md +++ /dev/null @@ -1,54 +0,0 @@ -``` -usage: cgtop top [-c CATEGORY] [-l LIMIT] [-s {Symbol,Name,Volume [$],Market Cap,Market Cap Rank,7D Change [%],24H Change [%]} [{Symbol,Name,Volume [$],Market Cap,Market Cap Rank,7D Change [%],24H Change [%]} ...]] [--reverse] [-h] [--export EXPORT] [--source {CoinGecko,CoinMarketCap}] -``` - -Display N coins from the data source, if the data source is CoinGecko it can receive a category as argument (-c -decentralized-finance-defi or -c stablecoins) and will show only the top coins in that category. can also receive sort -arguments (these depend on the source), e.g., --sort Volume [$] You can sort by {Symbol,Name,Price [$],Market -Cap,Market Cap Rank,Volume [$]} with CoinGecko Number of coins to show: -l 10 - -``` - -c CATEGORY, --category CATEGORY - Category (e.g., stablecoins). Empty for no category. Only works for 'CoinGecko' source. - (default: ) - -l LIMIT, --limit LIMIT - Limit of records (default: 10) - -s {Symbol,Name,Volume [$],Market Cap,Market Cap Rank,7D Change [%],24H Change [%]} [{Symbol,Name,Volume [$],Market Cap,Market Cap Rank,7D Change [%],24H Change [%]} ...], --sort {Symbol,Name,Volume [$],Market Cap,Market Cap Rank,7D Change [%],24H Change [%]} [{Symbol,Name,Volume [$],Market Cap,Market Cap Rank,7D Change [%],24H Change [%]} ...] - Sort by given column. Default: Market Cap Rank (default: Market Cap Rank) --r, --reverse Data is sorted in descending order by default. Reverse - flag will sort it in an ascending way. Only works when raw - data is displayed. (default: False) --h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) - --source {CoinGecko,CoinMarketCap} - Data source to select from (default: CoinGecko) -``` - -Example: - -``` -2022 Feb 15, 06:44 (🦋) /crypto/disc/ $ top -┌────────┬──────────────┬────────────┬────────────────┬─────────────────┬───────────────┬────────────────┐ -│ Symbol │ Name │ Volume [$] │ Market Cap [$] │ Market Cap Rank │ 7D Change [%] │ 24H Change [%] │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ btc │ Bitcoin │ 20.6B │ 838.8B │ 1 │ 0.93 │ 4.77 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ eth │ Ethereum │ 14.4B │ 370.6B │ 2 │ -1.53 │ 7.77 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdt │ Tether │ 43.3B │ 78.5B │ 3 │ -0.01 │ -0.05 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ bnb │ Binance Coin │ 1.8B │ 72.2B │ 4 │ -1.01 │ 8.18 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdc │ USD Coin │ 3B │ 52.6B │ 5 │ 0.25 │ 0.17 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ xrp │ XRP │ 3.2B │ 39.9B │ 6 │ 0.71 │ 5.51 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ ada │ Cardano │ 1B │ 34.9B │ 7 │ -9.04 │ 5.52 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ sol │ Solana │ 1.8B │ 32.7B │ 8 │ -12.54 │ 10.07 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ luna │ Terra │ 1B │ 22.4B │ 9 │ -5.26 │ 8.67 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ AVAX │ Avalanche │ 899.9M │ 21.7B │ 10 │ 6.28 │ 12.72 │ -└────────┴──────────────┴────────────┴────────────────┴─────────────────┴───────────────┴────────────────┘ -``` diff --git a/website/content/terminal/crypto/disc/trending/_index.md b/website/content/terminal/crypto/disc/trending/_index.md deleted file mode 100644 index a028c479809..00000000000 --- a/website/content/terminal/crypto/disc/trending/_index.md +++ /dev/null @@ -1,36 +0,0 @@ -``` -usage: trending [-h] [--export {csv,json,xlsx}] -``` - -Discover trending coins. Use --limit parameter to display only top N number of records. - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:45 (🦋) /crypto/disc/ $ trending - Trending coins on CoinGecko -┌────────────────────┬────────────────────┬─────────────────┐ -│ Symbol │ Name │ Market Cap Rank │ -├────────────────────┼────────────────────┼─────────────────┤ -│ cellframe │ Cellframe │ 751 │ -├────────────────────┼────────────────────┼─────────────────┤ -│ dehub │ DeHub │ 858 │ -├────────────────────┼────────────────────┼─────────────────┤ -│ richquack │ Rich Quack │ 476 │ -├────────────────────┼────────────────────┼─────────────────┤ -│ smooth-love-potion │ Smooth Love Potion │ 101 │ -├────────────────────┼────────────────────┼─────────────────┤ -│ gala │ Gala │ 56 │ -├────────────────────┼────────────────────┼─────────────────┤ -│ looksrare │ LooksRare │ 157 │ -├────────────────────┼────────────────────┼─────────────────┤ -│ doge-dash │ Doge Dash │ 950 │ -└────────────────────┴────────────────────┴─────────────────┘ - ``` diff --git a/website/content/terminal/crypto/find/_index.md b/website/content/terminal/crypto/find/_index.md deleted file mode 100644 index 94f5692fa2f..00000000000 --- a/website/content/terminal/crypto/find/_index.md +++ /dev/null @@ -1,109 +0,0 @@ -``` -usage: find [-c COIN] [-k {id,symbol,name}] [-t TOP] [--source {cp,cg,bin,cb}] [--export {csv,json,xlsx}] [-h] -``` - -Find similar coin by coin name,symbol or id. If you don't remember exact name or id of the Coin at CoinGecko, Binance, Coinbase or CoinPaprika you -can use this command to display coins with similar name, symbol or id to your search query. Example of usage: coin name is something like "polka". So -I can try: find -c polka -k name -t 25 It will search for coin that has similar name to polka and display top 25 matches. -c, --coin stands for coin - -- you provide here your search query -k, --key it's a searching key. You can search by symbol, id or name of coin -t, --top it displays top N number - of records. - -``` -optional arguments: - -c COIN, --coin COIN Symbol Name or Id of Coin (default: None) - -k {id,symbol,name}, --key {id,symbol,name} - Specify by which column you would like to search: symbol, name, id (default: symbol) - -t TOP, --top TOP Limit of records (default: 10) - --source {cp,cg,bin,cb} - Source of data. (default: cg) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -``` -usage: coins [-c COIN] [-s SKIP] [-l N] [--source SOURCE] [--export {csv,json,xlsx}] [-h] -``` - -Shows list of coins available on CoinGecko, CoinPaprika and Binance.If you provide name of coin then in result you will see ids of coins with best -match for all mentioned services. If you provide ALL keyword in your search query, then all coins will be displayed. To move over coins you can use -pagination mechanism with skip, top params. E.g. coins ALL --skip 100 --limit 30 then all coins from 100 to 130 will be displayed. By default skip = -0, limit = 10. If you won't provide source of the data everything will be displayed (CoinGecko, CoinPaprika, Binance). If you want to search only in -given source then use --source flag. E.g. if you want to find coin with name uniswap on CoinPaprika then use: coins uniswap --source cp --limit 10 - -``` -optional arguments: - -c COIN, --coin COIN Coin you search for (default: None) - -s SKIP, --skip SKIP Skip n of records (default: 0) - -l N, --limit N display N records (default: 10) - --source SOURCE Source of data. (default: None) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:52 (🦋) /crypto/ $ find -c btc - Similar Coins -┌───────┬────────┬──────────────────────────────┬──────────────────────────────┐ -│ index │ symbol │ id │ name │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 0 │ btc │ bitcoin │ Bitcoin │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 1 │ zbtc │ zetta-bitcoin-hashrate-token │ Zetta Bitcoin Hashrate Token │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 2 │ xbtc │ dforce-btc │ dForce BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 2 │ xbtc │ synthetic-btc │ Synthetic BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 2 │ xbtc │ wrapped-bitcoin-stacks │ Wrapped Bitcoin-Stacks │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 3 │ xbtc │ dforce-btc │ dForce BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 3 │ xbtc │ synthetic-btc │ Synthetic BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 3 │ xbtc │ wrapped-bitcoin-stacks │ Wrapped Bitcoin-Stacks │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 4 │ xbtc │ dforce-btc │ dForce BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 4 │ xbtc │ synthetic-btc │ Synthetic BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 4 │ xbtc │ wrapped-bitcoin-stacks │ Wrapped Bitcoin-Stacks │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 5 │ wbtc │ wrapped-bitcoin │ Wrapped Bitcoin │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 5 │ wbtc │ wrapped-btc-wormhole │ Wrapped BTC (Wormhole) │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 6 │ wbtc │ wrapped-bitcoin │ Wrapped Bitcoin │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 6 │ wbtc │ wrapped-btc-wormhole │ Wrapped BTC (Wormhole) │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 7 │ vbtc │ venus-btc │ Venus BTC │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 8 │ ubtc │ united-bitcoin │ United Bitcoin │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 9 │ tbtc │ t-bitcoin │ τBitcoin │ -├───────┼────────┼──────────────────────────────┼──────────────────────────────┤ -│ 9 │ tbtc │ tbtc │ tBTC │ -└───────┴────────┴──────────────────────────────┴──────────────────────────────┘ - - Similar Coins -┌───────┬───────┬───────┐ -│ index │ id │ name │ -├───────┼───────┼───────┤ -│ 0 │ tbtc │ tBTC │ -├───────┼───────┼───────┤ -│ 1 │ sbtc │ sBTC │ -├───────┼───────┼───────┤ -│ 2 │ wwbtc │ wWBTC │ -├───────┼───────┼───────┤ -│ 3 │ tzbtc │ tzBTC │ -├───────┼───────┼───────┤ -│ 4 │ nhbtc │ nHBTC │ -├───────┼───────┼───────┤ -│ 5 │ bxbtc │ bxBTC │ -└───────┴───────┴───────┘ -``` diff --git a/website/content/terminal/crypto/headlines/_index.md b/website/content/terminal/crypto/headlines/_index.md deleted file mode 100644 index 7aade864ca9..00000000000 --- a/website/content/terminal/crypto/headlines/_index.md +++ /dev/null @@ -1,33 +0,0 @@ -``` -usage: headlines [-c COIN] [--export {csv,json,xlsx}] [-h] -``` - -Display sentiment analysis from FinBrain for chosen Cryptocurrencies - -``` -optional arguments: - -c COIN, --coin COIN Symbol of coin to load data for, ~100 symbols are available (default: BTC) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 07:52 (🦋) /crypto/ $ headlines - -date -2022-02-06 0.137 -2022-02-07 0.137 -2022-02-08 0.237 -2022-02-09 0.123 -2022-02-10 0.131 -2022-02-11 0.014 -2022-02-12 -0.057 -2022-02-13 0.02 -2022-02-14 0.103 -2022-02-15 0.158 -``` - -![headlines](https://user-images.githubusercontent.com/46355364/154066006-d281a8c8-bd25-4355-9cd5-3affd4477bd6.png) diff --git a/website/content/terminal/crypto/load/_index.md b/website/content/terminal/crypto/load/_index.md deleted file mode 100644 index ba91a98aba0..00000000000 --- a/website/content/terminal/crypto/load/_index.md +++ /dev/null @@ -1,24 +0,0 @@ -`usage: load [-c COIN] [-s START] - [--exchange EXCHANGE] - [-e END] [-i {1,5,15,30,60,240,1440,10080,43200}] [--vs VS] [--source {ccxt,yf,cg}] [-h]` - -Load crypto currency to perform analysis on. Yahoo Finance is used as default source. Other sources can be used such as 'ccxt' -or 'cg' with --source. If you select 'ccxt', you can then select any exchange with --exchange. You can also select a specific -interval with --interval. - -``` -optional arguments: - -c COIN, --coin COIN Coin to get. Must be coin symbol (e.g., btc, eth) (default: None) - -s START, --start START - The starting date (format YYYY-MM-DD) of the crypto (default: 2019-08-19) - --exchange {aax,ascendex,bequant,bibox,bigone,binance,binancecoinm,binanceus,binanceusdm,bit2c,bitbank,bitbay,bitcoincom,bitfinex,bitfinex2,bitflyer,bitforex,bitget,bithumb,bitmart,bitmex,bitopro,bitpanda,bitrue,bitso,bitstamp,bitstamp1,bittrex,bitvavo,bkex,bl3p,btcalpha,btcbox,btcex,btcmarkets,btctradeua,btcturk,buda,bw,bybit,bytetrade,cdax,cex,coinbaseprime,coinbasepro,coincheck,coinex,coinfalcon,coinmate,coinone,coinspot,crex24,cryptocom,currencycom,delta,deribit,digifinex,eqonex,exmo,flowbtc,fmfwio,ftx,ftxus,gate,gateio,gemini,hitbtc,hitbtc3,hollaex,huobi,huobijp,huobipro,idex,independentreserve,indodax,itbit,kraken,kucoin,kucoinfutures,kuna,latoken,lbank,lbank2,liquid,luno,lykke,mercado,mexc,mexc3,ndax,novadax,oceanex,okcoin,okex,okex5,okx,paymium,phemex,poloniex,probit,qtrade,ripio,stex,therock,tidebit,tidex,timex,tokocrypto,upbit,wavesexchange,whitebit,woo,xena,yobit,zaif,zb,zipmex,zonda} - Exchange to search (default: binance) - -e END, --end END The ending date (format YYYY-MM-DD) of the crypto (default: 2022-08-23) - -i {1,5,15,30,60,240,1440,10080,43200}, --interval {1,5,15,30,60,240,1440,10080,43200} - The interval of the crypto (default: 1440) - --vs VS Quote currency (what to view coin vs). e.g., usdc, usdt, ... if source is ccxt, usd, eur, ... otherwise - (default: usdt) - --source {ccxt,yf,cg} - Data source to select from (default: yf) - -h, --help show this help message (default: False) -``` \ No newline at end of file diff --git a/website/content/terminal/crypto/nft/_index.md b/website/content/terminal/crypto/nft/_index.md deleted file mode 100644 index 5a656064cf3..00000000000 --- a/website/content/terminal/crypto/nft/_index.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: Introduction to Non Fungible Token (NFT) -keywords: "cryptocurrency, nft, Non Fungible Token, tokenomics, digital asset, art" -excerpt: "An Introduction to Non Fungible Token (NFT), within the Cryptocurrency Menu, -with a brief overview of the features." -geekdocCollapseSection: true ---- - -The Non Fungible Token (NFT) menu gives the user the ability to dive into certain NFTs (stats). - -## How to use - -The Non Fungible Token (NFT) menu is called upon by typing `nft`, while inside the `crypto` menu, which opens the following menu: - -![Non Fungible Token (NFT) menu](https://user-images.githubusercontent.com/46355364/178734682-24b58a33-ae3d-4ef9-9f07-44fe713f6f16.png) - -Alternatively, you can also type `/crypto/nft`. Within the Non Fungible Token (NFT) menu you can explore the statistics of specific NFTs you are interested in. - -We can look into the statistics of a specific NFT once you know the slug (e.g. mutant-ape-yacht-club) -with `stats` as follows: - -``` -2022 Jul 13, 08:10 (🦋) /crypto/nft/ $ stats mutant-ape-yacht-club - - Collection Stats -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Metric ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━┩ -│ Name │ Mutant Ape Yacht Club │ -├────────────────────────────────┼───────────────────────┤ -│ Floor Price (ETH) │ 19.70 │ -├────────────────────────────────┼───────────────────────┤ -│ Number of Owners │ 13029.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Market Cap (ETH) │ 404479.49 │ -├────────────────────────────────┼───────────────────────┤ -│ Average Price ETH │ 12.91 │ -├────────────────────────────────┼───────────────────────┤ -│ One day volume (ETH) │ 300.75 │ -├────────────────────────────────┼───────────────────────┤ -│ One day change (%) │ -36.10 │ -├────────────────────────────────┼───────────────────────┤ -│ One day sales (ETH) │ 14.00 │ -├────────────────────────────────┼───────────────────────┤ -│ One day average price (ETH) │ 21.48 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day volume (ETH) │ 18341.20 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day change (%) │ 18.40 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day sales (ETH) │ 959.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day average price (ETH) │ 19.13 │ -├────────────────────────────────┼───────────────────────┤ -│ Total Supply (ETH) │ 19424.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Total Sales (ETH) │ 33412.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Total Volume (ETH) │ 431381.31 │ -├────────────────────────────────┼───────────────────────┤ -│ Creation Date │ Aug 29, 2021 │ -├────────────────────────────────┼───────────────────────┤ -│ URL │ - │ -└────────────────────────────────┴───────────────────────┘ -``` diff --git a/website/content/terminal/crypto/nft/collections/_index.md b/website/content/terminal/crypto/nft/collections/_index.md deleted file mode 100644 index b82681935a2..00000000000 --- a/website/content/terminal/crypto/nft/collections/_index.md +++ /dev/null @@ -1,36 +0,0 @@ -``` -usage: collections [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` - -Display top ethereum collections [Source: https://nftpricefloor.com/] - -``` -optional arguments: - -l LIMIT number of collections to show (default: 5) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` - NFT Collections -┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ slug ┃ name ┃ floorPriceETH ┃ totalSupply ┃ countOnSale ┃ blockchain ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ cryptopunks │ CryptoPunks │ 67.95 │ 10000 │ 1145 │ ethereum │ -├───────────────────────┼─────────────────────────┼───────────────┼─────────────┼─────────────┼────────────┤ -│ bored-ape-yacht-club │ Bored Ape Yacht Club │ 65.68 │ 10000 │ 775 │ ethereum │ -├───────────────────────┼─────────────────────────┼───────────────┼─────────────┼─────────────┼────────────┤ -│ mutant-ape-yacht-club │ Mutant Ape Yacht Club │ 11.99 │ 19423 │ 1075 │ ethereum │ -├───────────────────────┼─────────────────────────┼───────────────┼─────────────┼─────────────┼────────────┤ -│ otherdeed │ Otherdeed for Otherside │ 1.57 │ 100000 │ 3932 │ ethereum │ -├───────────────────────┼─────────────────────────┼───────────────┼─────────────┼─────────────┼────────────┤ -│ proof-moonbirds │ Moonbirds │ 13.25 │ 10000 │ 145 │ ethereum │ -└───────────────────────┴─────────────────────────┴───────────────┴─────────────┴─────────────┴────────────┘ -``` - -Example with `--fp`: - -![collections fp command](https://user-images.githubusercontent.com/40023817/186201697-ff15dd9c-3b09-4c3a-b498-e98a876f1338.png) diff --git a/website/content/terminal/crypto/nft/fp/_index.md b/website/content/terminal/crypto/nft/fp/_index.md deleted file mode 100644 index 87d524a0e60..00000000000 --- a/website/content/terminal/crypto/nft/fp/_index.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -usage: fp [-s SLUG] [--raw] [-h] [--export {csv,json,xlsx}] -``` - -Display floor price and sales of a certain collection [Source: https://nftpricefloor.com/] - -``` -optional arguments: - -s SLUG, --slug SLUG Opensea collection slug to check stats (e.g., bored-ape-yacht-club) - --raw show raw data - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -![fp command](https://user-images.githubusercontent.com/43375532/186253073-e50643be-391f-4aa4-949b-946b2d000f38.png) diff --git a/website/content/terminal/crypto/nft/stats/_index.md b/website/content/terminal/crypto/nft/stats/_index.md deleted file mode 100644 index abc91948c20..00000000000 --- a/website/content/terminal/crypto/nft/stats/_index.md +++ /dev/null @@ -1,59 +0,0 @@ -``` -usage: stats [-s SLUG] [-h] [--export {csv,json,xlsx}] -``` - -Display the statistics of a certain opensea collection [Source: opensea.io] - -``` -optional arguments: - -s SLUG, --slug SLUG Opensea collection slug to check stats (e.g., mutant-ape-yacht-club) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 07:56 (🦋) /crypto/nft/ $ stats mutant-ape-yacht-club - Collection Stats -┌────────────────────────────────┬───────────────────────┐ -│ Metric │ Value │ -├────────────────────────────────┼───────────────────────┤ -│ Name │ Mutant Ape Yacht Club │ -├────────────────────────────────┼───────────────────────┤ -│ Floor Price (ETH) │ 20.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Number of Owners │ 11739.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Market Cap (ETH) │ 394162.01 │ -├────────────────────────────────┼───────────────────────┤ -│ Average Price ETH │ 9.41 │ -├────────────────────────────────┼───────────────────────┤ -│ One day volume (ETH) │ 529.62 │ -├────────────────────────────────┼───────────────────────┤ -│ One day change (%) │ 3.65 │ -├────────────────────────────────┼───────────────────────┤ -│ One day sales (ETH) │ 24.00 │ -├────────────────────────────────┼───────────────────────┤ -│ One day average price (ETH) │ 22.07 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day volume (ETH) │ 50336.61 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day change (%) │ -19.89 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day sales (ETH) │ 2269.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Thirty day average price (ETH) │ 22.18 │ -├────────────────────────────────┼───────────────────────┤ -│ Total Supply (ETH) │ 17958.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Total Sales (ETH) │ 25728.00 │ -├────────────────────────────────┼───────────────────────┤ -│ Total Volume (ETH) │ 242008.36 │ -├────────────────────────────────┼───────────────────────┤ -│ Creation Date │ Aug 29, 2021 │ -├────────────────────────────────┼───────────────────────┤ -│ URL │ - │ -└────────────────────────────────┴───────────────────────┘ -``` diff --git a/website/content/terminal/crypto/onchain/_index.md b/website/content/terminal/crypto/onchain/_index.md deleted file mode 100644 index 25761bda3a7..00000000000 --- a/website/content/terminal/crypto/onchain/_index.md +++ /dev/null @@ -1,125 +0,0 @@ ---- -title: Introduction to Cryptocurrency Onchain -keywords: "cryptocurrency, onchain, hashrate, erc20, dexes, ethereum" -excerpt: "An Introduction to Cryptocurrency Onchain, within the Cryptocurrency Menu, -with a brief overview of the features." -geekdocCollapseSection: true ---- - -The Cryptocurrency Onchain menu provides access to features that determine market sentiment by leveraging data from -a blockchain ledger. This can be, among other things, blockchain hashrates (hr), -confirmed transactions (btcct) and -top traded crypto pairs (ttcp). - -## How to use - -The Cryptocurrency Onchain menu is called upon by typing `onchain`, while inside the `crypto` menu, which opens the following menu: - -![Cryptocurrency Onchain Menu](https://user-images.githubusercontent.com/46355364/178532254-8f4ef039-fab5-4ac5-afbf-584f8ce711c4.png) - -Alternatively, you can also type `/crypto/onchain`. Within the Cryptocurrency Onchain menu you can find features examining -transaction data and crypto wallet balances, both of which are helpful when deciding whether to invest. E.g. we can -look into the top ERC20 token by typing `top` which returns the following table: - -``` -2022 Jul 12, 08:45 (🦋) /crypto/onchain/ $ top - - Top ERC20 Tokens -┏━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓ -┃ rank ┃ name ┃ symbol ┃ price ┃ txsCount ┃ transfersCount ┃ holdersCount ┃ twitter ┃ coingecko ┃ -┡━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩ -│ 1 │ WETH │ WETH │ 1067.34 │ 6.9M │ 106.4M │ 540.4K │ │ weth │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 2 │ Tether USD │ USDT │ 1.00 │ 128.5M │ 151.1M │ 4.6M │ Tether_to │ tether │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 3 │ USD Coin │ USDC │ 1.00 │ 23.4M │ 43.8M │ 1.5M │ │ usd-coin │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 4 │ Dai │ DAI │ 1.00 │ 4.2M │ 14.6M │ 480.3K │ MakerDAO │ dai │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 5 │ Shiba Inu │ SHIB │ 0.00 │ 5.5M │ 7.9M │ 1.2M │ Shibtoken │ shiba-inu │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 6 │ Wrapped Bitcoin │ WBTC │ 19756.87 │ 648.1K │ 3.7M │ 50.1K │ │ wrapped-bitcoin │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 7 │ Chainlink │ LINK │ 6.16 │ 5.9M │ 11.5M │ 679.8K │ chainlink │ chainlink │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 8 │ Curve DAO Token │ CRV │ 0.90 │ 732.2K │ 2.5M │ 74.6K │ curvefinance │ curve-dao-token │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 9 │ Matic Network │ MATIC │ 0.57 │ 3.5M │ 4.3M │ 460.2K │ maticnetwork │ matic-network │ -├──────┼─────────────────┼─────────┼──────────┼──────────┼────────────────┼──────────────┼──────────────┼─────────────────┤ -│ 10 │ SAITAMA │ SAITAMA │ 0.00 │ 9K │ 139K │ 121.3K │ │ │ -└──────┴─────────────────┴─────────┴──────────┴──────────┴────────────────┴──────────────┴──────────────┴─────────────────┘ -``` - -## Examples - -To access much of the Ethereum features, an ethereum address needs to be entered. As an example this can be -`0x71C7656EC7ab88b098defB751B7401B5f6d8976F` which can be entered within the address -command as follows: - -``` -2022 Jul 12, 08:48 (🦋) /crypto/onchain/ $ address 0x71C7656EC7ab88b098defB751B7401B5f6d8976F -``` - -Which allows you to see the balance and hist -which returns the following for `balance`: - -``` -2022 Jul 12, 08:53 (🦋) /crypto/onchain/ $ balance - - Blockchain Token Information -┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓ -┃ index ┃ tokenName ┃ tokenSymbol ┃ tokenAddress ┃ balance ┃ -┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩ -│ 1 │ Ethereum │ ETH │ 0x0000000000000000000000000000000000000000 │ 32.65 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 2 │ FUCKtoken │ FUCK │ None │ 2.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 3 │ DABcoin │ DAB │ None │ 2.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 4 │ Link Platform │ LNK │ None │ 29.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 5 │ ASStoken │ ASS │ None │ 10.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 6 │ Blowjob │ BJ │ None │ 51.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 7 │ FinallyUsableCryptoKarma │ FUCK │ None │ 2.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 8 │ WeTrust │ TRST │ None │ 0.18 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 9 │ Edgeless │ EDG │ None │ 1.00 │ -├───────┼───────────────────────────────────────────────┼─────────────┼────────────────────────────────────────────┼─────────┤ -│ 10 │ Cryptonex (CNX) - Global Blockchain Acquiring │ CNX │ None │ 1000.00 │ -└───────┴───────────────────────────────────────────────┴─────────────┴────────────────────────────────────────────┴─────────┘ -``` - -And `hist` returns the following: - -``` - -2022 Jul 12, 08:53 (🦋) /crypto/onchain/ $ hist - - Historical Transactions Information -┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┓ -┃ timestamp ┃ transactionHash ┃ token ┃ value ┃ -┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━┩ -│ 2021-10-09 15:43:04 │ 0xddd8796647a24ccfbf0f0d9b2a762dd12424d4cb60fd38d8098fb9b1b7fb8683 │ Kuma Inu │ 1.8B │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-04 22:04:48 │ 0xf6ddcad5ccf24988d7c2ad9884cf00b857a13f805045bb568123eafb206a1c0e │ Tux │ 100.00 │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-06 10:35:44 │ 0x6022c79ad9591491a66774553e7c175be75f5cd7d0c6db38b07af5825a0a2785 │ Ankr │ 1974.35 │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 00:56:43 │ 0xfaa7fe13cb1263eb52495c83c3e4d212c68289eac6473a169820f592cde60580 │ Ethereum Name Service │ 46.3K │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 13:22:11 │ 0x06c1f99a2f592a79d3ec3d0c281c6530aed36e42b04afb3907630503dea294a3 │ Ethereum Name Service │ 345.00 │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 13:22:11 │ 0x06c1f99a2f592a79d3ec3d0c281c6530aed36e42b04afb3907630503dea294a3 │ Ethereum Name Service │ 1955.00 │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 16:15:57 │ 0xd13c39ade2ff2f792e97874beaca9bfaa48298e5136e97bb33f49eafd0b1cffd │ Ethereum Name Service │ 2500.00 │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 18:49:13 │ 0x0c4bf722f477dbceda0ca4ac9f02adbd813b2f80e4b613069265de5b12861115 │ Ethereum Name Service │ 1800.00 │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 18:49:13 │ 0x0c4bf722f477dbceda0ca4ac9f02adbd813b2f80e4b613069265de5b12861115 │ USD Coin │ 73.1K │ -├─────────────────────┼────────────────────────────────────────────────────────────────────┼───────────────────────┼─────────┤ -│ 2021-11-09 18:49:13 │ 0x0c4bf722f477dbceda0ca4ac9f02adbd813b2f80e4b613069265de5b12861115 │ USD Coin │ 7977.07 │ -└─────────────────────┴────────────────────────────────────────────────────────────────────┴───────────────────────┴─────────┘ -``` diff --git a/website/content/terminal/crypto/onchain/address/_index.md b/website/content/terminal/crypto/onchain/address/_index.md deleted file mode 100644 index 0316a40ce15..00000000000 --- a/website/content/terminal/crypto/onchain/address/_index.md +++ /dev/null @@ -1,14 +0,0 @@ -``` -usage: address [-a] [-t] [-tx] [--address ADDRESS] [-h] -``` - -Load address for further analysis. You can analyze account address, token address or transaction hash. [Source: Ethplorer] - -``` -optional arguments: - -a Account address (default: False) - -t ERC20 token address (default: False) - -tx Transaction hash (default: False) - --address ADDRESS Ethereum address (default: False) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/onchain/baas/_index.md b/website/content/terminal/crypto/onchain/baas/_index.md deleted file mode 100644 index a86d2de5cb8..00000000000 --- a/website/content/terminal/crypto/onchain/baas/_index.md +++ /dev/null @@ -1,24 +0,0 @@ -``` -usage: baas [-c COIN] [-l N] [-vs VS] [-d DAYS] - [-s {date,baseCurrency,quoteCurrency,dailySpread,averageBidPrice,averageAskPrice}] - [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display average bid, ask prices, spread for given crypto pair for chosen time -period [Source: https://graphql.bitquery.io/] - -``` -optional arguments: - -c COIN, --coin COIN ERC20 token symbol or address. (default: None) - -l N, --limit N display N number records (default: 10) - -vs VS, --vs VS Quote currency (default: USDT) - -d DAYS, --days DAYS Number of days to display data for. (default: 10) - -s {date,baseCurrency,quoteCurrency,dailySpread,averageBidPrice,averageAskPrice}, --sort {date,baseCurrency,quoteCurrency,dailySpread,averageBidPrice,averageAskPrice} - Sort by given column. (default: date) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/onchain/balance/_index.md b/website/content/terminal/crypto/onchain/balance/_index.md deleted file mode 100644 index 4fcce2c507e..00000000000 --- a/website/content/terminal/crypto/onchain/balance/_index.md +++ /dev/null @@ -1,20 +0,0 @@ -``` -usage: balance [-l N] [-s {index,balance,tokenName,tokenSymbol}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Display info about tokens on given ethereum blockchain address. [Source: -Ethplorer] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -s {index,balance,tokenName,tokenSymbol}, --sort {index,balance,tokenName,tokenSymbol} - Sort by given column. Default: index (default: index) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) - -``` diff --git a/website/content/terminal/crypto/onchain/btccp/_index.md b/website/content/terminal/crypto/onchain/btccp/_index.md deleted file mode 100644 index 23ed86d43d5..00000000000 --- a/website/content/terminal/crypto/onchain/btccp/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: btccp [-s INITIAL_DATE] - [-u END_DATE] - [--export {csv,json,xlsx}] [-h] -``` - -Displays bitcoin circulating supply. [Source: https://api.blockchain.info/] - -``` -arguments: - -s DATE --since DATE Initial date. Default is initial BTC date: 2010-01-01 - -u DATE --until DATE Final date. Default is current date - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![btccp](https://user-images.githubusercontent.com/46355364/154067527-0916ab9d-4690-4077-9037-a2665f9fc593.png) diff --git a/website/content/terminal/crypto/onchain/btcct/_index.md b/website/content/terminal/crypto/onchain/btcct/_index.md deleted file mode 100644 index 4013f9235a5..00000000000 --- a/website/content/terminal/crypto/onchain/btcct/_index.md +++ /dev/null @@ -1,17 +0,0 @@ -``` -usage: btcct [-s INITIAL_DATE] - [-u END_DATE] - [--export {csv,json,xlsx}] [-h] -``` - -Displays bitcoin confirmed transactions. [Source: https://api.blockchain.info/] - -``` -arguments: - -s DATE --since DATE Initial date. Default is initial BTC date: 2010-01-01 - -u DATE --until DATE Final date. Default is current date - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![btcct](https://user-images.githubusercontent.com/46355364/154067586-d80059e8-cf7b-475a-990b-cf2aec7bc646.png) diff --git a/website/content/terminal/crypto/onchain/ds/_index.md b/website/content/terminal/crypto/onchain/ds/_index.md deleted file mode 100644 index a8603653c3b..00000000000 --- a/website/content/terminal/crypto/onchain/ds/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: ds [-p {uniswap-v3,uniswap-v2,sushiswap,curve}] [-h] - [--export EXPORT] [--raw] [-l LIMIT] -``` - -Get daily transactions for certain symbols in ethereum blockchain -[Source: https://sdk.flipsidecrypto.xyz/shroomdk] - -``` -options: - -p {uniswap-v3,uniswap-v2,sushiswap,curve}, --platform {uniswap-v3,uniswap-v2,sushiswap,curve} - Ethereum platform to check fees/number of - users over time (default: curve) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and - figure into png, jpg, pdf, svg (default: ) - --raw Flag to display raw data (default: False) - -l LIMIT, --limit LIMIT - Number of entries to show in data. - (default: 10) -``` \ No newline at end of file diff --git a/website/content/terminal/crypto/onchain/dt/_index.md b/website/content/terminal/crypto/onchain/dt/_index.md deleted file mode 100644 index d49666c2eae..00000000000 --- a/website/content/terminal/crypto/onchain/dt/_index.md +++ /dev/null @@ -1,11 +0,0 @@ -`usage: dt [-h] [--export EXPORT]` - -Get daily transactions for certain symbols in ethereum blockchain -[Source: https://sdk.flipsidecrypto.xyz/shroomdk] - -``` -options: - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and figure - into png, jpg, pdf, svg (default: ) -``` \ No newline at end of file diff --git a/website/content/terminal/crypto/onchain/dvcp/_index.md b/website/content/terminal/crypto/onchain/dvcp/_index.md deleted file mode 100644 index bf0d94f9c6b..00000000000 --- a/website/content/terminal/crypto/onchain/dvcp/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -usage: tv [-c COIN] [-vs {ETH,USD,BTC,USDT}] [-l N] - [-s {exchange,tradeAmount,trades}] [--reverse] [-h] - [--export {csv,json,xlsx}] -``` - -Display daily volume for given crypto pair [Source: https://graphql.bitquery.io/] - -``` -optional arguments: - -c COIN, --coin COIN ERC20 token symbol or address. (default: None) - -vs {ETH,USD,BTC,USDT}, --vs {ETH,USD,BTC,USDT} - Currency of displayed trade amount. (default: USD) - -l N, --limit N display N number records (default: 10) - -s {exchange,tradeAmount,trades}, --sort {exchange,tradeAmount,trades} - Sort by given column. (default: trades) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/onchain/gwei/_index.md b/website/content/terminal/crypto/onchain/gwei/_index.md deleted file mode 100644 index 111f80ec848..00000000000 --- a/website/content/terminal/crypto/onchain/gwei/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: onchain [--export {csv,json,xlsx}] [-h] -``` - -Display ETH gas fees [Source: https://ethgasstation.info] - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example output: - -| Tx Type | Fee (gwei) | Duration (min) | -| ------- | ---------- | -------------- | -| Fastest | 108 | 0.4 | -| Fast | 95 | 0.5 | -| Average | 72 | 4.0 | -| Slow | 68 | 11.9 | diff --git a/website/content/terminal/crypto/onchain/hist/_index.md b/website/content/terminal/crypto/onchain/hist/_index.md deleted file mode 100644 index 94f716dfaac..00000000000 --- a/website/content/terminal/crypto/onchain/hist/_index.md +++ /dev/null @@ -1,20 +0,0 @@ -``` -usage: hist [-l N] [-s {timestamp,transactionHash,token,value}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Display history for given ethereum blockchain address. e.g. -0x3cD751E6b0078Be393132286c442345e5DC49699 [Source: Ethplorer] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -s {timestamp,transactionHash,token,value}, --sort {timestamp,transactionHash,token,value} - Sort by given column. Default: timestamp (default: timestamp) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) - -``` diff --git a/website/content/terminal/crypto/onchain/holders/_index.md b/website/content/terminal/crypto/onchain/holders/_index.md deleted file mode 100644 index 8a01f0e9d5e..00000000000 --- a/website/content/terminal/crypto/onchain/holders/_index.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -usage: holders [-l N] [-s {balance,balance,share}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Display top ERC20 token holders: e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 [Source: Ethplorer] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -s {balance,balance,share}, --sort {balance,balance,share} - Sort by given column. Default: share (default: share) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/onchain/hr/_index.md b/website/content/terminal/crypto/onchain/hr/_index.md deleted file mode 100644 index 46d53e15fa7..00000000000 --- a/website/content/terminal/crypto/onchain/hr/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -usage: hr [-c COIN] - [-s INITIAL_DATE] - [-u END_DATE] - [-i {1h, 24h, 10m, 1w, 1month}] - [--export {csv,json,xlsx}] [-h] -``` - -Display the average hash rate of a certain network.[Source: https://glassnode.org] - -Supported assets: BTC, ETH - -``` -arguments: - -c COIN --coin COIN Coin to check hashrate (BTC or ETH) - -s DATE --since DATE Start date (default: 1 year before, e.g., 2020-10-22) - -u DATE --until DATE End date (default: current day, e.g., 2021-10-22) - -i INTERV --interval INTERV Interval frequency (default: 24h) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![hr](https://user-images.githubusercontent.com/46355364/154067420-9fdd9324-c4f2-4bb4-91c1-4c675e4b45d1.png) diff --git a/website/content/terminal/crypto/onchain/info/_index.md b/website/content/terminal/crypto/onchain/info/_index.md deleted file mode 100644 index 4d367a30728..00000000000 --- a/website/content/terminal/crypto/onchain/info/_index.md +++ /dev/null @@ -1,13 +0,0 @@ -``` -usage: info [--social] [--export {csv,json,xlsx}] [-h] -``` - -Display info about ERC20 token. e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 [Source: Ethplorer] -``` -optional arguments: - --social Flag to show social media links (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) - -``` diff --git a/website/content/terminal/crypto/onchain/lt/_index.md b/website/content/terminal/crypto/onchain/lt/_index.md deleted file mode 100644 index 0a6abfe80ca..00000000000 --- a/website/content/terminal/crypto/onchain/lt/_index.md +++ /dev/null @@ -1,27 +0,0 @@ -``` -usage: lt [-k {dex,time}] [-vs {ETH,USD,BTC,USDT}] [-l N] [-d DAYS] - [-s {trades,tradeAmount,exchange}] [--reverse] [-h] - [--export {csv,json,xlsx}] -``` - -Display Trades on Decentralized Exchanges aggregated by DEX or Month [Source: https://graphql.bitquery.io/] - -``` -optional arguments: - -k {dex,time}, --kind {dex,time} - Aggregate trades by dex or time Default: dex (default: - dex) - -vs {ETH,USD,BTC,USDT}, --vs {ETH,USD,BTC,USDT} - Currency of displayed trade amount. (default: USD) - -l N, --limit N display N number records (default: 10) - -d DAYS, --days DAYS Number of days to display data for. (default: 90) - -s {trades,tradeAmount,exchange}, --sort {trades,tradeAmount,exchange} - Sort by given column. Default: tradeAmount. For - monthly trades date. (default: tradeAmount) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/onchain/prices/_index.md b/website/content/terminal/crypto/onchain/prices/_index.md deleted file mode 100644 index f7be8afb651..00000000000 --- a/website/content/terminal/crypto/onchain/prices/_index.md +++ /dev/null @@ -1,18 +0,0 @@ -``` -usage: prices [-l N] [-s {date,cap,volumeConverted,open,high,close,low}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Display token historical prices. e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 [Source: Ethplorer] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -s {date,cap,volumeConverted,open,high,close,low}, --sort {date,cap,volumeConverted,open,high,close,low} - Sort by given column. Default: date (default: date) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/onchain/th/_index.md b/website/content/terminal/crypto/onchain/th/_index.md deleted file mode 100644 index 913e12b1bc0..00000000000 --- a/website/content/terminal/crypto/onchain/th/_index.md +++ /dev/null @@ -1,19 +0,0 @@ -``` -usage: th [-l N] [-s {value}] [--reverse] [--hash] [--export {csv,json,xlsx}] [-h] -``` - -Displays info about token history. e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 [Source: Ethplorer] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -s {value}, --sort {value} - Sort by given column. Default: value (default: value) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --hash Flag to show transaction hash (default: True) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/onchain/top/_index.md b/website/content/terminal/crypto/onchain/top/_index.md deleted file mode 100644 index bf868e17f8d..00000000000 --- a/website/content/terminal/crypto/onchain/top/_index.md +++ /dev/null @@ -1,51 +0,0 @@ -``` -usage: top [-l N] - [-s {rank,name,symbol,price,txsCount,transfersCount,holdersCount,address}] - [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Display top ERC20 tokens. [Source: Ethplorer] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -s {rank,name,symbol,price,txsCount,transfersCount,holdersCount,address}, --sort {rank,name,symbol,price,txsCount,transfersCount,holdersCount,address} - Sort by given column. Default: rank (default: rank) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: - ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:04 (🦋) /crypto/onchain/ $ top - Top ERC20 Tokens -┌──────┬───────────────┬────────┬─────────┬──────────┬────────────────┬──────────────┬────────────────┬───────────────┐ -│ rank │ name │ symbol │ price │ txsCount │ transfersCount │ holdersCount │ twitter │ coingecko │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 1 │ WETH │ WETH │ 3099.54 │ 6M │ 90M │ 440.2K │ │ weth │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 2 │ Tether USD │ USDT │ 1.00 │ 125.5M │ 138.8M │ 4.4M │ Tether_to │ tether │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 3 │ USD Coin │ USDC │ 1.00 │ 19M │ 34.8M │ 1.4M │ │ usd-coin │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 4 │ Strong │ STRONG │ 393.38 │ 464.9K │ 4.7M │ 31.5K │ Strongblock_io │ strong │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 5 │ LooksRare │ LOOKS │ 2.14 │ 263.9K │ 1.2M │ 19.6K │ LooksRareNFT │ looksrare │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 6 │ Dai │ DAI │ 1.00 │ 4.1M │ 13.1M │ 453.7K │ MakerDAO │ dai │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 7 │ Shiba Inu │ SHIB │ 0.00 │ 4.6M │ 6.8M │ 1.2M │ Shibtoken │ shiba-inu │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 8 │ Matic Network │ MATIC │ 1.79 │ 2.8M │ 3.5M │ 367.6K │ maticnetwork │ matic-network │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 9 │ Chainlink │ LINK │ 16.81 │ 5.5M │ 10.9M │ 651.2K │ chainlink │ chainlink │ -├──────┼───────────────┼────────┼─────────┼──────────┼────────────────┼──────────────┼────────────────┼───────────────┤ -│ 10 │ Gala │ GALA │ 0.34 │ 678.5K │ 869.8K │ 105.5K │ GoGalaGames │ gala │ -└──────┴───────────────┴────────┴─────────┴──────────┴────────────────┴──────────────┴────────────────┴───────────────┘ -``` diff --git a/website/content/terminal/crypto/onchain/ttcp/_index.md b/website/content/terminal/crypto/onchain/ttcp/_index.md deleted file mode 100644 index ff56fb5c683..00000000000 --- a/website/content/terminal/crypto/onchain/ttcp/_index.md +++ /dev/null @@ -1,29 +0,0 @@ -``` -usage: ttcp [-l N] - [-e {1inch,afrodex,airswap,amplbitcratic,balancer,bestswap,bitox,cellswap,cofix,coinchangex,curve,ddex,dubiex,decentrex,deversifi,dodo,ethercexchange,etherblockchain,etherdelta,ethernext,ethfinex,fegex,fffswap,fordex,gudecks,gudeks,hiswap,idex,ledgerdex,mat -cha,miniswap,mooniswap,oasis,openrelay,s.finance,sakeswap,seeddex,singularx,starbitex,sushiswap,swapx,switchdex,tacoswap,tokenjar,tokenstore,tokentrove,tokenlon,tradexone,uniswap,zeusswap,dydx,dex.blue}] - [-d DAYS] [-s {base,quoted,trades,tradeAmount}] [--reverse] [-h] - [--export {csv,json,xlsx}] -``` - -Display most traded crypto pairs on given decentralized exchange in chosen -time period [Source: https://graphql.bitquery.io/] - -``` -optional arguments: - -l N, --limit N display N number records (default: 10) - -e {1inch,afrodex,airswap,amplbitcratic,balancer,bestswap,bitox,cellswap,cofix,coinchangex,curve,ddex,dubiex,decentrex,deversifi,dodo,ethercexchange,etherblockchain,etherdelta,ethernext,ethfinex,fegex,fffswap,fordex,gudecks,gudeks,hiswap,idex,ledgerdex,matcha,miniswa -p,mooniswap,oasis,openrelay,s.finance,sakeswap,seeddex,singularx,starbitex,sushiswap,swapx,switchdex,tacoswap,tokenjar,tokenstore,tokentrove,tokenlon,tradexone,uniswap,zeusswap,dydx,dex.blue}, --exchange {1inch,afrodex,airswap,amplbitcratic,balancer,bestswap,bitox,cell -swap,cofix,coinchangex,curve,ddex,dubiex,decentrex,deversifi,dodo,ethercexchange,etherblockchain,etherdelta,ethernext,ethfinex,fegex,fffswap,fordex,gudecks,gudeks,hiswap,idex,ledgerdex,matcha,miniswap,mooniswap,oasis,openrelay,s.finance,sakeswap,seeddex,singularx,starb -itex,sushiswap,swapx,switchdex,tacoswap,tokenjar,tokenstore,tokentrove,tokenlon,tradexone,uniswap,zeusswap,dydx,dex.blue} - Decentralized exchange name. (default: Uniswap) - -d DAYS, --days DAYS Number of days to display data for. (default: 30) - -s {base,quoted,trades,tradeAmount}, --sort {base,quoted,trades,tradeAmount} - Sort by given column. (default: tradeAmount) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/onchain/tv/_index.md b/website/content/terminal/crypto/onchain/tv/_index.md deleted file mode 100644 index 23d313b2c31..00000000000 --- a/website/content/terminal/crypto/onchain/tv/_index.md +++ /dev/null @@ -1,24 +0,0 @@ -``` -usage: volt [-c COIN] [-vs {ETH,USD,BTC,USDT}] [-l N] - [-s {exchange,coin,tradeAmount,trades}] [--reverse] [-h] - [--export {csv,json,xlsx}] -``` - -Display token volume on different Decentralized Exchanges [Source: https://graphql.bitquery.io/] - -``` -optional arguments: - -c COIN, --coin COIN ERC20 token symbol or address. (default: ETH) - -vs {ETH,USD,BTC,USDT}, --vs {ETH,USD,BTC,USDT} - Currency of displayed trade amount. (default: USD) - -l N, --limit N display N number records (default: 10) - -s {exchange,coin,tradeAmount,trades}, --sort {exchange,coin,tradeAmount,trades} - Sort by given column. (default: trades) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) - -``` diff --git a/website/content/terminal/crypto/onchain/tvl/_index.md b/website/content/terminal/crypto/onchain/tvl/_index.md deleted file mode 100644 index 1e9784d3127..00000000000 --- a/website/content/terminal/crypto/onchain/tvl/_index.md +++ /dev/null @@ -1,28 +0,0 @@ -``` -usage: tvl [-u USERADDRESS] [-a ADDRESSNAME] [-s SYMBOL] - [-i INTERVAL] [-h] [--export EXPORT] -``` - -Total value locked (TVL) metric - Ethereum ERC20 -[Source:https://docs.flipsidecrypto.com/] - -useraddress OR -addressname must be provided - -``` -options: - -u USERADDRESS, --useraddress USERADDRESS - User address we'd like to take a balance - reading of against the contract (e.g., 0xa5407eae9ba41422680e2e00537571bcc53efbfd) (default: - None) - -a ADDRESSNAME, --addressname ADDRESSNAME - Address name corresponding to the user - address (e.g., makerdao) (default: None) - -s SYMBOL, --symbol SYMBOL - Contract symbol (default: USDC) - -i INTERVAL, --interval INTERVAL - Interval in months (default: 1) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx and - figure into png, jpg, pdf, svg (default: ) -``` \ No newline at end of file diff --git a/website/content/terminal/crypto/onchain/tx/_index.md b/website/content/terminal/crypto/onchain/tx/_index.md deleted file mode 100644 index 572d90a0591..00000000000 --- a/website/content/terminal/crypto/onchain/tx/_index.md +++ /dev/null @@ -1,12 +0,0 @@ -``` -usage: tx [--export {csv,json,xlsx}] [-h] -``` - -Display info ERC20 token transaction on ethereum blockchain. e.g. 0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6 [Source: Ethplorer] - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/onchain/ueat/_index.md b/website/content/terminal/crypto/onchain/ueat/_index.md deleted file mode 100644 index 127e4c041e5..00000000000 --- a/website/content/terminal/crypto/onchain/ueat/_index.md +++ /dev/null @@ -1,31 +0,0 @@ -``` -usage: ueat [-l N] - [-s {date,uniqueSenders,transactions,averageGasPrice,mediumGasPrice,maximumGasPrice}] - [-i {day,month,week}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display number of unique ethereum addresses which made a transaction in given -time interval [Source: https://graphql.bitquery.io/] - -``` -optional arguments: - -l N, --limit N display N number records. (Maximum available time period - is 90 days.Depending on chosen time period, top N - records will be recalculated. E.g.For interval: month, - and top: 10, period of calculation equals to 300, but - because of max days limit: 90, it will only return - last 3 months (3 records). (default: 10) - -s {date,uniqueSenders,transactions,averageGasPrice,mediumGasPrice,maximumGasPrice}, --sort {date,uniqueSenders,transactions,averageGasPrice,mediumGasPrice,maximumGasPrice} - Sort by given column. (default: date) - -i {day,month,week}, --interval {day,month,week} - Time interval in which ethereum address made - transaction. month, week or day. Maximum time period - is 90 days (3 months, 14 weeks) (default: day) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) - -``` diff --git a/website/content/terminal/crypto/onchain/whales/_index.md b/website/content/terminal/crypto/onchain/whales/_index.md deleted file mode 100644 index cc36efc0939..00000000000 --- a/website/content/terminal/crypto/onchain/whales/_index.md +++ /dev/null @@ -1,23 +0,0 @@ -``` -usage: whales [-m MIN] [-l N] - [-s {date,symbol,blockchain,amount,amount_usd,from,to}] - [--reverse] [-a] [--export {csv,json,xlsx}] [-h] -``` - -Display huge value transactions from major blockchains. [Source: https://docs.whale-alert.io/] - -``` -optional arguments: - -m MIN, --min MIN Minimum value of transactions. (default: 1000000) - -l N, --limit N display N number of records (default: 10) - -s {date,symbol,blockchain,amount,amount_usd,from,to}, --sort {date,symbol,blockchain,amount,amount_usd,from,to} - Sort by given column (default: date) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -a, --address Flag to show addresses of transactions (default: False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: - ) - -h, --help show this help message (default: False) -``` diff --git a/website/content/terminal/crypto/ov/_index.md b/website/content/terminal/crypto/ov/_index.md deleted file mode 100644 index 12f03fa5276..00000000000 --- a/website/content/terminal/crypto/ov/_index.md +++ /dev/null @@ -1,189 +0,0 @@ ---- -title: Introduction to Cryptocurrency Overview -keywords: "cryptocurrency, overview, news, stablecoins, defi, blockchain" -excerpt: "An Introduction to Cryptocurrency Overview, within the Cryptocurrency Menu, -with a brief overview of the features." -geekdocCollapseSection: true ---- - -The Cryptocurrency Overview menu provides, among other things, the option to obtain a complete overview of the Cryptocurrency market -(global), find cryptocurrency indices and derivatives (indices and derivatives), news feeds (news) and fees (wf and ewf) - -## How to use - -The Cryptocurrency Overview menu is called upon by typing `ov`, while inside the `crypto` menu, which opens the following menu: - -![Cryptocurrency Overview menu](https://user-images.githubusercontent.com/46355364/178532373-d03c32f5-df7b-487e-a4ae-b60f7297c48e.png) - -Alternatively, you can also type `/crypto/ov`. Within the Cryptocurrency Overview menu you have a variety of options -to get an understanding of the global market, derivatives, heatmaps, a full list of exchanges, news, fees and borrow rates. -Taking one of these as an example, `derivatives` returns a Futures table: - -``` -2022 Jul 12, 05:36 (🦋) /crypto/ov/ $ derivatives - - Crypto Derivatives -┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ -┃ Rank ┃ Market ┃ Symbol ┃ Price ┃ Pct_Change_24h ┃ Contract_Type ┃ Basis ┃ Spread ┃ Funding_Rate ┃ Volume_24h ┃ -┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ -│ 1 │ Binance (Futures) │ BTCUSDT │ 19722.03 │ -4.18 │ perpetual │ 0.06 │ 0.01 │ 0.01 │ 11370297355.07 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 2 │ Bitget Futures │ BTCUSDT_UMCBL │ 19715.02 │ -4.17 │ perpetual │ 0.07 │ 0.02 │ 0.01 │ 4910676135.12 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 3 │ Prime XBT │ BTC/USD │ 19694.00 │ -5.48 │ perpetual │ 0.00 │ 0.05 │ 0.00 │ 134783821.74 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 4 │ FTX (Derivatives) │ BTC-PERP │ 19654.00 │ -4.35 │ perpetual │ -0.06 │ 0.02 │ 0.00 │ 2328667027.58 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 5 │ MEXC Global (Futures) │ BTC_USDT │ 19722.53 │ -4.18 │ perpetual │ 0.04 │ 0.02 │ 0.01 │ 1654510913.53 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 6 │ Binance (Futures) │ ETHUSDT │ 1064.51 │ -7.23 │ perpetual │ 0.06 │ 0.01 │ 0.00 │ 5128358417.55 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 7 │ Gate.io (Futures) │ BTC_USDT │ 19645.60 │ -4.43 │ perpetual │ 0.09 │ 0.01 │ 0.01 │ 705316184.77 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 8 │ BTSE (Futures) │ BTCPFC │ 19646.00 │ -4.39 │ perpetual │ 0.08 │ 0.01 │ 0.00 │ 158634600.30 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 9 │ Bybit │ BTCUSDT │ 19722.03 │ -4.15 │ perpetual │ 0.04 │ 0.01 │ 0.01 │ 3686219405.65 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 10 │ AAX Futures │ BTCUSDTFP │ 19763.02 │ -4.17 │ perpetual │ 0.20 │ 0.03 │ -0.01 │ 1194276523.61 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 11 │ FTX (Derivatives) │ ETH-PERP │ 1058.30 │ -7.59 │ perpetual │ 0.30 │ 0.02 │ -0.02 │ 1512491402.22 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 12 │ MEXC Global (Futures) │ ETH_USDT │ 1064.54 │ -7.22 │ perpetual │ 0.05 │ 0.01 │ -0.00 │ 1270564698.45 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 13 │ Phemex (Futures) │ ADAUSD │ 0.43 │ -5.79 │ perpetual │ -0.14 │ 0.02 │ -0.27 │ 35078161.49 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 14 │ C-Trade │ BTCUSD │ 19666.00 │ -4.22 │ perpetual │ 0.04 │ 0.01 │ 0.01 │ 18040581.08 │ -├──────┼───────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 15 │ BTCEX (Futures) │ BTC-30DEC22 │ 19965.61 │ -4.28 │ perpetual │ -1.04 │ 0.02 │ 0.01 │ 1162961049.26 │ -└──────┴───────────────────────┴───────────────┴──────────┴────────────────┴───────────────┴───────┴────────┴──────────────┴────────────────┘ -``` - -## Examples - -We can start by looking at some general information about the Cryptocurrency market by using `global`: - -``` -2022 Jul 12, 05:38 (🦋) /crypto/ov/ $ global - - Global Statistics -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓ -┃ Metric ┃ Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩ -│ Active Cryptocurrencies │ 13421.00 │ -├──────────────────────────────────────┼──────────┤ -│ Upcoming Icos │ 0.00 │ -├──────────────────────────────────────┼──────────┤ -│ Ongoing Icos │ 49.00 │ -├──────────────────────────────────────┼──────────┤ -│ Ended Icos │ 3376.00 │ -├──────────────────────────────────────┼──────────┤ -│ Markets │ 525.00 │ -├──────────────────────────────────────┼──────────┤ -│ Market Cap Change Percentage 24H Usd │ -4.22 │ -├──────────────────────────────────────┼──────────┤ -│ Btc Market Cap In Pct │ 41.14 │ -├──────────────────────────────────────┼──────────┤ -│ Eth Market Cap In Pct │ 13.92 │ -├──────────────────────────────────────┼──────────┤ -│ Altcoin Market Cap In Pct │ 44.94 │ -└──────────────────────────────────────┴──────────┘ -``` - -To find an overview of all coins without segregating between different types of coins, we can use `info` which returns -the following table: - -``` -2022 Jul 12, 05:40 (🦋) /crypto/ov/ $ info - -Displaying data vs USD - - Basic Coin Information -┏━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━┓ -┃ rank ┃ name ┃ symbol ┃ price ┃ volume_24h ┃ circulating_supply ┃ total_supply ┃ max_supply ┃ market_cap ┃ beta_value ┃ ath_price ┃ -┡━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━┩ -│ 1 │ Bitcoin │ BTC │ 19.766 K │ 21.133 B │ 19.092 M │ 19.092 M │ 21 M │ 377.373 B │ 0.963 │ 68.692 K │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 2 │ Ethereum │ ETH │ 1.067 K │ 10.759 B │ 121.514 M │ 121.514 M │ 0 │ 129.669 B │ 1.159 │ 4.864 K │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 3 │ Tether │ USDT │ 1.000 │ 47.657 B │ 65.991 B │ 66.153 B │ 0 │ 66.022 B │ 0.000 │ 1.215 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 4 │ USD Coin │ USDC │ 1.001 │ 2.416 B │ 55.547 B │ 55.547 B │ 0 │ 55.607 B │ -0.005 │ 1.906 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 5 │ Binance Coin │ BNB │ 223.176 │ 629.264 M │ 163.277 M │ 163.293 M │ 200 M │ 36.439 B │ 1.004 │ 2.467 K │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 6 │ Binance USD │ BUSD │ 1.001 │ 3.342 B │ 17.547 B │ 17.547 B │ 0 │ 17.573 B │ -0.007 │ 1.176 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 7 │ XRP │ XRP │ 0.312 │ 646.071 M │ 48.343 B │ 99.990 B │ 100 B │ 15.087 B │ 1.072 │ 3.842 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 8 │ Cardano │ ADA │ 0.432 │ 471.728 M │ 33.739 B │ 34.513 B │ 45 B │ 14.655 B │ 1.217 │ 3.095 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 9 │ Solana │ SOL │ 33.542 │ 503.995 M │ 345.442 M │ 511.617 M │ 0 │ 11.587 B │ 1.327 │ 259.705 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 10 │ HEX │ HEX │ 0.035 │ 4.927 M │ 290.634 B │ 642.305 B │ 0 │ 10.133 B │ 0.756 │ 0.511 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 11 │ Dogecoin │ DOGE │ 0.061 │ 227.352 M │ 132.671 B │ 132.671 B │ 0 │ 8.138 B │ 1.095 │ 0.753 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 12 │ Dai │ DAI │ 1.001 │ 123.388 M │ 6.479 B │ 6.479 B │ 0 │ 6.486 B │ 0.001 │ 1.367 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 13 │ TRON │ TRX │ 0.065 │ 427.247 M │ 92.480 B │ 92.480 B │ 0 │ 6.014 B │ 0.822 │ 0.300 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 14 │ Polkadot │ DOT │ 6.444 │ 189.289 M │ 852.648 M │ 1.103 B │ 0 │ 5.494 B │ 1.358 │ 55.004 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 15 │ LEO Token │ LEO │ 5.364 │ 1.269 M │ 1 B │ 1 B │ 0 │ 5.364 B │ 0.248 │ 8.115 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 16 │ Shiba Inu │ SHIB │ 0.000 │ 166.721 M │ 489.560 T │ 1 P │ 1 P │ 5.025 B │ 1.198 │ 0.000 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 17 │ Avalanche │ AVAX │ 17.573 │ 136.784 M │ 283.385 M │ 377.752 M │ 0 │ 4.980 B │ 1.547 │ 145.665 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 18 │ Wrapped Bitcoin │ WBTC │ 19.746 K │ 127.008 M │ 249.980 K │ 249.980 K │ 0 │ 4.936 B │ 0.967 │ 68.706 K │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 19 │ Polygon │ MATIC │ 0.565 │ 495.777 M │ 8.007 B │ 10 B │ 0 │ 4.525 B │ 1.501 │ 2.915 │ -├──────┼───────────────────┼────────┼──────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 20 │ Lido Staked Ether │ STETH │ 1.038 K │ 5.260 M │ 4.243 M │ 4.243 M │ 0 │ 4.402 B │ 1.179 │ 4.824 K │ -└──────┴───────────────────┴────────┴──────────┴────────────┴────────────────────┴──────────────┴────────────┴────────────┴────────────┴───────────┘ -``` - -And lastly, it is also possible to look at the stable coins in the market instead of the entire Cryptocurrency investment -universe. This can be done with `stables` which returns the following: - -``` -2022 Jul 12, 05:40 (🦋) /crypto/ov/ $ stables - -First 15 stablecoins have a total 152.551 B dollars of market cap. - - - Stablecoin Data -┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ Symbol ┃ Name ┃ Price [$] ┃ Market Cap [$] ┃ Market Cap Rank ┃ Change 24h [%] ┃ Change 7d [%] ┃ Volume [$] ┃ Percentage [%] of top 15 ┃ -┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ usdt │ Tether │ 0.998 │ 66.029 B │ 3 │ -0.156 │ -0.198 │ 46.723 B │ 43.283 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdc │ USD Coin │ 1.000 │ 55.508 B │ 4 │ -0.226 │ -0.099 │ 4.496 B │ 36.387 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ busd │ Binance USD │ 0.997 │ 17.992 B │ 6 │ -0.675 │ -0.378 │ 4.832 B │ 11.794 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ dai │ Dai │ 0.999 │ 6.461 B │ 12 │ -0.245 │ -0.264 │ 199.489 M │ 4.235 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ frax │ Frax │ 0.998 │ 1.367 B │ 40 │ -0.020 │ -0.168 │ 4.640 M │ 0.896 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ tusd │ TrueUSD │ 0.999 │ 1.223 B │ 44 │ -0.195 │ -0.237 │ 71.185 M │ 0.802 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdp │ Pax Dollar │ 1 │ 847.988 M │ 56 │ -0.161 │ -0.065 │ 6.917 M │ 0.556 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdn │ Neutrino USD │ 0.988 │ 750.373 M │ 60 │ -0.130 │ -0.172 │ 2.744 M │ 0.492 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdd │ USDD │ 0.995 │ 722.389 M │ 63 │ 0.276 │ -0.034 │ 79.218 M │ 0.474 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ ustc │ TerraClassicUSD │ 0.043 │ 433.211 M │ 92 │ -32.270 │ -12.660 │ 52.919 M │ 0.284 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ xaut │ Tether Gold │ 1.734 K │ 428.213 M │ 93 │ -5.792 │ -0.093 │ 1.371 M │ 0.281 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ eurt │ Euro Tether │ 1.005 │ 207.418 M │ 151 │ -3.514 │ -0.862 │ 791.006 K │ 0.136 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ fei │ Fei USD │ 0.990 │ 199.375 M │ 156 │ -0.955 │ 0.560 │ 2.072 M │ 0.131 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ mim │ Magic Internet Money │ 0.993 │ 195.438 M │ 158 │ -0.106 │ -0.487 │ 3.705 M │ 0.128 │ -├────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ alusd │ Alchemix USD │ 0.986 │ 185.661 M │ 163 │ -0.115 │ -0.288 │ 16.159 K │ 0.122 │ -└────────┴──────────────────────┴───────────┴────────────────┴─────────────────┴────────────────┴───────────────┴────────────┴──────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/altindex/_index.md b/website/content/terminal/crypto/ov/altindex/_index.md deleted file mode 100644 index 5accfb766f3..00000000000 --- a/website/content/terminal/crypto/ov/altindex/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: altindex [-s INITIAL_DATE] - [-u END_DATE] - [-p {30, 90, 365}] - [--export {csv,json,xlsx}] [-h] -``` - -Display altcoin index overtime [Source: https://blockchaincenter.net] -If 75% of the Top 50 coins performed better than Bitcoin over periods of time (30, 90 or 365 days) it is Altcoin Season. -Excluded from the Top 50 are Stablecoins (Tether, DAI…) and asset backed tokens (WBTC, stETH, cLINK,…) - -``` -arguments: - -s DATE --since DATE Start date (default: 1 year before, e.g., 2021-01-01) - -u DATE --until DATE End date (default: current day, e.g., 2022-01-01) - -p DAYS --period DAYS Period of days to check performance (default: 365) - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![altindex](https://user-images.githubusercontent.com/46355364/154068454-43dbc146-31df-4b25-bf14-0b12284afc6d.png) diff --git a/website/content/terminal/crypto/ov/btcrb/_index.md b/website/content/terminal/crypto/ov/btcrb/_index.md deleted file mode 100644 index 6a61ea11df3..00000000000 --- a/website/content/terminal/crypto/ov/btcrb/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: btcrb [-s INITIAL_DATE] - [-u END_DATE] - [--export {csv,json,xlsx}] [-h] -``` - -Displays bitcoin rainbow chart. It also includes halving dates. - -[Price data from source: https://glassnode.com] - -[Inspired by: https://blockchaincenter.net] - -``` -arguments: - -s DATE --since DATE Initial date. Default is initial BTC date: 2010-01-01 - -u DATE --until DATE Final date. Default is current date - --export {csv,json,xlsx} Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -![btcrb](https://user-images.githubusercontent.com/46355364/154068553-f40e8a63-dd69-4508-a0f1-d91cfd5e6e9b.png) diff --git a/website/content/terminal/crypto/ov/categories/_index.md b/website/content/terminal/crypto/ov/categories/_index.md deleted file mode 100644 index 1670113a32c..00000000000 --- a/website/content/terminal/crypto/ov/categories/_index.md +++ /dev/null @@ -1,56 +0,0 @@ -``` -usage: categories [-l N] [-s {Rank,Name,Change_1h,Change_24h,Change_7d,Market_Cap,Volume_24h,Coins}] [--reverse] [-l] [--export {csv,json,xlsx}] [--pie] [-h] - -``` - -Shows top cryptocurrency categories by market capitalization. It includes categories like: stablecoins, defi, solana ecosystem, polkadot ecosystem and many others. You can sort by each column using --sort parameter - -``` -optional arguments: - -l N, --limit N display N number records (default: 15) - -s {Rank,Name,Change_1h,Change_24h,Change_7d,Market_Cap,Volume_24h,Coins}, --sort {Rank,Name,Change_1h,Change_24h,Change_7d,Market_Cap,Volume_24h,Coins} - Sort by given column. Default: Rank (default: Rank) - --pie Show pie chart with market cap distribution - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:10 (🦋) /crypto/ov/ $ categories -┌──────────────────────────────────┬────────────┬───────────────────────┬───────────────────────────────────────────────────────┬────────────┐ -│ Name │ Market Cap │ Market Cap Change 24H │ Top 3 Coins │ Volume 24H │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Smart Contract Platform │ 678.047 B │ 8.095 │ ethereum,binance-coin-logo,cardano │ 27.408 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Binance Smart Chain Ecosystem │ 339.679 B │ 3.876 │ Tether-logo,binance-coin-logo,USD_Coin_icon │ 58.906 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Polygon Ecosystem │ 311.497 B │ 3.644 │ Tether-logo,binance-coin-logo,USD_Coin_icon │ 58.872 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Avalanche Ecosystem │ 299.726 B │ 3.620 │ Tether-logo,binance-coin-logo,USD_Coin_icon │ 53.420 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Moonriver Ecosystem │ 288.048 B │ 3.709 │ Tether-logo,binance-coin-logo,USD_Coin_icon │ 55.035 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Fantom Ecosystem │ 215.497 B │ 1.760 │ Tether-logo,USD_Coin_icon,luna1557227471663 │ 53.904 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Stablecoins │ 182.561 B │ -0.108 │ Tether-logo,USD_Coin_icon,BUSD │ 50.694 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Arbitrum Ecosystem │ 180.827 B │ 1.536 │ Tether-logo,USD_Coin_icon,wrapped_bitcoin_wbtc │ 49.169 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Near Protocol Ecosystem │ 173.873 B │ 1.585 │ Tether-logo,USD_Coin_icon,4943 │ 49.034 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Exchange-based Tokens │ 129.556 B │ 7.082 │ binance-coin-logo,cypto,F │ 6.532 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Decentralized Finance (DeFi) │ 115.516 B │ 6.310 │ luna1557227471663,4943,chainlink-new-logo │ 5.141 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Centralized Exchange Token (CEX) │ 109.267 B │ 6.734 │ binance-coin-logo,cypto,F │ 2.138 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Gnosis Chain Ecosystem │ 86.569 B │ 3.015 │ USD_Coin_icon,wrapped_bitcoin_wbtc,chainlink-new-logo │ 5.255 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Cosmos Ecosystem │ 56.514 B │ 7.509 │ luna1557227471663,cypto,cosmos_hub │ 2.653 B │ -├──────────────────────────────────┼────────────┼───────────────────────┼───────────────────────────────────────────────────────┼────────────┤ -│ Solana Ecosystem │ 51.051 B │ 8.194 │ solana,chainlink-new-logo,Graph_Token │ 2.925 B │ -└──────────────────────────────────┴────────────┴───────────────────────┴───────────────────────────────────────────────────────┴────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/ch/_index.md b/website/content/terminal/crypto/ov/ch/_index.md deleted file mode 100644 index dfd9cbd9b75..00000000000 --- a/website/content/terminal/crypto/ov/ch/_index.md +++ /dev/null @@ -1,62 +0,0 @@ -``` -usage: ch [-l N] [-s {Platform,Date,Amount [$],Audit,Slug,URL}] [--reverse] [-h] [--export {csv,json,xlsx}] -``` - -Display list of major crypto-related hacks [Source: ] -Can be sorted by {Platform,Date,Amount [$],Audit,Slug,URL} with --sort and reverse the display order with --reverse -Show only N elements with --limit N -Accepts --slug or -s to check individual crypto hack (e.g., -s polynetwork-rekt) - -``` -optional arguments: - -s SLUG, --slug SLUG Rekt news slug to check (e.g., polynetwork-rekt) - -l N, --limit N display N number records (default: 15) - --sort {Platform,Date,Amount [$],Audit,Slug,URL} - Sort by given column. Default: Amount [$] - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 08:16 (🦋) /crypto/ov/ $ ch - Major Crypto Hacks -┌────────────────────────┬────────────┬────────────┬────────────────────────┬────────────────────┬───────────────────────────────────────┐ -│ Platform │ Date │ Amount [$] │ Audit │ Slug │ URL │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Poly Network - REKT │ 2021-08-10 │ 611 M │ Unaudited │ polynetwork-rekt │ https://rekt.news/polynetwork-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Wormhole - REKT │ 2022-02-02 │ 326 M │ Neodyme │ wormhole-rekt │ https://rekt.news/wormhole-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ BitMart - REKT │ 2021-12-04 │ 196 M │ N/A │ bitmart-rekt │ https://rekt.news/bitmart-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Compound - REKT │ 2021-09-29 │ 147 M │ Unaudited │ compound-rekt │ https://rekt.news/compound-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Vulcan Forged - REKT │ 2021-12-13 │ 140 M │ Unaudited │ vulcan-forged-rekt │ https://rekt.news/vulcan-forged-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Cream Finance - REKT 2 │ 2021-10-27 │ 130 M │ Unaudited │ cream-rekt-2 │ https://rekt.news/cream-rekt-2/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Badger - REKT │ 2021-12-02 │ 120 M │ Unaudited │ badger-rekt │ https://rekt.news/badger-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Qubit Finance - REKT │ 2022-01-28 │ 80 M │ Unaudited │ qubit-rekt │ https://rekt.news/qubit-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Ascendex - REKT │ 2021-12-12 │ 77.700 M │ Unaudited │ ascendex-rekt │ https://rekt.news/ascendex-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ EasyFi - REKT │ 2021-04-19 │ 59 M │ Unaudited │ easyfi-rekt │ https://rekt.news/easyfi-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Uranium Finance - REKT │ 2021-04-28 │ 57.200 M │ Unaudited │ uranium-rekt │ https://rekt.news/uranium-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ bZx - REKT │ 2021-11-05 │ 55 M │ Unaudited │ bzx-rekt │ https://rekt.news/bzx-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ PancakeBunny - REKT │ 2021-05-19 │ 45 M │ Unaudited │ pancakebunny-rekt │ https://rekt.news/pancakebunny-rekt/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Kucoin - REKT │ 2020-09-29 │ 45 M │ Internal audit │ epic-hack-homie │ https://rekt.news/epic-hack-homie/ │ -├────────────────────────┼────────────┼────────────┼────────────────────────┼────────────────────┼───────────────────────────────────────┤ -│ Alpha Finance - REKT │ 2021-02-13 │ 37.500 M │ Quantstamp, Peckshield │ alpha-finance-rekt │ https://rekt.news/alpha-finance-rekt/ │ -└────────────────────────┴────────────┴────────────┴────────────────────────┴────────────────────┴───────────────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/contracts/_index.md b/website/content/terminal/crypto/ov/contracts/_index.md deleted file mode 100644 index f1558e9de57..00000000000 --- a/website/content/terminal/crypto/ov/contracts/_index.md +++ /dev/null @@ -1,64 +0,0 @@ -``` -usage: contracts - [-p {btc-bitcoin,eos-eos,eth-ethereum,xrp-xrp,bch-bitcoin-cash,xem-nem,neo-neo,xlm-stellar,etc-ethereum-classic,qtum-qtum,zec-zcash,bts-bitshares,waves-waves,nxt-nxt,act-achain,ubq-ubiq,xcp-counterparty,etp-metaverse-etp,burst-burst,omni-omni,trx-tron,bnb-binance-coin,ardr-ardor,ht-huobi-token,blvr-believer,cake-pancakeswap,fsxu-flashx-ultra,chik-chickenkebab-finance,jgn-juggernaut7492,crx-cryptex,whirl-whirl-finance,eubi-eubi-token,swam-swapmatic-token,shells-shells}] - [-l N] [-s {id,type,active,address}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Gets all contract addresses for given platform. Provide platform id with -p/--platform parameter You can display only N number of smart contracts -with --limit parameter. You can sort data by id, type, active, address --sort parameter and also with --reverse flag to sort descending. Displays: id, -type, active, address - -``` -optional arguments: - -p {btc-bitcoin,eos-eos,eth-ethereum,xrp-xrp,bch-bitcoin-cash,xem-nem,neo-neo,xlm-stellar,etc-ethereum-classic,qtum-qtum,zec-zcash,bts-bitshares,waves-waves,nxt-nxt,act-achain,ubq-ubiq,xcp-counterparty,etp-metaverse-etp,burst-burst,omni-omni,trx-tron,bnb-binance-coin,ardr-ardor,ht-huobi-token,blvr-believer,cake-pancakeswap,fsxu-flashx-ultra,chik-chickenkebab-finance,jgn-juggernaut7492,crx-cryptex,whirl-whirl-finance,eubi-eubi-token,swam-swapmatic-token,shells-shells}, --platform {btc-bitcoin,eos-eos,eth-ethereum,xrp-xrp,bch-bitcoin-cash,xem-nem,neo-neo,xlm-stellar,etc-ethereum-classic,qtum-qtum,zec-zcash,bts-bitshares,waves-waves,nxt-nxt,act-achain,ubq-ubiq,xcp-counterparty,etp-metaverse-etp,burst-burst,omni-omni,trx-tron,bnb-binance-coin,ardr-ardor,ht-huobi-token,blvr-believer,cake-pancakeswap,fsxu-flashx-ultra,chik-chickenkebab-finance,jgn-juggernaut7492,crx-cryptex,whirl-whirl-finance,eubi-eubi-token,swam-swapmatic-token,shells-shells} - Blockchain platform like eth-ethereum (default: eth-ethereum) - -l N, --limit N Limit of records (default: 15) - -s {id,type,active,address}, --sort {id,type,active,address} - Sort by given column (default: id) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:16 (🦋) /crypto/ov/ $ contracts - Contract Addresses -┌────────────────────────────────────────────────────┬───────┬────────┐ -│ id │ type │ active │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ - │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ -dogeinu │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ -exotix │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ -onlychads │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ -pcore │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ -the-ether-collection │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0175-geely-automobile │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0241-alibaba-health-information-technology-limited │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0347-angang-steel │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0358-jiangxi-copper │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0522-asm-pacific-technology-limited │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0728-china-telecom │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0753-air-china │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0857-petrochina │ ERC20 │ True │ -├────────────────────────────────────────────────────┼───────┼────────┤ -│ 0916-china-longyuan-power │ ERC20 │ True │ -└────────────────────────────────────────────────────┴───────┴────────┘ -``` diff --git a/website/content/terminal/crypto/ov/cr/_index.md b/website/content/terminal/crypto/ov/cr/_index.md deleted file mode 100644 index d73e02bab32..00000000000 --- a/website/content/terminal/crypto/ov/cr/_index.md +++ /dev/null @@ -1,33 +0,0 @@ -`usage: cr [-t {borrow,supply}] [-c CRYPTOCURRENCIES] [-p PLATFORMS] [-h] [--export EXPORT] [-l LIMIT]` - -Displays crypto {borrow,supply} interest rates for cryptocurrencies across several platforms. [Source: https://loanscan.io] -You can select rate type with --type {borrow,supply} You -can display only N number of platforms with --limit parameter. You can check for specific coins with -c and in specific platforms with -p - -``` -optional arguments: - -t {borrow,supply}, --type {borrow,supply} - Select interest rate type (default: supply) - -c CRYPTOCURRENCIES, --cryptocurrrencies CRYPTOCURRENCIES - Cryptocurrencies to search interest rates for separated by comma. Options: ZRX,BAT,REP,ETH,SAI,BTC,X - RP,LTC,EOS,BCH,XMR,DOGE,USDC,USDT,BSV,NEO,ETC,OMG,ZEC,BTG,SAN,DAI,UNI,WBTC,COMP,LUNA,UST,BUSD,KNC,LEND,LINK,MANA,MKR,SNX,SUSD,TUS - D,eCRV-DAO,HEGIC,YFI,1INCH,CRV-IB,CRV-HBTC,BOOST,CRV-sBTC,CRV-renBTC,CRV-sAave,CRV-oBTC,CRV-pBTC,CRV-LUSD,CRV-BBTC,CRV-tBTC,CRV- - FRAX,CRV-yBUSD,CRV-COMP,CRV-GUSD,yUSD,CRV-3pool,CRV-TUSD,CRV-BUSD,CRV-DUSD,CRV-UST,CRV-mUSD,sUSD,CRV-sUSD,CRV-LINK,CRV-USDN,CRV- - USDP,CRV-alUSD,CRV-Aave,CRV-HUSD,CRV-EURS,RAI,CRV-triCrypto,CRV-Pax,CRV-USDT,CRV-USDK,CRV-RSV,CRV-3Crypto,GUSD,PAX,USD,ILK,BNB,PA - XG,ADA,FTT,SOL,SRM,RAY,XLM,SUSHI,CRV,BAL,AAVE,MATIC,GRT,ENJ,USDP,IOST,AMP,PERP,SHIB,ALICE,ALPHA,ANKR,ATA,AVA,AXS,BAKE,BAND,BNT,BT - CST,CELR,CFX,CHR,COS,COTI,CTSI,DUSK,EGLD,ELF,FET,FLOW,FTM,INJ,IOTX,MDX,NEAR,OCEAN,ONT,POLS,REEF,WRX,XEC,XTZ,XVS,ZIL,DOT,FIL,TRX,C - AKE,ADX,FIRO,SXP,ATOM,IOTA,AKRO,AUDIO,BADGER,CVC,DENT,DYDX,FORTH,GNO,HOT,LPT,LRC,NKN,NMR,NU,OGN,OXT,POLY,QNT,RLC,RSR,SAND,SKL,STM - X,STORJ,TRB,UMA,DPI,VSP,CHSB,EURT,GHST,3CRV,CRVRENWBTC,MIR-UST UNI - LP,ALCX,ALUSD,USDP3CRV,RENBTC,YVECRV,CVX,USDTTRC20,AUD,HKD,GBP,EUR,HUSD,HT,DASH,EURS,AVAX,BTT,GALA,ILV,APE (default: - BTC,ETH,USDT,USDC) - -p PLATFORMS, --platforms PLATFORMS - Platforms to search interest rates in separated by comma. Options: MakerDao,Compound, - Poloniex,Bitfinex,dYdX,CompoundV2,Linen,Hodlonaut,InstaDapp,Zerion,Argent,DeFiSaver,MakerDaoV2,Ddex,AaveStable,AaveVariable,Yearn - Finance,BlockFi,Nexo,CryptoCom,Soda,Coinbase,SaltLending,Ledn,Bincentive,Inlock,Bitwala,Zipmex,Vauld,Delio,Yield,Vesper,Reflexer, - SwissBorg,MushroomsFinance,ElementFi,Maple,CoinRabbit,WirexXAccounts,Youhodler,YieldApp,NotionalFinance,IconFi (default: - BlockFi,Ledn,SwissBorg,Youhodler) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) - -l LIMIT, --limit LIMIT - Number of entries to show in data. (default: 10) -``` diff --git a/website/content/terminal/crypto/ov/defi/_index.md b/website/content/terminal/crypto/ov/defi/_index.md deleted file mode 100644 index 4280a29bcee..00000000000 --- a/website/content/terminal/crypto/ov/defi/_index.md +++ /dev/null @@ -1,37 +0,0 @@ -``` -usage: defi [--export {csv,json,xlsx}] [-h] -``` - -Shows global DeFi statistics DeFi or Decentralized Finance refers to financial services that are built on top of distributed networks with no central -intermediaries. Displays metrics like: Market Cap, Trading Volume, Defi Dominance, Top Coins... - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:11 (🦋) /crypto/ov/ $ defi - Global DEFI Statistics -┌─────────────────────────┬─────────────────┐ -│ Metric │ Value │ -├─────────────────────────┼─────────────────┤ -│ Defi Market Cap │ 110361000917.64 │ -├─────────────────────────┼─────────────────┤ -│ Eth Market Cap │ 372708922218.61 │ -├─────────────────────────┼─────────────────┤ -│ Defi To Eth Ratio │ 29.61 │ -├─────────────────────────┼─────────────────┤ -│ Trading Volume 24H │ 4839623761.93 │ -├─────────────────────────┼─────────────────┤ -│ Defi Dominance │ 5.32 │ -├─────────────────────────┼─────────────────┤ -│ Top Coin Name │ Terra │ -├─────────────────────────┼─────────────────┤ -│ Top Coin Defi Dominance │ 20.40 │ -└─────────────────────────┴─────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/derivatives/_index.md b/website/content/terminal/crypto/ov/derivatives/_index.md deleted file mode 100644 index 83148bddeaa..00000000000 --- a/website/content/terminal/crypto/ov/derivatives/_index.md +++ /dev/null @@ -1,62 +0,0 @@ -``` -usage: derivatives [-l N] [-s {Rank,Market,Symbol,Price,Pct_Change_24h,Contract_Type,Basis,Spread,Funding_Rate,Volume_24h}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Shows list of crypto derivatives from CoinGecko Crypto derivatives are secondary contracts or financial tools that derive their value from a primary -underlying asset. In this case, the primary asset would be a cryptocurrency such as Bitcoin. The most popular crypto derivatives are crypto futures, -crypto options, and perpetual contracts. You can look on only display N number records with --limit, You can sort by Rank, Market, Symbol, Price, -Pct_Change_24h, Contract_Type, Basis, Spread, Funding_Rate, Volume_24h with --sort and also with --reverse flag to set it to sort descending. -Displays: Rank, Market, Symbol, Price, Pct_Change_24h, Contract_Type, Basis, Spread, Funding_Rate, Volume_24h - -``` -optional arguments: - -l N, --limit N display N number records (default: 15) - -s {Rank,Market,Symbol,Price,Pct_Change_24h,Contract_Type,Basis,Spread,Funding_Rate,Volume_24h}, --sort {Rank,Market,Symbol,Price,Pct_Change_24h,Contract_Type,Basis,Spread,Funding_Rate,Volume_24h} - Sort by given column. Default: Rank (default: Rank) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:11 (🦋) /crypto/ov/ $ derivatives - Crypto Derivatives -┌──────┬───────────────────────────────┬───────────────┬──────────┬────────────────┬───────────────┬───────┬────────┬──────────────┬────────────────┐ -│ Rank │ Market │ Symbol │ Price │ Pct_Change_24h │ Contract_Type │ Basis │ Spread │ Funding_Rate │ Volume_24h │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 1 │ Binance (Futures) │ BTCUSDT │ 44268.84 │ 4.20 │ perpetual │ 0.02 │ 0.01 │ -0.01 │ 14058514627.71 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 2 │ FTX (Derivatives) │ BTC-PERP │ 44320.00 │ 4.26 │ perpetual │ -0.07 │ 0.01 │ 0.05 │ 3855173273.68 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 3 │ MEXC Global (Futures) │ ETH_USDT │ 3113.88 │ 6.05 │ perpetual │ 0.06 │ 0.01 │ -0.02 │ 742832083.24 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 4 │ Gate.io (Futures) │ BTC_USDT │ 44255.93 │ 4.07 │ perpetual │ 0.07 │ 0.01 │ -0.01 │ 1323562150.90 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 5 │ Binance (Futures) │ ETHUSDT │ 3116.95 │ 6.44 │ perpetual │ 0.04 │ 0.01 │ -0.02 │ 6311502301.53 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 6 │ Prime XBT │ BTC/USD │ 44250.70 │ 4.25 │ perpetual │ 0.00 │ 0.02 │ 0.00 │ 237445592.24 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 7 │ Bitget Futures │ BTCUSDT_UMCBL │ 44240.81 │ 3.93 │ perpetual │ -0.01 │ 0.01 │ -0.01 │ 4770121162.81 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 8 │ FTX (Derivatives) │ ETH-PERP │ 3115.00 │ 6.25 │ perpetual │ 0.03 │ 0.01 │ 0.00 │ 2193700085.40 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 9 │ Bitfinex (Futures) │ ETHF0:USTF0 │ 3116.90 │ 6.59 │ perpetual │ 0.05 │ 0.01 │ 0.00 │ 35390334.64 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 10 │ Bybit │ BTCUSDT │ 44213.89 │ 3.90 │ perpetual │ 0.06 │ 0.01 │ -0.01 │ 2873696641.99 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 11 │ C-Trade │ BTCUSD │ 44172.50 │ 3.65 │ perpetual │ 0.16 │ 0.01 │ 0.01 │ 25634007.98 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 12 │ Crypto.com Exchange (Futures) │ BTCUSD-PERP │ 44295.00 │ 4.21 │ perpetual │ -0.00 │ 0.02 │ 0.00 │ 882778425.04 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 13 │ Binance (Futures) │ BTCUSD_PERP │ 44273.80 │ 4.16 │ perpetual │ 0.05 │ 0.01 │ -0.01 │ 5207414861.13 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 14 │ Bybit │ BTCUSD │ 44200.50 │ 3.89 │ perpetual │ 0.10 │ 0.01 │ -0.01 │ 1365988606.18 │ -├──────┼───────────────────────────────┼───────────────┼──────────┼────────────────┼───────────────┼───────┼────────┼──────────────┼────────────────┤ -│ 15 │ BTSE (Futures) │ BTCPFC │ 44220.00 │ 4.10 │ perpetual │ 0.03 │ 0.01 │ 0.00 │ 1022965434.27 │ -└──────┴───────────────────────────────┴───────────────┴──────────┴────────────────┴───────────────┴───────┴────────┴──────────────┴────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/ewf/_index.md b/website/content/terminal/crypto/ov/ewf/_index.md deleted file mode 100644 index ba26baef5ef..00000000000 --- a/website/content/terminal/crypto/ov/ewf/_index.md +++ /dev/null @@ -1,101 +0,0 @@ -``` -usage: ewf [-l N] - [--export {png,jpg,pdf,svg}] -``` - -Display exchange withdrawal fees -[Source: ] - -``` -optional arguments: - --export {png,jpg,pdf,svg} - Export or figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 15, 08:20 (🦋) /crypto/ov/ $ ewf - -Withdrawal fees per exchange: - Withdrawal Fees -┌─────────────────────┬───────┬────────────────┬──────────────────┬────────┬─────────────────────┐ -│ Exchange │ Coins │ Lowest │ Average │ Median │ Highest │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ FixedFloat │ 19 │ FREE │ FREE │ FREE │ FREE │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ CREX24 │ 218 │ $0.000000001 │ $0.97 │ $0.003 │ $35.42 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ GetBTC │ 20 │ FREE │ $1.54 │ $0.03 │ $22.13 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Deribit │ 2 │ $0.89 │ $2.30 │ $2.30 │ $3.72 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ CoinFalcon │ 9 │ $0.00000000008 │ $3.41 │ $0.15 │ $24.83 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Bitfinex │ 139 │ FREE │ $3.59 │ $4.92 │ $51.83 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Bleutrade │ 14 │ FREE │ $4.76 │ FREE │ $44.27 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Kraken │ 101 │ $0.0002 │ $7.23 │ $6.62 │ $33.92 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Coindeal │ 17 │ $0.01 │ $7.52 │ $1.08 │ $46.55 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ OKCoin │ 75 │ $0.0002 │ $8.27 │ $2.40 │ $45.93 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ CoinTiger │ 40 │ $0.00006 │ $10.40 │ $0.44 │ $217.00 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Kucoin │ 598 │ FREE │ $11.12 │ $10.22 │ $60.89 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ AscendEX │ 278 │ FREE │ $11.29 │ $12.22 │ $418.86 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Coincheck │ 17 │ $0.002 │ $11.45 │ $0.33 │ $56.70 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Coinone │ 213 │ FREE │ $11.79 │ $12.41 │ $403.08 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ CoinEx │ 376 │ FREE │ $12.11 │ $15.15 │ $64.73 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Bitrue │ 73 │ FREE │ $12.67 │ $2.42 │ $137.85 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Crypto.com Exchange │ 179 │ FREE │ $13.59 │ $8.02 │ $229.75 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ DSX │ 14 │ $0.0004 │ $14.40 │ $1.23 │ $146.63 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Poloniex │ 301 │ FREE │ $15.83 │ $16.22 │ $100.00 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Binance │ 417 │ FREE │ $16.80 │ $25.00 │ $83.27 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Bitkub │ 55 │ $0.002 │ $18.17 │ $20.10 │ $83.27 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ BitMart │ 135 │ FREE │ $18.78 │ $0.34 │ $706.20 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ TOKOK │ 125 │ FREE │ $18.99 │ $3.59 │ $598.00 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Flyp.me │ 46 │ $0.0002 │ $19.23 │ $31.78 │ $36.72 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ HitBTC │ 520 │ FREE │ $31.11 │ $30.17 │ $744.58 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Liquid │ 207 │ FREE │ $31.42 │ $0.44 │ $5074.75 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Gate.io │ 1184 │ FREE │ $35.04 │ $44.53 │ $3049.92 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Bittrex │ 475 │ FREE │ $43.35 │ $38.05 │ $6421.06 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ BitForex │ 84 │ FREE │ $47.57 │ $0.16 │ $2797.80 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ BTSE │ 89 │ $0.002 │ $48.92 │ $14.31 │ $2954.31 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Tidex │ 78 │ $0.00000002 │ $93.25 │ $3.99 │ $6511.71 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Huobi Global │ 425 │ FREE │ $137.17 │ $13.88 │ $52838.35 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ BW │ 86 │ $0.00000002 │ $185.48 │ $3.22 │ $13857.00 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ SouthXchange │ 156 │ FREE │ $989.69 │ $0.001 │ $151890.50 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ WhiteBit │ 200 │ FREE │ $2530.07 │ $4.59 │ $441294.24 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ OKEx │ 353 │ FREE │ $44033.70 │ $14.30 │ $15539000.00 │ -├─────────────────────┼───────┼────────────────┼──────────────────┼────────┼─────────────────────┤ -│ Coinsbit │ 580 │ FREE │ $302866468285.59 │ $3.94 │ $175505321255000.00 │ -└─────────────────────┴───────┴────────────────┴──────────────────┴────────┴─────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/exchanges/_index.md b/website/content/terminal/crypto/ov/exchanges/_index.md deleted file mode 100644 index 35f6c36cd47..00000000000 --- a/website/content/terminal/crypto/ov/exchanges/_index.md +++ /dev/null @@ -1,67 +0,0 @@ -``` -usage: exchanges [-l LIMIT] [-s {rank,name,currencies,markets,fiats,confidence,volume_24h,volume_7d,volume_30d,sessions_per_month}] [--reverse] [-u] - [--vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK}] - [-h] [--export EXPORT] [--source {CoinGecko,CoinPaprika}] -``` - -Shows Top Crypto Exchanges You can display only N number exchanges with --limit parameter. You can sort data by Trust_Score, Id, Name, Country, -Year_Established, Trade_Volume_24h_BTC with --sort and also with --reverse flag to sort ascending. Flag --urls will display urls. Displays: -Trust_Score, Id, Name, Country, Year_Established, Trade_Volume_24h_BTC - -``` -optional arguments: - -l LIMIT, --limit LIMIT - display N number records (default: 15) - -s {rank,name,currencies,markets,fiats,confidence,volume_24h,volume_7d,volume_30d,sessions_per_month}, --sort {rank,name,currencies,markets,fiats,confidence,volume_24h,volume_7d,volume_30d,sessions_per_month} - Sort by given column. Default: Rank (default: Rank) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -u, --urls Flag to add a url column. Works only with CoinGecko source (default: False) - --vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK} - Quoted currency. Default: USD. Works only with CoinPaprika source (default: USD) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) - --source {CoinGecko,CoinPaprika} - Data source to select from (default: CoinGecko) -``` - -Example: - -``` -2022 Feb 15, 08:12 (🦋) /crypto/ov/ $ exchanges - Top CoinGecko Exchanges -┌──────┬─────────────┬────────────┬─────────────────────┬────────────────────────┬──────────────────┬──────────────────────┐ -│ Rank │ Trust_Score │ Id │ Name │ Country │ Year_Established │ Trade_Volume_24h_BTC │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 1 │ 10.00 │ binance │ Binance │ Cayman Islands │ 2017.00 │ 307450.76 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 2 │ 10.00 │ okex │ OKX │ Belize │ 2013.00 │ 80452.05 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 3 │ 10.00 │ gdax │ Coinbase Exchange │ United States │ 2012.00 │ 68358.93 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 4 │ 10.00 │ crypto_com │ Crypto.com Exchange │ Cayman Islands │ 2019.00 │ 60342.43 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 5 │ 10.00 │ kucoin │ KuCoin │ Seychelles │ 2014.00 │ 53539.44 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 6 │ 10.00 │ ftx_spot │ FTX │ Antigua and Barbuda │ 2019.00 │ 40360.67 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 7 │ 10.00 │ huobi │ Huobi Global │ Seychelles │ 2013.00 │ 34851.50 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 8 │ 10.00 │ gate │ Gate.io │ Hong Kong │ None │ 30159.12 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 9 │ 10.00 │ bitmart │ BitMart │ Cayman Islands │ 2017.00 │ 21782.37 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 10 │ 10.00 │ kraken │ Kraken │ United States │ 2011.00 │ 19819.63 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 11 │ 10.00 │ bitfinex │ Bitfinex │ British Virgin Islands │ 2014.00 │ 13254.81 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 12 │ 10.00 │ bybit_spot │ Bybit (spot) │ None │ 2018.00 │ 7823.03 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 13 │ 10.00 │ binance_us │ Binance US │ United States │ 2019.00 │ 7384.36 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 14 │ 10.00 │ gemini │ Gemini │ United States │ 2014.00 │ 2876.09 │ -├──────┼─────────────┼────────────┼─────────────────────┼────────────────────────┼──────────────────┼──────────────────────┤ -│ 15 │ 10.00 │ bitkub │ Bitkub │ Thailand │ 2018.00 │ 2163.91 │ -└──────┴─────────────┴────────────┴─────────────────────┴────────────────────────┴──────────────────┴──────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/exmarkets/_index.md b/website/content/terminal/crypto/ov/exmarkets/_index.md deleted file mode 100644 index 27990f39cd6..00000000000 --- a/website/content/terminal/crypto/ov/exmarkets/_index.md +++ /dev/null @@ -1,55 +0,0 @@ -``` -usage: exmarkets [-e EXCHANGE] [-l N] - [-s {pair,base_currency_name,quote_currency_name,category,reported_volume_24h_share,trust_score,market_url}] [--reverse] [-l] - [--export {csv,json,xlsx}] [-h] -``` - -Get all exchange markets found for given exchange You can display only display N number records with --limit parameter. You can sort data by pair, base_currency_name, quote_currency_name, market_url, category, reported_volume_24h_share, trust_score --sort parameter and also with --reverse flag to sort ascending. You can use additional flag --urls to see urls for each market Displays: exchange_id, pair, base_currency_name, -quote_currency_name, market_url, category, reported_volume_24h_share, trust_score, - -``` -optional arguments: - -e EXCHANGE, --exchange EXCHANGE - Identifier of exchange e.g for Binance Exchange -> binance (default: binance) - -l N, --limit N Limit of records (default: 10) - -s {pair,base_currency_name,quote_currency_name,category,reported_volume_24h_share,trust_score,market_url}, --sort {pair,base_currency_name,quote_currency_name,category,reported_volume_24h_share,trust_score,market_url} - Sort by given column. Default: reported_volume_24h_share (default: reported_volume_24h_share) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -u, --urls Flag to show urls. If you will use that flag you will see only: exchange, pair, trust_score, market_url columns (default: - False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:18 (🦋) /crypto/ov/ $ exmarkets - Exchange Markets -┌─────────────┬───────────┬────────────────────┬─────────────────────┬──────────┬───────────────────────────┬─────────────┐ -│ exchange_id │ pair │ base_currency_name │ quote_currency_name │ category │ reported_volume_24h_share │ trust_score │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ BTC/USDT │ Bitcoin │ Tether │ Spot │ 14.25 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ ETH/USDT │ Ethereum │ Tether │ Spot │ 11.87 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ BTC/BUSD │ Bitcoin │ Binance USD │ Spot │ 4.44 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ BNB/USDT │ Binance Coin │ Tether │ Spot │ 3.58 │ medium │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ BUSD/USDT │ Binance USD │ Tether │ Spot │ 3.54 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ ETH/BUSD │ Ethereum │ Binance USD │ Spot │ 2.97 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ SLP/USDT │ Smooth Love Potion │ Tether │ Spot │ 2.86 │ medium │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ SHIB/USDT │ Shiba Inu │ Tether │ Spot │ 2.41 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ XRP/USDT │ XRP │ Tether │ Spot │ 2.01 │ high │ -├─────────────┼───────────┼────────────────────┼─────────────────────┼──────────┼───────────────────────────┼─────────────┤ -│ binance │ SOL/USDT │ Solana │ Tether │ Spot │ 1.95 │ high │ -└─────────────┴───────────┴────────────────────┴─────────────────────┴──────────┴───────────────────────────┴─────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/exrates/_index.md b/website/content/terminal/crypto/ov/exrates/_index.md deleted file mode 100644 index ecab120130e..00000000000 --- a/website/content/terminal/crypto/ov/exrates/_index.md +++ /dev/null @@ -1,59 +0,0 @@ -``` -usage: exrates [-l N] [-s {Index,Name,Unit,Value,Type}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Shows list of crypto, fiats, commodity exchange rates from CoinGecko You can look on only display N number records with --limit, You can sort by Index, -Name, Unit, Value, Type, and also use --reverse flag to sort descending. - -``` -optional arguments: - -l N, --limit N display N number records (default: 15) - -s {Index,Name,Unit,Value,Type}, --sort {Index,Name,Unit,Value,Type} - Sort by given column. Default: Index (default: Index) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:12 (🦋) /crypto/ov/ $ exrates - Exchange Rates -┌───────┬─────────────────────────────┬──────┬────────────┬────────┐ -│ Index │ Name │ Unit │ Value │ Type │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 1 │ Bitcoin │ BTC │ 1.00 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 2 │ Ether │ ETH │ 14.20 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 3 │ Litecoin │ LTC │ 337.43 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 4 │ Bitcoin Cash │ BCH │ 130.59 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 5 │ Binance Coin │ BNB │ 103.36 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 6 │ EOS │ EOS │ 17907.80 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 7 │ XRP │ XRP │ 53041.60 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 8 │ Lumens │ XLM │ 201835.99 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 9 │ Chainlink │ LINK │ 2619.11 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 10 │ Polkadot │ DOT │ 2235.39 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 11 │ Yearn.finance │ YFI │ 1.85 │ crypto │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 12 │ US Dollar │ $ │ 44258.09 │ fiat │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 13 │ United Arab Emirates Dirham │ DH │ 162560.27 │ fiat │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 14 │ Argentine Peso │ $ │ 4711797.18 │ fiat │ -├───────┼─────────────────────────────┼──────┼────────────┼────────┤ -│ 15 │ Australian Dollar │ A$ │ 61998.28 │ fiat │ -└───────┴─────────────────────────────┴──────┴────────────┴────────┘ -``` diff --git a/website/content/terminal/crypto/ov/fun/_index.md b/website/content/terminal/crypto/ov/fun/_index.md deleted file mode 100644 index e8c42e90456..00000000000 --- a/website/content/terminal/crypto/ov/fun/_index.md +++ /dev/null @@ -1,30 +0,0 @@ -``` -usage: fun [-m {twitter_followers,gmv_annualized,market_cap,take_rate,revenue,revenue_protocol,tvl,pe,pe_circulating,ps,ps_circulating}] - [-c {Asset Management,Blockchain,DeFi,Exchange,Gaming,Insurance,Interoperability,Lending,NFT,Other,Prediction Market,Stablecoin}] [-t {24h,7d,30d,90d,180d,365d}] [-a] - [-l LIMIT] [-h] [--export EXPORT] -``` - -Display fundamental metrics overview [Source: Token Terminal] - -``` -optional arguments: - -m {twitter_followers,gmv_annualized,market_cap,take_rate,revenue,revenue_protocol,tvl,pe,pe_circulating,ps,ps_circulating}, --metric {twitter_followers,gmv_annualized,market_cap,take_rate,revenue,revenue_protocol,tvl,pe,pe_circulating,ps,ps_circulating} - Choose metric of interest (default: ) - -c {Asset Management,Blockchain,DeFi,Exchange,Gaming,Insurance,Interoperability,Lending,NFT,Other,Prediction Market,Stablecoin}, --category {Asset Management,Blockchain,DeFi,Exchange,Gaming,Insurance,Interoperability,Lending,NFT,Other,Prediction Market,Stablecoin} - Choose category of interest (default: ) - -t {24h,7d,30d,90d,180d,365d}, --timeline {24h,7d,30d,90d,180d,365d} - Choose timeline of interest (default: 24h) - -r, --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -l LIMIT, --limit LIMIT - Display N items (default: 10) - -h, --help show this help message (default: False) -``` - -Example: -``` -2022 Aug 28, 20:02 (🦋) /crypto/ov/ $ fun -m market_cap -c Blockchain -``` - -Screenshot 2022-08-29 at 00 07 31 diff --git a/website/content/terminal/crypto/ov/global/_index.md b/website/content/terminal/crypto/ov/global/_index.md deleted file mode 100644 index 2d6b20c48b4..00000000000 --- a/website/content/terminal/crypto/ov/global/_index.md +++ /dev/null @@ -1,42 +0,0 @@ -``` -usage: global [--pie] [-h] [--export EXPORT] [--source {CoinGecko,CoinPaprika}] -``` - -Shows global statistics about Crypto Market - -``` -optional arguments: - --pie Flag to show pie chart with market cap distribution. Works only with CoinGecko source (default: False) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) - --source {CoinGecko,CoinPaprika} - Data source to select from (default: CoinGecko) -``` - -Example: - -``` -2022 Feb 15, 08:13 (🦋) /crypto/ov/ $ global - Global Statistics -┌──────────────────────────────────────┬──────────┐ -│ Metric │ Value │ -├──────────────────────────────────────┼──────────┤ -│ Active Cryptocurrencies │ 12589.00 │ -├──────────────────────────────────────┼──────────┤ -│ Upcoming Icos │ 0.00 │ -├──────────────────────────────────────┼──────────┤ -│ Ongoing Icos │ 49.00 │ -├──────────────────────────────────────┼──────────┤ -│ Ended Icos │ 3376.00 │ -├──────────────────────────────────────┼──────────┤ -│ Markets │ 741.00 │ -├──────────────────────────────────────┼──────────┤ -│ Market Cap Change Percentage 24H Usd │ 5.08 │ -├──────────────────────────────────────┼──────────┤ -│ Btc Market Cap In Pct │ 40.46 │ -├──────────────────────────────────────┼──────────┤ -│ Eth Market Cap In Pct │ 17.95 │ -├──────────────────────────────────────┼──────────┤ -│ Altcoin Market Cap In Pct │ 41.59 │ -└──────────────────────────────────────┴──────────┘ -``` diff --git a/website/content/terminal/crypto/ov/hm/_index.md b/website/content/terminal/crypto/ov/hm/_index.md deleted file mode 100644 index b7fde56b079..00000000000 --- a/website/content/terminal/crypto/ov/hm/_index.md +++ /dev/null @@ -1,48 +0,0 @@ -``` -usage: hm [-c CATEGORY] [-l LIMIT] [-h] [--export {csv,json,xlsx}] -``` - -Displays cryptocurrencies heatmap. [Source: ] -Accepts --category or -c to display only coins of a certain category -(default no category to display all coins ranked by market cap). -You can look on only top N number of records with --limit. - -``` -optional arguments: - -c CATEGORY, --category CATEGORY - Category (e.g., stablecoins). Empty for no category (default: ) - -l LIMIT, --limit LIMIT - Limit of records (default: 10) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 15, 06:44 (🦋) /crypto/disc/ $ cgtop -┌────────┬──────────────┬────────────┬────────────────┬─────────────────┬───────────────┬────────────────┐ -│ Symbol │ Name │ Volume [$] │ Market Cap [$] │ Market Cap Rank │ 7D Change [%] │ 24H Change [%] │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ btc │ Bitcoin │ 20.6B │ 838.8B │ 1 │ 0.93 │ 4.77 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ eth │ Ethereum │ 14.4B │ 370.6B │ 2 │ -1.53 │ 7.77 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdt │ Tether │ 43.3B │ 78.5B │ 3 │ -0.01 │ -0.05 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ bnb │ Binance Coin │ 1.8B │ 72.2B │ 4 │ -1.01 │ 8.18 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ usdc │ USD Coin │ 3B │ 52.6B │ 5 │ 0.25 │ 0.17 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ xrp │ XRP │ 3.2B │ 39.9B │ 6 │ 0.71 │ 5.51 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ ada │ Cardano │ 1B │ 34.9B │ 7 │ -9.04 │ 5.52 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ sol │ Solana │ 1.8B │ 32.7B │ 8 │ -12.54 │ 10.07 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ luna │ Terra │ 1B │ 22.4B │ 9 │ -5.26 │ 8.67 │ -├────────┼──────────────┼────────────┼────────────────┼─────────────────┼───────────────┼────────────────┤ -│ AVAX │ Avalanche │ 899.9M │ 21.7B │ 10 │ 6.28 │ 12.72 │ -└────────┴──────────────┴────────────┴────────────────┴─────────────────┴───────────────┴────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/hold/_index.md b/website/content/terminal/crypto/ov/hold/_index.md deleted file mode 100644 index c09001ebe9f..00000000000 --- a/website/content/terminal/crypto/ov/hold/_index.md +++ /dev/null @@ -1,39 +0,0 @@ -``` -usage: hold [-c {ethereum,bitcoin}] [--bar] [--export {csv,json,xlsx}] [-h] -``` - -Shows overview of public companies that holds ethereum or bitcoin. You can find there most important metrics like: Total Bitcoin Holdings, Total -Value (USD), Public Companies Bitcoin Dominance, Companies - -``` -optional arguments: - -c {ethereum,bitcoin}, --coin {ethereum,bitcoin} - companies with ethereum or bitcoin (default: bitcoin) - --bar Shows bar chart comparing companies holding {ethereum,bitcoin} - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example - -``` -2022 Feb 15, 08:13 (🦋) /crypto/ov/ $ hold - -27 companies hold a total of 217.240 K bitcoin (1.15% of market cap dominance) with the current value of 9.618 B USD dollars - - Public Companies Holding BTC or ETH -┌─────────────────────────┬──────────────┬─────────┬────────────────┬───────────────────────┬─────────────────────────┬────────────────────────────┐ -│ Name │ Symbol │ Country │ Total Holdings │ Total Entry Value Usd │ Total Current Value Usd │ Percentage Of Total Supply │ -├─────────────────────────┼──────────────┼─────────┼────────────────┼───────────────────────┼─────────────────────────┼────────────────────────────┤ -│ MicroStrategy Inc. │ NASDAQ:MSTR │ US │ 121.044 K │ 3.574 B │ 5.359 B │ 0.576 │ -├─────────────────────────┼──────────────┼─────────┼────────────────┼───────────────────────┼─────────────────────────┼────────────────────────────┤ -│ Tesla │ NASDAQ: TSLA │ US │ 48 K │ 1.500 B │ 2.125 B │ 0.229 │ -├─────────────────────────┼──────────────┼─────────┼────────────────┼───────────────────────┼─────────────────────────┼────────────────────────────┤ -│ Galaxy Digital Holdings │ TSE:GLXY │ CA │ 16.402 K │ 134 M │ 726.154 M │ 0.078 │ -├─────────────────────────┼──────────────┼─────────┼────────────────┼───────────────────────┼─────────────────────────┼────────────────────────────┤ -│ Square Inc. │ NASDAQ:SQ │ US │ 8.027 K │ 220 M │ 355.374 M │ 0.038 │ -├─────────────────────────┼──────────────┼─────────┼────────────────┼───────────────────────┼─────────────────────────┼────────────────────────────┤ -│ Marathon Patent Group │ NASDAQ:MARA │ US │ 4.813 K │ 150 M │ 213.083 M │ 0.023 │ -└─────────────────────────┴──────────────┴─────────┴────────────────┴───────────────────────┴─────────────────────────┴────────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/indexes/_index.md b/website/content/terminal/crypto/ov/indexes/_index.md deleted file mode 100644 index 5467212027b..00000000000 --- a/website/content/terminal/crypto/ov/indexes/_index.md +++ /dev/null @@ -1,60 +0,0 @@ -``` -usage: indexes [-l N] [-s {Rank,Name,Id,Market,Last,MultiAsset}] [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Shows list of crypto indexes from CoinGecko. Each crypto index is made up of a selection of cryptocurrencies, grouped together and weighted by market -cap. You can display only N number of indexes with --limit parameter. You can sort data by Rank, Name, Id, Market, Last, MultiAsset with --sort and -also with --reverse flag to sort descending. Displays: Rank, Name, Id, Market, Last, MultiAsset - -``` -optional arguments: - -l N, --limit N display N number records (default: 15) - -s {Rank,Name,Id,Market,Last,MultiAsset}, --sort {Rank,Name,Id,Market,Last,MultiAsset} - Sort by given column. Default: Rank (default: Rank) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:13 (🦋) /crypto/ov/ $ indexes - Crypto Indexes -┌──────┬─────────────────────────────┬────────┬───────────────────────┬───────┬────────────┐ -│ Rank │ Name │ Id │ Market │ Last │ MultiAsset │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 1 │ CoinFLEX (Futures) DFN │ DFN │ CoinFLEX (Futures) │ nan │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 2 │ Perpetual Protocol ZIL │ ZIL │ Perpetual Protocol │ 0.11 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 3 │ Bibox (Futures) LINK │ LINK │ Bibox (Futures) │ 0.11 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 4 │ CME Bitcoin Futures BTC │ BTC │ CME Group │ 0.11 │ False │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 5 │ Bibox (Futures) XRP │ XRP │ Bibox (Futures) │ 0.11 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 6 │ Bibox (Futures) AXS │ AXS │ Bibox (Futures) │ 0.11 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 7 │ ZBG Futures BSV │ BSV │ ZBG Futures │ 0.11 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 8 │ MEXC Global (Futures) ATLAS │ ATLAS │ MEXC Global (Futures) │ 4.54 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 9 │ CoinFLEX (Futures) BCHABC │ BCHABC │ CoinFLEX (Futures) │ 0.00 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 10 │ Prime XBT USDC │ USDC │ Prime XBT │ 0.00 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 11 │ Poloniex Futures AXS │ AXS │ Poloniex Futures │ 60.56 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 12 │ Bibox (Futures) ETC │ ETC │ Bibox (Futures) │ 60.56 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 13 │ MyCoinStory SUN │ SUN │ MCS │ 13.41 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 14 │ dYdX │ DYDX │ FTX (Derivatives) │ 7.57 │ None │ -├──────┼─────────────────────────────┼────────┼───────────────────────┼───────┼────────────┤ -│ 15 │ Ronin │ RON │ FTX (Derivatives) │ 2.83 │ False │ -└──────┴─────────────────────────────┴────────┴───────────────────────┴───────┴────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/info/_index.md b/website/content/terminal/crypto/ov/info/_index.md deleted file mode 100644 index 3050a6ab119..00000000000 --- a/website/content/terminal/crypto/ov/info/_index.md +++ /dev/null @@ -1,77 +0,0 @@ -``` -usage: info - [--vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK}] - [-l N] [-s {rank,name,symbol,price,volume_24h,circulating_supply,total_supply,max_supply,ath_price,market_cap,beta_value}] - [--reverse] [--export {csv,json,xlsx}] [-h] -``` - -Show basic coin information for all coins from CoinPaprika API You can display only N number of coins with --limit parameter. You can sort data by -rank, name, symbol, price, volume_24h, circulating_supply, total_supply, max_supply, market_cap, beta_value, ath_price --sort parameter and also with ---reverse flag to sort descending. Displays: rank, name, symbol, price, volume_24h, circulating_supply, total_supply, max_supply, market_cap, beta_value, ath_price - -``` -optional arguments: - --vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK} - Quoted currency. Default USD (default: USD) - -l N, --limit N Limit of records (default: 20) - -s {rank,name,symbol,price,volume_24h,circulating_supply,total_supply,max_supply,ath_price,market_cap,beta_value}, --sort {rank,name,symbol,price,volume_24h,circulating_supply,total_supply,max_supply,ath_price,market_cap,beta_value} - Sort by given column. Default: rank (default: rank) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:18 (🦋) /crypto/ov/ $ info - -Displaying data vs USD - Basic Coin Information -┌──────┬───────────────────────────┬────────────┬────────┬────────────┬────────────────────┬──────────────┬────────────┬────────────┬────────────┬───────────┐ -│ rank │ name │ symbol │ price │ volume_24h │ circulating_supply │ total_supply │ max_supply │ market_cap │ beta_value │ ath_price │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ ZcCoin │ ZCC │ 0.004 │ 1.249 K │ 0 │ 0 │ 0 │ 0 │ 0.222 │ 0.014 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Icolcoin │ ICOL │ 0.011 │ 0.000 │ 0 │ 20.234 M │ 0 │ 0 │ -0.090 │ 1.099 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Poodle Dog Coin │ POODLE DOG │ 0.000 │ 635.137 │ 0 │ 0 │ 0 │ 0 │ 0 │ nan │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ REDANCOIN │ REDAN │ 0.006 │ 396.232 │ 0 │ 0 │ 0 │ 0 │ 0.967 │ 0.017 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Fado Go │ FADO │ 0.010 │ 10.257 M │ 0 │ 1 B │ 0 │ 0 │ 9.635 │ 0.021 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ OK Fly │ OKFLY │ 0.000 │ 178.900 │ 0 │ 0 │ 0 │ 0 │ 1.004 │ 0.000 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Leonardo SPA │ LDO │ 7.623 │ 53.360 │ 0 │ 0 │ 426.388 K │ 650.063 K │ 0.040 │ 8.860 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ HappyDoge │ HAPPYDOGE │ 0.000 │ 56.544 │ 0 │ 0 │ 0 │ 0 │ 2.840 │ 0.000 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Hyper DAO │ HDAO │ 0.030 │ 4.797 │ 0 │ 0 │ 0 │ 0 │ 0.021 │ 0.031 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ SweetGirl │ SWTG │ 0.001 │ 16.067 │ 0 │ 0 │ 0 │ 0 │ 1.435 │ 0.001 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Gaj Finance │ GAJ │ 0.047 │ 598.888 │ 1.941 M │ 1.941 M │ 0 │ 90.617 K │ 1.357 │ 0.568 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Noachis Terra │ NTT │ 0.000 │ 1.263 │ 0 │ 0 │ 0 │ 0 │ -2.052 │ 0.000 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Connect Coin │ XCON │ 0.000 │ 25.370 │ 38.997 M │ 70 M │ 0 │ 10.359 K │ 0.863 │ 0.696 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ ECOSCU │ ECU │ 0.003 │ 21.205 │ 0 │ 0 │ 0 │ 0 │ 1.376 │ 0.004 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Under Armour Cl A │ UAA │ 17.190 │ 429.750 │ 0 │ 236.518 K │ 236.518 K │ 0 │ 0.181 │ 27.140 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Multiplier │ MXX │ 0.007 │ 902.638 │ 137.665 M │ 186.586 M │ 0 │ 946.127 K │ 0.793 │ 0.014 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ SmartPad │ PAD │ 0.017 │ 4.454 K │ 0 │ 1 B │ 0 │ 0 │ 1.159 │ 0.043 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Home Coin │ HOME │ 0.000 │ 23.056 │ 0 │ 0 │ 0 │ 0 │ 0.853 │ 0.000 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Teva Pharma Ind Adr Rep 1 │ TEVA │ 8.455 │ 8.455 │ 0 │ 317.460 K │ 317.460 K │ 0 │ 0.101 │ 13.210 │ -├──────┼───────────────────────────┼────────────┼────────┼────────────┼────────────────────┼──────────────┼────────────┼────────────┼────────────┼───────────┤ -│ 0 │ Virtual Quest Room Coin │ VQR │ 0.010 │ 0.965 │ 0 │ 567.838 K │ 52.560 M │ 0 │ 1.417 │ 0.055 │ -└──────┴───────────────────────────┴────────────┴────────┴────────────┴────────────────────┴──────────────┴────────────┴────────────┴────────────┴───────────┘ -``` diff --git a/website/content/terminal/crypto/ov/markets/_index.md b/website/content/terminal/crypto/ov/markets/_index.md deleted file mode 100644 index b129d999486..00000000000 --- a/website/content/terminal/crypto/ov/markets/_index.md +++ /dev/null @@ -1,68 +0,0 @@ -``` -usage: markets - [--vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK}] - [-l N] [-s {rank,name,symbol,price,volume_24h,mcap_change_24h,pct_change_1h,pct_change_24h,ath_price,pct_from_ath}] [--reverse] - [--export {csv,json,xlsx}] [-h] -``` - -Show market related (price, supply, volume) coin information for all coins on CoinPaprika. You can display only N number of coins with --limit -parameter. You can sort data by rank, name, symbol, price, volume_24h, mcap_change_24h, pct_change_1h, pct_change_24h, ath_price, pct_from_ath, ---sort parameter and also with --reverse flag to sort ascending. Displays: rank, name, symbol, price, volume_24h, mcap_change_24h, pct_change_1h, -pct_change_24h, ath_price, pct_from_ath, - -``` -optional arguments: - --vs {BTC,ETH,USD,EUR,PLN,KRW,GBP,CAD,JPY,RUB,TRY,NZD,AUD,CHF,UAH,HKD,SGD,NGN,PHP,MXN,BRL,THB,CLP,CNY,CZK,DKK,HUF,IDR,ILS,INR,MYR,NOK,PKR,SEK,TWD,ZAR,VND,BOB,COP,PEN,ARS,ISK} - Quoted currency. Default USD (default: USD) - -l N, --limit N Limit of records (default: 15) - -s {rank,name,symbol,price,volume_24h,mcap_change_24h,pct_change_1h,pct_change_24h,ath_price,pct_from_ath}, --sort {rank,name,symbol,price,volume_24h,mcap_change_24h,pct_change_1h,pct_change_24h,ath_price,pct_from_ath} - Sort by given column. Default: rank (default: rank) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:19 (🦋) /crypto/ov/ $ markets - -Displaying data vs USD - Basic Market Information -┌──────┬───────────────────┬────────────┬────────┬────────────┬─────────────────┬───────────────┬────────────────┬───────────┬──────────────┐ -│ rank │ name │ symbol │ price │ volume_24h │ mcap_change_24h │ pct_change_1h │ pct_change_24h │ ath_price │ pct_from_ath │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ ZcCoin │ ZCC │ 0.004 │ 1.249 K │ 0 │ -0.230 │ -1.290 │ 0.014 │ -72.510 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Icolcoin │ ICOL │ 0.011 │ 0.000 │ 0 │ -0.040 │ 3.100 │ 1.099 │ -98.990 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Poodle Dog Coin │ POODLE DOG │ 0.000 │ 635.137 │ 0 │ 0 │ 0 │ nan │ nan │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ REDANCOIN │ REDAN │ 0.006 │ 396.232 │ 0 │ -0.040 │ 4.110 │ 0.017 │ -66.030 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Fado Go │ FADO │ 0.010 │ 10.257 M │ 0 │ 1.250 │ -25.140 │ 0.021 │ -49.900 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ OK Fly │ OKFLY │ 0.000 │ 178.900 │ 0 │ -0.340 │ 0.540 │ 0.000 │ -6.600 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Leonardo SPA │ LDO │ 7.623 │ 53.360 │ 0 │ -0.260 │ -0.180 │ 8.860 │ -13.930 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ HappyDoge │ HAPPYDOGE │ 0.000 │ 56.544 │ 0 │ -0.210 │ -5 │ 0.000 │ -23.840 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Hyper DAO │ HDAO │ 0.030 │ 4.797 │ 0 │ -0.230 │ -0.130 │ 0.031 │ -2.500 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ SweetGirl │ SWTG │ 0.001 │ 16.067 │ 0 │ -0.210 │ 6.340 │ 0.001 │ -1 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Gaj Finance │ GAJ │ 0.047 │ 598.888 │ 5.090 │ 0.280 │ 5.090 │ 0.568 │ -91.780 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Noachis Terra │ NTT │ 0.000 │ 1.263 │ 0 │ -0.210 │ 6.250 │ 0.000 │ -85.260 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Connect Coin │ XCON │ 0.000 │ 25.370 │ -2.620 │ -0.040 │ -2.620 │ 0.696 │ -99.960 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ ECOSCU │ ECU │ 0.003 │ 21.205 │ 0 │ -0.210 │ 1.680 │ 0.004 │ -23.090 │ -├──────┼───────────────────┼────────────┼────────┼────────────┼─────────────────┼───────────────┼────────────────┼───────────┼──────────────┤ -│ 0 │ Under Armour Cl A │ UAA │ 17.190 │ 429.750 │ 0 │ 0 │ -1.770 │ 27.140 │ -36.660 │ -└──────┴───────────────────┴────────────┴────────┴────────────┴─────────────────┴───────────────┴────────────────┴───────────┴──────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/news/_index.md b/website/content/terminal/crypto/ov/news/_index.md deleted file mode 100644 index 43ed5ca2348..00000000000 --- a/website/content/terminal/crypto/ov/news/_index.md +++ /dev/null @@ -1,38 +0,0 @@ -``` -usage: news [-l N] [-k {news,media}] - [--filter {rising,hot,bullish,bearish,important,saved,lol}] - [-r {en,de,es,fr,nl,it,pt,ru}] - [-s {published_at,domain,title,negative_votes,positive_votes}] - [--reverse] [-l] [-h] [--export {png,jpg,pdf,svg}] - -``` - -Display recent posts from CryptoPanic news aggregator platform. [Source:https://cryptopanic.com/] - -``` -optional arguments: - -l N, --limit N N number of news >=10 (default: 20) - -k {news,media}, --kind {news,media} - Filter by category of news. Available values: news or - media. (default: news) - --filter {rising,hot,bullish,bearish,important,saved,lol} - Filter by kind of news. One from list: - rising|hot|bullish|bearish|important|saved|lol - (default: None) - -r {en,de,es,fr,nl,it,pt,ru}, --region {en,de,es,fr,nl,it,pt,ru} - Filter news by regions. Available regions are: en - (English), de (Deutsch), nl (Dutch), es (Español), fr - (Français), it (Italiano), pt (Português), ru - (Русский) (default: en) - -s {published_at,domain,title,negative_votes,positive_votes}, --sort {published_at,domain,title,negative_votes,positive_votes} - Sort by given column. Default: published_at (default: - published_at) - --reverse Data is sorted in descending order by default. - Reverse flag will sort it in an ascending way. - Only works when raw data is displayed. (default: False) - -u, --urls Flag to show urls. If you will use that flag you will - additional column with urls (default: False) - -h, --help show this help message (default: False) - --export {png,jpg,pdf,svg} - Export or figure into png, jpg, pdf, svg (default: ) -``` diff --git a/website/content/terminal/crypto/ov/pairs/_index.md b/website/content/terminal/crypto/ov/pairs/_index.md deleted file mode 100644 index ddfdb8c822f..00000000000 --- a/website/content/terminal/crypto/ov/pairs/_index.md +++ /dev/null @@ -1,59 +0,0 @@ -``` -usage: pairs [-l N] [-s {id,display_name,base_currency,quote_currency,base_min_size,base_max_size,min_market_funds,max_market_funds}] [--reverse] - [--export {csv,json,xlsx}] [-h] -``` - -Shows available trading pairs on Coinbase - -``` -optional arguments: - -l N, --limit N N number of news >=10 (default: 15) - -s {id,display_name,base_currency,quote_currency,base_min_size,base_max_size,min_market_funds,max_market_funds}, --sort {id,display_name,base_currency,quote_currency,base_min_size,base_max_size,min_market_funds,max_market_funds} - Sort by given column. Default: id (default: id) - -r, --reverse Data is sorted in ascending order by default. - Reverse flag will sort it in an descending way. - Only works when raw data is displayed. (default:False) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:09 (🦋) /crypto/ov/ $ pairs - Available Pairs for Trading -┌───────────┬──────────────┬───────────────┬────────────────┬───────────────┬───────────────┬──────────────────┬──────────────────┐ -│ id │ display_name │ base_currency │ quote_currency │ base_min_size │ base_max_size │ min_market_funds │ max_market_funds │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ 1INCH-BTC │ 1INCH/BTC │ 1INCH │ BTC │ 0.23 │ 91 K │ 0.000016 │ 10 │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ 1INCH-EUR │ 1INCH/EUR │ 1INCH │ EUR │ 0.22 │ 88 K │ 0.84 │ 170 K │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ 1INCH-GBP │ 1INCH/GBP │ 1INCH │ GBP │ 0.23 │ 90 K │ 0.72 │ 150 K │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ 1INCH-USD │ 1INCH/USD │ 1INCH │ USD │ 0.23 │ 320 K │ 1 │ 710 K │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ AAVE-BTC │ AAVE/BTC │ AAVE │ BTC │ 0.003 │ 2.500 K │ 0.000016 │ 13 │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ AAVE-EUR │ AAVE/EUR │ AAVE │ EUR │ 0.003 │ 2.400 K │ 0.84 │ 470 K │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ AAVE-GBP │ AAVE/GBP │ AAVE │ GBP │ 0.003 │ 1.500 K │ 0.72 │ 240 K │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ AAVE-USD │ AAVE/USD │ AAVE │ USD │ 0.003 │ 8.900 K │ 1 │ 2 M │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ACH-USD │ ACH/USD │ ACH │ USD │ 11 │ 20 M │ 1 │ 1.100 M │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ADA-BTC │ ADA/BTC │ ADA │ BTC │ 0.5 │ 820 K │ 0.000016 │ 27 │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ADA-ETH │ ADA/ETH │ ADA │ ETH │ 0.5 │ 660 K │ 0.00022 │ 290 │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ADA-EUR │ ADA/EUR │ ADA │ EUR │ 0.48 │ 880 K │ 0.84 │ 1.100 M │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ADA-GBP │ ADA/GBP │ ADA │ GBP │ 0.49 │ 640 K │ 0.72 │ 650 K │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ADA-USD │ ADA/USD │ ADA │ USD │ 0.5 │ 3.600 M │ 1 │ 5 M │ -├───────────┼──────────────┼───────────────┼────────────────┼───────────────┼───────────────┼──────────────────┼──────────────────┤ -│ ADA-USDC │ ADA/USDC │ ADA │ USDC │ 0.5 │ 580 K │ 1 │ 800 K │ -└───────────┴──────────────┴───────────────┴────────────────┴───────────────┴───────────────┴──────────────────┴──────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/platforms/_index.md b/website/content/terminal/crypto/ov/platforms/_index.md deleted file mode 100644 index 26fb6d8458d..00000000000 --- a/website/content/terminal/crypto/ov/platforms/_index.md +++ /dev/null @@ -1,104 +0,0 @@ -``` -usage: platforms [--export {csv,json,xlsx}] [-h] -``` - -List all smart contract platforms like ethereum, solana, cosmos, polkadot, kusama - -``` -optional arguments: - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:19 (🦋) /crypto/ov/ $ platforms - Smart Contract Platforms -┌───────┬───────────────────────────┐ -│ index │ platform_id │ -├───────┼───────────────────────────┤ -│ 1 │ btc-bitcoin │ -├───────┼───────────────────────────┤ -│ 2 │ eos-eos │ -├───────┼───────────────────────────┤ -│ 3 │ eth-ethereum │ -├───────┼───────────────────────────┤ -│ 4 │ xrp-xrp │ -├───────┼───────────────────────────┤ -│ 5 │ bch-bitcoin-cash │ -├───────┼───────────────────────────┤ -│ 6 │ xem-nem │ -├───────┼───────────────────────────┤ -│ 7 │ neo-neo │ -├───────┼───────────────────────────┤ -│ 8 │ xlm-stellar │ -├───────┼───────────────────────────┤ -│ 9 │ etc-ethereum-classic │ -├───────┼───────────────────────────┤ -│ 10 │ qtum-qtum │ -├───────┼───────────────────────────┤ -│ 11 │ zec-zcash │ -├───────┼───────────────────────────┤ -│ 12 │ vet-vechain │ -├───────┼───────────────────────────┤ -│ 13 │ bts-bitshares │ -├───────┼───────────────────────────┤ -│ 14 │ waves-waves │ -├───────┼───────────────────────────┤ -│ 15 │ nxt-nxt │ -├───────┼───────────────────────────┤ -│ 16 │ act-achain │ -├───────┼───────────────────────────┤ -│ 17 │ ubq-ubiq │ -├───────┼───────────────────────────┤ -│ 18 │ xcp-counterparty │ -├───────┼───────────────────────────┤ -│ 19 │ html-htmlcoin │ -├───────┼───────────────────────────┤ -│ 20 │ etp-metaverse-etp │ -├───────┼───────────────────────────┤ -│ 21 │ signa-signa │ -├───────┼───────────────────────────┤ -│ 22 │ omni-omni │ -├───────┼───────────────────────────┤ -│ 23 │ trx-tron │ -├───────┼───────────────────────────┤ -│ 24 │ bnb-binance-coin │ -├───────┼───────────────────────────┤ -│ 25 │ ardr-ardor │ -├───────┼───────────────────────────┤ -│ 26 │ ht-huobi-token │ -├───────┼───────────────────────────┤ -│ 27 │ ftm-fantom │ -├───────┼───────────────────────────┤ -│ 28 │ matic-polygon │ -├───────┼───────────────────────────┤ -│ 29 │ avax-avalanche │ -├───────┼───────────────────────────┤ -│ 30 │ sol-solana │ -├───────┼───────────────────────────┤ -│ 31 │ blvr-believer │ -├───────┼───────────────────────────┤ -│ 32 │ cake-pancakeswap │ -├───────┼───────────────────────────┤ -│ 33 │ fsxu-flashx-ultra │ -├───────┼───────────────────────────┤ -│ 34 │ chik-chickenkebab-finance │ -├───────┼───────────────────────────┤ -│ 35 │ jgn-juggernaut7492 │ -├───────┼───────────────────────────┤ -│ 36 │ crx-cryptex │ -├───────┼───────────────────────────┤ -│ 37 │ whirl-whirl-finance │ -├───────┼───────────────────────────┤ -│ 38 │ eubi-eubi-token │ -├───────┼───────────────────────────┤ -│ 39 │ swam-swapmatic-token │ -├───────┼───────────────────────────┤ -│ 40 │ shells-shells │ -├───────┼───────────────────────────┤ -│ 41 │ slx-solex-finance │ -└───────┴───────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/stables/_index.md b/website/content/terminal/crypto/ov/stables/_index.md deleted file mode 100644 index 115a78cbd71..00000000000 --- a/website/content/terminal/crypto/ov/stables/_index.md +++ /dev/null @@ -1,61 +0,0 @@ -``` -usage: stables [-l N] [-s {Rank,Name,Symbol,Price,Change_24h,Exchanges,Market_Cap,Change_30d}] [--export {csv,json,xlsx}] [-h] -``` - -Shows stablecoins by market capitalization. Stablecoins are cryptocurrencies that attempt to peg their market value to some external reference like -the U.S. dollar or to a commodity's price such as gold. You can display only N number of coins with --limit parameter. You can sort data by Rank, -Name, Symbol, Price, Change_24h, Exchanges, Market_Cap, Change_30d with --sort. - -``` -optional arguments: - -l N, --limit N display N number records (default: 15) - -s {Rank,Name,Symbol,Price,Change_24h,Exchanges,Market_Cap,Change_30d}, --sort {Rank,Name,Symbol,Price,Change_24h,Exchanges,Market_Cap,Change_30d} - Sort by given column. Default: Rank (default: Rank) - --pie displays market cap distribution across stablecoins - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 15, 08:16 (🦋) /crypto/ov/ $ stables - -First 15 stablecoins have a total 182.582 B dollars of market cap. - - Stablecoin Data -┌─────────┬──────────────────────┬───────────┬────────────────┬─────────────────┬────────────────┬───────────────┬────────────┬──────────────────────────┐ -│ Symbol │ Name │ Price [$] │ Market Cap [$] │ Market Cap Rank │ Change 24h [%] │ Change 7d [%] │ Volume [$] │ Percentage [%] of top 15 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdt │ Tether │ 1.001 │ 78.556 B │ 3 │ -0.014 │ -0.063 │ 43.035 B │ 43.025 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdc │ USD Coin │ 1 │ 52.519 B │ 5 │ 0.120 │ -0.052 │ 2.976 B │ 28.765 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ busd │ Binance USD │ 1.001 │ 17.557 B │ 13 │ 0.041 │ -0.105 │ 3.124 B │ 9.616 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ ust │ TerraUSD │ 1.001 │ 11.616 B │ 17 │ 0.132 │ -0.053 │ 318.818 M │ 6.362 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ dai │ Dai │ 1.001 │ 9.820 B │ 19 │ 0.069 │ 0.059 │ 237.136 M │ 5.378 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ mim │ Magic Internet Money │ 1.001 │ 2.788 B │ 51 │ 0.419 │ 0.107 │ 42.304 M │ 1.527 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ frax │ Frax │ 1.001 │ 2.660 B │ 53 │ 0.553 │ -0.490 │ 25.748 M │ 1.457 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ tusd │ TrueUSD │ 1.001 │ 1.487 B │ 80 │ 0.014 │ 0.017 │ 92.185 M │ 0.814 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdp │ Pax Dollar │ 1.001 │ 1.034 B │ 100 │ -0.164 │ -0.003 │ 13.857 M │ 0.566 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ fei │ Fei USD │ 1.002 │ 556.435 M │ 147 │ 0.248 │ -0.048 │ 14.805 M │ 0.305 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ lusd │ Liquity USD │ 1.010 │ 498.292 M │ 159 │ 0.210 │ 0.038 │ 6.557 M │ 0.273 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ usdn │ Neutrino USD │ 0.999 │ 443.663 M │ 169 │ 1.023 │ 0.073 │ 11.068 M │ 0.243 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ xaut │ Tether Gold │ 1.851 K │ 418.617 M │ 173 │ 2.029 │ -0.250 │ 4.853 M │ 0.229 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ mimatic │ MAI │ 0.999 │ 264.095 M │ 235 │ 0.043 │ 0.085 │ 3.754 M │ 0.145 │ -├─────────┼──────────────────────┼───────────┼────────────────┼─────────────────┼────────────────┼───────────────┼────────────┼──────────────────────────┤ -│ husd │ HUSD │ 1.005 │ 263.061 M │ 236 │ 0.686 │ 0.524 │ 35.886 M │ 0.144 │ -└─────────┴──────────────────────┴───────────┴────────────────┴─────────────────┴────────────────┴───────────────┴────────────┴──────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/wf/_index.md b/website/content/terminal/crypto/ov/wf/_index.md deleted file mode 100644 index 9d919ea5ab2..00000000000 --- a/website/content/terminal/crypto/ov/wf/_index.md +++ /dev/null @@ -1,46 +0,0 @@ -``` -usage: wf [-l LIMIT] - [--export {png,jpg,pdf,svg}] -``` - -Display withdrawal fees of cryptocurrencies ordered by market cap -[Source: ] - -``` -optional arguments: - -l N, --limit N show N number of coins (default: 10) - --export {png,jpg,pdf,svg} - Export or figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 15, 08:21 (🦋) /crypto/ov/ $ wf - -Withdrawal fees on exchanges: - Top Withdrawal Fees -┌──────────────┬──────────────┬─────────┬────────┬──────────────────────┬────────────────────┐ -│ Coin │ Lowest │ Average │ Median │ Highest │ Exchanges Compared │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Bitcoin │ FREE │ $20.01 │ $22.13 │ $66.40 (0.0015 BTC) │ 38 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Ethereum │ FREE │ $22.54 │ $19.39 │ $74.48 (0.024 ETH) │ 37 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Tether │ FREE │ $19.24 │ $15.55 │ $100.00 (100 USDT) │ 30 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Binance Coin │ FREE │ $4.06 │ $0.64 │ $21.38 (0.05 BNB) │ 16 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ USD Coin │ FREE │ $21.39 │ $19.98 │ $50.96 (51 USDC) │ 27 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ XRP │ FREE │ $1.79 │ $0.21 │ $30.02 (36 XRP) │ 29 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Cardano │ $0.330.3 ADA │ $6.94 │ $1.08 │ $146.63 (135.14 ADA) │ 26 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Solana │ FREE │ $1.17 │ $1.02 │ $5.00 (0.049 SOL) │ 18 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Terra │ FREE │ $4.11 │ $1.13 │ $30.53 (0.54 LUNA) │ 15 │ -├──────────────┼──────────────┼─────────┼────────┼──────────────────────┼────────────────────┤ -│ Avalanche │ FREE │ $1.77 │ $0.88 │ $8.83 (0.1 AVAX) │ 15 │ -└──────────────┴──────────────┴─────────┴────────┴──────────────────────┴────────────────────┘ -``` diff --git a/website/content/terminal/crypto/ov/wfpe/_index.md b/website/content/terminal/crypto/ov/wfpe/_index.md deleted file mode 100644 index 543662f764b..00000000000 --- a/website/content/terminal/crypto/ov/wfpe/_index.md +++ /dev/null @@ -1,106 +0,0 @@ -``` -usage: wfpe [-c COIN] - [--export {png,jpg,pdf,svg}] -``` - -Display coin withdrawal fees per exchange -[Source: ] - -``` -optional arguments: - -c COIN, --coin COIN cryptocurrency to check withdrawal fees in long format (default: bitcoin) - --export {png,jpg,pdf,svg} - Export or figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 15, 08:21 (🦋) /crypto/ov/ $ wfpe - - -Withdrawal fees for bitcoin: - -bitcoin is available on 38 exchanges with alowest fee of FREE(0 BTC), average of $20.01(0.0004519 BTC) and median of $22.13(0.0005 BTC) - - Withdrawal Fees per Exchange -┌─────────────────────┬───────────────────────┬───────────────────────────┐ -│ Exchange │ Withdrawal Fee │ Minimum Withdrawal Amount │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ FixedFloat │ FREE │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Deribit │ $0.89 (0.00002 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Kraken │ $0.89 (0.00002 BTC) │ $22.13 (0.0005 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ OKCoin │ $0.89 (0.00002 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ CoinEx │ $4.43 (0.0001 BTC) │ $44.27 (0.001 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ CoinFalcon │ $4.43 (0.0001 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Crypto.com Exchange │ $4.43 (0.0001 BTC) │ $8.85 (0.0002 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Flyp.me │ $4.43 (0.0001 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ SouthXchange │ $6.64 (0.00015 BTC) │ $8.85 (0.0002 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ OKEx │ $8.85 (0.0002 BTC) │ $44.27 (0.001 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Bittrex │ $13.28 (0.0003 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Coindeal │ $16.60 (0.000375 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Tidex │ $17.71 (0.0004 BTC) │ $22.13 (0.0005 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Bitfinex │ $17.71 (0.0004 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ DSX │ $17.71 (0.0004 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Huobi Global │ $17.71 (0.0004 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ WhiteBit │ $17.71 (0.0004 BTC) │ $44.27 (0.001 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Liquid │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ BitForex │ $22.13 (0.0005 BTC) │ $44.27 (0.001 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ BitMart │ $22.13 (0.0005 BTC) │ $221.34 (0.005 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Coinsbit │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Kucoin │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Poloniex │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ AscendEX │ $22.13 (0.0005 BTC) │ $442.69 (0.01 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Bitkub │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Bitrue │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ BTSE │ $22.13 (0.0005 BTC) │ $44.27 (0.001 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ BW │ $22.13 (0.0005 BTC) │ $110.67 (0.0025 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Coincheck │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ CoinTiger │ $22.13 (0.0005 BTC) │ $442.69 (0.01 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ GetBTC │ $22.13 (0.0005 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Binance │ $30.55 (0.00069 BTC) │ $61.98 (0.0014 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ CREX24 │ $35.42 (0.0008 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ TOKOK │ $35.42 (0.0008 BTC) │ $44.27 (0.001 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ HitBTC │ $39.84 (0.0009 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Bleutrade │ $44.27 (0.001 BTC) │ │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Gate.io │ $44.27 (0.001 BTC) │ $486.96 (0.011 BTC) │ -├─────────────────────┼───────────────────────┼───────────────────────────┤ -│ Coinone │ $66.40 (0.0015 BTC) │ $4.43 (0.0001 BTC) │ -└─────────────────────┴───────────────────────┴───────────────────────────┘ -``` diff --git a/website/content/terminal/crypto/prt/_index.md b/website/content/terminal/crypto/prt/_index.md deleted file mode 100644 index 2ef27c003b8..00000000000 --- a/website/content/terminal/crypto/prt/_index.md +++ /dev/null @@ -1,21 +0,0 @@ -``` -usage: prt [--vs COIN] [--price NUM] [--top NUM] [--export {csv,json,xlsx}] [-h] -``` - -Tool to calculate potential returns of a certain coin. It will take the loaded coin and compare with either another coin specified with argument `--vs`, with a target price specified with argument `--price`, or with the current N coins with biggest market cap with `--top`. - -``` -optional arguments: - --vs COIN Symbol of coin to compare loaded coin with (e.g., BTC) - -p NUM --price NUM Target price to compute potential returns (e.g., 5) - -t NUM --top NUM Top NUM coins to compare with (e.g., 5) - --export {csv,json,xlsx} - Export dataframe data to csv,json,xlsx file (default: ) - -h, --help show this help message (default: False) -``` - -Examples: - -`load algo/prt --price 2` -`load algo/prt --vs btc` -`load algo/prt --top 5` diff --git a/website/content/terminal/crypto/tools/_index.md b/website/content/terminal/crypto/tools/_index.md deleted file mode 100644 index cf01e10c0a4..00000000000 --- a/website/content/terminal/crypto/tools/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -geekdocCollapseSection: true ---- - -**Available commands:** -{{< toc-tree >}} diff --git a/website/content/terminal/crypto/tools/aprtoapy/_index.md b/website/content/terminal/crypto/tools/aprtoapy/_index.md deleted file mode 100644 index 90d6a674faa..00000000000 --- a/website/content/terminal/crypto/tools/aprtoapy/_index.md +++ /dev/null @@ -1,13 +0,0 @@ -`usage: aprtoapy [--apr APR] [-c COMPOUNDING] [-n] [-h] [--export EXPORT]` - -Tool to calculate APY from APR value. Compounding periods, i.e., the number of times compounded per year can be defined with -c argument. - -``` -optional arguments: - --apr APR APR value in percentage to convert (default: 100) - -c COMPOUNDING, --compounding COMPOUNDING - Number of compounded periods in a year. 12 means compounding monthly (default: 12) - -n, --narrative Flag to show narra`ive instead of dataframe (default: False) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/crypto/tools/il/_index.md b/website/content/terminal/crypto/tools/il/_index.md deleted file mode 100644 index 6cd557a64e7..00000000000 --- a/website/content/terminal/crypto/tools/il/_index.md +++ /dev/null @@ -1,20 +0,0 @@ -`usage: il [-pcA PRICECHANGEA] [-pcB PRICECHANGEB] [-p PROPORTION] [-v VALUE] [-n] [-h] [--export EXPORT` - -Tool to calculate Impermanent Loss in a custom liquidity pool. Users can provide percentages increases for two tokens (and their weight in -the liquidity pool) and verify the impermanent loss that can occur. - -``` -optional arguments: - -pcA PRICECHANGEA, --priceChangeA PRICECHANGEA - Token A price change in percentage (default: 0) - -pcB PRICECHANGEB, --priceChangeB PRICECHANGEB - Token B price change in percentage (default: 100) - -p PROPORTION, --proportion PROPORTION - Pool proportion. E.g., 50 means that pool contains 50% of token A and 50% of token B, 30 means that pool contains - 30% of token A and 70% of token B (default: 50) - -v VALUE, --value VALUE - Initial amount of dollars that user provides to liquidity pool (default: 1000) - -n, --narrative Flag to show narrative instead of dataframe (default: False) - -h, --help show this help message (default: False) - --export EXPORT Export raw data into csv, json, xlsx (default: ) -``` diff --git a/website/content/terminal/econometrics/_index.md b/website/content/terminal/econometrics/_index.md deleted file mode 100644 index c75d0adf126..00000000000 --- a/website/content/terminal/econometrics/_index.md +++ /dev/null @@ -1,678 +0,0 @@ ---- -title: Introduction to Econometrics -keywords: "econometrics, statistics, regression, panel data, time series, research, thesis, university" -excerpt: "The Introduction to Econometrics explains how to use the menu" -geekdocCollapseSection: true ---- -The Econometrics menu's purpose is to provide the user the ability to perform statistical research on custom datasets. -The menu allows the user to load in his/her own dataset(s), modify the data by (for example) adding columns or setting -indices, apply statistical tests (e.g. Breusch-Godfrey autocorrelation tests) -as well as OLS regressions and Panel regressions (e.g. Random Effects and Fixed Effects) - -{{< toc >}} - -## Accessing the Econometrics menu - -The Econometrics menu is called upon by typing `econometrics` which opens the following menu: - -![Econometrics Menu OpenBB Terminal](https://user-images.githubusercontent.com/46355364/174588406-7f120cf7-933e-4bef-a7f6-ba0c7c7d5028.png) - -You have the ability to load in your own custom datasets but there is also the option to use example datasets which are used within this guide as well. These datasets can be -found by using the load command and typing `load --examples`. See below: -```` -2022 Jun 20, 04:33 (🦋) /econometrics/ $ load --examples - - Examples from Statsmodels -┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -┃ file name ┃ description ┃ -┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ -│ anes96 │ American National Election Survey 1996 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ cancer │ Breast Cancer Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ ccard │ Bill Greene’s credit scoring data. │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ cancer_china │ Smoking and lung cancer in eight cities in China. │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ co2 │ Mauna Loa Weekly Atmospheric CO2 Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ committee │ First 100 days of the US House of Representatives 1995 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ copper │ World Copper Market 1951-1975 Dataset │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ cpunish │ US Capital Punishment dataset. │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ danish_data │ Danish Money Demand Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ elnino │ El Nino - Sea Surface Temperatures │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ engel │ Engel (1857) food expenditure data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ fair │ Affairs dataset │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ fertility │ World Bank Fertility Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ grunfeld │ Grunfeld (1950) Investment Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ heart │ Transplant Survival Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ interest_inflation │ (West) German interest and inflation rate 1972-1998 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ longley │ Longley dataset │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ macrodata │ United States Macroeconomic data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ modechoice │ Travel Mode Choice │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ nile │ Nile River flows at Ashwan 1871-1970 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ randhie │ RAND Health Insurance Experiment Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ scotland │ Taxation Powers Vote for the Scottish Parliament 1997 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ spector │ Spector and Mazzeo (1980) - Program Effectiveness Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ stackloss │ Stack loss data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ star98 │ Star98 Educational Dataset │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ statecrim │ Statewide Crime Data 2009 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ strikes │ U.S. Strike Duration Data │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ sunspots │ Yearly sunspots data 1700-2008 │ -├────────────────────┼───────────────────────────────────────────────────────────┤ -│ wage_panel │ Veila and M. Verbeek (1998): Whose Wages Do Unions Raise? │ -└────────────────────┴───────────────────────────────────────────────────────────┘ -```` - -As there is a clear difference between time series data, which is 1-dimensional data (e.g. a single company over time) -and panel data, which is 2-dimensional data (e.g. multiple companies over time) both use-cases are provided. - -## Working with Time Series data -To demonstrate the usage of the menu, the longley -dataset is loaded in. This can be done by `load longley` as shown below: - -``` -2022 Jun 20, 04:36 (🦋) /econometrics/ $ load longley - -2022 Jun 20, 04:38 (🦋) /econometrics/ $ ? -╭─────────────────────────────────────────────────────────────────────────────────────────────────── Econometrics ───────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ │ -│ Looking for data in: │ -│ │ -│ /Users/jeroenbouma/Documents/OpenBB Terminal/custom_imports │ -│ │ -│ load load a dataset (also works with StatsModels datasets) │ -│ remove remove one of the loaded datasets │ -│ │ -│ Loaded files and data columns: │ -│ longley : totemp, gnpdefl, gnp, unemp, armed, pop, year │ -│ │ -│ Exploration: │ -│ show show a portion of a loaded dataset │ -│ plot plot data from a dataset │ -│ type change types of the columns or display their types │ -│ desc show descriptive statistics of a dataset │ -│ index set (multi) index based on columns │ -│ clean clean a dataset by filling or dropping NaNs │ -│ add Add columns to dataset with option to use formulas │ -│ delete Delete columns from dataset │ -│ combine Combine columns from different datasets │ -│ rename Rename column from dataset │ -│ export export a processed dataset │ -│ Tests: │ -│ norm perform normality tests on a column of a dataset │ -│ root perform unitroot tests (ADF & KPSS) on a column of a dataset │ -│ granger Granger causality tests on two columns │ -│ coint co-integration test on a multitude of columns │ -│ Regression: │ -│ ols fit a (multi) linear regression model │ -│ panel estimate model based on various regression techniques │ -│ compare compare results of all estimated models │ -│ Regression Tests: │ -│ dwat Durbin-Watson autocorrelation test on the residuals of the regression │ -│ bgod Breusch-Godfrey autocorrelation tests with lags on the residuals of the regression │ -│ bpag Breusch-Pagan heteroscedasticity test on the residuals of the regression │ -│ │ -╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── OpenBB Terminal v1.3.0 (https://openbb.co) ─╯ -``` - -Beneath `Loaded files and data columns` you can find the longley dataset and its columns. You can create an alias for this dataset with the `-a` argument as shown within the ols command. -To see a portion of this dataset, the show command can be used as shown below: - -``` -2022 Jun 20, 04:38 (🦋) /econometrics/ $ show - - Dataset longley | Showing 10 of 16 rows -┏━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┓ -┃ ┃ totemp ┃ gnpdefl ┃ gnp ┃ unemp ┃ armed ┃ pop ┃ year ┃ -┡━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━┩ -│ 0 │ 60323.00 │ 83.00 │ 234289.00 │ 2356.00 │ 1590.00 │ 107608.00 │ 1947.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 1 │ 61122.00 │ 88.50 │ 259426.00 │ 2325.00 │ 1456.00 │ 108632.00 │ 1948.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 2 │ 60171.00 │ 88.20 │ 258054.00 │ 3682.00 │ 1616.00 │ 109773.00 │ 1949.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 3 │ 61187.00 │ 89.50 │ 284599.00 │ 3351.00 │ 1650.00 │ 110929.00 │ 1950.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 4 │ 63221.00 │ 96.20 │ 328975.00 │ 2099.00 │ 3099.00 │ 112075.00 │ 1951.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 5 │ 63639.00 │ 98.10 │ 346999.00 │ 1932.00 │ 3594.00 │ 113270.00 │ 1952.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 6 │ 64989.00 │ 99.00 │ 365385.00 │ 1870.00 │ 3547.00 │ 115094.00 │ 1953.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 7 │ 63761.00 │ 100.00 │ 363112.00 │ 3578.00 │ 3350.00 │ 116219.00 │ 1954.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 8 │ 66019.00 │ 101.20 │ 397469.00 │ 2904.00 │ 3048.00 │ 117388.00 │ 1955.00 │ -├───┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 9 │ 67857.00 │ 104.60 │ 419180.00 │ 2822.00 │ 2857.00 │ 118734.00 │ 1956.00 │ -└───┴──────────┴─────────┴───────────┴─────────┴─────────┴───────────┴─────────┘ -``` - -This can be extended by also showing the descriptive statistics, this can be done with the -desc command and -including the `longley` dataset. This command also allows descriptive statistics for individual columns to be displayed (e.g. `desc longley.totemp`) - -``` -2022 Jun 20, 04:44 (🦋) /econometrics/ $ desc longley - - Statistics for dataset: 'longley' -┏━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━┓ -┃ ┃ totemp ┃ gnpdefl ┃ gnp ┃ unemp ┃ armed ┃ pop ┃ year ┃ -┡━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━┩ -│ count │ 16.00 │ 16.00 │ 16.00 │ 16.00 │ 16.00 │ 16.00 │ 16.00 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ mean │ 65317.00 │ 101.68 │ 387698.44 │ 3193.31 │ 2606.69 │ 117424.00 │ 1954.50 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ std │ 3511.97 │ 10.79 │ 99394.94 │ 934.46 │ 695.92 │ 6956.10 │ 4.76 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ min │ 60171.00 │ 83.00 │ 234289.00 │ 1870.00 │ 1456.00 │ 107608.00 │ 1947.00 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 25% │ 62712.50 │ 94.53 │ 317881.00 │ 2348.25 │ 2298.00 │ 111788.50 │ 1950.75 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 50% │ 65504.00 │ 100.60 │ 381427.00 │ 3143.50 │ 2717.50 │ 116803.50 │ 1954.50 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ 75% │ 68290.50 │ 111.25 │ 454085.50 │ 3842.50 │ 3060.75 │ 122304.00 │ 1958.25 │ -├───────┼──────────┼─────────┼───────────┼─────────┼─────────┼───────────┼─────────┤ -│ max │ 70551.00 │ 116.90 │ 554894.00 │ 4806.00 │ 3594.00 │ 130081.00 │ 1962.00 │ -└───────┴──────────┴─────────┴───────────┴─────────┴─────────┴───────────┴─────────┘ -``` - -It is possible to check for a variety of assumptions, e.g. normality, unit root, granger and co-integration. The commands `norm` and `root` are shown below. -Note that due to the small size of the dataset, many of these tests are not statistically significant. - -``` -2022 Jun 20, 04:49 (🦋) /econometrics/ $ norm longley.gnp - - Normality test from dataset 'longley' of 'gnp' -┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓ -┃ ┃ Kurtosis ┃ Skewness ┃ Jarque-Bera ┃ Shapiro-Wilk ┃ Kolmogorov-Smirnov ┃ -┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩ -│ Statistic │ -1.19 │ 0.05 │ 0.84 │ 0.96 │ 1.00 │ -├───────────┼──────────┼──────────┼─────────────┼──────────────┼────────────────────┤ -│ p-value │ 0.23 │ 0.96 │ 0.66 │ 0.71 │ 0.00 │ -└───────────┴──────────┴──────────┴─────────────┴──────────────┴────────────────────┘ - - -2022 Jun 20, 04:49 (🦋) /econometrics/ $ root longley.pop - -Unitroot from dataset 'longley of 'pop' -┏━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━┓ -┃ ┃ ADF ┃ KPSS ┃ -┡━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━┩ -│ Test Statistic │ 2.35 │ 0.64 │ -├────────────────┼────────┼──────┤ -│ P-Value │ 1.00 │ 0.02 │ -├────────────────┼────────┼──────┤ -│ NLags │ 6.00 │ 2.00 │ -├────────────────┼────────┼──────┤ -│ Nobs │ 9.00 │ 0.00 │ -├────────────────┼────────┼──────┤ -│ ICBest │ 113.05 │ 0.00 │ -└────────────────┴────────┴──────┘ -``` - -The longley dataset is known for the ability to create an OLS regression that results in a -R-squared of 1.0 due to the fact that -the US macroeconomic variables are known to be highly collinear. See the following regression performed with the -ols command: - -``` -2022 Jun 20, 04:56 (🦋) /econometrics/ $ ols -d longley.totemp -i longley.gnpdefl,longley.gnp,longley.unemp,longley.armed,longley.pop,longley.year - OLS Regression Results -======================================================================================= -Dep. Variable: longley.totemp R-squared (uncentered): 1.000 -Model: OLS Adj. R-squared (uncentered): 1.000 -Method: Least Squares F-statistic: 5.052e+04 -Date: Mon, 20 Jun 2022 Prob (F-statistic): 8.20e-22 -Time: 10:56:10 Log-Likelihood: -117.56 -No. Observations: 16 AIC: 247.1 -Df Residuals: 10 BIC: 251.8 -Df Model: 6 -Covariance Type: nonrobust -=================================================================================== - coef std err t P>|t| [0.025 0.975] ------------------------------------------------------------------------------------ -longley.gnpdefl -52.9936 129.545 -0.409 0.691 -341.638 235.650 -longley.gnp 0.0711 0.030 2.356 0.040 0.004 0.138 -longley.unemp -0.4235 0.418 -1.014 0.335 -1.354 0.507 -longley.armed -0.5726 0.279 -2.052 0.067 -1.194 0.049 -longley.pop -0.4142 0.321 -1.289 0.226 -1.130 0.302 -longley.year 48.4179 17.689 2.737 0.021 9.003 87.832 -============================================================================== -Omnibus: 1.443 Durbin-Watson: 1.277 -Prob(Omnibus): 0.486 Jarque-Bera (JB): 0.605 -Skew: 0.476 Prob(JB): 0.739 -Kurtosis: 3.031 Cond. No. 4.56e+05 -============================================================================== - -Notes: -[1] R² is computed without centering (uncentered) since the model does not contain a constant. -[2] Standard Errors assume that the covariance matrix of the errors is correctly specified. -[3] The condition number is large, 4.56e+05. This might indicate that there are -strong multicollinearity or other numerical problems. - -Warnings: -kurtosistest only valid for n>=20 ... continuing anyway, n=16 -``` - -The argument `-d` refers to the dependent variable, in this example `longley.totemp`, and the argument `-i` refers to the -independent variables, in this example this is `longley.gnpdefl,longley.gnp,longley.unemp,longley.armed,longley.pop,longley.year`. - -After running the regression estimation, it is possible to perform tests on the residuals of the model. E.g. for autocorrelation and -heteroscedasity as shown below with the bgod and -bpag commands. - -``` -2022 Jun 20, 05:00 (🦋) /econometrics/ $ bgod - -Breusch-Godfrey autocorrelation test [Lags: 3] -┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓ -┃ ┃ Breusch-Godfrey ┃ -┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩ -│ LM-stat │ 10.35 │ -├──────────┼─────────────────┤ -│ p-value │ 0.02 │ -├──────────┼─────────────────┤ -│ f-stat │ 0.10 │ -├──────────┼─────────────────┤ -│ fp-value │ 0.96 │ -└──────────┴─────────────────┘ - -The result 0.02 indicates no existence of autocorrelation. - -2022 Jun 20, 05:00 (🦋) /econometrics/ $ bpag - -Breusch-Pagan heteroscedasticity test -┏━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ -┃ ┃ Breusch-Pagan ┃ -┡━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ -│ lm-stat │ 7.90 │ -├──────────┼───────────────┤ -│ p-value │ 0.16 │ -├──────────┼───────────────┤ -│ f-stat │ 1.63 │ -├──────────┼───────────────┤ -│ fp-value │ 0.24 │ -└──────────┴───────────────┘ - -The result 0.16 indicates the existence of heteroscedasticity. Consider taking the log or a rate for the dependent variable. -``` - -## Working with Panel data -Within the examples of `load --examples` there is one panel dataset available named `wage_panel`. This is a dataset from the -paper by Vella and M. Verbeek (1998), “Whose Wages Do Unions Raise? A Dynamic Model of Unionism and Wage Rate Determination for Young Men,” -Journal of Applied Econometrics 13, 163-183. This is a well-known dataset also used within Chapter 14 of Introduction to Econometrics by Jeffrey Wooldridge. - -Here, the dataset is loaded in and an alias is used by using the `-a` argument. The available columns are displayed under `Loaded files and data columns`. - -``` -2022 Jun 20, 05:13 (🦋) /econometrics/ $ load wage_panel -a wp - -2022 Jun 20, 05:13 (🦋) /econometrics/ $ ? -╭─────────────────────────────────────────────────────────────────────────────────────────────────── Econometrics ───────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ │ -│ Looking for data in: │ -│ │ -│ /Users/jeroenbouma/Documents/OpenBB Terminal/custom_imports │ -│ │ -│ load load a dataset (also works with StatsModels datasets) │ -│ remove remove one of the loaded datasets │ -│ │ -│ Loaded files and data columns: │ -│ wp : nr, year, black, exper, hisp, hours, married, educ, union, lwage, expersq, occupation │ -│ │ -│ Exploration: │ -│ show show a portion of a loaded dataset │ -│ plot plot data from a dataset │ -│ type change types of the columns or display their types │ -│ desc show descriptive statistics of a dataset │ -│ index set (multi) index based on columns │ -│ clean clean a dataset by filling or dropping NaNs │ -│ add Add columns to dataset with option to use formulas │ -│ delete Delete columns from dataset │ -│ combine Combine columns from different datasets │ -│ rename Rename column from dataset │ -│ export export a processed dataset │ -│ Tests: │ -│ norm perform normality tests on a column of a dataset │ -│ root perform unitroot tests (ADF & KPSS) on a column of a dataset │ -│ granger Granger causality tests on two columns │ -│ coint co-integration test on a multitude of columns │ -│ Regression: │ -│ ols fit a (multi) linear regression model │ -│ panel estimate model based on various regression techniques │ -│ compare compare results of all estimated models │ -│ Regression Tests: │ -│ dwat Durbin-Watson autocorrelation test on the residuals of the regression │ -│ bgod Breusch-Godfrey autocorrelation tests with lags on the residuals of the regression │ -│ bpag Breusch-Pagan heteroscedasticity test on the residuals of the regression │ -│ │ -╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── OpenBB Terminal v1.3.0 (https://openbb.co) ─╯ -``` - -To run panel regressions with panel it is important to define both _entity_ (e.g. company) and _time_ (e.g. year). Trying to -run the `panel` command would right now result in the following: -``` -2022 Jun 20, 05:17 (🦋) /econometrics/ $ panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -The column 'lwage' from the dataset 'wp' is not a MultiIndex. Make sure you set the index correctly with the index (e.g. index wp -i lwage,nr) command where the first level is the entity (e.g. Tesla Inc.) and the second level the date (e.g. 2021-03-31) -``` - -To see the effect of defining a `MultiIndex`, first a portion of the data is shown with the show command as seen below: - -``` -2022 Jun 20, 05:22 (🦋) /econometrics/ $ show - - Dataset wp | Showing 10 of 4360 rows -┏━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ ┃ nr ┃ year ┃ black ┃ exper ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃ -┡━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ -│ 0 │ 13.00 │ 1980.00 │ 0.00 │ 1.00 │ 0.00 │ 2672.00 │ 0.00 │ 14.00 │ 0.00 │ 1.20 │ 1.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 1 │ 13.00 │ 1981.00 │ 0.00 │ 2.00 │ 0.00 │ 2320.00 │ 0.00 │ 14.00 │ 1.00 │ 1.85 │ 4.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 2 │ 13.00 │ 1982.00 │ 0.00 │ 3.00 │ 0.00 │ 2940.00 │ 0.00 │ 14.00 │ 0.00 │ 1.34 │ 9.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 3 │ 13.00 │ 1983.00 │ 0.00 │ 4.00 │ 0.00 │ 2960.00 │ 0.00 │ 14.00 │ 0.00 │ 1.43 │ 16.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 4 │ 13.00 │ 1984.00 │ 0.00 │ 5.00 │ 0.00 │ 3071.00 │ 0.00 │ 14.00 │ 0.00 │ 1.57 │ 25.00 │ 5.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 5 │ 13.00 │ 1985.00 │ 0.00 │ 6.00 │ 0.00 │ 2864.00 │ 0.00 │ 14.00 │ 0.00 │ 1.70 │ 36.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 6 │ 13.00 │ 1986.00 │ 0.00 │ 7.00 │ 0.00 │ 2994.00 │ 0.00 │ 14.00 │ 0.00 │ -0.72 │ 49.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 7 │ 13.00 │ 1987.00 │ 0.00 │ 8.00 │ 0.00 │ 2640.00 │ 0.00 │ 14.00 │ 0.00 │ 1.67 │ 64.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 8 │ 17.00 │ 1980.00 │ 0.00 │ 4.00 │ 0.00 │ 2484.00 │ 0.00 │ 13.00 │ 0.00 │ 1.68 │ 16.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 9 │ 17.00 │ 1981.00 │ 0.00 │ 5.00 │ 0.00 │ 2804.00 │ 0.00 │ 13.00 │ 0.00 │ 1.52 │ 25.00 │ 2.00 │ -└───┴───────┴─────────┴───────┴───────┴──────┴─────────┴─────────┴───────┴───────┴───────┴─────────┴────────────┘ -``` - -Within this dataset the `nr` and `year` columns define the _entity_ and _time_. To allow panel regression estimations, it is important that this is -defined accordingly with the index command. This can be done -with the following (and showing the changed dataset afterwards): - -``` -2022 Jun 20, 05:22 (🦋) /econometrics/ $ index wp -i nr,year -Successfully updated 'wp' index to be 'nr, year' - -2022 Jun 20, 05:27 (🦋) /econometrics/ $ show - - Dataset wp | Showing 10 of 4360 rows -┏━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ ┃ nr ┃ year ┃ black ┃ exper ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃ -┡━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ -│ (13, 1980) │ 13.00 │ 1980.00 │ 0.00 │ 1.00 │ 0.00 │ 2672.00 │ 0.00 │ 14.00 │ 0.00 │ 1.20 │ 1.00 │ 9.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1981) │ 13.00 │ 1981.00 │ 0.00 │ 2.00 │ 0.00 │ 2320.00 │ 0.00 │ 14.00 │ 1.00 │ 1.85 │ 4.00 │ 9.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1982) │ 13.00 │ 1982.00 │ 0.00 │ 3.00 │ 0.00 │ 2940.00 │ 0.00 │ 14.00 │ 0.00 │ 1.34 │ 9.00 │ 9.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1983) │ 13.00 │ 1983.00 │ 0.00 │ 4.00 │ 0.00 │ 2960.00 │ 0.00 │ 14.00 │ 0.00 │ 1.43 │ 16.00 │ 9.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1984) │ 13.00 │ 1984.00 │ 0.00 │ 5.00 │ 0.00 │ 3071.00 │ 0.00 │ 14.00 │ 0.00 │ 1.57 │ 25.00 │ 5.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1985) │ 13.00 │ 1985.00 │ 0.00 │ 6.00 │ 0.00 │ 2864.00 │ 0.00 │ 14.00 │ 0.00 │ 1.70 │ 36.00 │ 2.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1986) │ 13.00 │ 1986.00 │ 0.00 │ 7.00 │ 0.00 │ 2994.00 │ 0.00 │ 14.00 │ 0.00 │ -0.72 │ 49.00 │ 2.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (13, 1987) │ 13.00 │ 1987.00 │ 0.00 │ 8.00 │ 0.00 │ 2640.00 │ 0.00 │ 14.00 │ 0.00 │ 1.67 │ 64.00 │ 2.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (17, 1980) │ 17.00 │ 1980.00 │ 0.00 │ 4.00 │ 0.00 │ 2484.00 │ 0.00 │ 13.00 │ 0.00 │ 1.68 │ 16.00 │ 2.00 │ -├────────────┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ (17, 1981) │ 17.00 │ 1981.00 │ 0.00 │ 5.00 │ 0.00 │ 2804.00 │ 0.00 │ 13.00 │ 0.00 │ 1.52 │ 25.00 │ 2.00 │ -└────────────┴───────┴─────────┴───────┴───────┴──────┴─────────┴─────────┴───────┴───────┴───────┴─────────┴────────────┘ -``` - -The columns `nr` and `year` still exists within the dataset and could have been dropped with the `-d` argument if desired. However, in this case the `year` column is relevant for -generating time effects in Pooled OLS, Fixed Effects and Random Effects estimations. To be able to do this, the type of -the year column needs to be changed accordingly. The type of the columns can be displayed with the type command as follows: - -``` -2022 Jun 20, 05:27 (🦋) /econometrics/ $ type wp - - wp -┏━━━━━━━━━━━━┳━━━━━━━━━┓ -┃ column ┃ dtype ┃ -┡━━━━━━━━━━━━╇━━━━━━━━━┩ -│ nr │ int64 │ -├────────────┼─────────┤ -│ year │ int64 │ -├────────────┼─────────┤ -│ black │ int64 │ -├────────────┼─────────┤ -│ exper │ int64 │ -├────────────┼─────────┤ -│ hisp │ int64 │ -├────────────┼─────────┤ -│ hours │ int64 │ -├────────────┼─────────┤ -│ married │ int64 │ -├────────────┼─────────┤ -│ educ │ int64 │ -├────────────┼─────────┤ -│ union │ int64 │ -├────────────┼─────────┤ -│ lwage │ float64 │ -├────────────┼─────────┤ -│ expersq │ int64 │ -├────────────┼─────────┤ -│ occupation │ int64 │ -└────────────┴─────────┘ -``` - -The dtype `int64` refers to numbers without decimals (e.g. 1, 2, 3) while the dtype `float64` refers to numbers _with_ decimals (e.g. 1.5, 10.23, 0.01). -There are a few options within the `type` command: -- `int`: refers to integers, the same as `int64`. -- `float`: refers to floats, the same as `float64`. -- `str`: refers to words, e.g. 'New York'. -- `bool`: refers to booleans, these are either `True` or `False`, commonly depicted as 1 or 0 respectively and often also referred to as dummy variables. -- `category`: refers to categorical data, usually a limited selection of variables e.g. a list of countries or years. -- `date`: refers to dates and converts the relevant column to dates. - -For the panel regressions, it can be beneficial to see time effects from `year`. Therefore, the type of the `year` column should be altered to `category`. -This can be done with the following command: - -``` -2022 Jun 20, 05:33 (🦋) /econometrics/ $ type wp.year --format category -Update 'wp.year' with type 'category' - -2022 Jun 20, 05:40 (🦋) /econometrics/ $ type - - wp -┏━━━━━━━━━━━━┳━━━━━━━━━━┓ -┃ column ┃ dtype ┃ -┡━━━━━━━━━━━━╇━━━━━━━━━━┩ -│ nr │ int64 │ -├────────────┼──────────┤ -│ year │ category │ -├────────────┼──────────┤ -│ black │ int64 │ -├────────────┼──────────┤ -│ exper │ int64 │ -├────────────┼──────────┤ -│ hisp │ int64 │ -├────────────┼──────────┤ -│ hours │ int64 │ -├────────────┼──────────┤ -│ married │ int64 │ -├────────────┼──────────┤ -│ educ │ int64 │ -├────────────┼──────────┤ -│ union │ int64 │ -├────────────┼──────────┤ -│ lwage │ float64 │ -├────────────┼──────────┤ -│ expersq │ int64 │ -├────────────┼──────────┤ -│ occupation │ int64 │ -└────────────┴──────────┘ -``` - -The dataset is now properly configured to allow for proper panel regressions. This can be done with the panel command. -On the panel page all regressions are performed that are available within the OpenBB Terminal. This can be either: -- `-r pols` (Pooled OLS) -- `-r re` (Random Effects) -- `-r bols` (Between OLS) -- `-r fe` (Fixed Effects) -- `-r fdols` (First Difference OLS). - -As an example, a **Random Effects** regression is performed. Here, the column after the `-d` argument refers to the dependent variable and the columns after the `-i` argument refer to the independent variables. - -``` -2022 Jun 20, 05:51 (🦋) /econometrics/ $ panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -r re - - - RandomEffects Estimation Summary -================================================================================ -Dep. Variable: wp.lwage R-squared: 0.1806 -Estimator: RandomEffects R-squared (Between): 0.1853 -No. Observations: 4360 R-squared (Within): 0.1799 -Date: Mon, Jun 20 2022 R-squared (Overall): 0.1828 -Time: 11:52:47 Log-likelihood -1622.5 -Cov. Estimator: Unadjusted - F-statistic: 68.409 -Entities: 545 P-value 0.0000 -Avg Obs: 8.0000 Distribution: F(14,4345) -Min Obs: 8.0000 -Max Obs: 8.0000 F-statistic (robust): 68.409 - P-value 0.0000 -Time periods: 8 Distribution: F(14,4345) -Avg Obs: 545.00 -Min Obs: 545.00 -Max Obs: 545.00 - - Parameter Estimates -================================================================================ - Parameter Std. Err. T-stat P-value Lower CI Upper CI --------------------------------------------------------------------------------- -const 0.0234 0.1514 0.1546 0.8771 -0.2735 0.3203 -wp.black -0.1394 0.0480 -2.9054 0.0037 -0.2334 -0.0453 -wp.hisp 0.0217 0.0428 0.5078 0.6116 -0.0622 0.1057 -wp.exper 0.1058 0.0154 6.8706 0.0000 0.0756 0.1361 -wp.expersq -0.0047 0.0007 -6.8623 0.0000 -0.0061 -0.0034 -wp.married 0.0638 0.0168 3.8035 0.0001 0.0309 0.0967 -wp.educ 0.0919 0.0107 8.5744 0.0000 0.0709 0.1129 -wp.union 0.1059 0.0179 5.9289 0.0000 0.0709 0.1409 -wp.year.1981 0.0404 0.0247 1.6362 0.1019 -0.0080 0.0889 -wp.year.1982 0.0309 0.0324 0.9519 0.3412 -0.0327 0.0944 -wp.year.1983 0.0202 0.0417 0.4840 0.6284 -0.0616 0.1020 -wp.year.1984 0.0430 0.0515 0.8350 0.4037 -0.0580 0.1440 -wp.year.1985 0.0577 0.0615 0.9383 0.3482 -0.0629 0.1782 -wp.year.1986 0.0918 0.0716 1.2834 0.1994 -0.0485 0.2321 -wp.year.1987 0.1348 0.0817 1.6504 0.0989 -0.0253 0.2950 -================================================================================ -``` - -## Scripts & Routines -Doing research both as a student or professor for a university or as a professional often requires the findings to be easily -replicated. Furthermore, as many steps could be required it can be very beneficial to have the ability to make small -adjustments without needing to re-do every single step again. This is where `.openbb` files play an important role. - -By going to the main menu as depicted below, the `exe` command can be used. With this command you can run `.openbb` scripts -that automatically run a set of commands similarly to that of the Stata do-files and SPSS syntax files. These scripts -are located where the application is located inside the `routines` folder. - -![Econometrics Menu Routine Exe OpenBB Terminal](https://user-images.githubusercontent.com/46355364/174588513-5c52ea20-548a-4c2b-a4c1-6054e2d71786.png) - -This demo file has the following contents: - -```txt -# Go into the econometrics context -econometrics - -# Load the wage_panel dataset and include an alias -load wage_panel -a wp - -# Set the MultiIndex, allowing for Panel regressions to be performed -index wp -i nr,year - -# Change the type of the year column so it can be included as time effects within the regressions -type wp.year --format category - -# Perform a Pooled OLS, Random Effects and Fixed Effects estimation -panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -panel -d wp.lwage -i wp.black,wp.hisp,wp.exper,wp.expersq,wp.married,wp.educ,wp.union,wp.year -r re -panel -d wp.lwage -i wp.expersq,wp.union,wp.married,wp.year -r fe - -# Compare the results obtained from these regressions -compare -``` - -Everything after the `#` _on the same line_ refers to comments and will not be executed. All other commands will be. This -ultimately leads to a comparison of three models and takes less than a few seconds to execute. -See below for the comparison result, obtained via the compare command: - -```txt -022 Jun 20, 06:52 (🦋) /econometrics/ $ compare - Model Comparison -=============================================================== - POLS RE FE ---------------------------------------------------------------- -Dep. Variable wp.lwage wp.lwage wp.lwage -Estimator PooledOLS RandomEffects PanelOLS -No. Observations 4360 4360 4360 -Cov. Est. Unadjusted Unadjusted Unadjusted -R-squared 0.1893 0.1806 0.1246 -R-Squared (Within) 0.1692 0.1799 0.1646 -R-Squared (Between) 0.2066 0.1853 0.0902 -R-Squared (Overall) 0.1893 0.1828 0.1246 -F-statistic 72.459 68.409 61.920 -P-value (F-stat) 0.0000 0.0000 0.0000 -===================== ============ =============== ============ -const 0.0921 0.0234 1.3454 - (1.1761) (0.1546) (60.606) -wp.black -0.1392 -0.1394 - (-5.9049) (-2.9054) -wp.hisp 0.0160 0.0217 - (0.7703) (0.5078) -wp.exper 0.0672 0.1058 - (4.9095) (6.8706) -wp.expersq -0.0024 -0.0047 -0.0021 - (-2.9413) (-6.8623) (-7.5081) -wp.married 0.1083 0.0638 0.1521 - (6.8997) (3.8035) (9.5417) -wp.educ 0.0913 0.0919 - (17.442) (8.5744) -wp.union 0.1825 0.1059 0.1768 - (10.635) (5.9289) (10.032) -wp.year.1981 0.0583 0.0404 0.1187 - (1.9214) (1.6362) (3.9144) -wp.year.1982 0.0628 0.0309 0.1843 - (1.8900) (0.9519) (6.0168) -wp.year.1983 0.0620 0.0202 0.2431 - (1.6915) (0.4840) (7.7581) -wp.year.1984 0.0905 0.0430 0.3322 - (2.2566) (0.8350) (10.236) -wp.year.1985 0.1092 0.0577 0.4112 - (2.5200) (0.9383) (12.048) -wp.year.1986 0.1420 0.0918 0.5039 - (3.0580) (1.2834) (13.806) -wp.year.1987 0.1738 0.1348 0.5952 - (3.5165) (1.6504) (15.026) ---------------------------------------------------------------- - -T-stats reported in parentheses -``` diff --git a/website/content/terminal/econometrics/add/_index.md b/website/content/terminal/econometrics/add/_index.md deleted file mode 100644 index b5bd9a7b017..00000000000 --- a/website/content/terminal/econometrics/add/_index.md +++ /dev/null @@ -1,85 +0,0 @@ -``` -usage: add [-n NEWDATASETCOL] [-b BASEDATASETCOL] [-s {div,mul,add,sub,mod,pow,>,<,>=,<=,==}] [-c CRITERIAORDATASETCOL] [-h] -``` - -Can be used to create new columns for your dataset. It can use any operator and allows for creating specific -dummy variables or ratios. For example: `add -n wp.after_1990 -b wp.year -s > -c 1990` will create a -new column with the name 'after_1990' which is True when the year is above 1990 and False if the year is below or equal -to 1990. - -``` -optional arguments: - -n NEWDATASETCOL, --newdatasetcol NEWDATASETCOL - New dataset column to be added with format: dataset.column (default: None) - -b BASEDATASETCOL, --basedatasetcol BASEDATASETCOL - Base dataset column to be used as base with format: dataset.column (default: None) - -s {div,mul,add,sub,mod,pow,>,<,>=,<=,==}, --sign {div,mul,add,sub,mod,pow,>,<,>=,<=,==} - Sign to be applied to the base dataset column (default: None) - -c CRITERIAORDATASETCOL, --criteriaordatasetcol CRITERIAORDATASETCOL - Either dataset column to be applied on top of base dataset or criteria (default: None) - -h, --help show this help message (default: False) - -``` - -Example: -``` -2022 May 31, 04:50 (🦋) /econometrics/ $ load wage_panel -a wp - -2022 May 31, 04:49 (🦋) /econometrics/ $ add -n wp.after_1990 -b wp.year -s > -c 1990 - -2022 May 31, 04:49 (🦋) /econometrics/ $ show wp - - Dataset wp | Showing 10 of 4360 rows -┏━━━┳━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ ┃ nr ┃ year ┃ black ┃ exper ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃ after_1990 ┃ -┡━━━╇━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ 0 │ 13 │ 1980 │ 0 │ 1 │ 0 │ 2672 │ 0 │ 14 │ 0 │ 1.20 │ 1 │ 9 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 1 │ 13 │ 1981 │ 0 │ 2 │ 0 │ 2320 │ 0 │ 14 │ 1 │ 1.85 │ 4 │ 9 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 2 │ 13 │ 1982 │ 0 │ 3 │ 0 │ 2940 │ 0 │ 14 │ 0 │ 1.34 │ 9 │ 9 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 3 │ 13 │ 1983 │ 0 │ 4 │ 0 │ 2960 │ 0 │ 14 │ 0 │ 1.43 │ 16 │ 9 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 4 │ 13 │ 1984 │ 0 │ 5 │ 0 │ 3071 │ 0 │ 14 │ 0 │ 1.57 │ 25 │ 5 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 5 │ 13 │ 1985 │ 0 │ 6 │ 0 │ 2864 │ 0 │ 14 │ 0 │ 1.70 │ 36 │ 2 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 6 │ 13 │ 1986 │ 0 │ 7 │ 0 │ 2994 │ 0 │ 14 │ 0 │ -0.72 │ 49 │ 2 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 7 │ 13 │ 1987 │ 0 │ 8 │ 0 │ 2640 │ 0 │ 14 │ 0 │ 1.67 │ 64 │ 2 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 8 │ 17 │ 1980 │ 0 │ 4 │ 0 │ 2484 │ 0 │ 13 │ 0 │ 1.68 │ 16 │ 2 │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┤ -│ 9 │ 17 │ 1981 │ 0 │ 5 │ 0 │ 2804 │ 0 │ 13 │ 0 │ 1.52 │ 25 │ 2 │ False │ -└───┴────┴──────┴───────┴───────┴──────┴───────┴─────────┴──────┴───────┴───────┴─────────┴────────────┴────────────┘ - -2022 May 31, 04:49 (🦋) /econometrics/ $ add -n wp.after_1985 -b wp.year -s > -c 1985 - -2022 May 31, 04:50 (🦋) /econometrics/ $ show wp - - Dataset wp | Showing 10 of 4360 rows -┏━━━┳━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ ┃ nr ┃ year ┃ black ┃ exper ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃ after_1990 ┃ after_1985 ┃ -┡━━━╇━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩ -│ 0 │ 13 │ 1980 │ 0 │ 1 │ 0 │ 2672 │ 0 │ 14 │ 0 │ 1.20 │ 1 │ 9 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 1 │ 13 │ 1981 │ 0 │ 2 │ 0 │ 2320 │ 0 │ 14 │ 1 │ 1.85 │ 4 │ 9 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 2 │ 13 │ 1982 │ 0 │ 3 │ 0 │ 2940 │ 0 │ 14 │ 0 │ 1.34 │ 9 │ 9 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 3 │ 13 │ 1983 │ 0 │ 4 │ 0 │ 2960 │ 0 │ 14 │ 0 │ 1.43 │ 16 │ 9 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 4 │ 13 │ 1984 │ 0 │ 5 │ 0 │ 3071 │ 0 │ 14 │ 0 │ 1.57 │ 25 │ 5 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 5 │ 13 │ 1985 │ 0 │ 6 │ 0 │ 2864 │ 0 │ 14 │ 0 │ 1.70 │ 36 │ 2 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 6 │ 13 │ 1986 │ 0 │ 7 │ 0 │ 2994 │ 0 │ 14 │ 0 │ -0.72 │ 49 │ 2 │ False │ True │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 7 │ 13 │ 1987 │ 0 │ 8 │ 0 │ 2640 │ 0 │ 14 │ 0 │ 1.67 │ 64 │ 2 │ False │ True │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 8 │ 17 │ 1980 │ 0 │ 4 │ 0 │ 2484 │ 0 │ 13 │ 0 │ 1.68 │ 16 │ 2 │ False │ False │ -├───┼────┼──────┼───────┼───────┼──────┼───────┼─────────┼──────┼───────┼───────┼─────────┼────────────┼────────────┼────────────┤ -│ 9 │ 17 │ 1981 │ 0 │ 5 │ 0 │ 2804 │ 0 │ 13 │ 0 │ 1.52 │ 25 │ 2 │ False │ False │ -└───┴────┴──────┴───────┴───────┴──────┴───────┴─────────┴──────┴───────┴───────┴─────────┴────────────┴────────────┴────────────┘ -``` \ No newline at end of file diff --git a/website/content/terminal/econometrics/bgod/_index.md b/website/content/terminal/econometrics/bgod/_index.md deleted file mode 100644 index 181e50c4d52..00000000000 --- a/website/content/terminal/econometrics/bgod/_index.md +++ /dev/null @@ -1,72 +0,0 @@ -``` -usage: bgod [-l LAGS] [-h] [--export {csv,json,xlsx}] -``` - -Show Breusch-Godfrey autocorrelation test results. Needs OLS to be run in advance with independent and dependent variables - -``` -optional arguments: - -l LAGS, --lags LAGS The lags for the Breusch-Godfrey test (default: 3) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Jun 01, 06:29 (🦋) /econometrics/ $ load longley -a ll - -2022 Jun 01, 06:29 (🦋) /econometrics/ $ ols -d ll.totemp -i ll.gnpdefl,ll.gnp,ll.unemp,ll.armed,ll.pop,ll.year - OLS Regression Results -======================================================================================= -Dep. Variable: ll.totemp R-squared (uncentered): 1.000 -Model: OLS Adj. R-squared (uncentered): 1.000 -Method: Least Squares F-statistic: 5.052e+04 -Date: Wed, 01 Jun 2022 Prob (F-statistic): 8.20e-22 -Time: 12:29:44 Log-Likelihood: -117.56 -No. Observations: 16 AIC: 247.1 -Df Residuals: 10 BIC: 251.8 -Df Model: 6 -Covariance Type: nonrobust -============================================================================== - coef std err t P>|t| [0.025 0.975] ------------------------------------------------------------------------------- -ll.gnpdefl -52.9936 129.545 -0.409 0.691 -341.638 235.650 -ll.gnp 0.0711 0.030 2.356 0.040 0.004 0.138 -ll.unemp -0.4235 0.418 -1.014 0.335 -1.354 0.507 -ll.armed -0.5726 0.279 -2.052 0.067 -1.194 0.049 -ll.pop -0.4142 0.321 -1.289 0.226 -1.130 0.302 -ll.year 48.4179 17.689 2.737 0.021 9.003 87.832 -============================================================================== -Omnibus: 1.443 Durbin-Watson: 1.277 -Prob(Omnibus): 0.486 Jarque-Bera (JB): 0.605 -Skew: 0.476 Prob(JB): 0.739 -Kurtosis: 3.031 Cond. No. 4.56e+05 -============================================================================== - -Notes: -[1] R² is computed without centering (uncentered) since the model does not contain a constant. -[2] Standard Errors assume that the covariance matrix of the errors is correctly specified. -[3] The condition number is large, 4.56e+05. This might indicate that there are -strong multicollinearity or other numerical problems. - -Warnings: -kurtosistest only valid for n>=20 ... continuing anyway, n=16 - -2022 Jun 01, 06:29 (🦋) /econometrics/ $ bgod - -Breusch-Godfrey autocorrelation test [Lags: 3] -┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓ -┃ ┃ Breusch-Godfrey ┃ -┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩ -│ LM-stat │ 10.35 │ -├──────────┼─────────────────┤ -│ p-value │ 0.02 │ -├──────────┼─────────────────┤ -│ f-stat │ 0.10 │ -├──────────┼─────────────────┤ -│ fp-value │ 0.96 │ -└──────────┴─────────────────┘ - -The result 0.02 indicates no existence of autocorrelation. -``` diff --git a/website/content/terminal/econometrics/bpag/_index.md b/website/content/terminal/econometrics/bpag/_index.md deleted file mode 100644 index 14333d47387..00000000000 --- a/website/content/terminal/econometrics/bpag/_index.md +++ /dev/null @@ -1,74 +0,0 @@ -``` -usage: dwat [-h] [--export {csv,json,xlsx}] -``` - -Show Breusch-Pagan heteroscedasticity test results. Needs OLS to be run in advance with independent and dependent variables - -In statistics, heteroskedasticity (or heteroscedasticity) happens when the standard deviations of a predicted variable, monitored over different values of an independent variable or as related to prior time periods, are non-constant. With heteroskedasticity, the tell-tale sign upon visual inspection of the residual errors is that they will tend to fan out over time. [Source: Investopedia] - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) - -``` - -Example: -``` -2022 Jun 01, 06:29 (🦋) /econometrics/ $ load longley -a ll - -2022 Jun 01, 06:29 (🦋) /econometrics/ $ ols -d ll.totemp -i ll.gnpdefl,ll.gnp,ll.unemp,ll.armed,ll.pop,ll.year - OLS Regression Results -======================================================================================= -Dep. Variable: ll.totemp R-squared (uncentered): 1.000 -Model: OLS Adj. R-squared (uncentered): 1.000 -Method: Least Squares F-statistic: 5.052e+04 -Date: Wed, 01 Jun 2022 Prob (F-statistic): 8.20e-22 -Time: 12:29:44 Log-Likelihood: -117.56 -No. Observations: 16 AIC: 247.1 -Df Residuals: 10 BIC: 251.8 -Df Model: 6 -Covariance Type: nonrobust -============================================================================== - coef std err t P>|t| [0.025 0.975] ------------------------------------------------------------------------------- -ll.gnpdefl -52.9936 129.545 -0.409 0.691 -341.638 235.650 -ll.gnp 0.0711 0.030 2.356 0.040 0.004 0.138 -ll.unemp -0.4235 0.418 -1.014 0.335 -1.354 0.507 -ll.armed -0.5726 0.279 -2.052 0.067 -1.194 0.049 -ll.pop -0.4142 0.321 -1.289 0.226 -1.130 0.302 -ll.year 48.4179 17.689 2.737 0.021 9.003 87.832 -============================================================================== -Omnibus: 1.443 Durbin-Watson: 1.277 -Prob(Omnibus): 0.486 Jarque-Bera (JB): 0.605 -Skew: 0.476 Prob(JB): 0.739 -Kurtosis: 3.031 Cond. No. 4.56e+05 -============================================================================== - -Notes: -[1] R² is computed without centering (uncentered) since the model does not contain a constant. -[2] Standard Errors assume that the covariance matrix of the errors is correctly specified. -[3] The condition number is large, 4.56e+05. This might indicate that there are -strong multicollinearity or other numerical problems. - -Warnings: -kurtosistest only valid for n>=20 ... continuing anyway, n=16 - -2022 Jun 01, 06:30 (🦋) /econometrics/ $ bpag - -Breusch-Pagan heteroscedasticity test -┏━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ -┃ ┃ Breusch-Pagan ┃ -┡━━━━━━━━━━╇━━━━━━━━━━━━━━━┩ -│ lm-stat │ 7.90 │ -├──────────┼───────────────┤ -│ p-value │ 0.16 │ -├──────────┼───────────────┤ -│ f-stat │ 1.63 │ -├──────────┼───────────────┤ -│ fp-value │ 0.24 │ -└──────────┴───────────────┘ - -The result 0.16 indicates the existence of heteroscedasticity. Consider taking the log or a rate for the dependent variable. -``` diff --git a/website/content/terminal/econometrics/clean/_index.md b/website/content/terminal/econometrics/clean/_index.md deleted file mode 100644 index 46db35afa16..00000000000 --- a/website/content/terminal/econometrics/clean/_index.md +++ /dev/null @@ -1,108 +0,0 @@ -``` -usage: clean [-n NAME] [--fill {rfill,cfill,rbfill,cbfill,rffill,bffill}] [-d {rdrop,cdrop}] [-l LIMIT] [-h] -``` - -Clean a dataset by filling and/or dropping NaN values. - -``` -optional arguments: - -n NAME, --name NAME The name of the dataset you want to clean up (default: None) - --fill {rfill,cfill,rbfill,cbfill,rffill,bffill} - The method of filling NaNs. This has options to fill rows (rfill, rbfill, rffill) or fill columns (cfill, cbfill, cffill). Furthermore, it has the option to forward fill and backward fill (up to --limit) which - refer to how many rows/columns can be set equal to the last non-NaN value (default: ) - -d {rdrop,cdrop}, --drop {rdrop,cdrop} - The method of dropping NaNs. This either has the option rdrop (drop rows that contain NaNs) or cdrop (drop columns that contain NaNs) (default: ) - -l LIMIT, --limit LIMIT - The max amount of columns/rows backward filled or forward filled that have NaNs or the max amount of columns/rows that have NaNs before being dropped. (default: 5) - -h, --help show this help message (default: False) -``` - -Example: - -```txt -2022 Feb 24, 04:58 (🦋) /econometrics/ $ show thesis - thesis -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ -┃ ┃ current_assets ┃ assets ┃ debt ┃ depr_amor ┃ income ┃ current_liabilities ┃ revenue ┃ equity ┃ interest_expense ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ -│ ('AAR Corp', Timestamp('2016-01-01 00:00:00')) │ 970.70 │ 1522.00 │ 160.00 │ 18.50 │ 9.90 │ 359.70 │ 412.10 │ 858.30 │ 1.70 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-04-01 00:00:00')) │ 873.10 │ 1442.10 │ 136.10 │ 17.80 │ 11.80 │ 329.00 │ 468.60 │ 865.80 │ 1.20 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-07-01 00:00:00')) │ 849.40 │ 1427.00 │ 142.80 │ nan │ 9.90 │ 314.40 │ 404.80 │ 858.50 │ 1.30 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-10-01 00:00:00')) │ 901.80 │ 1486.60 │ 154.10 │ nan │ 11.40 │ 350.90 │ 328.30 │ 872.40 │ 1.10 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-01-01 00:00:00')) │ 893.10 │ 1502.10 │ 168.70 │ nan │ 14.40 │ 342.80 │ 407.20 │ 885.70 │ 1.40 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-04-01 00:00:00')) │ 888.50 │ 1504.10 │ 155.30 │ nan │ 16.30 │ 335.10 │ 450.50 │ 914.20 │ 1.50 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-07-01 00:00:00')) │ 904.70 │ 1531.70 │ 189.00 │ 10.20 │ 11.00 │ 312.10 │ 397.90 │ 924.70 │ 1.70 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-10-01 00:00:00')) │ 892.20 │ 1544.30 │ 215.80 │ 10.60 │ 13.30 │ 336.50 │ 420.60 │ 906.50 │ 1.90 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-01-01 00:00:00')) │ 933.60 │ 1512.20 │ 194.30 │ 10.60 │ 31.30 │ 326.60 │ 456.30 │ 915.20 │ 2.20 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-04-01 00:00:00')) │ 942.70 │ 1524.70 │ 177.20 │ 9.10 │ 18.10 │ 333.30 │ 473.50 │ 936.30 │ 2.20 │ -└────────────────────────────────────────────────┴────────────────┴─────────┴────────┴───────────┴────────┴─────────────────────┴─────────┴────────┴──────────────────┘ -``` - -``` -2022 Feb 24, 04:58 (🦋) /econometrics/ $ clean thesis --fill rfill - -2022 Feb 24, 04:59 (🦋) /econometrics/ $ show thesis - thesis -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ -┃ ┃ current_assets ┃ assets ┃ debt ┃ depr_amor ┃ income ┃ current_liabilities ┃ revenue ┃ equity ┃ interest_expense ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ -│ ('AAR Corp', Timestamp('2016-01-01 00:00:00')) │ 970.70 │ 1522.00 │ 160.00 │ 18.50 │ 9.90 │ 359.70 │ 412.10 │ 858.30 │ 1.70 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-04-01 00:00:00')) │ 873.10 │ 1442.10 │ 136.10 │ 17.80 │ 11.80 │ 329.00 │ 468.60 │ 865.80 │ 1.20 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-07-01 00:00:00')) │ 849.40 │ 1427.00 │ 142.80 │ 0.00 │ 9.90 │ 314.40 │ 404.80 │ 858.50 │ 1.30 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-10-01 00:00:00')) │ 901.80 │ 1486.60 │ 154.10 │ 0.00 │ 11.40 │ 350.90 │ 328.30 │ 872.40 │ 1.10 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-01-01 00:00:00')) │ 893.10 │ 1502.10 │ 168.70 │ 0.00 │ 14.40 │ 342.80 │ 407.20 │ 885.70 │ 1.40 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-04-01 00:00:00')) │ 888.50 │ 1504.10 │ 155.30 │ 0.00 │ 16.30 │ 335.10 │ 450.50 │ 914.20 │ 1.50 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-07-01 00:00:00')) │ 904.70 │ 1531.70 │ 189.00 │ 10.20 │ 11.00 │ 312.10 │ 397.90 │ 924.70 │ 1.70 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-10-01 00:00:00')) │ 892.20 │ 1544.30 │ 215.80 │ 10.60 │ 13.30 │ 336.50 │ 420.60 │ 906.50 │ 1.90 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-01-01 00:00:00')) │ 933.60 │ 1512.20 │ 194.30 │ 10.60 │ 31.30 │ 326.60 │ 456.30 │ 915.20 │ 2.20 │ -├────────────────────────────────────────────────┼────────────────┼─────────┼────────┼───────────┼────────┼─────────────────────┼─────────┼────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-04-01 00:00:00')) │ 942.70 │ 1524.70 │ 177.20 │ 9.10 │ 18.10 │ 333.30 │ 473.50 │ 936.30 │ 2.20 │ -└────────────────────────────────────────────────┴────────────────┴─────────┴────────┴───────────┴────────┴─────────────────────┴─────────┴────────┴──────────────────┘ -``` - -``` -2022 Feb 24, 04:59 (🦋) /econometrics/ $ clean thesis -d rdrop - -2022 Feb 24, 05:00 (🦋) /econometrics/ $ show thesis - thesis -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ -┃ ┃ current_assets ┃ assets ┃ debt ┃ depr_amor ┃ income ┃ current_liabilities ┃ revenue ┃ equity ┃ interest_expense ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ -│ ('AAR Corp', Timestamp('2016-01-01 00:00:00')) │ 970.70 │ 1522.00 │ 160.00 │ 18.50 │ 9.90 │ 359.70 │ 412.10 │ 858.30 │ 1.70 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2016-04-01 00:00:00')) │ 873.10 │ 1442.10 │ 136.10 │ 17.80 │ 11.80 │ 329.00 │ 468.60 │ 865.80 │ 1.20 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-07-01 00:00:00')) │ 904.70 │ 1531.70 │ 189.00 │ 10.20 │ 11.00 │ 312.10 │ 397.90 │ 924.70 │ 1.70 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2017-10-01 00:00:00')) │ 892.20 │ 1544.30 │ 215.80 │ 10.60 │ 13.30 │ 336.50 │ 420.60 │ 906.50 │ 1.90 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-01-01 00:00:00')) │ 933.60 │ 1512.20 │ 194.30 │ 10.60 │ 31.30 │ 326.60 │ 456.30 │ 915.20 │ 2.20 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-04-01 00:00:00')) │ 942.70 │ 1524.70 │ 177.20 │ 9.10 │ 18.10 │ 333.30 │ 473.50 │ 936.30 │ 2.20 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-07-01 00:00:00')) │ 982.40 │ 1537.80 │ 209.10 │ 10.10 │ 18.90 │ 315.10 │ 466.30 │ 929.10 │ 2.10 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2018-10-01 00:00:00')) │ 1040.70 │ 1604.20 │ 218.90 │ 10.40 │ 11.20 │ 344.20 │ 493.30 │ 935.60 │ 2.50 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('AAR Corp', Timestamp('2019-01-01 00:00:00')) │ 993.40 │ 1546.50 │ 177.20 │ 10.80 │ 27.40 │ 359.60 │ 529.50 │ 899.40 │ 2.60 │ -├───────────────────────────────────────────────────────────────────┼────────────────┼──────────┼──────────┼───────────┼────────┼─────────────────────┼─────────┼─────────┼──────────────────┤ -│ ('American Airlines Group Inc', Timestamp('2016-01-01 00:00:00')) │ 10802.00 │ 49909.00 │ 19134.00 │ 423.00 │ 700.00 │ 15277.00 │ 9435.00 │ 4710.00 │ 250.00 │ -└───────────────────────────────────────────────────────────────────┴────────────────┴──────────┴──────────┴───────────┴────────┴─────────────────────┴─────────┴─────────┴──────────────────┘ -``` diff --git a/website/content/terminal/econometrics/coint/_index.md b/website/content/terminal/econometrics/coint/_index.md deleted file mode 100644 index 8752bfa43bb..00000000000 --- a/website/content/terminal/econometrics/coint/_index.md +++ /dev/null @@ -1,43 +0,0 @@ -``` -usage: coint [-ts {OPTIONS}] [-p] [-s SIGNIFICANT] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Show co-integration between timeseries. - -Cointegration is a statistical property of a collection (X1, X2, ..., Xk) of time series variables. First, all of the series must be integrated of order d (see Order of integration). Next, if a linear combination of this collection is integrated of order less than d, then the collection is said to be co-integrated. Formally, if (X,Y,Z) are each integrated of order d, and there exist coefficients a,b,c such that aX + bY + cZ is integrated of order less than d, then X, Y, and Z are cointegrated. Cointegration has become an important property in contemporary time series analysis. Time series often have trends—either deterministic or stochastic. In an influential paper, Charles Nelson and Charles Plosser (1982) provided statistical evidence that many US macroeconomic time series (like GNP, wages, employment, etc.) have stochastic trends. [Source: Wikipedia] - -``` -optional arguments: - -ts {OPTIONS}, --timeseries {OPTIONS} - The time series you wish to test co-integration on. Can hold multiple timeseries. (default: None) - -p, --plot Plot Z-Values (default: False) - -s SIGNIFICANT, --significant SIGNIFICANT - Show only companies that have p-values lower than this percentage (default: 0) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: - -``` -2022 Feb 24, 06:03 (🦋) /econometrics/ $ coint msft.adj_close,aapl.adj_close,tsla.adj_close,googl.adj_close -p - Cointegration Tests -┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━┓ -┃ Pairs ┃ Constant ┃ Gamma ┃ Alpha ┃ Dickey-Fuller ┃ P Value ┃ -┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━┩ -│ adj_close-msft/adj_close-aapl │ 46.62 │ 1.58 │ 0.00 │ -1.86 │ 0.35 │ -├────────────────────────────────┼──────────┼───────┼───────┼───────────────┼─────────┤ -│ adj_close-msft/adj_close-tsla │ 130.28 │ 0.18 │ -0.01 │ -2.82 │ 0.06 │ -├────────────────────────────────┼──────────┼───────┼───────┼───────────────┼─────────┤ -│ adj_close-msft/adj_close-googl │ 21.38 │ 0.10 │ -0.01 │ -2.51 │ 0.11 │ -├────────────────────────────────┼──────────┼───────┼───────┼───────────────┼─────────┤ -│ adj_close-aapl/adj_close-tsla │ 53.92 │ 0.11 │ -0.01 │ -2.94 │ 0.04 │ -├────────────────────────────────┼──────────┼───────┼───────┼───────────────┼─────────┤ -│ adj_close-aapl/adj_close-googl │ -7.83 │ 0.06 │ -0.00 │ -1.62 │ 0.47 │ -├────────────────────────────────┼──────────┼───────┼───────┼───────────────┼─────────┤ -│ adj_close-tsla/adj_close-googl │ -505.14 │ 0.51 │ -0.01 │ -2.28 │ 0.18 │ -└────────────────────────────────┴──────────┴───────┴───────┴───────────────┴─────────┘ -``` - -![error_terms_cointegrations](https://user-images.githubusercontent.com/46355364/155514964-dd75cf17-91ae-4326-96e8-45d9a2c7b24a.png) diff --git a/website/content/terminal/econometrics/combine/_index.md b/website/content/terminal/econometrics/combine/_index.md deleted file mode 100644 index 280c3b5fb3d..00000000000 --- a/website/content/terminal/econometrics/combine/_index.md +++ /dev/null @@ -1,50 +0,0 @@ -``` -usage: combine [-d {wp}] [-c COLUMNS] [-h] -``` - -Makes it possible to add a column to a different dataset. - -``` -optional arguments: - -d {wp}, --dataset {wp} - Dataset to add columns to (default: None) - -c COLUMNS, --columns COLUMNS - The columns we want to add , (default: None) - -h, --help show this help message (default: False) -``` - -Example: -``` -2022 May 31, 04:54 (🦋) /econometrics/ $ load nile - -2022 May 31, 04:54 (🦋) /econometrics/ $ load nile -a nile_2 - -2022 May 31, 04:54 (🦋) /econometrics/ $ combine nile -c nile_2.volume - -2022 May 31, 04:55 (🦋) /econometrics/ $ show nile - - Dataset nile | Showing 10 of 100 rows -┏━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━┓ -┃ ┃ year ┃ volume ┃ nile_2_volume ┃ -┡━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━┩ -│ 0 │ 1871.00 │ 1120.00 │ 1120.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 1 │ 1872.00 │ 1160.00 │ 1160.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 2 │ 1873.00 │ 963.00 │ 963.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 3 │ 1874.00 │ 1210.00 │ 1210.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 4 │ 1875.00 │ 1160.00 │ 1160.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 5 │ 1876.00 │ 1160.00 │ 1160.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 6 │ 1877.00 │ 813.00 │ 813.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 7 │ 1878.00 │ 1230.00 │ 1230.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 8 │ 1879.00 │ 1370.00 │ 1370.00 │ -├───┼─────────┼─────────┼───────────────┤ -│ 9 │ 1880.00 │ 1140.00 │ 1140.00 │ -└───┴─────────┴─────────┴───────────────┘ -``` \ No newline at end of file diff --git a/website/content/terminal/econometrics/compare/_index.md b/website/content/terminal/econometrics/compare/_index.md deleted file mode 100644 index 15d28c2ce93..00000000000 --- a/website/content/terminal/econometrics/compare/_index.md +++ /dev/null @@ -1,72 +0,0 @@ -``` -usage: compare [-h] [--export {csv,json,xlsx}] - -``` - -Compare results between all activated regression models via `panel` command. - -``` -optional arguments: - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Below you can find a comparison of the regression estimates based on the dataset from Vella and M. Verbeek (1998), “Whose Wages Do Unions Raise? A Dynamic Model of Unionism and Wage Rate Determination for Young Men,” Journal of Applied Econometrics 13, 163-183. This is a well-known dataset also used within Chapter 14 of Introduction to Econometrics by Jeffrey Wooldridge. - -To replicate this result, please have a look at [panel](https://openbb-finance.github.io/OpenBBTerminal/terminal/econometrics/panel/). - -``` -2022 Feb 25, 08:56 (🦋) /econometrics/ $ compare - Model Comparison -========================================================================================================================================================== - POLS BOLS RE FE FE_EE FE_IE FE_EE_IE FDOLS ----------------------------------------------------------------------------------------------------------------------------------------------------------- -Dep. Variable lwage_wp lwage_wp lwage_wp lwage_wp lwage_wp lwage_wp lwage_wp lwage_wp -Estimator PooledOLS BetweenOLS RandomEffects PanelOLS PanelOLS PanelOLS PanelOLS FirstDifferenceOLS -No. Observations 4360 545 4360 4360 4360 4360 4360 3815 -Cov. Est. Unadjusted Unadjusted Unadjusted Unadjusted Unadjusted Unadjusted Unadjusted Unadjusted -R-squared 0.1893 0.2155 0.1806 0.1246 0.1806 0.0535 0.0216 0.0268 -R-Squared (Within) 0.1692 0.1141 0.1799 0.1646 0.1806 -0.1037 -0.4809 0.1763 -R-Squared (Between) 0.2066 0.2155 0.1853 0.0902 -0.0052 0.0902 -0.0052 0.5491 -R-Squared (Overall) 0.1893 0.1686 0.1828 0.1246 0.0807 0.0005 -0.2253 0.5328 -F-statistic 72.459 24.633 68.409 61.920 83.851 81.891 27.959 26.208 -P-value (F-stat) 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -===================== ============ ============ =============== ============ ============ ============ ============ ==================== -const 0.0921 0.2836 0.0234 1.3454 1.4260 1.6440 1.8706 - (1.1761) (1.5897) (0.1546) (60.606) (77.748) (94.902) (49.430) -black_wp -0.1392 -0.1414 -0.1394 - (-5.9049) (-2.8915) (-2.9054) -hisp_wp 0.0160 0.0100 0.0217 - (0.7703) (0.2355) (0.5078) -exper_wp 0.0672 0.0278 0.1058 0.1158 - (4.9095) (2.4538) (6.8706) (5.9096) -expersq_wp -0.0024 -0.0047 -0.0021 -0.0052 -0.0021 -0.0052 -0.0039 - (-2.9413) (-6.8623) (-7.5081) (-7.3612) (-7.5081) (-7.3612) (-2.8005) -married_wp 0.1083 0.1416 0.0638 0.1521 0.0467 0.1521 0.0467 0.0381 - (6.8997) (3.4346) (3.8035) (9.5417) (2.5494) (9.5417) (2.5494) (1.6633) -educ_wp 0.0913 0.0913 0.0919 - (17.442) (8.5159) (8.5744) -union_wp 0.1825 0.2587 0.1059 0.1768 0.0800 0.1768 0.0800 0.0428 - (10.635) (5.6214) (5.9289) (10.032) (4.1430) (10.032) (4.1430) (2.1767) -year_wp.1981 0.0583 0.0404 0.1187 0.1512 - (1.9214) (1.6362) (3.9144) (6.8883) -year_wp.1982 0.0628 0.0309 0.1843 0.2530 - (1.8900) (0.9519) (6.0168) (10.360) -year_wp.1983 0.0620 0.0202 0.2431 0.3544 - (1.6915) (0.4840) (7.7581) (12.121) -year_wp.1984 0.0905 0.0430 0.3322 0.4901 - (2.2566) (0.8350) (10.236) (13.529) -year_wp.1985 0.1092 0.0577 0.4112 0.6175 - (2.5200) (0.9383) (12.048) (13.648) -year_wp.1986 0.1420 0.0918 0.5039 0.7655 - (3.0580) (1.2834) (13.806) (13.638) -year_wp.1987 0.1738 0.1348 0.5952 0.9250 - (3.5165) (1.6504) (15.026) (13.450) -======================= ============== ============== ================= ============== ============== ============== ============== ====================== -Effects Entity Time Entity - Time ----------------------------------------------------------------------------------------------------------------------------------------------------------- - -T-stats reported in parentheses -``` diff --git a/website/content/terminal/econometrics/delete/_index.md b/website/content/terminal/econometrics/delete/_index.md deleted file mode 100644 index 9b5252b600d..00000000000 --- a/website/content/terminal/econometrics/delete/_index.md +++ /dev/null @@ -1,73 +0,0 @@ -``` -usage: delete [-d DELETE] [-h] -``` - -Allows you to remove any column from your dataset. For example `delete wp.nr` - -``` -optional arguments: - -d DELETE, --delete DELETE - The columns you want to delete from a dataset. Use format: or multiple with , (default: None) - -h, --help show this help message (default: False) -``` - -Example: -``` -2022 May 31, 04:53 (🦋) /econometrics/ $ load wage_panel -a wp - -2022 May 31, 04:53 (🦋) /econometrics/ $ show wp - - Dataset wp | Showing 10 of 4360 rows -┏━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ ┃ nr ┃ year ┃ black ┃ exper ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃ -┡━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ -│ 0 │ 13.00 │ 1980.00 │ 0.00 │ 1.00 │ 0.00 │ 2672.00 │ 0.00 │ 14.00 │ 0.00 │ 1.20 │ 1.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 1 │ 13.00 │ 1981.00 │ 0.00 │ 2.00 │ 0.00 │ 2320.00 │ 0.00 │ 14.00 │ 1.00 │ 1.85 │ 4.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 2 │ 13.00 │ 1982.00 │ 0.00 │ 3.00 │ 0.00 │ 2940.00 │ 0.00 │ 14.00 │ 0.00 │ 1.34 │ 9.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 3 │ 13.00 │ 1983.00 │ 0.00 │ 4.00 │ 0.00 │ 2960.00 │ 0.00 │ 14.00 │ 0.00 │ 1.43 │ 16.00 │ 9.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 4 │ 13.00 │ 1984.00 │ 0.00 │ 5.00 │ 0.00 │ 3071.00 │ 0.00 │ 14.00 │ 0.00 │ 1.57 │ 25.00 │ 5.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 5 │ 13.00 │ 1985.00 │ 0.00 │ 6.00 │ 0.00 │ 2864.00 │ 0.00 │ 14.00 │ 0.00 │ 1.70 │ 36.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 6 │ 13.00 │ 1986.00 │ 0.00 │ 7.00 │ 0.00 │ 2994.00 │ 0.00 │ 14.00 │ 0.00 │ -0.72 │ 49.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 7 │ 13.00 │ 1987.00 │ 0.00 │ 8.00 │ 0.00 │ 2640.00 │ 0.00 │ 14.00 │ 0.00 │ 1.67 │ 64.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 8 │ 17.00 │ 1980.00 │ 0.00 │ 4.00 │ 0.00 │ 2484.00 │ 0.00 │ 13.00 │ 0.00 │ 1.68 │ 16.00 │ 2.00 │ -├───┼───────┼─────────┼───────┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 9 │ 17.00 │ 1981.00 │ 0.00 │ 5.00 │ 0.00 │ 2804.00 │ 0.00 │ 13.00 │ 0.00 │ 1.52 │ 25.00 │ 2.00 │ -└───┴───────┴─────────┴───────┴───────┴──────┴─────────┴─────────┴───────┴───────┴───────┴─────────┴────────────┘ - -2022 May 31, 04:53 (🦋) /econometrics/ $ delete wp.year,wp.black,wp.exper - -2022 May 31, 04:53 (🦋) /econometrics/ $ show wp - - Dataset wp | Showing 10 of 4360 rows -┏━━━┳━━━━━━━┳━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓ -┃ ┃ nr ┃ hisp ┃ hours ┃ married ┃ educ ┃ union ┃ lwage ┃ expersq ┃ occupation ┃ -┡━━━╇━━━━━━━╇━━━━━━╇━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩ -│ 0 │ 13.00 │ 0.00 │ 2672.00 │ 0.00 │ 14.00 │ 0.00 │ 1.20 │ 1.00 │ 9.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 1 │ 13.00 │ 0.00 │ 2320.00 │ 0.00 │ 14.00 │ 1.00 │ 1.85 │ 4.00 │ 9.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 2 │ 13.00 │ 0.00 │ 2940.00 │ 0.00 │ 14.00 │ 0.00 │ 1.34 │ 9.00 │ 9.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 3 │ 13.00 │ 0.00 │ 2960.00 │ 0.00 │ 14.00 │ 0.00 │ 1.43 │ 16.00 │ 9.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 4 │ 13.00 │ 0.00 │ 3071.00 │ 0.00 │ 14.00 │ 0.00 │ 1.57 │ 25.00 │ 5.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 5 │ 13.00 │ 0.00 │ 2864.00 │ 0.00 │ 14.00 │ 0.00 │ 1.70 │ 36.00 │ 2.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 6 │ 13.00 │ 0.00 │ 2994.00 │ 0.00 │ 14.00 │ 0.00 │ -0.72 │ 49.00 │ 2.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 7 │ 13.00 │ 0.00 │ 2640.00 │ 0.00 │ 14.00 │ 0.00 │ 1.67 │ 64.00 │ 2.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 8 │ 17.00 │ 0.00 │ 2484.00 │ 0.00 │ 13.00 │ 0.00 │ 1.68 │ 16.00 │ 2.00 │ -├───┼───────┼──────┼─────────┼─────────┼───────┼───────┼───────┼─────────┼────────────┤ -│ 9 │ 17.00 │ 0.00 │ 2804.00 │ 0.00 │ 13.00 │ 0.00 │ 1.52 │ 25.00 │ 2.00 │ -└───┴───────┴──────┴─────────┴─────────┴───────┴───────┴───────┴─────────┴────────────┘ -``` \ No newline at end of file diff --git a/website/content/terminal/econometrics/desc/_index.md b/website/content/terminal/econometrics/desc/_index.md deleted file mode 100644 index 57105f66827..00000000000 --- a/website/content/terminal/econometrics/desc/_index.md +++ /dev/null @@ -1,65 +0,0 @@ -``` -usage: desc [-n {OPTIONS}] [-h] [--export {csv,json,xlsx}] -``` - -Show the descriptive statistics of a dataset. - -``` -optional arguments: - -n {OPTIONS}, --name {OPTIONS} - The name of the database you want to show the descriptive statistics for (default: None) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: -``` -2022 Jun 01, 06:50 (🦋) /econometrics/ $ load anes96 - -2022 Jun 01, 06:51 (🦋) /econometrics/ $ desc anes96 - - Statistics for dataset: 'anes96' -┏━━━━━━━┳━━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━┓ -┃ ┃ popul ┃ tvnews ┃ selflr ┃ clinlr ┃ dolelr ┃ pid ┃ age ┃ educ ┃ income ┃ vote ┃ logpopul ┃ -┡━━━━━━━╇━━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━┩ -│ count │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ 944.00 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ mean │ 306.38 │ 3.73 │ 4.33 │ 2.94 │ 5.39 │ 2.84 │ 47.04 │ 4.57 │ 16.33 │ 0.42 │ 2.47 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ std │ 1082.61 │ 2.68 │ 1.44 │ 1.38 │ 1.27 │ 2.27 │ 16.42 │ 1.60 │ 5.97 │ 0.49 │ 3.19 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ min │ 0.00 │ 0.00 │ 1.00 │ 1.00 │ 1.00 │ 0.00 │ 19.00 │ 1.00 │ 1.00 │ 0.00 │ -2.30 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ 25% │ 1.00 │ 1.00 │ 3.00 │ 2.00 │ 5.00 │ 1.00 │ 34.00 │ 3.00 │ 14.00 │ 0.00 │ 0.10 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ 50% │ 22.00 │ 3.00 │ 4.00 │ 3.00 │ 6.00 │ 2.00 │ 44.00 │ 4.00 │ 17.00 │ 0.00 │ 3.10 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ 75% │ 110.00 │ 7.00 │ 6.00 │ 4.00 │ 6.00 │ 5.00 │ 58.00 │ 6.00 │ 21.00 │ 1.00 │ 4.70 │ -├───────┼─────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┼──────────┤ -│ max │ 7300.00 │ 7.00 │ 7.00 │ 7.00 │ 7.00 │ 6.00 │ 91.00 │ 7.00 │ 24.00 │ 1.00 │ 8.90 │ -└───────┴─────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴────────┴──────────┘ - -2022 Jun 01, 06:51 (🦋) /econometrics/ $ desc anes96.educ - -Statistics for dataset: 'anes96' -┏━━━━━━━┳━━━━━━━━┓ -┃ ┃ educ ┃ -┡━━━━━━━╇━━━━━━━━┩ -│ count │ 944.00 │ -├───────┼────────┤ -│ mean │ 4.57 │ -├───────┼────────┤ -│ std │ 1.60 │ -├───────┼────────┤ -│ min │ 1.00 │ -├───────┼────────┤ -│ 25% │ 3.00 │ -├───────┼────────┤ -│ 50% │ 4.00 │ -├───────┼────────┤ -│ 75% │ 6.00 │ -├───────┼────────┤ -│ max │ 7.00 │ -└───────┴────────┘ -``` diff --git a/website/content/terminal/econometrics/dwat/_index.md b/website/content/terminal/econometrics/dwat/_index.md deleted file mode 100644 index 96786fe7828..00000000000 --- a/website/content/terminal/econometrics/dwat/_index.md +++ /dev/null @@ -1,56 +0,0 @@ -``` -usage: dwat [-p] [-h] [--export {csv,json,xlsx}] -``` - -Show autocorrelation tests from Durbin-Watson - -The Durbin Watson (DW) statistic is a test for autocorrelation in the residuals from a statistical model or regression analysis. The Durbin-Watson statistic will always have a value ranging between 0 and 4. A value of 2.0 indicates there is no autocorrelation detected in the sample. Values from 0 to less than 2 point to positive autocorrelation and values from 2 to 4 means negative autocorrelation. [Source: Investopedia] - -``` -optional arguments: - -p, --plot Plot the residuals (default: False) - -h, --help show this help message (default: False) - --export {csv,json,xlsx} - Export raw data into csv, json, xlsx (default: ) -``` - -Example: - -``` -2022 Feb 24, 05:59 (🦋) /econometrics/ $ ols -d adj_close-msft -i adj_close-aapl -i adj_close-googl -i adj_close-tsla - OLS Regression Results -============================================================================== -Dep. Variable: adj_close_msft R-squared: 0.977 -Model: OLS Adj. R-squared: 0.977 -Method: Least Squares F-statistic: 1.068e+04 -Date: Thu, 24 Feb 2022 Prob (F-statistic): 0.00 -Time: 12:00:01 Log-Likelihood: -2830.6 -No. Observations: 759 AIC: 5669. -Df Residuals: 755 BIC: 5688. -Df Model: 3 -Covariance Type: nonrobust -=================================================================================== - coef std err t P>|t| [0.025 0.975] ------------------------------------------------------------------------------------ -Intercept 27.7984 2.166 12.832 0.000 23.546 32.051 -adj_close_aapl 0.8662 0.034 25.503 0.000 0.800 0.933 -adj_close_googl 0.0508 0.002 30.374 0.000 0.048 0.054 -adj_close_tsla -0.0007 0.004 -0.181 0.856 -0.009 0.007 -============================================================================== -Omnibus: 41.445 Durbin-Watson: 0.044 -Prob(Omnibus): 0.000 Jarque-Bera (JB): 47.398 -Skew: 0.612 Prob(JB): 5.10e-11 -Kurtosis: 2.995 Cond. No. 1.16e+04 -============================================================================== - -Notes: -[1] Standard Errors assume that the covariance matrix of the errors is correctly specified. -[2] The condition number is large, 1.16e+04. This might indicate that there are -strong multicollinearity or other numerical problems. - -2022 Feb 24, 06:00 (🦋) /statistics/ $ dwat -p -The result 0.04 is outside the range 1.5 and 2.5 and therefore autocorrelation can be problematic. -Please consider lags of the dependent or independent variable. -``` - -![durbin_watson example](https://user-images.githubusercontent.com/46355364/155514788-caaa65a2-1f5f-41d0-8db2-06e682d5a53e.png) diff --git a/website/content/terminal/econometrics/export/_index.md b/website/content/terminal/econometrics/export/_index.md deleted file mode 100644 index b88f1f66fa6..00000000000 --- a/website/content/terminal/econometrics/export/_index.md +++ /dev/null @@ -1,22 +0,0 @@ -``` -usage: export [-n NAME] [-t {csv,xlsx}] [-h] -``` - -Export dataset to Excel. It properly recognizes changes made with the `index`, `clean` and `modify` commands. - -``` -optional arguments: - -n NAME, --name NAME The name of the dataset you wish to export (default: None) - -t {csv,xlsx}, --type {csv,xlsx} - The file type you wish to export to (default: xlsx) - -h, --help show this help message (default: False) -``` - -Example: - -``` -2022 Feb 24, 04:35 (🦋) /econometrics/ $ load ThesisData.xlsx thesis - -2022 Feb 24, 04:36 (🦋) /econometrics/ $ export thesis -t csv -Saved file: /Users/jeroenbouma/My Drive/Programming/Python/OpenBBTerminal/exports/statistics/thesis_20220224_103614.csv -``` diff --git a/website/content/terminal/econometrics/granger/_index.md b/website/content/terminal/econometrics/granger/_index.md deleted file mode 100644 index 07009cb365f..00000000000 --- a/website/content/terminal/econometrics/granger/_index.md +++ /dev/null @@ -1,41 +0,0 @@ -``` -usage: granger [ts {OPTIONS}] [-l LAGS] [-cl CONFIDENCE] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] -``` - -Show Granger causality between two timeseries - -The Granger causality test is a statistical hypothesis test for determining whether one time series is useful in forecasting another, first proposed in 1969. Ordinarily, regressions reflect "mere" correlations, but Clive Granger argued that causality in economics could be tested for by measuring the ability to predict the future values of a time series using prior values of another time series. Since the question of "true causality" is deeply philosophical, and because of the post hoc ergo propter hoc fallacy of assuming that one thing preceding another can be used as a proof of causation, econometricians assert that the Granger test finds only "predictive causality". Using the term "causality" alone is a misnomer, as Granger-causality is better described as "precedence", or, as Granger himself later claimed in 1977, "temporally related". Rather than testing whether X causes Y, the Granger causality tests whether X forecasts Y. [Source: Wikipedia] - -``` -optional arguments:ols - -ts {OPTIONS}, --timeseries {OPTIONS} - Requires two time series, the first time series is assumed to be Granger-caused by the second time series. (default: None) - -l LAGS, --lags LAGS How many lags should be included (default: 3) - -cl CONFIDENCE, --confidence CONFIDENCE - Set the confidence level (default: 0.05) - -h, --help show this help message (default: False) - --export {csv,json,xlsx,png,jpg,pdf,svg} - Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: ) -``` - -Example: -``` -2022 Jun 01, 06:35 (🦋) /econometrics/ $ load strikes - -2022 Jun 01, 06:36 (🦋) /econometrics/ $ granger strikes.duration,strikes.iprod - -Granger Causality Test [Y: strikes.duration | X: strikes.iprod | Lags: 3] -┏━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━┓ -┃ ┃ F-test ┃ P-value ┃ Count ┃ Lags ┃ -┡━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━┩ -│ ssr_ftest │ 0.81 │ 0.49 │ 52.00 │ 3.00 │ -├──────────────┼────────┼─────────┼───────┼──────┤ -│ ssr_chi2test │ 2.75 │ 0.43 │ - │ 3 │ -├──────────────┼────────┼─────────┼───────┼──────┤ -│ lrtest │ 2.69 │ 0.44 │ - │ 3 │ -├──────────────┼────────┼─────────┼───────┼──────┤ -│ params_ftest │ 0.81 │ 0.49 │ 52.00 │ 3.00 │ -└──────────────┴────────┴─────────┴───────┴──────┘ - -As the p-value of the F-test is 0.495, we can not reject the null hypothesis at the 0.05 confidence level. -``` diff --git a/website/content/terminal/econometrics/index/_index.md b/website/content/terminal/econometrics/index/_index.md deleted file mode 100644 index b4d0e11d450..00000000000 --- a/website/content/terminal/econometrics/index/_index.md +++ /dev/null @@ -1,77 +0,0 @@ -``` -usage: index [-n NAME [NAME ...]] [-i] [-h] -``` - -Set a (multi) index for a dataset, specified by `--name`. When setting two indices, it is assumed it follows the -structure