Skip to content

Commit

Permalink
docs: package name
Browse files Browse the repository at this point in the history
  • Loading branch information
fasenderos committed Aug 8, 2024
1 parent 25e31fa commit 7d7e5d1
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 209 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ aliases:

jobs:
build:
working_directory: ~/order-book
working_directory: ~/nodejs-order-book
docker:
- image: cimg/node:22.5
steps:
Expand All @@ -31,7 +31,7 @@ jobs:
- *build-packages

test:
working_directory: ~/order-book
working_directory: ~/nodejs-order-book
docker:
- image: cimg/node:22.5
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## PR Checklist
Please check if your PR fulfills the following requirements:

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

Expand Down
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"git": {
"commitMessage": "chore(release): order-book@${version}",
"commitMessage": "chore(release): nodejs-order-book@${version}",
"tagName": "v${version}",
"tagAnnotation": "Release v${version}",
"requireCommits": true,
Expand Down
368 changes: 184 additions & 184 deletions CHANGELOG.md

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<p align="center">
<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>
<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>
<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>
<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>
<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>
<a href="https://github.com/fasenderos/order-book"><img src="https://badgen.net/badge/icon/typescript?icon=typescript&label" alt="Built with TypeScript"></a>
<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>
<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>
<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>
<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>
<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>
<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>
</p>

# Node.js Order Book
Expand All @@ -27,34 +27,34 @@ Ultra-fast Node.js Order Book written in TypeScript for high-frequency trading (

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

<img src="https://user-images.githubusercontent.com/1219087/181792292-8619ee25-bf75-4871-a06c-bd6c82157f33.png" alt="order-book-benchmark" title="order-book benchmark" />
<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" />

## Installation

Install with npm:

```sh
npm install order-book
npm install nodejs-order-book
```

Install with yarn:

```sh
yarn add order-book
yarn add nodejs-order-book
```

Install with pnpm:

```sh
pnpm add order-book
pnpm add nodejs-order-book
```

## Usage

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

```js
import { OrderBook } from 'order-book'
import { OrderBook } from 'nodejs-order-book'

const ob = new OrderBook()
```
Expand All @@ -75,7 +75,7 @@ ob.cancel(orderID: string)
### Conditional Orders ![Experimental](https://img.shields.io/badge/Experimental-blue)
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`.
```js
import { OrderBook } from 'order-book'
import { OrderBook } from 'nodejs-order-book'

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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "order-book",
"name": "nodejs-order-book",
"version": "8.0.0",
"description": "Node.js Lmit Order Book for high-frequency trading (HFT).",
"author": "Andrea Fassina <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/fasenderos/order-book",
"homepage": "https://github.com/fasenderos/nodejs-order-book",
"repository": {
"type": "git",
"url": "[email protected]:fasenderos/order-book.git"
"url": "[email protected]:fasenderos/nodejs-order-book.git"
},
"bugs": {
"url": "https://github.com/fasenderos/order-book/issues"
"url": "https://github.com/fasenderos/nodejs-order-book/issues"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"umd:main": "dist/umd/index.js",
"types": "dist/types/index.d.js",
"scripts": {
"addscope": "node tools/packagejson name @fasenderos/order-book",
"addscope": "node tools/packagejson name @fasenderos/nodejs-order-book",
"bench": "node benchmarks/benchmark_lob.js",
"build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types",
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json",
Expand Down Expand Up @@ -77,12 +77,12 @@
"exchange",
"hft",
"hft-trading",
"limit-order-book",
"limit-nodejs-order-book",
"matching-algorithm",
"matching-engine",
"nodejs",
"orderbook",
"order-book",
"nodejs-order-book",
"typescript",
"trading"
]
Expand Down

0 comments on commit 7d7e5d1

Please sign in to comment.