@hitrading/ctp-node 1.1.0 → 1.2.0

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 (54) hide show
  1. package/README.md +2 -1
  2. package/README.zh-CN.md +2 -1
  3. package/dist/generated/enums.gen.d.ts +76 -6
  4. package/dist/generated/enums.gen.d.ts.map +1 -1
  5. package/dist/generated/enums.gen.js +78 -0
  6. package/dist/generated/enums.gen.js.map +1 -1
  7. package/dist/generated/structs.gen.d.ts +6271 -4816
  8. package/dist/generated/structs.gen.d.ts.map +1 -1
  9. package/dist/generated/structs.gen.js +131 -25
  10. package/dist/generated/structs.gen.js.map +1 -1
  11. package/dist/generated/trader.gen.d.ts +39 -1
  12. package/dist/generated/trader.gen.d.ts.map +1 -1
  13. package/dist/generated/trader.gen.js +315 -225
  14. package/dist/generated/trader.gen.js.map +1 -1
  15. package/dist/index.cjs +534 -252
  16. package/package.json +6 -2
  17. package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
  18. package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
  19. package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
  20. package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
  21. package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
  22. package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
  23. package/src/generated/enums.gen.ts +78 -0
  24. package/src/generated/layout.gen.cc +794 -40
  25. package/src/generated/structids.gen.h +54 -1
  26. package/src/generated/structs.gen.ts +6455 -4841
  27. package/src/generated/trader.gen.ts +315 -225
  28. package/src/generated/traderreq.gen.cc +84 -0
  29. package/src/generated/traderreq.gen.h +89 -75
  30. package/src/generated/traderspi.gen.cc +96 -0
  31. package/src/generated/traderspi.gen.h +198 -150
  32. package/tradeapi/ThostFtdcMdApi.h +69 -68
  33. package/tradeapi/ThostFtdcTraderApi.h +450 -323
  34. package/tradeapi/ThostFtdcUserApiDataType.h +2288 -2092
  35. package/tradeapi/ThostFtdcUserApiStruct.h +7049 -5487
  36. package/tradeapi/error.xml +56 -11
  37. package/tradeapi/linux/thostmduserapi_se.so +0 -0
  38. package/tradeapi/linux/thosttraderapi_se.so +0 -0
  39. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcMdApi.h +66 -66
  40. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
  41. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
  42. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -46
  43. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
  44. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
  45. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcTraderApi.h +333 -321
  46. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
  47. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
  48. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -46
  49. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
  50. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
  51. package/tradeapi/windows/thostmduserapi_se.dll +0 -0
  52. package/tradeapi/windows/thostmduserapi_se.lib +0 -0
  53. package/tradeapi/windows/thosttraderapi_se.dll +0 -0
  54. package/tradeapi/windows/thosttraderapi_se.lib +0 -0
@@ -1,46 +1,46 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>BuildMachineOSBuild</key>
6
- <string>21G920</string>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>en</string>
9
- <key>CFBundleExecutable</key>
10
- <string>thostmduserapi_se</string>
11
- <key>CFBundleIdentifier</key>
12
- <string>com.sfit.thostmduserapi-se</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
15
- <key>CFBundleName</key>
16
- <string>thostmduserapi_se</string>
17
- <key>CFBundlePackageType</key>
18
- <string>FMWK</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
21
- <key>CFBundleSupportedPlatforms</key>
22
- <array>
23
- <string>MacOSX</string>
24
- </array>
25
- <key>CFBundleVersion</key>
26
- <string>1</string>
27
- <key>DTCompiler</key>
28
- <string>com.apple.compilers.llvm.clang.1_0</string>
29
- <key>DTPlatformBuild</key>
30
- <string>14C18</string>
31
- <key>DTPlatformName</key>
32
- <string>macosx</string>
33
- <key>DTPlatformVersion</key>
34
- <string>13.1</string>
35
- <key>DTSDKBuild</key>
36
- <string>22C55</string>
37
- <key>DTSDKName</key>
38
- <string>macosx13.1</string>
39
- <key>DTXcode</key>
40
- <string>1420</string>
41
- <key>DTXcodeBuild</key>
42
- <string>14C18</string>
43
- <key>LSMinimumSystemVersion</key>
44
- <string>10.15</string>
45
- </dict>
46
- </plist>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildMachineOSBuild</key>
6
+ <string>23F79</string>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>thostmduserapi_se</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>com.sfit.thostmduserapi-se</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>thostmduserapi_se</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>FMWK</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSupportedPlatforms</key>
22
+ <array>
23
+ <string>MacOSX</string>
24
+ </array>
25
+ <key>CFBundleVersion</key>
26
+ <string>1</string>
27
+ <key>DTCompiler</key>
28
+ <string>com.apple.compilers.llvm.clang.1_0</string>
29
+ <key>DTPlatformBuild</key>
30
+ <string></string>
31
+ <key>DTPlatformName</key>
32
+ <string>macosx</string>
33
+ <key>DTPlatformVersion</key>
34
+ <string>14.2</string>
35
+ <key>DTSDKBuild</key>
36
+ <string>23C53</string>
37
+ <key>DTSDKName</key>
38
+ <string>macosx14.2</string>
39
+ <key>DTXcode</key>
40
+ <string>1510</string>
41
+ <key>DTXcodeBuild</key>
42
+ <string>15C65</string>
43
+ <key>LSMinimumSystemVersion</key>
44
+ <string>10.15</string>
45
+ </dict>
46
+ </plist>
@@ -1,149 +1,149 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>files</key>
6
- <dict>
7
- <key>Resources/Info.plist</key>
8
- <data>
9
- uXGO6YXL8PC5n7AD7JIt85ZJx5I=
10
- </data>
11
- </dict>
12
- <key>files2</key>
13
- <dict>
14
- <key>Headers/ThostFtdcMdApi.h</key>
15
- <dict>
16
- <key>hash2</key>
17
- <data>
18
- +CxipAVgnYFLkVGliOMwFgM89cjzne8NdtFw8hmUFkU=
19
- </data>
20
- </dict>
21
- <key>Headers/ThostFtdcUserApiDataType.h</key>
22
- <dict>
23
- <key>hash2</key>
24
- <data>
25
- XRBfUj8nojJbr3Z69EGKS8DPGGAOJN9vpM5LYz0Ju20=
26
- </data>
27
- </dict>
28
- <key>Headers/ThostFtdcUserApiStruct.h</key>
29
- <dict>
30
- <key>hash2</key>
31
- <data>
32
- Tnxe72M0KVaA+U4VoTiCEjtjl+3j0cL6qhZ9lJOZeFQ=
33
- </data>
34
- </dict>
35
- <key>Resources/Info.plist</key>
36
- <dict>
37
- <key>hash2</key>
38
- <data>
39
- IEHhelHwknUKTrUhOxwPECEUoryxXz4tbIapvKhb8Rs=
40
- </data>
41
- </dict>
42
- </dict>
43
- <key>rules</key>
44
- <dict>
45
- <key>^Resources/</key>
46
- <true/>
47
- <key>^Resources/.*\.lproj/</key>
48
- <dict>
49
- <key>optional</key>
50
- <true/>
51
- <key>weight</key>
52
- <real>1000</real>
53
- </dict>
54
- <key>^Resources/.*\.lproj/locversion.plist$</key>
55
- <dict>
56
- <key>omit</key>
57
- <true/>
58
- <key>weight</key>
59
- <real>1100</real>
60
- </dict>
61
- <key>^Resources/Base\.lproj/</key>
62
- <dict>
63
- <key>weight</key>
64
- <real>1010</real>
65
- </dict>
66
- <key>^version.plist$</key>
67
- <true/>
68
- </dict>
69
- <key>rules2</key>
70
- <dict>
71
- <key>.*\.dSYM($|/)</key>
72
- <dict>
73
- <key>weight</key>
74
- <real>11</real>
75
- </dict>
76
- <key>^(.*/)?\.DS_Store$</key>
77
- <dict>
78
- <key>omit</key>
79
- <true/>
80
- <key>weight</key>
81
- <real>2000</real>
82
- </dict>
83
- <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
84
- <dict>
85
- <key>nested</key>
86
- <true/>
87
- <key>weight</key>
88
- <real>10</real>
89
- </dict>
90
- <key>^.*</key>
91
- <true/>
92
- <key>^Info\.plist$</key>
93
- <dict>
94
- <key>omit</key>
95
- <true/>
96
- <key>weight</key>
97
- <real>20</real>
98
- </dict>
99
- <key>^PkgInfo$</key>
100
- <dict>
101
- <key>omit</key>
102
- <true/>
103
- <key>weight</key>
104
- <real>20</real>
105
- </dict>
106
- <key>^Resources/</key>
107
- <dict>
108
- <key>weight</key>
109
- <real>20</real>
110
- </dict>
111
- <key>^Resources/.*\.lproj/</key>
112
- <dict>
113
- <key>optional</key>
114
- <true/>
115
- <key>weight</key>
116
- <real>1000</real>
117
- </dict>
118
- <key>^Resources/.*\.lproj/locversion.plist$</key>
119
- <dict>
120
- <key>omit</key>
121
- <true/>
122
- <key>weight</key>
123
- <real>1100</real>
124
- </dict>
125
- <key>^Resources/Base\.lproj/</key>
126
- <dict>
127
- <key>weight</key>
128
- <real>1010</real>
129
- </dict>
130
- <key>^[^/]+$</key>
131
- <dict>
132
- <key>nested</key>
133
- <true/>
134
- <key>weight</key>
135
- <real>10</real>
136
- </dict>
137
- <key>^embedded\.provisionprofile$</key>
138
- <dict>
139
- <key>weight</key>
140
- <real>20</real>
141
- </dict>
142
- <key>^version\.plist$</key>
143
- <dict>
144
- <key>weight</key>
145
- <real>20</real>
146
- </dict>
147
- </dict>
148
- </dict>
149
- </plist>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Resources/Info.plist</key>
8
+ <data>
9
+ TOE+h5cJeWlDwmJo/Xo5uQQLWvU=
10
+ </data>
11
+ </dict>
12
+ <key>files2</key>
13
+ <dict>
14
+ <key>Headers/ThostFtdcMdApi.h</key>
15
+ <dict>
16
+ <key>hash2</key>
17
+ <data>
18
+ dEtokAKLUmXyqR3WtDgh7HH7BRJ3Cm9ej7AQVvby1Og=
19
+ </data>
20
+ </dict>
21
+ <key>Headers/ThostFtdcUserApiDataType.h</key>
22
+ <dict>
23
+ <key>hash2</key>
24
+ <data>
25
+ jeG/TAar2HshrQ9+4jkob94MKMFWLoH4Xl/HcKjIgww=
26
+ </data>
27
+ </dict>
28
+ <key>Headers/ThostFtdcUserApiStruct.h</key>
29
+ <dict>
30
+ <key>hash2</key>
31
+ <data>
32
+ E0WAQNGnhA4Om36nesySUQiOWRpOfovob8bEQ0DXibU=
33
+ </data>
34
+ </dict>
35
+ <key>Resources/Info.plist</key>
36
+ <dict>
37
+ <key>hash2</key>
38
+ <data>
39
+ W+Y03he/s8YHwth//OW4ntlb03j3ayTRQRuR+s23cWk=
40
+ </data>
41
+ </dict>
42
+ </dict>
43
+ <key>rules</key>
44
+ <dict>
45
+ <key>^Resources/</key>
46
+ <true/>
47
+ <key>^Resources/.*\.lproj/</key>
48
+ <dict>
49
+ <key>optional</key>
50
+ <true/>
51
+ <key>weight</key>
52
+ <real>1000</real>
53
+ </dict>
54
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
55
+ <dict>
56
+ <key>omit</key>
57
+ <true/>
58
+ <key>weight</key>
59
+ <real>1100</real>
60
+ </dict>
61
+ <key>^Resources/Base\.lproj/</key>
62
+ <dict>
63
+ <key>weight</key>
64
+ <real>1010</real>
65
+ </dict>
66
+ <key>^version.plist$</key>
67
+ <true/>
68
+ </dict>
69
+ <key>rules2</key>
70
+ <dict>
71
+ <key>.*\.dSYM($|/)</key>
72
+ <dict>
73
+ <key>weight</key>
74
+ <real>11</real>
75
+ </dict>
76
+ <key>^(.*/)?\.DS_Store$</key>
77
+ <dict>
78
+ <key>omit</key>
79
+ <true/>
80
+ <key>weight</key>
81
+ <real>2000</real>
82
+ </dict>
83
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
84
+ <dict>
85
+ <key>nested</key>
86
+ <true/>
87
+ <key>weight</key>
88
+ <real>10</real>
89
+ </dict>
90
+ <key>^.*</key>
91
+ <true/>
92
+ <key>^Info\.plist$</key>
93
+ <dict>
94
+ <key>omit</key>
95
+ <true/>
96
+ <key>weight</key>
97
+ <real>20</real>
98
+ </dict>
99
+ <key>^PkgInfo$</key>
100
+ <dict>
101
+ <key>omit</key>
102
+ <true/>
103
+ <key>weight</key>
104
+ <real>20</real>
105
+ </dict>
106
+ <key>^Resources/</key>
107
+ <dict>
108
+ <key>weight</key>
109
+ <real>20</real>
110
+ </dict>
111
+ <key>^Resources/.*\.lproj/</key>
112
+ <dict>
113
+ <key>optional</key>
114
+ <true/>
115
+ <key>weight</key>
116
+ <real>1000</real>
117
+ </dict>
118
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
119
+ <dict>
120
+ <key>omit</key>
121
+ <true/>
122
+ <key>weight</key>
123
+ <real>1100</real>
124
+ </dict>
125
+ <key>^Resources/Base\.lproj/</key>
126
+ <dict>
127
+ <key>weight</key>
128
+ <real>1010</real>
129
+ </dict>
130
+ <key>^[^/]+$</key>
131
+ <dict>
132
+ <key>nested</key>
133
+ <true/>
134
+ <key>weight</key>
135
+ <real>10</real>
136
+ </dict>
137
+ <key>^embedded\.provisionprofile$</key>
138
+ <dict>
139
+ <key>weight</key>
140
+ <real>20</real>
141
+ </dict>
142
+ <key>^version\.plist$</key>
143
+ <dict>
144
+ <key>weight</key>
145
+ <real>20</real>
146
+ </dict>
147
+ </dict>
148
+ </dict>
149
+ </plist>