- findClosedOrder(__namedParameters): Promise<IRestClosedOrder>
Beta
Parameters
- __namedParameters: {
orderFilter: ((filterFields: Partial<IRestClosedOrder>) => boolean);
restData?: IRestClosedOrdersParams;
}orderFilter: ((filterFields: Partial<IRestClosedOrder>) => boolean)
- (filterFields): boolean
Returns boolean
Optional
restData?: IRestClosedOrdersParams
Bonus method! - Returns the first closed order (single object) to satisfy the filter. Helper method for: Get Closed Orders
Example
Remarks
This method might run extremely slow for accounts with many past orders