listorders
- Model
- Chart
Request the orders list from Oanda.
Source Code: [link]
openbb.forex.oanda.listorders(order_state: str = "PENDING", order_count: int = 0, accountID: str = "REPLACE_ME")
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
order_state | str | Filter orders by a specific state ("PENDING", "CANCELLED", etc.) | PENDING | True |
order_count | int | Limit the number of orders to retrieve | 0 | True |
accountID | str | Oanda account ID, by default cfg.OANDA_ACCOUNT | REPLACE_ME | True |
Returns
This function does not return anything
List order history.
Source Code: [link]
openbb.forex.oanda.listorders_chart(accountID: str, order_state: str = "PENDING", order_count: int = 0)
Parameters
Name | Type | Description | Default | Optional |
---|---|---|---|---|
accountID | str | Oanda user account ID | None | False |
order_state | str | Filter orders by a specific state ("PENDING", "CANCELLED", etc.) | PENDING | True |
order_count | int | Limit the number of orders to retrieve | 0 | True |
Returns
This function does not return anything