1
1
<p align =" center " >
2
- <a href="https://www.npmjs.com/package/order-book" target="_blank"><img src="https://img.shields.io/npm/v/order-book?color=blue" alt="NPM Version"></a>
3
- <a href="https://github.com/fasenderos/order-book/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/npm/l/order-book" alt="Package License"></a>
4
- <a href="https://www.npmjs.com/package/order-book" target="_blank"><img src="https://img.shields.io/npm/dm/order-book" alt="NPM Downloads"></a>
5
- <a href="https://circleci.com/gh/fasenderos/order-book" target="_blank"><img src="https://img.shields.io/circleci/build/github/fasenderos/order-book/main" alt="CircleCI" ></a>
6
- <a href="https://codecov.io/github/fasenderos/order-book" target="_blank"><img src="https://img.shields.io/codecov/c/github/fasenderos/order-book" alt="Codecov"></a>
7
- <a href="https://github.com/fasenderos/order-book"><img src="https://badgen.net/badge/icon/typescript?icon=typescript&label" alt="Built with TypeScript"></a>
2
+ <a href="https://www.npmjs.com/package/nodejs- order-book" target="_blank"><img src="https://img.shields.io/npm/v/nodejs- order-book?color=blue" alt="NPM Version"></a>
3
+ <a href="https://github.com/fasenderos/nodejs- order-book/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/npm/l/nodejs- order-book" alt="Package License"></a>
4
+ <a href="https://www.npmjs.com/package/nodejs- order-book" target="_blank"><img src="https://img.shields.io/npm/dm/nodejs- order-book" alt="NPM Downloads"></a>
5
+ <a href="https://circleci.com/gh/fasenderos/nodejs- order-book" target="_blank"><img src="https://img.shields.io/circleci/build/github/fasenderos/nodejs- order-book/main" alt="CircleCI" ></a>
6
+ <a href="https://codecov.io/github/fasenderos/nodejs- order-book" target="_blank"><img src="https://img.shields.io/codecov/c/github/fasenderos/nodejs- order-book" alt="Codecov"></a>
7
+ <a href="https://github.com/fasenderos/nodejs- order-book"><img src="https://badgen.net/badge/icon/typescript?icon=typescript&label" alt="Built with TypeScript"></a>
8
8
</p >
9
9
10
10
# Node.js Order Book
@@ -27,34 +27,34 @@ Ultra-fast Node.js Order Book written in TypeScript for high-frequency trading (
27
27
28
28
** Machine:** ASUS ExpertBook, 11th Gen Intel(R) Core(TM) i7-1165G7, 2.80Ghz, 16GB RAM, Node.js v18.4.0.
29
29
30
- <img src =" https://user-images.githubusercontent.com/1219087/181792292-8619ee25-bf75-4871-a06c-bd6c82157f33.png " alt =" order-book-benchmark " title =" order-book benchmark " />
30
+ <img src =" https://user-images.githubusercontent.com/1219087/181792292-8619ee25-bf75-4871-a06c-bd6c82157f33.png " alt =" nodejs- order-book-benchmark" title =" nodejs- order-book benchmark" />
31
31
32
32
## Installation
33
33
34
34
Install with npm:
35
35
36
36
``` sh
37
- npm install order-book
37
+ npm install nodejs- order-book
38
38
```
39
39
40
40
Install with yarn:
41
41
42
42
``` sh
43
- yarn add order-book
43
+ yarn add nodejs- order-book
44
44
```
45
45
46
46
Install with pnpm:
47
47
48
48
``` sh
49
- pnpm add order-book
49
+ pnpm add nodejs- order-book
50
50
```
51
51
52
52
## Usage
53
53
54
54
To start using order book you need to import ` OrderBook ` and create new instance:
55
55
56
56
``` js
57
- import { OrderBook } from ' order-book'
57
+ import { OrderBook } from ' nodejs- order-book'
58
58
59
59
const ob = new OrderBook ()
60
60
```
@@ -75,7 +75,7 @@ ob.cancel(orderID: string)
75
75
### Conditional Orders ![ Experimental] ( https://img.shields.io/badge/Experimental-blue )
76
76
The version ` v6.1.0 ` introduced support for Conditional Orders ` Stop Market ` , ` Stop Limit ` and ` OCO ` . Even though the test coverage for these new features is at 100%, they are not yet considered stable because they have not been tested with real-world scenarios. For this reason, if you want to use conditional orders, you need to instantiate the order book with the ` experimentalConditionalOrders ` option set to ` true ` .
77
77
``` js
78
- import { OrderBook } from ' order-book'
78
+ import { OrderBook } from ' nodejs- order-book'
79
79
80
80
const ob = new OrderBook ({ experimentalConditionalOrders: true })
81
81
0 commit comments