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
I would like to place an order to close a long position in futures dual position mode.
The API manual says "In dual position mode, to close one side position, you need to set auto_size side, reduce_only to true and size to 0",
so I coded and ran it as follows.
models_1.ObjectSerializer.serialize(futuresOrder, 'FuturesOrder') is supposed to check the values of the input params and convert case to lowercase letters, etc., but there was a problem with the conversion of the auto_size part. But, I solved it by just changing that part of futuresApi.js without touching the model object code.
I would like to place an order to close a long position in futures dual position mode.
The API manual says "In dual position mode, to close one side position, you need to set auto_size side, reduce_only to true and size to 0",
so I coded and ran it as follows.
If I run it, I see an 'invalid size with close-order' error message.
If I change that code to
size: 1
and run it, a long position is created,If I change
size: -1
, a short position is created.How can I close my positions?
The text was updated successfully, but these errors were encountered: