@clonegod/ttd-core 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types/index.d.ts CHANGED
@@ -895,12 +895,21 @@ export interface AnalyzeDepthLevelType {
895
895
  }
896
896
 
897
897
  export interface OnTradeExecutionType {
898
+ // Quote 阶段(来自 PriceMessage.time)
899
+ block_time: number // 链上出块时间
900
+ quote_stream_time: number // stream-quote 收到事件
901
+ quote_start_time: number // 询价开始
902
+ quote_end_time: number // 询价结束
903
+ price_time: number // 价格生成时间
904
+ // Order 阶段
898
905
  order_send_time: number // CEX 发出
899
906
  order_recv_time: number // DEX 收到
907
+ // Trade 执行阶段
900
908
  caller_ready_time: number // Caller 就绪
901
909
  encode_done_time: number // 编码完成
902
910
  sign_done_time: number // 签名完成
903
911
  tx_send_time: number // 发送上链
912
+ // 上链确认阶段
904
913
  tx_block_time: number // 交易被打包的区块时间
905
914
  tx_block_number: number
906
915
  tx_index: number // 区块内位置