# order_rpc_storm

> ## install

Latest version **1.0.3** (published 2020-05-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install order_rpc_storm
pnpm add order_rpc_storm
yarn add order_rpc_storm
bun add order_rpc_storm
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-05-11 |
| First published | 2020-05-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 253.5 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | https://github.com/HFJingchuang |
| Maintainers | jhell |

## Links

- npm: https://www.npmjs.com/package/order_rpc_storm
- Repository: https://github.com/HFJingchuang/LBR_Order_rpc
- Homepage: https://github.com/HFJingchuang/LBR_Order_rpc#readme
- Issues: https://github.com/HFJingchuang/LBR_Order_rpc/issues
- npm.io page: https://npm.io/package/order_rpc_storm

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [web3-utils](https://npm.io/package/web3-utils.md) ^1.2.7
- [web3-eth-abi](https://npm.io/package/web3-eth-abi.md) ^1.2.7
- [clean-webpack-plugin](https://npm.io/package/clean-webpack-plugin.md) ^3.0.0

## Recent versions

- 1.0.3 (latest) — 2020-05-11
- 1.0.2 — 2020-05-09
- 1.0.1 — 2020-05-06

## README

# LBR_Order_rpc

## install

```node
npm i lbr_order_rpc
```

## APIs

### LbrOrder

#### Usage

```js
  const LbrOrder = require("lbr_order_rpc").LbrOrder
  // import { LbrOrder } from 'lbr_order_rpc'
  const hosts = ["localhost"]
  const port = 8080
  const https = false
  const inst = new LbrOrder(hosts, port, https)
  // or
  // const inst = new LbrOrder(["http://localhost:8080"])
```

#### getOrdersByAddress

```js
    /**
     * get Orders by address
     *
     * @param {string} address
     * @param {number} page
     * @param {number} seq
     * @returns {Promise<IResponse>}
     * @memberof LbrOrder
     */
    public async getOrdersByAddress(address: string, page: number, seq: number): Promise<IResponse>
```

#### getOrdersByPairs

```js
    /**
     * get Orders by pairs
     *
     * @param {string} exToken
     * @param {string} baseToken
     * @returns {Promise<IResponse>}
     * @memberof LbrOrder
     */
    public async getOrdersByPairs(exToken: string, baseToken: string): Promise<IResponse>
```

#### getTradesByPairs

```js
    /**
     * get latest trades by address
     *
     * @param {string} exToken
     * @param {string} baseToken
     * @returns {Promise<IResponse>}
     * @memberof LbrOrder
     */
    public async getTradesByPairs(exToken: string, baseToken: string): Promise<IResponse>
```

#### getTradesByAddress

```js
    /**
     * get trades by address
     *
     * @param {string} address
     * @param {number} page
     * @param {number} seq
     * @returns {Promise<IResponse>}
     * @memberof LbrOrder
     */
    public async getTradesByAddress(address: string, page: number, seq: number): Promise<IResponse>
```

#### getHistoryByAddress

```js
    /**
     * get history by address
     *
     * @param {string} address
     * @param {number} page
     * @param {number} seq
     * @returns {Promise<IResponse>}
     * @memberof LbrOrder
     */
    public async getHistoryByAddress(address: string, page: number, seq: number): Promise<IResponse>
```

#### LbrKline

#### Usage

```js
  const LbrKline = require("lbr_order_rpc").LbrKline
  // import { LbrKline } from 'lbr_order_rpc'
  const hosts = ["localhost"]
  const port = 8080
  const https = false
  const inst = new LbrKline(hosts, port, https)
  // or
  // const inst = new LbrKline(["http://localhost:8080"])
```

#### getKline

```js
    /**
     * 获取指定币种指定周期的K线数据
     * @param base
     * @param counter
     * @param type (minute | 5minute | 15minute | 30minute | hour | 4hour | day | week | month)
     */
    public async getKline(base: string, counter: string, type: string)
```

#### getDepth

```js
    /**
     * 获取深度数据
     * @param base
     * @param counter
     */
    public async  getDepth(base: string, counter: string)
```

#### getHistory

```js
    /**
     * 获取历史交易记录
     * @param base
     * @param counter
     */
    public async getHistory(base: string, counter: string)
```

#### getTicker

```js
    /**
     * 获取指定币种的行情数据
     * @param base
     * @param counter
     */
    public async getTicker(base: string, counter: string)
```

#### getAllTickers

```js
    /**
     * 获取所有币种的行情数据
     */
    public async getAllTickers()
```

#### LbrCommon

#### Usage

```js
  const LbrCommon = require("lbr_order_rpc").LbrCommon
  // import { LbrCommon } from 'lbr_order_rpc'
  const hosts = ["localhost"]
  const port = 8080
  const https = false
  const inst = new LbrCommon(hosts, port, https)
  // or
  // const inst = new LbrCommon(["http://localhost:8080"])
```

#### getTokens

```js
    /**
     * 模糊查询token
     * @param key
     */
    public async getTokens(key: string)
```

---
_Source: https://npm.io/package/order_rpc_storm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
