一、清盘、清算(Liquidation)
liquidation
英 [ˌlɪkwɪˈdeɪʃn]
美 [ˌlɪkwɪˈdeɪʃn]
n. 清盘; 清算; 清偿;
[例句]If the banks opt to pull the rug from under the ill-fated project, it will go into liquidation.
如果这些银行不再对这个倒霉的项目提供支持,它也就破产了。
1. 用订单清算头寸(liquidatePositionWithOrders)
Calling liquidatePosition will perform the following steps:
调用liquidatePosition将执行以下步骤:
-
Query the oracle to obtain the most recent price and funding fee.
查询oracle以获取最新的价格和资金费用。 -
Execute funding payments on the existing position and then update the existing position state.
对现有头寸执行资金支付,然后更新现有头寸状态。 -
Check that the existing position (referenced by positionID) is valid and can be liquidated (i.e. that the maintenance margin requirement is breached.
检查现有头寸(由positionID引用)是否有效,是否可以清算(即是否违反了维护保证金要求)。 -
Create the Makers’ Positions.
创造Makers’ Positions。这一步,具体步骤,参考原文,TODO。
-
Close the lResults.quantity quantity contracts of the existing position.
关闭lResults.quantity 数量个已存在头寸。这一步,具体步骤,参考原文,TODO。