Type/to search

不同计价币的现货对冲策略 Ver1.1

Cryptocurrency
Created: 2021-07-30 17:16:42
Last modified: 5 years ago
8
Follow
1364
Followers

不同计价币的现货对冲策略 Ver1.1

相关文章:https://www.fmz.com/digest-topic/7666

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
Strategy parameters
平衡周期
使用差价百分比
对冲差价AtoB
对冲差价BtoA
对冲差价百分比AtoB
对冲差价百分比BtoA
对冲最小下单量
对冲最大下单量
A交易所汇率
B交易所汇率
重置所有信息
A价格精度
A下单量精度
B价格精度
B下单量精度
下单滑价
杠杆类型
Commands
修改AtoB的参数
A2B
修改BtoA的参数
B2A
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)