1
Follow
47
Followers
目前的需求是,在当前价位上方1%处挂空单,要求用限价止盈进行止盈,止盈比例为0.3%。
用Exchange.io函数
火币似乎可以在开单的同时设置止损止盈,但是币安我查资料好像是不行的,只能建一个开仓单和一个限价止盈单。
可是在描述的条件种挂止盈单会立刻止盈,因为当前价格在止盈价以下。
请问该怎么办呢?
如果币安能在开仓的时候向火币一样直接设置止盈来创建开仓订单就好了。能吗?
我现在是打算用setInterval来轮询仓位是否建成了,如果建成了就立刻挂一个直营订单。
可是由于有100多个币种,每个币种1分钟只能轮询20次,三秒钟轮询一次,如果币价在3秒内达到止盈又回吐的话就会错过这次止盈。。
强迫症想求一个完美的方法,比如能否监听开仓事件之类的?
Related Recommendations
How to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?
Comment
All comments (3)
- 1

