bisq-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Bisq Network JS - API

npm version NPM Known Vulnerabilities License: MIT


Easy way to add Bisq Network API to your JS application.


Donate

Help me to stack sats! 😊

bc1qn6d6g8ln5zppnh0k70sgmr745td7j2xsgw7elm

Or donate via Lightning Network!


Features


Installation

Using npm:

$ npm install bisq-js

Using yarn:

$ yarn add bisq-js

Usage

Get Currencies

Provides list of available currencies for a given base currency.

[ Example ] [ Top ]

import bisq from 'bisq-js';

const currencies = await bisq.getCurrencies();
console.log(currencies);

Get Depth

Provides list of open offer prices for a single market.

[ Example ] [ Top ]

import bisq from 'bisq-js';

const depth = await bisq.getDepth();
console.log(depth);

Get HLOC

Provides hi/low/open/close data for a given market. This can be used to generate a candlestick chart.

[ Example ] [ Top ]

import bisq from 'bisq-js';

const hloc = await bisq.getHloc({ market: 'xmr_btc' });
console.log(hloc);

Get Markets

Provides list of available markets.

[ Example ] [ Top ]

import bisq from 'bisq-js';

const markets = await bisq.getMarkets();
console.log(markets);

Get Offers

Provides list of open offer details for a single market.

[ Example ] [ Top ]

import bisq from 'bisq-js';

const offers = await bisq.getOffers({ market: 'xmr_btc' });
console.log(offers);

Get Ticker

Provides 24 hour price ticker for single market or all markets

[ Example ] [ Top ]

import bisq from 'bisq-js';

const ticker = await bisq.getTicker();
console.log(ticker);

Get Trades

Provides 24 hour price ticker for single market or all markets

[ Example ] [ Top ]

import bisq from 'bisq-js';

const trades = await bisq.getTrades({ market: 'xmr_btc' });
console.log(trades);

Get Volumes

Provides periodic volume data in terms of base currency for one or all markets.

[ Example ] [ Top ]

import bisq from 'bisq-js';

const volumes = await bisq.getVolumes();
console.log(volumes);

References


Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


License MIT

Dependencies (2)

Dev Dependencies (5)

Package Sidebar

Install

npm i bisq-js

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

53.5 kB

Total Files

18

Last publish

Collaborators

  • miguelmedeirosweb