kaq-quant-common 0.2.10__py3-none-any.whl → 0.2.11__py3-none-any.whl

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.
@@ -83,9 +83,9 @@ class LimitOrderHelper:
83
83
  if is_df:
84
84
  # df就用df的方式写入
85
85
  data_first_now = int(sub_data["create_time"].iloc[0])
86
- if now - data_first_now > 2000:
87
- self._logger.debug(f"数据时间{data_first_now} 与当前时间{now} 差值{now - data_first_now} 超过2000ms")
88
- pass
86
+ # if now - data_first_now > 2000:
87
+ # self._logger.debug(f"数据时间{data_first_now} 与当前时间{now} 差值{now - data_first_now} 超过2000ms")
88
+ # pass
89
89
 
90
90
  if df is None:
91
91
  df = sub_data
@@ -98,16 +98,16 @@ class LimitOrderHelper:
98
98
  if is_sub_list:
99
99
  # 多条数据
100
100
  data_first_now = int(sub_data[0][0])
101
- if now - data_first_now > 2000:
102
- self._logger.debug(f"数据时间{data_first_now} 与当前时间{now} 差值{now - data_first_now} 超过2000ms")
103
- pass
101
+ # if now - data_first_now > 2000:
102
+ # self._logger.debug(f"数据时间{data_first_now} 与当前时间{now} 差值{now - data_first_now} 超过2000ms")
103
+ # pass
104
104
  list_data.extend(sub_data)
105
105
  else:
106
106
  # 单条数据
107
107
  data_first_now = int(sub_data[0])
108
- if now - data_first_now > 2000:
109
- self._logger.debug(f"数据时间{data_first_now} 与当前时间{now} 差值{now - data_first_now} 超过2000ms")
110
- pass
108
+ # if now - data_first_now > 2000:
109
+ # self._logger.debug(f"数据时间{data_first_now} 与当前时间{now} 差值{now - data_first_now} 超过2000ms")
110
+ # pass
111
111
  list_data.append(sub_data)
112
112
 
113
113
  else:
@@ -148,10 +148,10 @@ class LimitOrderHelper:
148
148
  cum_write_ddb_time += write_ddb_use
149
149
  cum_total_use_time += total_use_time
150
150
 
151
- if total_use_time > 500 and cum_count > 0:
152
- self._logger.debug(
153
- f"批量写入{len(to_process)}条数据耗时{total_use_time}ms(avg {cum_total_use_time / cum_count:.2f}ms) 转换耗时{convert_use}ms(avg {cum_convert_time / cum_count:.2f}ms) 写入ddb耗时{write_ddb_use}ms(avg {cum_write_ddb_time / cum_count:.2f}ms)"
154
- )
151
+ # if total_use_time > 500 and cum_count > 0:
152
+ # self._logger.debug(
153
+ # f"批量写入{len(to_process)}条数据耗时{total_use_time}ms(avg {cum_total_use_time / cum_count:.2f}ms) 转换耗时{convert_use}ms(avg {cum_convert_time / cum_count:.2f}ms) 写入ddb耗时{write_ddb_use}ms(avg {cum_write_ddb_time / cum_count:.2f}ms)"
154
+ # )
155
155
 
156
156
  # mtw交由ddb自己控制节奏
157
157
  if self._isMtwDdb:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kaq_quant_common
3
- Version: 0.2.10
3
+ Version: 0.2.11
4
4
  Summary:
5
5
  Author: kevinfuture
6
6
  Author-email: liuenbofuture@foxmail.com
@@ -28,7 +28,7 @@ kaq_quant_common/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
28
28
  kaq_quant_common/common/ddb_table_monitor.py,sha256=7Yihz_uGGujo_QqqPl45Gp8fwUMMw1auXx5egbzyYlE,3662
29
29
  kaq_quant_common/common/http_monitor.py,sha256=_yChiwfVv1c5g_lKgYUjWY40fX61BWVK8SL4kXwRfwk,2375
30
30
  kaq_quant_common/common/modules/funding_rate_helper.py,sha256=sW7CacTF2UAz_DigDSEsoPgTKQS-kYUxxjT8Xs70ZV0,5734
31
- kaq_quant_common/common/modules/limit_order_helper.py,sha256=tRjAcSaCwcxbBVP-0Lncr01Kmo8NIi6Zpogub1zKAS0,6780
31
+ kaq_quant_common/common/modules/limit_order_helper.py,sha256=VWk1NhrQrY-HM3hp_Ri6gpvQjTPlvGN2ahPpNze_nSo,6806
32
32
  kaq_quant_common/common/modules/limit_order_symbol_monitor.py,sha256=TBK48qyeCSQvkfDMv3J_0UM7f3OuBRKRFYDcL9kG6Cs,2876
33
33
  kaq_quant_common/common/modules/limit_order_symbol_monitor_group.py,sha256=oEqHIwxhqAzckmluHJHZHiHUNmAyaS2JyK2nXO58UhY,2394
34
34
  kaq_quant_common/common/monitor_base.py,sha256=E4EUMsO3adNltCDNRgxkvUSbTTfKOL9S1zzN3WkZvpU,2467
@@ -62,6 +62,6 @@ kaq_quant_common/utils/signal_utils.py,sha256=zBSyEltNTKqkQCsrETd47kEBb3Q_OWUBUn
62
62
  kaq_quant_common/utils/sqlite_utils.py,sha256=UDDFKfwL0N-jFifl40HdyOCENh2YQfW5so6hRaSJpv0,5722
63
63
  kaq_quant_common/utils/uuid_utils.py,sha256=pm_pnXpd8n9CI66x3A20cOEUiriJyqHaKGCeLrgkBxU,71
64
64
  kaq_quant_common/utils/yml_utils.py,sha256=gcKjb_-uuUajBGAl5QBPIZTg2wXm7qeeJvtHflj_zOE,4513
65
- kaq_quant_common-0.2.10.dist-info/METADATA,sha256=z5p-WdYZLYHuQsfsewfWAxjf4UKIwxlGCnjsCJZR0ss,1971
66
- kaq_quant_common-0.2.10.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
67
- kaq_quant_common-0.2.10.dist-info/RECORD,,
65
+ kaq_quant_common-0.2.11.dist-info/METADATA,sha256=wKGpgoPfYOyaiLVvO5PX1z_GXBvgYdT0E5L7Ij79G-s,1971
66
+ kaq_quant_common-0.2.11.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
67
+ kaq_quant_common-0.2.11.dist-info/RECORD,,