ionomy-node

1.0.0 • Public • Published

ionomy-node

Ionomy API client for Node.js

Usage

Get you api key and secret from https://ionomy.com/en/account/api.

Initialize Client

const Ionomy = require('ionomy-node');
 
const client = new Ionomy({
  apiKey: 'abcdapikey',
  apiSecret: 'abcdapisecret',
});

Public Methods

await client.markets();
await client.currencies();
await client.orderBook({ market: 'btc-hive', type: 'both' });
await client.marketSummaries();
await client.marketSummary('btc-hive');
await client.marketHistory('btc-hive');

Market Methods

await client.limitBuy({ market: 'btc-hive', amount: '100', price: '0.00005' });
await client.limitSell({ market: 'btc-hive', amount: '100', price: '0.00005' });
await client.cancelOrder('5b8e8c980e454f2b807863ee');
await client.openOrders('btc-hive');

Account Methods

await client.balances();
await client.balance('hive');
await client.depositAddress('hive');
await client.depositHistory('hive');
await client.withdraw({ currency: 'hive', amount: '100', address: 'reazuliqbal' });
await client.withdrawalHistory('hive');
await client.order('5b8e8c980e454f2b807863ee');
await client.orderHistory('btc-hive');

Readme

Keywords

Package Sidebar

Install

npm i ionomy-node

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.9 kB

Total Files

7

Last publish

Collaborators

  • codebull