1.0.1 • Published 4 years ago

bitsian-client v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

bitsian - node client

A full-featured Bitsian API client for Node.js

  • Supports all documented v1.1 endpoints

Installation

npm i bitsian-client

Getting started

Clients for both the REST API and streaming WebSocket API are included. Private endpoints as indicated in the API docs require authentication with an API key and secret key.

Add API key, secret key and passPhrase in the environment variables.

const bitsianClient = require("bitsian-client");

let client = new bitsianClient();

You can learn about the API responses of each endpoint by reading our documentation.

Websocket Client

client.onConnected('kraken', 'btc', 'usd');

Market Methods

client.getCurrencies();

client.getProducts('bitstamp');

client.getExchanges();

Account Methods

client.getBalance();

client.getOrders('open');

client.getOrder('c5a28f8f-6860-4b12-a005-930f3781e195');

var createOrderDto = {

    orderSide:"buy",
    currencyPair:"LTC-USD",
    quantity:0.1,
    price:62.89,
    orderType:"market",
    exchangeId:4

};

client.createOrder(createOrderDto);

client.cancelOrder('c5a28f8f-6860-4b12-a005-930f3781e195');
1.0.1

4 years ago

1.0.0

4 years ago