------------------------------------------------------------------------------------------------------------------
https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code
Referral Code : 21391362
------------------------------------------------------------------------------------------------------------------
Let's continue writing the rest of the code from last time.
After placing an order, the price may change rapidly and execution may take a long time. In order to respond to rapidly changing prices, if execution is delayed, the current price is calculated again and the order is placed. You can check the current order status by calling the query_order method. When the status value is FILLED, the conclusion is completed.

Once the order is executed, the calculated TP and SL orders are placed. Among the argument values is type. TP inputs TAKE_PROFIT and SL inputs STOP.

TP/SL order status is checked periodically to determine whether the current game is won or lost. When TP is concluded, it is a win, so the money previously accumulated due to defeat is reset to 0 won. SL orders are also canceled. If the SL is entered into, it is a loss and the loss is accumulated.

------------------------------------------------------------------------------------------------------------------
https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code
Referral Code : 21391362
------------------------------------------------------------------------------------------------------------------