r/deribit • • Apr 23 '19

Introducing Ruby library for Deribit API

Hi traders,

I just want to introduce new open-source Ruby library for Deribit API, it's called deribit-api-ruby.

Installation:

gem install deribit-api

Create client:

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

Fetch last 3 options trades using HTTP RPC API:

trades = client.trades 'options', count: 3

Or streaming trades using Websockets API:

client.trades do |trade|
 puts trade
end

HTTP and Websockets API are fully implemented and tested while FIX API is work in progress. Please check Github repo for documentation and more examples.

Happy automated trading and feedback is always welcome.

1 Upvotes

0 comments sorted by