Skip to main content

order

Request creation of buy/sell trade order.

Source Code: [link]

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

Parameters​

NameTypeDescriptionDefaultOptional
instrumentUnion[str, None]The loaded currency pair, by default NoneNoneTrue
priceintThe price to set for the limit order.0True
unitsintThe number of units to place in the order request.0True
accountIDstrOanda account ID, by default cfg.OANDA_ACCOUNTREPLACE_METrue

Returns​

TypeDescription
Union[pd.DataFrame, bool]Orders data or False