HELP! how to execute an order when the price reaches a certain price

hey guys, I’m totally new to coding stuff.
I’ve set Binance_Futures_python SDK and installed all other stuff to work on this code.

I’ve tested out post_order.py and everything seems to work.

The problem is that I want to set the program(python) to execute a stop order when the BTCUSDT Perpetual hits a certain price.

For instance, when BTCUSDT Perpetual hits $70,000, place an order to close my long position by stop-limit/stop-market at $69,999

I’m guessing that it’s a simple job but since I know nothing about coding, I can’t figure out how
There’s a very limited guide in the case of futures. I tried to use tutorials on the internet that covers with spot but I found that the endpoint(?) is very different and couldn’t figure it out.

Can you guys help me with writing the codes? or perhaps give me some guidance?
I would really appreciate your help.
Thanks

Hi there, I think if you’re asking for help to write code you should at least provide what you’ve attempted to do so others can give hints. However, this forum is not intended for long programming questions.

Thank you for your reply.

I didn’t know that this forum wasn’t intended for such a purpose. Sorry
But I somehow googled my way through and currently making some progress!
If I come up with other problems, I’ll take your word of advice.

Thanks!

1 Like