策略源码
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]策略参数
可用指令
相关策略
评论
全部评论 (0)
暂无数据
- 1
