zhouaini528 / binance-php

Binance API Like the official document interface, Support for arbitrary extension.
MIT License
107 stars 43 forks source link

Position Closing #33

Open yusufdamat opened 2 years ago

yusufdamat commented 2 years ago

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 commented 2 years ago

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

Position closing via new order (trade).

yusufdamat commented 2 years ago

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

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