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

God~ please help me, my futures contract orders keep failing --- I am a beginner #1095

Open
cknia opened this issue May 29, 2022 · 3 comments

Comments

@cknia
Copy link

cknia commented May 29, 2022

#region
var orderData = await binanceClient.SpotApi.Trading.PlaceOrderAsync(
"FTMUSDT",
OrderSide.Sell,
SpotOrderType.Market,
quantity: 141);
#endregion

The spot order is a success! But the futures order below keeps failing! I don't know what is the reason, please help me

#region
var orderData = await binanceClient.UsdFuturesApi.Trading.PlaceOrderAsync(
"FTMUSDT",
OrderSide.Buy,
FuturesOrderType.Market,
50m,
timeInForce: TimeInForce.GoodTillCanceled);
#endregion

@cknia
Copy link
Author

cknia commented May 29, 2022

Hope the good guys directly modify my code so that it can be successful, I will be very grateful.because i'm a newbie

@haexyh
Copy link

haexyh commented Aug 17, 2022

This isn't related to the code. Please delete your issue. @cknia

@prozerran
Copy link

i think the API is somewhat bugged. Seems to be a combo of TIF or params in certain combo wont work.

you can try this. it works for me.....

        OrderSide side = OrderSide.Buy;

            var dd = await client.UsdFuturesApi.Trading.PlaceOrderAsync(order.symbol, side, FuturesOrderType.Market, order.orderqty, null,
                PositionSide.Both, null, null, order.clordid);

if ok, close the issue.

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

3 participants