@hitrading/ctp-node 1.0.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.
- package/LICENSE +201 -0
- package/README.md +208 -0
- package/README.zh-CN.md +185 -0
- package/binding.gyp +90 -0
- package/dist/client.d.ts +115 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +466 -0
- package/dist/client.js.map +1 -0
- package/dist/codec.d.ts +29 -0
- package/dist/codec.d.ts.map +1 -0
- package/dist/codec.js +131 -0
- package/dist/codec.js.map +1 -0
- package/dist/generated/enums.gen.d.ts +2257 -0
- package/dist/generated/enums.gen.d.ts.map +1 -0
- package/dist/generated/enums.gen.js +2576 -0
- package/dist/generated/enums.gen.js.map +1 -0
- package/dist/generated/structs.gen.d.ts +11041 -0
- package/dist/generated/structs.gen.d.ts.map +1 -0
- package/dist/generated/structs.gen.js +939 -0
- package/dist/generated/structs.gen.js.map +1 -0
- package/dist/generated/trader.gen.d.ts +273 -0
- package/dist/generated/trader.gen.d.ts.map +1 -0
- package/dist/generated/trader.gen.js +653 -0
- package/dist/generated/trader.gen.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/market-data.d.ts +66 -0
- package/dist/market-data.d.ts.map +1 -0
- package/dist/market-data.js +105 -0
- package/dist/market-data.js.map +1 -0
- package/dist/native-binding.d.ts +2 -0
- package/dist/native-binding.d.ts.map +1 -0
- package/dist/native-binding.js +22 -0
- package/dist/native-binding.js.map +1 -0
- package/dist/trader.d.ts +234 -0
- package/dist/trader.d.ts.map +1 -0
- package/dist/trader.js +388 -0
- package/dist/trader.js.map +1 -0
- package/package.json +69 -0
- package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
- package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
- package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
- package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
- package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
- package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
- package/src/addon.cc +171 -0
- package/src/client.ts +539 -0
- package/src/codec.ts +160 -0
- package/src/generated/enums.gen.ts +2576 -0
- package/src/generated/layout.gen.cc +5771 -0
- package/src/generated/layout.gen.h +8 -0
- package/src/generated/structids.gen.h +470 -0
- package/src/generated/structs.gen.ts +12437 -0
- package/src/generated/trader.gen.ts +656 -0
- package/src/generated/traderreq.gen.cc +706 -0
- package/src/generated/traderreq.gen.h +127 -0
- package/src/generated/traderspi.gen.cc +636 -0
- package/src/generated/traderspi.gen.h +334 -0
- package/src/index.ts +14 -0
- package/src/market-data.ts +145 -0
- package/src/native/arm.cc +77 -0
- package/src/native/arm.h +71 -0
- package/src/native/channel.cc +175 -0
- package/src/native/channel.h +117 -0
- package/src/native/gbk.cc +54 -0
- package/src/native/gbk.h +17 -0
- package/src/native/mdapi.cc +412 -0
- package/src/native/mdapi.h +14 -0
- package/src/native/mdspi.cc +103 -0
- package/src/native/mdspi.h +81 -0
- package/src/native/risk.cc +461 -0
- package/src/native/risk.h +183 -0
- package/src/native/traderapi.cc +533 -0
- package/src/native/traderapi.h +14 -0
- package/src/native-binding.ts +25 -0
- package/src/trader.ts +522 -0
- package/tradeapi/ThostFtdcMdApi.h +168 -0
- package/tradeapi/ThostFtdcTraderApi.h +914 -0
- package/tradeapi/ThostFtdcUserApiDataType.h +7068 -0
- package/tradeapi/ThostFtdcUserApiStruct.h +12386 -0
- package/tradeapi/error.dtd +9 -0
- package/tradeapi/error.xml +284 -0
- package/tradeapi/linux/thostmduserapi_se.so +0 -0
- package/tradeapi/linux/thosttraderapi_se.so +0 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcMdApi.h +168 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +7068 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +12386 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -0
- package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcTraderApi.h +914 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +7068 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +12386 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -0
- package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
- package/tradeapi/windows/thostmduserapi_se.dll +0 -0
- package/tradeapi/windows/thostmduserapi_se.lib +0 -0
- package/tradeapi/windows/thosttraderapi_se.dll +0 -0
- package/tradeapi/windows/thosttraderapi_se.lib +0 -0
|
@@ -0,0 +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>thosttraderapi_se</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>com.sfit.thosttraderapi-se</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>thosttraderapi_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>
|
|
@@ -0,0 +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
|
+
X1H89a2iiVdfZzePZaqF06iw1Rc=
|
|
10
|
+
</data>
|
|
11
|
+
</dict>
|
|
12
|
+
<key>files2</key>
|
|
13
|
+
<dict>
|
|
14
|
+
<key>Headers/ThostFtdcTraderApi.h</key>
|
|
15
|
+
<dict>
|
|
16
|
+
<key>hash2</key>
|
|
17
|
+
<data>
|
|
18
|
+
0x7zMc1bVvRIy312MGyf753BGFNVc8CR1oiMSDZxxXY=
|
|
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
|
+
t/sOlFfk2yt+Wp1egkSqw2BT35L9mLuTYXZNQpZKbGY=
|
|
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>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|