mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
* Adding versioning to docs --------- Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com> Co-authored-by: tehcoderer <me@tehcoderer.com>
948 B
Vendored
948 B
Vendored
title, description
| title | description |
|---|---|
| quote | OpenBB SDK Function |
quote
Get forex quote.
Source Code: [link]
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
from openbb_terminal.sdk import openbb
EUR_USD_quote = openbb.forex.quote("EURUSD")
This also supports AlphaVantage and will handle different conventions
EUR_USD= openbb.forex.quote("EUR/USD", source="AlphaVantage")