Get Order
Syntax
this.getOrder(symbol)
Description
The getOrder
is used to get a specific order.
Returns
The getOrder
function returns one order with a specific symbol
or null
.
Parameters
symbol
: symbol to filter the orders
Examples
this.buy("MSFT", 1);this.getOrder("MSFT");//=> [{symbol: "MSFT", units: 1, action: "buy", date: '17233333', status: 'created', isClose: false}]
this.getOrder("TSLA");//=> null