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

Encounter "invalid newOrderRespType" while testing NewCreateOrderService on FutureNet #491

Open
ChaShanLiu0830 opened this issue May 24, 2023 · 0 comments

Comments

@ChaShanLiu0830
Copy link

While I'm testing the example code on testnet.binancefuture.com/
order, err := client.NewCreateOrderService().Symbol("BNBETH"). Side(binance.SideTypeBuy).Type(binance.OrderTypeLimit). TimeInForce(binance.TimeInForceTypeGTC).Quantity("5"). Price("0.0030000").Do(context. Background())

I received the error <APIError> code=-1136, msg=Invalid newOrderRespType

To resolve the issue, I added the line NewOrderResponseType(binance_futures.NewOrderRespTypeRESULT) to the code and it works.
Therefore, I kindly request adding NewOrderResponseType to the example code provided in the documentation for the benefit of Binance Futures Testnet users.

Best regards.

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

1 participant