不同计价币的现货对冲策略 Ver1.1
8
Follow
1364
Followers
Source
JavaScript
var lastKeepBalanceTS = 0
function hedge(buyEx, sellEx, priceBuy, priceSell, amount) {
var buyRoutine = buyEx.Go("Buy", priceBuy, amount)
var sellRoutine = sellEx.Go("Sell", priceSell, amount)
Sleep(500)
buyRoutine.wait()
sellRoutine.wait()
}
function getDepthPrice(depth, side, amount) {
var arr = depth[side]Strategy parameters
Commands
Related strategies
Comment
All comments (0)
No data
- 1
