Closed tensorboy closed 2 years ago
I know how to do it now...
One thing to mention, you should set close
to True instead of is_close
to True when closing a position. You can read from the model doc. is_close
is a read only field set from the server side.
To partially close, set size to the opposite direction with how much you want to close
Thanks for the help!!! Really appreciated!
Hi,
How can I partially close an order/position with the Futures API? (I mean like if I click on "Limit Close" on the API, see below):
I know how to close all my position with 'auto size':
however, if I only consider close part of my positions, how I can do it?
Revlvant issues: https://github.com/gateio/gateapi-python/issues/85#issue-1077783414