和顺 / 衡律 返回所属 Agent
17.2

订单意图的经济要素

原能力

固定订单方向、规模、币种、价格、期限和履约条件,核对保证金有限分支。(合同附件 R7 17.2)

首选项目

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

接入说明

CDM 与 NautilusTrader 可参考数据类型。订单意图需增加批准范围、版本和数量校验。

匹配范围

产品与订单对象承载方向、数量、币种等要素。

源码

FINOS CDM · type EconomicTerms:

rosetta-source/src/main/rosetta/product-template-type.rosetta · 31–44 行。 在 GitHub 查看规范模型 · 许可证与声明

上游配置与指引
type EconomicTerms: <" This class represents the full set of price-forming features associated with a contractual product: the payout component, the notional/quantity, the effective and termination date and the date adjustment provisions when applying uniformily across the payout components. This class also includes the legal provisions which have valuation implications: cancelable provision, extendible provision, early termination provision and extraordinary events specification.">

    effectiveDate AdjustableOrRelativeDate (0..1) <"The first day of the terms of the trade. This day may be subject to adjustment in accordance with a business day convention.">
        [docReference ICMA GMRA namingConvention "Purchase Date"
            provision "As defined in GMRA paragraph 2(mm) The date on which Purchased Securities are sold or are to be sold by Seller to Buyer."]
        [docReference ICMA ERCCBestPractice namingConvention "Purchase Date"
            provision "ERCC Guide: Annex II  Glossary of repo terminology. The term for the value date of a repo."]
    effectiveTime DirectOrRelativeTime (0..1) <"The time and zone of the first day of the terms of the trade. It can also be specified in relation to another time.">
    terminationDate AdjustableOrRelativeDate (0..1) <"The last day of the terms of the trade. This date may be subject to adjustments in accordance with the business day convention. It can also be specified in relation to another scheduled date (e.g. the last payment date).">
        [docReference ICMA GMRA namingConvention "Repurchase Date"
            provision "As defined in GMRA paragraph 2(qq) The date on which Buyer is to sell Equivalent Securities to Seller."]
        [docReference ICMA ERCCBestPractice namingConvention "Repurchase Date"
            provision "ERCC Guide: Annex II  Glossary of repo terminology. The term for the maturity date of a repo."]
    terminationTime DirectOrRelativeTime (0..1) <"The time and zone of the last day of the terms of the trade. It can also be specified in relation to another time.">

NautilusTrader · pub struct Quantity

crates/model/src/types/quantity.rs · 162–175 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
pub struct Quantity {
    pub(crate) raw: QuantityRaw,
    /// The number of decimal places, with a maximum of [`FIXED_PRECISION`].
    pub precision: u8,
}

impl Quantity {
    /// Creates a new [`Quantity`] instance with correctness checking.
    ///
    /// # Errors
    ///
    /// Returns an error if:
    /// - `value` is invalid outside the representable range [0, `QUANTITY_MAX`].
    /// - `precision` is invalid outside the representable range [0, `FIXED_PRECISION`].
  • // Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.

实现与验收要点

原价格、时点、策略意图及字段完整性。