You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thinking the types for getAll() needs updated to allow for not including ALL the parameters. They should all be optional. I believe the file is order.d.ts.
I'm expecting to write code like this: openOrders = await alpaca.getOrders({ status: "open", limit: "500" });
Without getting this error:
error TS2345: Argument of type '{ status: string; limit: string; }' is not assignable to parameter of type '{ status: any; until: any; after: any; limit: any; direction: any; nested: any; }'.
Type '{ status: string; limit: string; }' is missing the following properties from type '{ status: any; until: any; after: any; limit: any; direction: any; nested: any; }': until, after, direction, nested
Thinking the types for
getAll()
needs updated to allow for not including ALL the parameters. They should all be optional. I believe the file isorder.d.ts
.I'm expecting to write code like this:
openOrders = await alpaca.getOrders({ status: "open", limit: "500" });
Without getting this error:
I think all it needs is some question marks after the optional parameters: https://www.typescriptlang.org/docs/handbook/2/functions.html#optional-parameters
The text was updated successfully, but these errors were encountered: