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>
91 lines
3.6 KiB
Markdown
Vendored
91 lines
3.6 KiB
Markdown
Vendored
---
|
|
title: raw
|
|
description: This page explains the 'raw' function related to financial data manipulation,
|
|
including its usage, parameters and some examples on how to use it in Python. It
|
|
cover topics such as sorting raw data, displaying limit number of data points and
|
|
reverse sorting.
|
|
keywords:
|
|
- raw data
|
|
- financial data
|
|
- data manipulation
|
|
- sorting raw data
|
|
- reverse sorting
|
|
- display limit
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="stocks/qa/raw - Reference | OpenBB Terminal Docs" />
|
|
|
|
Print raw data to console
|
|
|
|
### Usage
|
|
|
|
```python
|
|
raw [-l LIMIT] [-r] [-s {open,high,low,close,adjclose,volume,date_id,oc_high,oc_low,returns,logret,logprice}]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| limit | Number to show | 20 | True | None |
|
|
| 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. | False | True | None |
|
|
| sortby | The column to sort by | None | True | open, high, low, close, adjclose, volume, date_id, oc_high, oc_low, returns, logret, logprice |
|
|
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
```python
|
|
2022 Feb 16, 11:05 (🦋) /stocks/qa/ $ raw
|
|
Raw Data
|
|
┏━━━━━━━━━━━━┳━━━━━━━━━━┓
|
|
┃ ┃ Adjclose ┃
|
|
┡━━━━━━━━━━━━╇━━━━━━━━━━┩
|
|
│ 2022-01-19 │ 995.650 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-20 │ 996.270 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-21 │ 943.900 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-24 │ 930.000 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-25 │ 918.400 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-26 │ 937.410 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-27 │ 829.100 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-28 │ 846.350 │
|
|
├────────────┼──────────┤
|
|
│ 2022-01-31 │ 936.720 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-01 │ 931.250 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-02 │ 905.660 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-03 │ 891.140 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-04 │ 923.320 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-07 │ 907.340 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-08 │ 922.000 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-09 │ 932.000 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-10 │ 904.550 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-11 │ 860.000 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-14 │ 875.760 │
|
|
├────────────┼──────────┤
|
|
│ 2022-02-15 │ 922.430 │
|
|
└────────────┴──────────┘
|
|
```
|
|
---
|