日終支付結算
System ↔ System批次交易彙整,經由清算、帳本更新到對帳的完整流程。
6 個節點 · 6 條連接finance
systemdbapi
視覺化
日終批次處理event
市場收盤時排程觸發,啟動結算週期。
↓sequential→ 交易彙整
交易彙整db
依交易對手、幣別及結算日期分組交易。
↓sequential→ 提交至清算所
提交至清算所api
將軋差後的部位提交至 ACH/SWIFT/FedWire 清算網路。
↓sequential→ 回應處理
回應處理system
解析清算所回應,標記拒絕及例外情形。
↓conditional→ 帳本更新
↓fallback→ 提交至清算所
帳本更新db
以複式記帳方式將已結算金額過帳至總帳。
↓sequential→ 對帳
對帳system
將內部記錄與清算確認書進行比對,標記差異。
uc-payment-settlement.osop.yaml
osop_version: "1.0"
id: "payment-settlement"
name:"日終支付結算"
description:"批次交易彙整,經由清算、帳本更新到對帳的完整流程。"
nodes:
- id: "eod_batch"
type: "event"
name: "日終批次處理"
description: "市場收盤時排程觸發,啟動結算週期。"
- id: "txn_aggregate"
type: "db"
name: "交易彙整"
description: "依交易對手、幣別及結算日期分組交易。"
timeout_sec: 120
- id: "clearing_submit"
type: "api"
subtype: "rest"
name: "提交至清算所"
description: "將軋差後的部位提交至 ACH/SWIFT/FedWire 清算網路。"
security:
risk_level: "critical"
retry_policy:
max_attempts: 3
backoff: "exponential"
- id: "response_process"
type: "system"
name: "回應處理"
description: "解析清算所回應,標記拒絕及例外情形。"
- id: "ledger_update"
type: "db"
name: "帳本更新"
description: "以複式記帳方式將已結算金額過帳至總帳。"
security:
risk_level: "high"
- id: "reconciliation"
type: "system"
name: "對帳"
description: "將內部記錄與清算確認書進行比對,標記差異。"
edges:
- from: "eod_batch"
to: "txn_aggregate"
mode: "sequential"
- from: "txn_aggregate"
to: "clearing_submit"
mode: "sequential"
- from: "clearing_submit"
to: "response_process"
mode: "sequential"
- from: "response_process"
to: "ledger_update"
mode: "conditional"
when: "response.status == 'accepted'"
- from: "ledger_update"
to: "reconciliation"
mode: "sequential"
- from: "response_process"
to: "clearing_submit"
mode: "fallback"
label: "Resubmit rejected transactions"