Skip to content

Commit 0d6a5da

Browse files
committed
chore: rename package
BREAKING CHANGE: new package name `order-book`
1 parent 59a984f commit 0d6a5da

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ aliases:
1717

1818
jobs:
1919
build:
20-
working_directory: ~/hft-limit-order-book
20+
working_directory: ~/order-book
2121
docker:
2222
- image: cimg/node:22.5
2323
steps:
@@ -31,7 +31,7 @@ jobs:
3131
- *build-packages
3232

3333
test:
34-
working_directory: ~/hft-limit-order-book
34+
working_directory: ~/order-book
3535
docker:
3636
- image: cimg/node:22.5
3737
steps:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## PR Checklist
22
Please check if your PR fulfills the following requirements:
33

4-
- [ ] The commit message follows our guidelines: https://github.com/fasenderos/hft-limit-order-book/blob/main/CONTRIBUTING.md
4+
- [ ] The commit message follows our guidelines: https://github.com/fasenderos/order-book/blob/main/CONTRIBUTING.md
55
- [ ] Tests for the changes have been added (for bug fixes / features)
66
- [ ] Docs (README.md) have been added / updated (for bug fixes / features)
77

.release-it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"git": {
3-
"commitMessage": "chore(release): hft-limit-order-book@${version}",
3+
"commitMessage": "chore(release): order-book@${version}",
44
"tagName": "v${version}",
55
"tagAnnotation": "Release v${version}",
66
"requireCommits": true,

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<p align="center">
2-
<a href="https://www.npmjs.com/package/hft-limit-order-book" target="_blank"><img src="https://img.shields.io/npm/v/hft-limit-order-book?color=blue" alt="NPM Version"></a>
3-
<a href="https://github.com/fasenderos/hft-limit-order-book/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/npm/l/hft-limit-order-book" alt="Package License"></a>
4-
<a href="https://www.npmjs.com/package/hft-limit-order-book" target="_blank"><img src="https://img.shields.io/npm/dm/hft-limit-order-book" alt="NPM Downloads"></a>
5-
<a href="https://circleci.com/gh/fasenderos/hft-limit-order-book" target="_blank"><img src="https://img.shields.io/circleci/build/github/fasenderos/hft-limit-order-book/main" alt="CircleCI" ></a>
6-
<a href="https://codecov.io/github/fasenderos/hft-limit-order-book" target="_blank"><img src="https://img.shields.io/codecov/c/github/fasenderos/hft-limit-order-book" alt="Codecov"></a>
7-
<a href="https://github.com/fasenderos/hft-limit-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/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>
88
</p>
99

1010
# Node.js Order Book
@@ -27,28 +27,28 @@ Ultra-fast Node.js Order Book written in TypeScript for high-frequency trading (
2727

2828
**Machine:** ASUS ExpertBook, 11th Gen Intel(R) Core(TM) i7-1165G7, 2.80Ghz, 16GB RAM, Node.js v18.4.0.
2929

30-
<img src="https://user-images.githubusercontent.com/1219087/181792292-8619ee25-bf75-4871-a06c-bd6c82157f33.png" alt="hft-limit-order-book-benchmark" title="hft-limit-order-book benchmark" />
30+
<img src="https://user-images.githubusercontent.com/1219087/181792292-8619ee25-bf75-4871-a06c-bd6c82157f33.png" alt="order-book-benchmark" title="order-book benchmark" />
3131

3232
## Installation
3333

3434
Install with npm:
3535

3636
```sh
37-
npm install hft-limit-order-book --save
37+
npm install order-book --save
3838
```
3939

4040
Install with yarn:
4141

4242
```sh
43-
yarn add hft-limit-order-book
43+
yarn add order-book
4444
```
4545

4646
## Usage
4747

4848
To start using order book you need to import `OrderBook` and create new instance:
4949

5050
```js
51-
import { OrderBook } from 'hft-limit-order-book'
51+
import { OrderBook } from 'order-book'
5252

5353
const ob = new OrderBook()
5454
```
@@ -69,7 +69,7 @@ ob.cancel(orderID: string)
6969
### Conditional Orders ![Experimental](https://img.shields.io/badge/Experimental-blue)
7070
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`.
7171
```js
72-
import { OrderBook } from 'hft-limit-order-book'
72+
import { OrderBook } from 'order-book'
7373

7474
const ob = new OrderBook({ experimentalConditionalOrders: true })
7575

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
2-
"name": "hft-limit-order-book",
2+
"name": "order-book",
33
"version": "7.0.2",
44
"description": "Node.js Lmit Order Book for high-frequency trading (HFT).",
55
"author": "Andrea Fassina <[email protected]>",
66
"license": "MIT",
7-
"homepage": "https://github.com/fasenderos/hft-limit-order-book",
7+
"homepage": "https://github.com/fasenderos/order-book",
88
"repository": {
99
"type": "git",
10-
"url": "[email protected]:fasenderos/hft-limit-order-book.git"
10+
"url": "[email protected]:fasenderos/order-book.git"
1111
},
1212
"bugs": {
13-
"url": "https://github.com/fasenderos/hft-limit-order-book/issues"
13+
"url": "https://github.com/fasenderos/order-book/issues"
1414
},
1515
"main": "dist/cjs/index.js",
1616
"module": "dist/esm/index.js",
1717
"umd:main": "dist/umd/index.js",
1818
"types": "dist/types/index.d.js",
1919
"scripts": {
20-
"addscope": "node tools/packagejson name @fasenderos/hft-limit-order-book",
20+
"addscope": "node tools/packagejson name @fasenderos/order-book",
2121
"bench": "node benchmarks/benchmark_lob.js",
2222
"build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types",
2323
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json",

0 commit comments

Comments
 (0)