# @hanai/bi-providers

> Providers for bi.

Latest version **1.0.5** (published 2022-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hanai/bi-providers
pnpm add @hanai/bi-providers
yarn add @hanai/bi-providers
bun add @hanai/bi-providers
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-04-01 |
| First published | 2022-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 85.4 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hanai |
| Maintainers | hanai |
| Keywords | provider, market, data |

## Links

- npm: https://www.npmjs.com/package/@hanai/bi-providers
- Repository: https://github.com/hanai/bi-providers
- Homepage: https://github.com/hanai/bi-providers#readme
- Issues: https://github.com/hanai/bi-providers/issues
- npm.io page: https://npm.io/package/@hanai/bi-providers

## Dependencies (7)

- [ws](https://npm.io/package/ws.md) ^8.5.0
- [axios](https://npm.io/package/axios.md) ^0.26.1
- [debug](https://npm.io/package/debug.md) ^4.3.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [retry-when](https://npm.io/package/retry-when.md) ^1.0.1
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^5.0.0
- [@hanai/promise-rate-limiter](https://npm.io/package/@hanai/promise-rate-limiter.md) ^1.0.4

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-04-01
- 1.0.4 — 2022-04-01
- 1.0.3 — 2022-03-31

## README

# bi-providers

Providers for bi.

## Install

```bash
npm i @hanai/bi-providers
```

## Usage

```ts
import { ftx as FtxProvider } from '@hanai/bi-providers'
import { FtxApiConfig } from '@hanai/bi-providers/dist/providers/ftx/types'

const ftxApiConfig: FtxApiConfig = {
  /* your api config */
}

const walletClient = new FtxProvider.WalletClient(ftxApiConfig)
const marketsClient = new FtxProvider.MarketsClient(ftxApiConfig)

const [markets, position] = await Promise.all([
  marketsClient.getMarkets(),
  walletClient.getBalance(),
])

console.log(markets, position)
```

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