Skip to content

delagroove/gemini-api-rb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages

  • Ruby 100.0%