veighna-global / vnpy_okx

OKX trading gateway for VeighNa Evo
MIT License
93 stars 78 forks source link

okex 合约乘数取值有分歧 #13

Closed wwdd23 closed 1 year ago

wwdd23 commented 3 years ago

image

okex 合约中新增的一个参数。 ctVal 合约面值应该理解为原有的合约乘数吧? 拥有反向合约 计价单位为 张 时使用 ctMult 合约乘数。应该作为统一账户中按照 计价单位为 币 时使用

在差价计算中 image 买入 28.0@2.3196 crv 使用 64.98 usdt 对应应该卖出 6.4 张合约 而非 64 张. 币本位计算中 64张合约价值是640 u

veighna-global commented 1 year ago

Please try the latest version to see if this bug still exists.