I just want to introduce the new open-source Ruby library for Deribit API.

Here is a short intro, for more information please check the source code repo and documentation.

Installation

  gem install deribit-api
Successfully installed deribit-api-0.1.2
1 gem installed

Usage

  require 'deribit-api'
  client = Deribit::Client.new

Get last 3 option trades via HTTP API:

  trades = client.trades 'options', count: 3
  trades.first.instrument
BTC-10MAY19-5500-P

Stream ongoing trades via Websocket API:

  client.trades do |trade|
   puts trade.instrument
  end
BTC-28JUN19
BTC-27SEP19

Happy automated trading!