Injective Protocol官方文档翻译(八) -头寸、仓位(Positions)

一、仓位(Positions)

平仓(closePosition)

平仓(close position)是指期货交易者买入或者卖出其所持期货合约的品种、数量及交割月份相同但交易方向相反的期货合约,了结期货交易的行为,简单的说就是“原先买入的就卖出,原先是卖出(沽空)的就买入。”

调用closePosition将执行以下步骤:

  1. Query the oracle to obtain the most recent price and funding fee.
    查询oracle以获取最新的价格和资金费用。

  2. Execute funding payments on the existing position and then update the existing position state.
    对现有头寸执行资金支付,然后更新现有头寸状态。

  3. Check that the existing position (referenced by positionID) is valid and can be closed.
    检查现有position(由positionID引用)是否有效并可以关闭。

  4. Create the Makers’ Posit

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值