2.1.0 • Published 4 years ago

deribit-nodejs v2.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

deribit-nodejs

Deribit.com v2.0.0 NodeJS REST API

Install

yarn add deribit-nodejs

Setup

ENV vars (used if no params provided to constructor)

DERIBIT_SAFE=1              // Read-only mode
DERIBIT_TESTNET=1           // Testnet
DERIBIT_KEY=key_here        // API Key
DERIBIT_SECRET=secret_here  // API Secret

Import

import { REST } from 'deribit-nodejs'

REST

Constructor

const rest = new REST(key, secret, testnet = false, timeout = 500, keepAlive = true)

Generic API calls (case-insesitive) from https://docs.deribit.com/ and https://www.deribit.com/api_console/

const res = await rest.buy({
  // no need to write private/public
  instrument: 'BTC-PERPETUAL',
  amount: 100,
  type: 'market',
  label: 'my_label',
})
rest.get_account_summary().then(console.log)
2.1.0

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago