mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 16:02:04 +00:00
* add first iteration of content for Terminal Pro * Update index.md * Update dashboards.md * Update folders.md * Update grouping.md * Update report.md * Update templates.md * Update quick-start.md * Update index.md * Update index.md * Update home.md * Update news.md * Update index.md * Update index.md * Update index.md * Update data-provider.md * Update chat-with-widget.md * Update data-manipulation.md * Update forecasting.md * fix: images self closing tags * fix: only pro visitors can see pro * inter font * improve SEO content and restructuring * add new package for toggle on tutorials * move folder around * improve main page of each prod * small updates and improvements * fix logo above * small improvement in headtitle for portfolio funcs * fix typos from OpenAI's GPT-4 * fix _category_ json * remove generic SEO words * add script that generates SEO for documentation * add missing file * remove sdk warning message * fix links for andrew --------- Co-authored-by: jose-donato <zmcdonato@gmail.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
53 lines
1.4 KiB
Markdown
Vendored
53 lines
1.4 KiB
Markdown
Vendored
---
|
|
title: hist
|
|
description: Learn how to retrieve the historical price of options using the '/hist'
|
|
command, considering parameters such as ticker, expiry, strike, option type, interval,
|
|
and past days. This page includes examples and a detailed description of each parameter.
|
|
keywords:
|
|
- stock options
|
|
- historical data
|
|
- stock ticker
|
|
- expiry date
|
|
- option type
|
|
- /hist command
|
|
- strike price
|
|
- chart minute interval
|
|
- past days
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="options: hist - Telegram Reference | OpenBB Bot Docs" />
|
|
|
|
This command allows the user to retrieve the historical price of options for the given parameters of a ticker, expiry, strike , option type, and interval for the past x days in a chart format.
|
|
|
|
### Usage
|
|
|
|
```python wordwrap
|
|
/hist ticker expiry strike opt_type interval [past_days]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Optional | Choices |
|
|
| ---- | ----------- | -------- | ------- |
|
|
| ticker | Stock Ticker | False | None |
|
|
| expiry | Expiration Date YYYY-MM-DD format | False | None |
|
|
| strike | Option Strike Price | False | None |
|
|
| opt_type | Calls or Puts (C or P) | False | calls, puts, C, P |
|
|
| interval | Chart Minute Interval. 15m, 30m, 1hr, 1d | False | 1d, 15m, 30m, 1hr |
|
|
| past_days | Past Days to Display. Default: 5 | True | None |
|
|
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
```
|
|
/hist AMD 2022-07-29 70 Calls 15m 5
|
|
```
|
|
|
|
---
|