chore: finalize broker qty metadata consistency
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
co-authored by
genichin
parent
30bcbe1d12
commit
f394f1560d
@@ -89,9 +89,9 @@
|
||||
"status": "inactive | pending_buy | pending_sell | holding | error",
|
||||
"symbol": "str | null",
|
||||
"qty": "float | null", // holding: broker authority / unavailable=null
|
||||
"qty_source": "broker | unavailable", // holding-only metadata
|
||||
"broker_quantity_available": "bool", // holding-only metadata
|
||||
"broker_quantity_captured_at": "ISO-8601 | null", // holding-only metadata
|
||||
"qty_source": "broker | unavailable | null", // non-holding=null
|
||||
"broker_quantity_available": "bool", // non-holding=false
|
||||
"broker_quantity_captured_at": "ISO-8601 | null", // non-holding=null
|
||||
"slot_quantity": "float | null", // core daily_slot mirror (diagnostic)
|
||||
"asset_quantity": "float | null", // hub authority (REQ-062)
|
||||
"avg_price": "float | null",
|
||||
@@ -124,9 +124,9 @@
|
||||
|---|---|---|
|
||||
| `slot_id`, `status`, `avg_price`, `entry_price`, `forced_close_at`, `universe_detached` | slot (core) | 슬롯 row 직접 |
|
||||
| `qty` | broker account snapshot | holding 슬롯에서만 authoritative. unavailable/stale 시 null |
|
||||
| `qty_source` | 파생(metadata) | holding 슬롯: `broker` \| `unavailable` |
|
||||
| `broker_quantity_available` | 파생(metadata) | holding 슬롯 broker qty freshness 통과 여부 |
|
||||
| `broker_quantity_captured_at` | broker account snapshot | holding 슬롯 broker qty capture 시각 |
|
||||
| `qty_source` | 파생(metadata) | holding 슬롯: `broker` \| `unavailable`; non-holding은 null |
|
||||
| `broker_quantity_available` | 파생(metadata) | holding 슬롯 broker qty freshness 통과 여부; non-holding=false |
|
||||
| `broker_quantity_captured_at` | broker account snapshot | holding 슬롯 broker qty capture 시각; non-holding=null |
|
||||
| `slot_quantity` | slot (core) | 기존 daily_slot.qty mirror(진단용) |
|
||||
| `symbol`, `portfolio_id` | slot (core) | 자산 바인딩 |
|
||||
| `asset_quantity` | hub (SnapshotStore) | portfolio-hub 권위값 (REQ-062) |
|
||||
|
||||
Reference in New Issue
Block a user