Files
OpenBB/website/content/sdk/reference/forex/oanda/candles.md
DidierRLopes 4ad995fdd0 Docs/terminalpro and improvement (#5622)
* 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>
2023-10-30 21:01:29 +00:00

2.6 KiB
Vendored

title, description, keywords
title description keywords
candles The page provides detailed info on 'candles' functions within the OpenBB forex category for Oanda. It covers methods to request candle chart data and display the candle chart, along with their respective parameters and return types. Source links for Python code are included.
candles
chart
Forex
granularity
data points
Oanda
currency pair
Source Code
matplotlib
additional charts

import HeadTitle from '@site/src/components/General/HeadTitle.tsx';

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Request data for candle chart.

Source Code: [link]

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]

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