Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USDT Futures trading with leverage #1328

Open
dungtrandk opened this issue Dec 11, 2023 · 3 comments
Open

USDT Futures trading with leverage #1328

dungtrandk opened this issue Dec 11, 2023 · 3 comments

Comments

@dungtrandk
Copy link

dungtrandk commented Dec 11, 2023

JUST EDITED TO REFERENCE THE CORRECT CLASS

I am using the Binance.net lib to place futures orders and here is my problem:

When I use the Binance.Net.Interfaces.Clients.UsdFuturesApi.IBinanceRestClientUsdFuturesApiTrading I expected it to place a usdt futures order with the selected leverage on that symbol. But instead it seems to wanting to place a Margin trade on that symbol, but since I dont have any funds in the symbol on my Margin account it says something like "Insufficient margin on account".

I do not want to place margin orders but leverage on USDT-M futures.

ALSO: I HAVE MY MARGIN MODE SET TO "CROSS" AND LEVERAGE SET TO "1" TO TEST.

How do i do that?

@dungtrandk
Copy link
Author

Jeff Please help :-)

I Want to place a SOLUSDT futures market order and I am using Binance.Net.Interfaces.Clients.UsdFuturesApi.IBinanceRestClientUsdFuturesApiTrading to place the order async: The code:

var response = await BinanceClient.UsdFuturesApi.Trading.PlaceOrderAsync(
"SOLUSDT",
Binance.Net.Enums.OrderSide.Buy,
Binance.Net.Enums.FuturesOrderType.Market,
10,
null,
Binance.Net.Enums.PositionSide.Both);

In my Binance account i have set the positionside to both and i have set the SOLUSDT pair to CROSS and leverage is set to 1 (also tried different other leverages).
I have more than 1000 USDT on the Futures Account but still, the response is error with the the error message: "Insufficient Margin".

@XHighIntell
Copy link

You buy 10 SOL, change your quantity of your order to 1 and try again

@dungtrandk
Copy link
Author

Hi XHighIntell

I can try this no problem.
But when I do it using the Binance website, I dont need to buy/SELL 10 SOL before.

I just select the leverage, amount i want to buy/sell for and then click buy/sell.

Cant this be achieved using this Library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants