Skip to main content

search

Currency Search.

Search available currency pairs. Currency pairs are the national currencies from two countries coupled for trading on the foreign exchange (FX) marketplace. Both currencies will have exchange rates on which the trade will have its position basis. All trading within the forex market, whether selling, buying, or trading, will take place through currency pairs. (ref: Investopedia) Major currency pairs include pairs such as EUR/USD, USD/JPY, GBP/USD, etc.

Examples

from openbb import obb
obb.currency.search(provider='fmp')
# Search for 'EUR' currency pair using 'intrinio' as provider.
obb.currency.search(provider='intrinio', query='EUR')
# Search for terms using 'polygon' as provider.
obb.currency.search(provider='polygon', query='EUR')

Parameters

NameTypeDescriptionDefaultOptional
querystrQuery to search for currency pairs.NoneTrue

Returns

OBBject
results : List[CurrencyPairs]
Serializable results.

provider : Optional[Literal['fmp', 'intrinio', 'polygon']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
namestrName of the currency pair.