The current demand is for empty listings at 1% above the current price, demanding a stop at the cap price of 0.3%. Use the Exchange.io function Bitcoin seems to be able to set up stop loss and stop loss orders at the same time as the order is opened, but Binance I Check seems to be unable to do so, only building an open order and a limit stop order. However, in the conditions described, the suspension order stops immediately because the current price is below the stop price.
What should I do?
It would be nice if Binance could set the stop order directly to create an open order at the time of the trade, just like it does to the tokens.
I am now going to use setInterval to check if the warehouse is built, and if it is, I will immediately place a direct order. However, since there are more than 100 currencies, each currency can only rotate 20 times per minute, and once in three seconds, if the price reaches a stop and spits back in three seconds, the stop will be missed. Obsessive-compulsive disorder wants a perfect solution, such as listening to an opening?
The grassAccess prices of all currencies simultaneously with an aggregated interface
[Translated from Chinese]I wanted to run a websocket callback to try, but I found that I can't use setInterval, error not defined, can you tell me how to fix it?
[Translated from Chinese]Please, this means that I can use an API to input the names of all the currencies I want to query. Can you give me an example?