Skip to main content

close

Close a trade.

Source Code: [link]

openbb.forex.oanda.close(orderID: str, units: Optional[int] = 0, accountID: str = "REPLACE_ME")

Parameters

NameTypeDescriptionDefaultOptional
orderIDstrID of the order to closeNoneFalse
unitsUnion[int, None]Number of units to close. If empty default to all.0True
accountIDstrOanda account ID, by default cfg.OANDA_ACCOUNTREPLACE_METrue

Returns

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