mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 12:13:11 +00:00
* Began working on docs creator * Added fixes * More * More * Adding autogen_try.py for OpenBB API doc generation * OpenBB API docs gen try * Fixed * Added fixes * Added fixes * subs -> sub * Updated docs * Updated docs Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
947 B
Vendored
947 B
Vendored
To obtain charts, make sure to add chart=True as the last parameter
Get underlying data
forex.oanda.close(orderID: str, units: Optional[int] = 0, accountID: str = 'REPLACE_ME') -> Union[pandas.core.frame.DataFrame, bool]
Close a trade.
Parameters
----------
orderID : str
ID of the order to close
units : Union[int, None]
Number of units to close. If empty default to all.
accountID : str, optional
Oanda account ID, by default cfg.OANDA_ACCOUNT
Returns
-------
Union[pd.DataFrame, bool]
Close trades data or False
Getting charts
forex.oanda.close(accountID: str, orderID: str = '', units: Optional[int] = None, chart=True)
Close a trade.
Parameters
----------
accountID : str
Oanda user account ID
orderID : str
ID of the order to close
units : Union[int, None]
Number of units to close. If empty default to all.