ctpbee-opt-api 0.1.3__cp313-cp313-win_amd64.whl → 0.1.5__cp313-cp313-win_amd64.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.
- ctpbee_api/ctp/vnctp/vnctptd/vnctptd.cpp +17 -30
- ctpbee_api/ctp/vnctpmd.cp313-win_amd64.pyd +0 -0
- ctpbee_api/ctp/vnctptd.cp313-win_amd64.pyd +0 -0
- ctpbee_api/ctp_mini/vnctp_minimd.cp313-win_amd64.pyd +0 -0
- ctpbee_api/ctp_mini/vnctp_minitd.cp313-win_amd64.pyd +0 -0
- ctpbee_api/rohon/vnrohonmd.cp313-win_amd64.pyd +0 -0
- ctpbee_api/rohon/vnrohontd.cp313-win_amd64.pyd +0 -0
- {ctpbee_opt_api-0.1.3.dist-info → ctpbee_opt_api-0.1.5.dist-info}/METADATA +1 -1
- {ctpbee_opt_api-0.1.3.dist-info → ctpbee_opt_api-0.1.5.dist-info}/RECORD +11 -11
- {ctpbee_opt_api-0.1.3.dist-info → ctpbee_opt_api-0.1.5.dist-info}/WHEEL +0 -0
- {ctpbee_opt_api-0.1.3.dist-info → ctpbee_opt_api-0.1.5.dist-info}/top_level.txt +0 -0
|
@@ -4607,44 +4607,19 @@ void TdApi::processRspQryInstrument(Task *task)
|
|
|
4607
4607
|
{
|
|
4608
4608
|
gil_scoped_acquire acquire;
|
|
4609
4609
|
pybind11::list result;
|
|
4610
|
+
// 只传递必要字段,减少 Python 对象创建开销
|
|
4610
4611
|
for (const auto& item : this->instrument_buffer)
|
|
4611
4612
|
{
|
|
4612
4613
|
dict data;
|
|
4613
|
-
data["
|
|
4614
|
-
data["ExchangeID"] = toUtf(item.ExchangeID);
|
|
4614
|
+
data["InstrumentID"] = toUtf(item.InstrumentID);
|
|
4615
4615
|
data["InstrumentName"] = toUtf(item.InstrumentName);
|
|
4616
|
-
data["
|
|
4617
|
-
data["
|
|
4616
|
+
data["ExchangeID"] = toUtf(item.ExchangeID);
|
|
4617
|
+
data["ProductID"] = toUtf(item.ProductID);
|
|
4618
4618
|
data["ProductClass"] = item.ProductClass;
|
|
4619
|
-
data["DeliveryYear"] = item.DeliveryYear;
|
|
4620
|
-
data["DeliveryMonth"] = item.DeliveryMonth;
|
|
4621
|
-
data["MaxMarketOrderVolume"] = item.MaxMarketOrderVolume;
|
|
4622
|
-
data["MinMarketOrderVolume"] = item.MinMarketOrderVolume;
|
|
4623
|
-
data["MaxLimitOrderVolume"] = item.MaxLimitOrderVolume;
|
|
4624
|
-
data["MinLimitOrderVolume"] = item.MinLimitOrderVolume;
|
|
4625
4619
|
data["VolumeMultiple"] = item.VolumeMultiple;
|
|
4626
4620
|
data["PriceTick"] = item.PriceTick;
|
|
4627
|
-
data["CreateDate"] = toUtf(item.CreateDate);
|
|
4628
|
-
data["OpenDate"] = toUtf(item.OpenDate);
|
|
4629
|
-
data["ExpireDate"] = toUtf(item.ExpireDate);
|
|
4630
|
-
data["StartDelivDate"] = toUtf(item.StartDelivDate);
|
|
4631
|
-
data["EndDelivDate"] = toUtf(item.EndDelivDate);
|
|
4632
|
-
data["InstLifePhase"] = item.InstLifePhase;
|
|
4633
4621
|
data["IsTrading"] = item.IsTrading;
|
|
4634
|
-
data["
|
|
4635
|
-
data["PositionDateType"] = item.PositionDateType;
|
|
4636
|
-
data["LongMarginRatio"] = item.LongMarginRatio;
|
|
4637
|
-
data["ShortMarginRatio"] = item.ShortMarginRatio;
|
|
4638
|
-
data["MaxMarginSideAlgorithm"] = item.MaxMarginSideAlgorithm;
|
|
4639
|
-
data["reserve4"] = toUtf(item.reserve4);
|
|
4640
|
-
data["StrikePrice"] = item.StrikePrice;
|
|
4641
|
-
data["OptionsType"] = item.OptionsType;
|
|
4642
|
-
data["UnderlyingMultiple"] = item.UnderlyingMultiple;
|
|
4643
|
-
data["CombinationType"] = item.CombinationType;
|
|
4644
|
-
data["InstrumentID"] = toUtf(item.InstrumentID);
|
|
4645
|
-
data["ExchangeInstID"] = toUtf(item.ExchangeInstID);
|
|
4646
|
-
data["ProductID"] = toUtf(item.ProductID);
|
|
4647
|
-
data["UnderlyingInstrID"] = toUtf(item.UnderlyingInstrID);
|
|
4622
|
+
data["InstLifePhase"] = item.InstLifePhase;
|
|
4648
4623
|
result.append(data);
|
|
4649
4624
|
}
|
|
4650
4625
|
this->instrument_buffer.clear();
|
|
@@ -10823,6 +10798,18 @@ public:
|
|
|
10823
10798
|
}
|
|
10824
10799
|
};
|
|
10825
10800
|
|
|
10801
|
+
void onRspQryInstrumentBatch(const pybind11::list &data) override
|
|
10802
|
+
{
|
|
10803
|
+
try
|
|
10804
|
+
{
|
|
10805
|
+
PYBIND11_OVERLOAD(void, TdApi, onRspQryInstrumentBatch, data);
|
|
10806
|
+
}
|
|
10807
|
+
catch (const error_already_set &e)
|
|
10808
|
+
{
|
|
10809
|
+
cout << e.what() << endl;
|
|
10810
|
+
}
|
|
10811
|
+
};
|
|
10812
|
+
|
|
10826
10813
|
void onRspQryDepthMarketData(const dict &data, const dict &error, int reqid, bool last) override
|
|
10827
10814
|
{
|
|
10828
10815
|
try
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -5,8 +5,8 @@ ctpbee_api/ctp/libthostmduserapi_se.so,sha256=L9-iCMYj39fN0pB9EZHPc0cZMFrSYhW_xq
|
|
|
5
5
|
ctpbee_api/ctp/libthosttraderapi_se.so,sha256=ZsfsfpviJDETXY_eJixVPPAJzeDLGd7gTPvQvm3dtPE,5382769
|
|
6
6
|
ctpbee_api/ctp/thostmduserapi_se.dll,sha256=2X2QBTcMnIlV5j5_2jCu2LUSF_WKtpztTjQ0X4A0GN0,2904064
|
|
7
7
|
ctpbee_api/ctp/thosttraderapi_se.dll,sha256=mgjwKEfk92Y-mk-CEAuP0bG41bx1gX5A9xZLjZFOHVY,3288576
|
|
8
|
-
ctpbee_api/ctp/vnctpmd.cp313-win_amd64.pyd,sha256=
|
|
9
|
-
ctpbee_api/ctp/vnctptd.cp313-win_amd64.pyd,sha256=
|
|
8
|
+
ctpbee_api/ctp/vnctpmd.cp313-win_amd64.pyd,sha256=WfYeCjm_pMRSBrm0-gd8pt_cQJ2dYNcN3p4RIJ9ktTY,209408
|
|
9
|
+
ctpbee_api/ctp/vnctptd.cp313-win_amd64.pyd,sha256=qOwNP3jJXe_rvH8YwjYraHO8YRKwHpKDhZjYb22-vgI,1104896
|
|
10
10
|
ctpbee_api/ctp/generator/concat.py,sha256=zINvTtSlwNIIwCnjnjwk0oIVv3_-wgDnRRS_FAJ1KcY,3113
|
|
11
11
|
ctpbee_api/ctp/generator/const.py,sha256=jIrdo9rVvaSj-qh4-4wUVkO5LR0K4fKj3n5-u_N0KzU,7165
|
|
12
12
|
ctpbee_api/ctp/generator/ctp_constant.py,sha256=K2gn0B8E7tSV8GPM846g8lBmDGlA0y2-G5005vN3lSs,41839
|
|
@@ -153,7 +153,7 @@ ctpbee_api/ctp/vnctp/vnctptd/dllmain.cpp,sha256=RBdeSvREHArOGyNnuQQf3O_0m2Z2fL8s
|
|
|
153
153
|
ctpbee_api/ctp/vnctp/vnctptd/stdafx.cpp,sha256=Yj6RdfxRRQpT9xirVcoV912G_q4LO3xZ1VEE-lPYRAU,21
|
|
154
154
|
ctpbee_api/ctp/vnctp/vnctptd/stdafx.h,sha256=viv-zJfjxUq42Ttuf8ed8dbt4hmNcmRaRBJMDUDCDJs,374
|
|
155
155
|
ctpbee_api/ctp/vnctp/vnctptd/targetver.h,sha256=SagR8Xke0x_J9FtmZwk_0UrCJfynq60u71mi6ew3jAg,296
|
|
156
|
-
ctpbee_api/ctp/vnctp/vnctptd/vnctptd.cpp,sha256=
|
|
156
|
+
ctpbee_api/ctp/vnctp/vnctptd/vnctptd.cpp,sha256=yYA9m5mly__OTm_NDpYvxCDjsoe5pxgGCiuqxzwOlWY,436475
|
|
157
157
|
ctpbee_api/ctp/vnctp/vnctptd/vnctptd.h,sha256=yw8xCSRn11peyetvn6TYtn_NdoOBV1ERHjJ3CfchNus,57306
|
|
158
158
|
ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj,sha256=PZl3S3LLPqbV6S06F6oEWgcQ8_x9uRSo5GIBbpx0ZhI,10725
|
|
159
159
|
ctpbee_api/ctp/vnctp/vnctptd/vnctptd.vcxproj.filters,sha256=eWYS-vGjDlg2-VndHQ2BYxWZEoU-3GIoHNpdAN3CtEU,2000
|
|
@@ -164,8 +164,8 @@ ctpbee_api/ctp_mini/libthosttraderapi.so,sha256=zYyWfI6oNi0UyP5bX1_JWx_5plibCzom
|
|
|
164
164
|
ctpbee_api/ctp_mini/mini_constant.py,sha256=Jjl9msUup_-8_gqxP0BtjEGdqizA4AP_CcloafFU3ws,38990
|
|
165
165
|
ctpbee_api/ctp_mini/thostmduserapi.dll,sha256=55jsCD-TEjA8JtETS0uVZC3S8BJBLu7D9ShVfQc4b4M,666624
|
|
166
166
|
ctpbee_api/ctp_mini/thosttraderapi.dll,sha256=vbxUVG5wZTE3B99hFIHUc3PeuZgR_QO3loCxsrJF4YY,2481152
|
|
167
|
-
ctpbee_api/ctp_mini/vnctp_minimd.cp313-win_amd64.pyd,sha256=
|
|
168
|
-
ctpbee_api/ctp_mini/vnctp_minitd.cp313-win_amd64.pyd,sha256=
|
|
167
|
+
ctpbee_api/ctp_mini/vnctp_minimd.cp313-win_amd64.pyd,sha256=2lpXWqQfE5pSklpHSkGgwhRid7tLB8F4l4xtI4N0Sgo,200704
|
|
168
|
+
ctpbee_api/ctp_mini/vnctp_minitd.cp313-win_amd64.pyd,sha256=VIxH6IQWSo5cA2Vei58PlJElOqF7cl72I7Ysj6u3VNY,602624
|
|
169
169
|
ctpbee_api/ctp_mini/vnctp_minitd.lib,sha256=B46FT6_wU6A7jyfx_Ad4kMLNtm81DrX0p1MSPTtVSGY,1750
|
|
170
170
|
ctpbee_api/ctp_mini/generator/generate_api_functions.py,sha256=rBfKQ0WuJi6mgSZefSvtzDrRpn6V1ddUWw3MkksqwYM,13363
|
|
171
171
|
ctpbee_api/ctp_mini/generator/generate_data_type.py,sha256=_olRQIV7Sk4MRmp0Dz5toriKf47YjCp0HfA_SQt712Y,2039
|
|
@@ -292,8 +292,8 @@ ctpbee_api/rohon/libthosttraderapi_se.so,sha256=2T9XFAHSDAYJnry7ZxK5xmpICUwItjHM
|
|
|
292
292
|
ctpbee_api/rohon/rohon_constant.py,sha256=DcpKFDXxJK6bnofqxinPD4V6XENmzNMComJC6FMW-tU,40901
|
|
293
293
|
ctpbee_api/rohon/thostmduserapi_se.dll,sha256=b0nqdY_HDBOlDwOE3PAt1PI2qYs6L5da_4dMyJDMZpM,2809856
|
|
294
294
|
ctpbee_api/rohon/thosttraderapi_se.dll,sha256=Z4tnwA97nS-UZbZwWQWo1EGzJ8FGNbX86qgQJcK53-E,206336
|
|
295
|
-
ctpbee_api/rohon/vnrohonmd.cp313-win_amd64.pyd,sha256=
|
|
296
|
-
ctpbee_api/rohon/vnrohontd.cp313-win_amd64.pyd,sha256=
|
|
295
|
+
ctpbee_api/rohon/vnrohonmd.cp313-win_amd64.pyd,sha256=xB6KWZPTaXMsH0gKp0miofAD3_aQJ97YQIPFFVe_7xA,202240
|
|
296
|
+
ctpbee_api/rohon/vnrohontd.cp313-win_amd64.pyd,sha256=G3p6ucTDzbOLgULjmyiYkQdzu1KESm0ueEXtvldgVGE,1030144
|
|
297
297
|
ctpbee_api/rohon/generator/generate_api_functions.py,sha256=06o1OtNccJI2RW8V8-sQCSSwnZ-wV_KPAuRryu5G5ws,13667
|
|
298
298
|
ctpbee_api/rohon/generator/generate_data_type.py,sha256=FFxk-BwGmVlRuccYFYnOEi949aGb_YT7NIcb90byNhY,2022
|
|
299
299
|
ctpbee_api/rohon/generator/generate_struct.py,sha256=KDf9OAjMPNZiNuh8QXKZQdyDtezimV4JPteGFVhQSBo,2279
|
|
@@ -408,7 +408,7 @@ ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.h,sha256=dVsI9f10_wOs29pEUtKFf_PwNI
|
|
|
408
408
|
ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj,sha256=9OdQZjrguaYg7Xc4BaXEbAgD1h6yU1C0ysm3UxdsLpo,9847
|
|
409
409
|
ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj.filters,sha256=scQg1ZHD1JICi5bfece7TRyzo4j7A4prLCx3GFSOfFU,2008
|
|
410
410
|
ctpbee_api/rohon/vnrohon/vnrohontd/vnrohontd.vcxproj.user,sha256=6VOwJtDzgxiMdTSH3wpNh5-l2luoKsl5qod9uE6JoGA,165
|
|
411
|
-
ctpbee_opt_api-0.1.
|
|
412
|
-
ctpbee_opt_api-0.1.
|
|
413
|
-
ctpbee_opt_api-0.1.
|
|
414
|
-
ctpbee_opt_api-0.1.
|
|
411
|
+
ctpbee_opt_api-0.1.5.dist-info/METADATA,sha256=AIBPgMOfUz2y6vcQ0i_5Qc8oF-eso_l0Qc98JgM57Hg,1404
|
|
412
|
+
ctpbee_opt_api-0.1.5.dist-info/WHEEL,sha256=-WvvtQtdhM1F5HMi-4hSXLQ_1Tg6qJRWO1HnLNr4mCU,102
|
|
413
|
+
ctpbee_opt_api-0.1.5.dist-info/top_level.txt,sha256=C9UJWyrSHeURUlhNrW8Zkv2yZVVuiOfUM8-GqRhGoaA,11
|
|
414
|
+
ctpbee_opt_api-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|