Type/to search
0
Follow
0
Followers
Como fechar todas as posições no OK Futures
Help
Created 2019-05-06 00:10:35  
 2
 2209

OK, depois de fazer um pedido de futuros, o que fazer com a posição de equilíbrio, como calcular o número de posições de equilíbrio para todas as posições de equilíbrio

Related Recommendations
Comment
All comments (2)
    var pos = exchange.GetPosition() // 首先获取持仓 exchange.SetDirection("closebuy") // 以平多仓为例 var ticker = exchange.GetTicker() exchange.Sell(ticker.Last - 1, pos[0].Amount) // 以最新成交价ticker.Last 为基础, 减去1 价格, 卖出去。平仓
    7 years ago

    我也有同样疑问

    7 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)