delagroove / gemini-api-rb

Gemini Ruby trading API

Home Page:https://exchange.gemini.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gemini Trading API for Ruby

Code Climate

  • Official implementation
  • REST API
  • WebSockets API
  • REST API version 2
  • WebSockets API version 2

Installation

Add this line to your application's Gemfile:

gem 'gemini-rb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gemini-rb

Usage

Configure your gem as:

require 'gemini'

Gemini::Client.configure do |conf|
  # add `secret` and `api_key` if you need to access authenticated endpoints.
  conf.secret = ENV["GEMINI_API_SECRET"]
  conf.api_key = ENV["GEMINI_API_KEY"]
end

Then you can use the client as follow:

client = Gemini::Client.new
client.balances

check the Gemini API documentation for more information.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/gemini/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Gemini Ruby trading API

https://exchange.gemini.com/

License:MIT License


Languages

Language:Ruby 100.0%