close
- Model
- Chart
Close a trade.
Source Code: [link]
openbb.forex.oanda.close(orderID: str, units: Optional[int] = 0, accountID: str = "REPLACE_ME")
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| orderID | str | ID of the order to close | None | False |
| units | Union[int, None] | Number of units to close. If empty default to all. | 0 | True |
| accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True |
Returns
| Type | Description |
|---|---|
| Union[pd.DataFrame, bool] | Close trades data or False |
Close a trade.
Source Code: [link]
openbb.forex.oanda.close_chart(accountID: str, orderID: str = "", units: Optional[int] = None)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| accountID | str | Oanda user account ID | None | False |
| orderID | str | ID of the order to close | True | |
| units | Union[int, None] | Number of units to close. If empty default to all. | None | True |
Returns
This function does not return anything