nodejs-order-book 8.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 +21 -0
- package/README.md +464 -0
- package/dist/cjs/errors.js +81 -0
- package/dist/cjs/index.js +10 -0
- package/dist/cjs/order.js +303 -0
- package/dist/cjs/orderbook.js +850 -0
- package/dist/cjs/orderqueue.js +78 -0
- package/dist/cjs/orderside.js +158 -0
- package/dist/cjs/stopbook.js +65 -0
- package/dist/cjs/stopqueue.js +59 -0
- package/dist/cjs/stopside.js +76 -0
- package/dist/cjs/types.js +23 -0
- package/dist/esm/errors.js +77 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/order.js +300 -0
- package/dist/esm/orderbook.js +847 -0
- package/dist/esm/orderqueue.js +72 -0
- package/dist/esm/orderside.js +152 -0
- package/dist/esm/stopbook.js +62 -0
- package/dist/esm/stopqueue.js +53 -0
- package/dist/esm/stopside.js +70 -0
- package/dist/esm/types.js +20 -0
- package/dist/types/errors.d.ts +26 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/order.d.ts +71 -0
- package/dist/types/orderbook.d.ts +218 -0
- package/dist/types/orderqueue.d.ts +18 -0
- package/dist/types/orderside.d.ts +29 -0
- package/dist/types/stopbook.d.ts +20 -0
- package/dist/types/stopqueue.d.ts +12 -0
- package/dist/types/stopside.d.ts +12 -0
- package/dist/types/types.d.ts +324 -0
- package/dist/umd/index.js +2 -0
- package/dist/umd/index.js.LICENSE.txt +10 -0
- package/package.json +89 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
+
|
|
10
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nodejs-order-book",
|
|
3
|
+
"version": "8.0.0",
|
|
4
|
+
"description": "Node.js Lmit Order Book for high-frequency trading (HFT).",
|
|
5
|
+
"author": "Andrea Fassina <andrea.fassina82@gmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/fasenderos/nodejs-order-book",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git@github.com:fasenderos/nodejs-order-book.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/fasenderos/nodejs-order-book/issues"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/cjs/index.js",
|
|
16
|
+
"module": "dist/esm/index.js",
|
|
17
|
+
"umd:main": "dist/umd/index.js",
|
|
18
|
+
"types": "dist/types/index.d.js",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"addscope": "node tools/packagejson name @fasenderos/nodejs-order-book",
|
|
21
|
+
"bench": "node benchmarks/benchmark_lob.js",
|
|
22
|
+
"build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types",
|
|
23
|
+
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json",
|
|
24
|
+
"build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json",
|
|
25
|
+
"build:umd": "node tools/cleanup umd && webpack --config config/webpack.config.js",
|
|
26
|
+
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json",
|
|
27
|
+
"clean": "node tools/cleanup",
|
|
28
|
+
"lint": "biome check ./src ./test",
|
|
29
|
+
"lint:fix": "biome check --write ./src ./test",
|
|
30
|
+
"package": "npm run build && npm pack",
|
|
31
|
+
"postpublish": "pinst --enable",
|
|
32
|
+
"prepublishOnly": "pinst --disable",
|
|
33
|
+
"release": "release-it --ci",
|
|
34
|
+
"release:beta": "release-it --ci --preRelease=beta",
|
|
35
|
+
"release:major": "release-it major --ci",
|
|
36
|
+
"release:minor": "release-it minor --ci",
|
|
37
|
+
"release:patch": "release-it patch --ci",
|
|
38
|
+
"test": "c8 node --import=tsx --test ./test/*.test.ts",
|
|
39
|
+
"test:dev": "c8 node --import=tsx --test --watch ./test/*.test.ts",
|
|
40
|
+
"test:ci": "node --import=tsx --test ./test/*.test.ts",
|
|
41
|
+
"test:cov": "c8 --reporter=lcov node --import=tsx --test ./test/*.test.ts",
|
|
42
|
+
"prepare": "husky"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"denque": "2.1.0",
|
|
46
|
+
"functional-red-black-tree": "1.0.1"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@biomejs/biome": "^1.8.3",
|
|
50
|
+
"@commitlint/cli": "^19.3.0",
|
|
51
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
52
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
53
|
+
"@types/functional-red-black-tree": "^1.0.6",
|
|
54
|
+
"c8": "^10.1.2",
|
|
55
|
+
"crypto-browserify": "^3.12.0",
|
|
56
|
+
"gaussian": "^1.0.0",
|
|
57
|
+
"husky": "^9.1.1",
|
|
58
|
+
"nanobench": "^3.0.0",
|
|
59
|
+
"pinst": "^3.0.0",
|
|
60
|
+
"release-it": "^17.0.3",
|
|
61
|
+
"stream-browserify": "^3.0.0",
|
|
62
|
+
"ts-loader": "^9.0.0",
|
|
63
|
+
"ts-node": "^10.0.0",
|
|
64
|
+
"tsx": "^4.16.5",
|
|
65
|
+
"typescript": "^5.0.0",
|
|
66
|
+
"vm-browserify": "^1.1.2",
|
|
67
|
+
"webpack": "^5.0.0",
|
|
68
|
+
"webpack-cli": "^5.0.0"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"files": [
|
|
74
|
+
"dist"
|
|
75
|
+
],
|
|
76
|
+
"keywords": [
|
|
77
|
+
"exchange",
|
|
78
|
+
"hft",
|
|
79
|
+
"hft-trading",
|
|
80
|
+
"limit-nodejs-order-book",
|
|
81
|
+
"matching-algorithm",
|
|
82
|
+
"matching-engine",
|
|
83
|
+
"nodejs",
|
|
84
|
+
"orderbook",
|
|
85
|
+
"nodejs-order-book",
|
|
86
|
+
"typescript",
|
|
87
|
+
"trading"
|
|
88
|
+
]
|
|
89
|
+
}
|