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

Position Closing #33

Open
yusufdamat opened this issue Feb 21, 2022 · 2 comments
Open

Position Closing #33

yusufdamat opened this issue Feb 21, 2022 · 2 comments

Comments

@yusufdamat
Copy link

yusufdamat commented Feb 21, 2022

Hi Dear,

I want to act according to the buying and selling prices coming from the indicator by triggering it with the webhook.

But I could not close the position I wanted to sell the symbol I bought.

Would you help me with this topic.

Array
(
[code] => -2011
[msg] => Unknown order sent.
[_method] => DELETE
[_url] => https://testnet.binancefuture.com/fapi/v1/order?timestamp=1645447047000&symbol=BTCUSDT&orderId=2981859883&origClientOrderId=nzCbbvv1mynATqevyGxD7O
[_httpcode] => 400
)

Image URL

Regards

@zhouaini528
Copy link
Owner

https://binance-docs.github.io/apidocs/futures/en/#new-order-trade

Position closing via new order (trade).

@yusufdamat
Copy link
Author

When I create a new order it disappears in two orders.

Can we update the existing order, that is, specify the Limit price later?

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