alphasquared.js
Version:
A lightweight client for AlphaSquared
44 lines (26 loc) • 967 B
Markdown
[![NPM version][npm-image]][npm-url] [![npm download][download-image]][npm-url]
[]: http://img.shields.io/npm/v/alphasquared.js.svg?style=flat-square
[]: http://npmjs.org/package/alphasquared.js
[]: https://img.shields.io/npm/dt/alphasquared.js.svg?style=flat-square
`alphasquared.js` is a super simple library that lets you fetch the latest risk value of BTC & ETH. Will be adding more functionality when they have an updated docs.
```js
npm i alphasquared.js
// or if using yarn
yarn add alphasquared.js
```
```ts
const client = new AlphaSquared("API_KEY");
const value = await client.get("BTC");
```
Type: `function` (default: 'BTC')
Parameter: `string ("BTC"|"ETH")`
Get the risk value for given value.
[](/LICENSE)
Released 2024 by [Shaun](https://github.com/ShaunLWM)