Skip to content

Wrong TypeScript return type for futuresCancelAll #941

@vitaly-t

Description

@vitaly-t

Whenever I call futuresCancelAll, I always get this:

{ code: 200, msg: 'The operation of cancel all open order is done.' }

...which corresponds to type FuturesCancelAllOpenOrder, but never to the expected array FuturesCancelAllOpenOrder[].

And somehow it doesn't even matter when the operation cancels multiple orders, it is always the same result. Something isn't right there. I would expect an array with multiple entries when multiple orders are cancelled, and with one entry when only one order is cancelled, it is always just one object, and never an array.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions