JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.02k stars 420 forks source link

UsdFuturesApi how to liquidate assets into USDT #1186

Closed prozerran closed 1 year ago

prozerran commented 1 year ago

For Spot, its fine, i get convert the assets into USDT by calling PlaceOrderAsync

But for futues, calling PlaceOrderAsync trying to liquidate all my assets into USDT by placing a market sell order is not what i want. It is instead placing a SHORT order where i have a position instead,.

What i want is i already have the asset such as ETH and i just want to liquidate all my ETH into USDT. Is there a way to do this on Futures? I can do on Spot, but futures, it just opens a short position.

Basically, it should use the Binance Convert functionality to convert my ETH back to USDT, but where's the API to do it?

prozerran commented 1 year ago

ok closing