Skip to main content

price

Request price for a forex pair.

Source Code: [link]

openbb.forex.oanda.price(accountID: str = "REPLACE_ME", instrument: Optional[str] = None)

Parameters

NameTypeDescriptionDefaultOptional
accountIDstrOanda account ID, by default cfg.OANDA_ACCOUNTREPLACE_METrue
instrumentUnion[str, None]The loaded currency pair, by default NoneNoneTrue

Returns

TypeDescription
Union[Dict[str, str], bool]The currency pair price or False