优化市场价格服务:移除降级查询逻辑,仅保留链上和订单簿查询
- 移除 CLOB Trades、Gamma Market Status、Gamma Market Price 查询逻辑 - 只保留链上 RPC 查询(市场结算结果)和 CLOB 订单簿查询 - 如果所有数据源都失败,抛出 IllegalStateException 异常 - 价格截位到 4 位小数(向下截断,不四舍五入) - 移除未使用的导入和方法(MarketResponse, JsonUtils, OutcomeResult 等) - 所有调用方都已正确处理异常,无需额外修改
This commit is contained in:
@@ -434,14 +434,11 @@ export interface MarketPriceRequest {
|
||||
}
|
||||
|
||||
/**
|
||||
* 市场价格响应
|
||||
* 市场当前价格响应
|
||||
*/
|
||||
export interface MarketPriceResponse {
|
||||
marketId: string
|
||||
lastPrice?: string
|
||||
bestBid?: string
|
||||
bestAsk?: string
|
||||
midpoint?: string
|
||||
currentPrice: string
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user