和顺 / 衡律 返回所属 Agent
13.3

成交、交收与义务核销

原能力

按原成交和交收事实核销义务,处理累计报告、重复、更正及未决状态。(合同附件 R7 13.3)

首选项目

FINOS CDM(Community Specification License 1.0(CDM 规范及对应资产))。 FINOS CDM

匹配范围

交易事件及 pending/post/void 承载部分交收片段。

源码

FINOS CDM · type TransferInstruction:

rosetta-source/src/main/rosetta/event-common-type.rosetta · 162–175 行。 在 GitHub 查看规范模型 · 许可证与声明

源码片段
type TransferInstruction: <"Defines the payout on which to create a Transfer along with all necessary resets.">
    transferState TransferState (0..*) <"Specifies the terms and state of a transfers.">

type QuantityChangeInstruction: <"Instructions required to create a Quantity Change Primitive Event, which can be either an increase, a decrease or a replacement. An increase adds a new trade lot to the original trade, whereas a decrease subtracts from an existing trade lot's quantity. A replacement updates the quantity of an existing trade lot to the new value.">
    change PriceQuantity (1..*) <"Quantity by which the trade is being increased, decreased or replaced, and the price at which such quantity change is agreed. The quantity change should always be specified as a positive number, with the direction (increase/decrease/replacement) being specified by the direction enumeration. A fee can also be associated to the quantity change by specifying a Price component of type CashPrice, including the corresponding settlement date and direction.">
    direction QuantityChangeDirectionEnum (1..1) <"Direction of the quantity change specified as either an increase, decrease or replacement.">
    lotIdentifier Identifier (0..*) <"Identifier for the new lot (in case of increase) or for the existing lot to be changed(in case of decrease or replacement). This optional attribute is mandatory in case of a decrease or replacement if the initial trade state contains multiple trade lots.">

type IndexTransitionInstruction: <"Defines the information needed to create a Index Transition Business Event.">
    priceQuantity PriceQuantity (1..*) <"Specifies both new floating rate index and spread adjustment for each leg to be updated.  The spread adjustment accounts for the difference between the old floating rate index relative to the new one. This spread amount is added to the existing spread to determine the new spread, which is applied from the specified effective date forward. In the case of the IBOR Fallback Rate Adjustments, the adjustment spread (also known as the Fallback Adjustment) accounts for two distinctions: i) the fact that the replacement Risk-Free Rate is an overnight rate while IBORs have term structures (e.g., 1, 3, 6-month LIBOR); and (ii) the historical spread differential between IBORs and their term equivalent Overnight Risk-Free Rate compounded rates.">
    effectiveDate date (1..1) <"Specifies the effective date of the index transition event. This is first date on which the floating rate calculation will use the new floating rate index and adjusted spread in the floating rate calculation.">
    cashTransfer Transfer (0..1) <"Specifies the cash transfer that can optionally be tied to an index transition event.">

    condition PriceQuantity:

TigerBeetle · fn post_or_void_pending_transfer(

src/state_machine.zig · 4036–4049 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
        fn post_or_void_pending_transfer(
            self: *StateMachine,
            timestamp_event: u64,
            t: *const Transfer,
        ) CreateTransferStatusUnion {
            assert(t.id != 0);
            assert(t.id != std.math.maxInt(u128));
            assert(self.get_transfer(t.id) == null);
            assert(t.flags.padding == 0);
            assert(timestamp_event != 0);
            assert(timestamp_event > self.commit_timestamp or t.flags.imported);
            assert(t.flags.post_pending_transfer or t.flags.void_pending_transfer);

            if (t.flags.post_pending_transfer and t.flags.void_pending_transfer) {

实现与验收要点

真实成交与交收回执、证券义务、避免重复核销。