binance/binance-connector-node

No way to get all Flexible Product Positions

Danswar opened this issue · 0 comments

Issue subject

it is not possible to get all positions for flexible products becase calling client.savingsFlexibleProductPosition without an asset results in an error.

savingsFlexibleProductPosition (asset, options = {}) {

Expected behaviour

It should be possible to call the method savingsFlexibleProductPosition without any asset and it should return the array of position for this kind of products.

Checking in the official docs, this parameters is not required and hitting the endpoint without it results in the expected behaviour described before.

Actual behaviour

when calling the method with no argument, it throws an error: MissingParameterError

Steps to reproduce

Call the method savingsFlexibleProductPosition with no arguments

Environment

Provide any relevant information about your setup, such as:

  • Version of binance-connector-node: 1.13.0
  • Node version: 16
  • Operating system: macOS 12