Type/to search

不同计价币的现货对冲策略(教学)

Hedge
8
Follow
1361
Followers

不同计价币的现货对冲策略(教学)

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

Source
JavaScript
// 全局变量
var lastKeepBalanceTS = 0

function hedge(buyEx, sellEx, price, amount) {
    var buyRoutine = buyEx.Go("Buy", price, amount)
    var sellRoutine = sellEx.Go("Sell", price, amount)
    Sleep(500)
    buyRoutine.wait()
    sellRoutine.wait()
}

function getDepthPrice(depth, side, amount) {
Strategy parameters
Strategy parameters
平衡周期
使用差价百分比
对冲差价
对冲差价百分比
对冲最小下单量
对冲最大下单量
A交易所汇率
B交易所汇率
重置所有信息
A价格精度
A下单量精度
B价格精度
B下单量精度
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)