fixparser 5.7.2 → 5.7.3
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/README.md
CHANGED
|
@@ -127,14 +127,14 @@ Parse a FIX message as JSON, including repeating groups:
|
|
|
127
127
|
```typescript
|
|
128
128
|
import { FIXParser } from 'fixparser';
|
|
129
129
|
const fixParser: FIXParser = new FIXParser();
|
|
130
|
-
const messages: Message[] = fixParser.parse('8=
|
|
130
|
+
const messages: Message[] = fixParser.parse('8=FIX.4.4|9=142|35=V|34=1|49=SENDER|56=TARGET|52=20090323-15:40:29|264=0|265=0|262=1|263=1|268=5|269=0|269=1|269=b|269=c|269=B|146=5|55=1|55=2|55=3|55=4|55=5|10=062|');
|
|
131
131
|
console.log(message[0].toFIXJSON());
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
```json
|
|
135
135
|
{
|
|
136
136
|
"Header": {
|
|
137
|
-
"BeginString": "
|
|
137
|
+
"BeginString": "FIX.4.4",
|
|
138
138
|
"MsgType": "V",
|
|
139
139
|
"BodyLength": 142,
|
|
140
140
|
"MsgSeqNum": 1,
|
|
@@ -162,7 +162,7 @@ console.log(message[0].toFIXJSON());
|
|
|
162
162
|
],
|
|
163
163
|
"SubscriptionRequestType": "1"
|
|
164
164
|
},
|
|
165
|
-
"Trailer": { "CheckSum": "
|
|
165
|
+
"Trailer": { "CheckSum": "062" }
|
|
166
166
|
}
|
|
167
167
|
```
|
|
168
168
|
|
|
@@ -258,19 +258,19 @@ Performance
|
|
|
258
258
|
```bash
|
|
259
259
|
┌─────────────────────────────────┬───────────────┬──────────────┬──────────────┐
|
|
260
260
|
│ FIX Messages │ Messages/sec │ Microseconds │ Milliseconds │
|
|
261
|
-
│ 200,000 iterations (same msg) │
|
|
262
|
-
│ 200,000 iterations (same msg) │
|
|
263
|
-
│ 200,000 iterations (random msg) │
|
|
264
|
-
│ 200,000 iterations (same msg) │
|
|
265
|
-
│ 200,000 iterations (random msg) │
|
|
266
|
-
│ 200,000 iterations (same msg) │
|
|
267
|
-
│ 200,000 iterations (random msg) │
|
|
268
|
-
│ 200,000 iterations (same msg) │
|
|
269
|
-
│ 200,000 iterations (same msg) │
|
|
270
|
-
│ 200,000 iterations (same msg) │
|
|
261
|
+
│ 200,000 iterations (same msg) │ 330,579 msg/s │ 3.0250 μs │ 0.0030 ms │
|
|
262
|
+
│ 200,000 iterations (same msg) │ 337,268 msg/s │ 2.9650 μs │ 0.0030 ms │
|
|
263
|
+
│ 200,000 iterations (random msg) │ 202,224 msg/s │ 4.9450 μs │ 0.0049 ms │
|
|
264
|
+
│ 200,000 iterations (same msg) │ 327,332 msg/s │ 3.0550 μs │ 0.0031 ms │
|
|
265
|
+
│ 200,000 iterations (random msg) │ 203,874 msg/s │ 4.9050 μs │ 0.0049 ms │
|
|
266
|
+
│ 200,000 iterations (same msg) │ 326,797 msg/s │ 3.0600 μs │ 0.0031 ms │
|
|
267
|
+
│ 200,000 iterations (random msg) │ 204,082 msg/s │ 4.9000 μs │ 0.0049 ms │
|
|
268
|
+
│ 200,000 iterations (same msg) │ 326,797 msg/s │ 3.0600 μs │ 0.0031 ms │
|
|
269
|
+
│ 200,000 iterations (same msg) │ 326,797 msg/s │ 3.0600 μs │ 0.0031 ms │
|
|
270
|
+
│ 200,000 iterations (same msg) │ 325,733 msg/s │ 3.0700 μs │ 0.0031 ms │
|
|
271
271
|
└─────────────────────────────────┴───────────────┴──────────────┴──────────────┘
|
|
272
272
|
```
|
|
273
|
-
MacBook
|
|
273
|
+
MacBook Pro, Apple M1 Max (64 GB), node 19.2.0, run with `npm run perf`.
|
|
274
274
|
|
|
275
275
|
Message format
|
|
276
276
|
--------------
|
package/build/cjs/FIXParser.js
CHANGED
|
@@ -68468,8 +68468,8 @@ var import_openpgp = __toESM(require_openpgp_min());
|
|
|
68468
68468
|
|
|
68469
68469
|
// src/util/util.ts
|
|
68470
68470
|
var version = {
|
|
68471
|
-
version: "5.7.
|
|
68472
|
-
build: "2022-12-
|
|
68471
|
+
version: "5.7.3",
|
|
68472
|
+
build: "2022-12-07T21:30:33.193Z"
|
|
68473
68473
|
};
|
|
68474
68474
|
var DEFAULT_FIX_VERSION = "FIX.5.0SP2";
|
|
68475
68475
|
var DEFAULT_HEARTBEAT_SECONDS = 30;
|
|
@@ -68738,7 +68738,7 @@ var _LicenseManager = class {
|
|
|
68738
68738
|
}
|
|
68739
68739
|
};
|
|
68740
68740
|
var LicenseManager = _LicenseManager;
|
|
68741
|
-
__publicField(LicenseManager, "RELEASE_INFORMATION", "
|
|
68741
|
+
__publicField(LicenseManager, "RELEASE_INFORMATION", "MTY3MDQ0ODYzMzE5Mw==");
|
|
68742
68742
|
__publicField(LicenseManager, "licenseKey");
|
|
68743
68743
|
__publicField(LicenseManager, "licenseKeyId", null);
|
|
68744
68744
|
__publicField(LicenseManager, "licenseExpiry", null);
|
|
@@ -59334,8 +59334,8 @@ var np = /* @__PURE__ */ Object.freeze({ __proto__: null, default: ip, __moduleE
|
|
|
59334
59334
|
|
|
59335
59335
|
// src/util/util.ts
|
|
59336
59336
|
var version = {
|
|
59337
|
-
version: "5.7.
|
|
59338
|
-
build: "2022-12-
|
|
59337
|
+
version: "5.7.3",
|
|
59338
|
+
build: "2022-12-07T21:30:33.193Z"
|
|
59339
59339
|
};
|
|
59340
59340
|
var DEFAULT_FIX_VERSION = "FIX.5.0SP2";
|
|
59341
59341
|
var DEFAULT_HEARTBEAT_SECONDS = 30;
|
|
@@ -59603,7 +59603,7 @@ var _LicenseManager = class {
|
|
|
59603
59603
|
}
|
|
59604
59604
|
};
|
|
59605
59605
|
var LicenseManager = _LicenseManager;
|
|
59606
|
-
__publicField(LicenseManager, "RELEASE_INFORMATION", "
|
|
59606
|
+
__publicField(LicenseManager, "RELEASE_INFORMATION", "MTY3MDQ0ODYzMzE5Mw==");
|
|
59607
59607
|
__publicField(LicenseManager, "licenseKey");
|
|
59608
59608
|
__publicField(LicenseManager, "licenseKeyId", null);
|
|
59609
59609
|
__publicField(LicenseManager, "licenseExpiry", null);
|
package/build/cjs/FIXServer.js
CHANGED
|
@@ -68471,8 +68471,8 @@ var import_openpgp = __toESM(require_openpgp_min());
|
|
|
68471
68471
|
|
|
68472
68472
|
// src/util/util.ts
|
|
68473
68473
|
var version = {
|
|
68474
|
-
version: "5.7.
|
|
68475
|
-
build: "2022-12-
|
|
68474
|
+
version: "5.7.3",
|
|
68475
|
+
build: "2022-12-07T21:30:33.193Z"
|
|
68476
68476
|
};
|
|
68477
68477
|
var DEFAULT_FIX_VERSION = "FIX.5.0SP2";
|
|
68478
68478
|
var DEFAULT_HEARTBEAT_SECONDS = 30;
|
|
@@ -68741,7 +68741,7 @@ var _LicenseManager = class {
|
|
|
68741
68741
|
}
|
|
68742
68742
|
};
|
|
68743
68743
|
var LicenseManager = _LicenseManager;
|
|
68744
|
-
__publicField(LicenseManager, "RELEASE_INFORMATION", "
|
|
68744
|
+
__publicField(LicenseManager, "RELEASE_INFORMATION", "MTY3MDQ0ODYzMzE5Mw==");
|
|
68745
68745
|
__publicField(LicenseManager, "licenseKey");
|
|
68746
68746
|
__publicField(LicenseManager, "licenseKeyId", null);
|
|
68747
68747
|
__publicField(LicenseManager, "licenseExpiry", null);
|
package/build/esm/FIXParser.mjs
CHANGED
|
@@ -68451,8 +68451,8 @@ var import_openpgp = __toESM(require_openpgp_min());
|
|
|
68451
68451
|
|
|
68452
68452
|
// src/util/util.ts
|
|
68453
68453
|
var version = {
|
|
68454
|
-
version: "5.7.
|
|
68455
|
-
build: "2022-12-
|
|
68454
|
+
version: "5.7.3",
|
|
68455
|
+
build: "2022-12-07T21:30:33.193Z"
|
|
68456
68456
|
};
|
|
68457
68457
|
var DEFAULT_FIX_VERSION = "FIX.5.0SP2";
|
|
68458
68458
|
var DEFAULT_HEARTBEAT_SECONDS = 30;
|
|
@@ -68721,7 +68721,7 @@ var _LicenseManager = class {
|
|
|
68721
68721
|
}
|
|
68722
68722
|
};
|
|
68723
68723
|
var LicenseManager = _LicenseManager;
|
|
68724
|
-
__publicField(LicenseManager, "RELEASE_INFORMATION", "
|
|
68724
|
+
__publicField(LicenseManager, "RELEASE_INFORMATION", "MTY3MDQ0ODYzMzE5Mw==");
|
|
68725
68725
|
__publicField(LicenseManager, "licenseKey");
|
|
68726
68726
|
__publicField(LicenseManager, "licenseKeyId", null);
|
|
68727
68727
|
__publicField(LicenseManager, "licenseExpiry", null);
|
|
@@ -59296,8 +59296,8 @@ var np = /* @__PURE__ */ Object.freeze({ __proto__: null, default: ip, __moduleE
|
|
|
59296
59296
|
|
|
59297
59297
|
// src/util/util.ts
|
|
59298
59298
|
var version = {
|
|
59299
|
-
version: "5.7.
|
|
59300
|
-
build: "2022-12-
|
|
59299
|
+
version: "5.7.3",
|
|
59300
|
+
build: "2022-12-07T21:30:33.193Z"
|
|
59301
59301
|
};
|
|
59302
59302
|
var DEFAULT_FIX_VERSION = "FIX.5.0SP2";
|
|
59303
59303
|
var DEFAULT_HEARTBEAT_SECONDS = 30;
|
|
@@ -59565,7 +59565,7 @@ var _LicenseManager = class {
|
|
|
59565
59565
|
}
|
|
59566
59566
|
};
|
|
59567
59567
|
var LicenseManager = _LicenseManager;
|
|
59568
|
-
__publicField(LicenseManager, "RELEASE_INFORMATION", "
|
|
59568
|
+
__publicField(LicenseManager, "RELEASE_INFORMATION", "MTY3MDQ0ODYzMzE5Mw==");
|
|
59569
59569
|
__publicField(LicenseManager, "licenseKey");
|
|
59570
59570
|
__publicField(LicenseManager, "licenseKeyId", null);
|
|
59571
59571
|
__publicField(LicenseManager, "licenseExpiry", null);
|
package/build/esm/FIXServer.mjs
CHANGED
|
@@ -68454,8 +68454,8 @@ var import_openpgp = __toESM(require_openpgp_min());
|
|
|
68454
68454
|
|
|
68455
68455
|
// src/util/util.ts
|
|
68456
68456
|
var version = {
|
|
68457
|
-
version: "5.7.
|
|
68458
|
-
build: "2022-12-
|
|
68457
|
+
version: "5.7.3",
|
|
68458
|
+
build: "2022-12-07T21:30:33.193Z"
|
|
68459
68459
|
};
|
|
68460
68460
|
var DEFAULT_FIX_VERSION = "FIX.5.0SP2";
|
|
68461
68461
|
var DEFAULT_HEARTBEAT_SECONDS = 30;
|
|
@@ -68724,7 +68724,7 @@ var _LicenseManager = class {
|
|
|
68724
68724
|
}
|
|
68725
68725
|
};
|
|
68726
68726
|
var LicenseManager = _LicenseManager;
|
|
68727
|
-
__publicField(LicenseManager, "RELEASE_INFORMATION", "
|
|
68727
|
+
__publicField(LicenseManager, "RELEASE_INFORMATION", "MTY3MDQ0ODYzMzE5Mw==");
|
|
68728
68728
|
__publicField(LicenseManager, "licenseKey");
|
|
68729
68729
|
__publicField(LicenseManager, "licenseKeyId", null);
|
|
68730
68730
|
__publicField(LicenseManager, "licenseExpiry", null);
|