Type/to search
0
Follow
0
Followers
Cómo cerrar todas las posiciones en OK Futures
Help
Created 2019-05-06 00:10:35  
 2
 2209

¿Cómo se calcula el número de posiciones en las que está en equilibrio después de hacer un pedido en el OK?

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)