0
Follow
0
Followers

Please teach God the Great to give a limited price stop-loss Python code

Created: 2020-07-19 22:11:11, Updated on:
comments   2
hits   1192

I use

exchange.SetDirection('buy')
exchange.Buy(50,1)
# 想下限价止损单
exchage.SetDirection('closebuy')
exchange.Sell(45,1) # 此时会立刻成交

Hopefully, God will give us a code that works.

More content
All comments
avatar of fengok
fengok
Stop-loss functionality is different for each exchange, specifically you can use the io function to hang the stop-loss functionality.
2020-08-04 14:18:41
avatar of 小草
The grass
https://www.fmz.com/strategy/121081 Refer to this public bot
2020-07-20 08:55:26