accountId
(字符串,唯一)exchange
(字符串,枚举:pacifica/aster/binance/...)accountName
(字符串,展示用别名)publicKey
(字符串,经过加密存储)proxyProfile
(字符串,引用代理配置 ID)utilizationTargetMin
(小数,默认 0.5)utilizationTargetMax
(小数,默认 0.8)deltaThreshold
(小数,BTC 等值,默认 0.0005)maxPositionValue
(小数,账户允许的最大名义价值)stopLossConfigId
(字符串,引用止损模板)status
(枚举:active/paused/emergency)createdAt
、updatedAt
ProxySession
RiskEnvelope
一对一关联feedId
exchange
(字符串)symbol
(字符串,如 BTC、ETH)wsEndpoint
(字符串)httpEndpoint
(字符串)wsLatencyP95
(毫秒,统计值)httpLatencyP95
(毫秒)freshnessThreshold
(毫秒,默认 2000)failoverDeadline
(毫秒,默认 10000)lastHeartbeat
(时间戳)status
(枚举:healthy/degraded/failing)HedgeExecution
订阅关系(间接)SynthPriceSnapshot
(若合成行情)产生数据流moduleId
name
(字符串)type
(枚举:market-making/funding-arbitrage/hedge-only/...)configSchema
(JSON Schema 描述)dryRunEnabled
(布尔,默认 true)maxConcurrentSignals
(整数)profitAfterFeeTarget
(小数,百分比)requiresSandbox
(布尔)status
(enable/disable)ExchangeAccount
建立分配记录 AccountAllocation
OrderIntent
envelopeId
accountId
(外键,ExchangeAccount)maxDrawdownPercent
(小数)maxLeverage
(小数)deltaThreshold
(小数,默认继承账户级设定,可覆盖)slippageTolerance
(小数,百分比)emergencyStopLossSeconds
(整数,默认 30)createdAt
、updatedAt
ExchangeAccount
HedgeExecution
使用以验证阈值intentId
moduleId
(外键,StrategyModule)accountId
(外键,ExchangeAccount)symbol
(字符串)side
(枚举:buy/sell)type
(枚举:limit/market/post-only/...)amount
(小数,base 数量)price
(小数,若限价)expectedProfitAfterFee
(小数,USD 等值)hedgePairIntentId
(字符串,可选,对冲配对)state
(pending/submitted/filled/cancelled/failed)createdAt
、updatedAt
StrategyModule
创建HedgeExecution
会引用其结果并更新状态executionId
primaryAccountId
、hedgeAccountId
(外键,ExchangeAccount)deltaBefore
、deltaAfter
(小数,BTC 等值)orders
(JSON 列表,含外部订单号、类型、价格、状态)triggerReason
(枚举:utilization/delta/failover/manual)durationMs
(整数)result
(枚举:success/partial/fail)createdAt
OrderIntent
RiskEnvelope
和 MarketDataFeed
sessionId
proxyProfile
(字符串)ip
、port
、auth
(凭证信息)accountIds
(数组,关联账户)lastRotation
(时间戳)status
(active/rotating/failed)ExchangeAccount
多对多(通过 accountIds)OrderIntent
、AccountSyncJob
链接以记录调用来源moduleId
, accountId
)weight
(小数,策略在账户内的权重)maxConcurrentOrders
(整数)sandboxMode
(布尔,表示是否仍在 Dry-run)createdAt
、updatedAt
StrategyModule
与 ExchangeAccount
snapshotId
symbol
(字符串)sourceFeeds
(数组,记录参与合成的 feedId)midPrice
、bid
、ask
(小数)timestamp
(时间戳)reason
(枚举:ws-failover/http-timeout/manual)MarketDataFeed
的回退逻辑生成OrderIntent
作为价格依据eventId
type
(枚举:utilization-alert/delta-alert/failover-alert/proxy-alert/test-result)accountId
或 moduleId
(可选)payload
(JSON,记录详情)severity
(INFO/WARN/CRITICAL)createdAt
HedgeExecution
、OrderIntent
产生的事件有关联ExchangeAccount
与相关 RiskEnvelope
信息。MarketDataFeed
维护实时顺序;当 WS 异常时生成 SynthPriceSnapshot
并触发 MonitoringEvent
。StrategyModule
基于行情与账户状态生成 OrderIntent
,并写入待执行队列。HedgeExecution
,创建或取消订单,保持在宪章阈值内。MonitoringEvent
,日志保留 ≥90 天,可用于追溯与审计。