Giter Site home page Giter Site logo

coss_api_ruby_wrapper's Introduction

CossApiRubyWrapper

API wrapper for trading on cryptocurrency exchange coss.io

Installation

Add this line to your application's Gemfile:

gem 'coss_api_ruby_wrapper'

And then execute:

$ bundle

Or install it yourself as:

$ gem install coss_api_ruby_wrapper

Usage

coss = CossApiRubyWrapper::Exchange.new(public_key: 'YourPublicKey', private_key: 'YourPrivateKey')
coss.exchange_info # { ... }

Exchange Instance Methods

Method Required Parameters Optional Parameters Notes
place_limit_order symbol, price, side, amount None
place_market_order symbol, price, side, amount None
order_details order_id None
trade_detail order_id None
open_orders symbol limit, page
completed_orders symbol limit, page
all_orders symbol, from_order_id limit
cancel_order symbol, order_id None
market_price symbol None
pair_depth symbol None
market_summary symbol None Not implemented on COSS side
exchange_info None None
ping None None
time None None
account_balances None None
account_details None None

Errors

In case if invalid request parameters were supplied, error of class CossApiRubyWrapper::ParamsValidations::InvalidParameter will be thrown with text indicating specific parameters.

In case if request was sent but response status was not 200 OK, next hash will be provided:

{
    status: 400,
    error: 'Invalid request'
}

error may contain any string: Error text, JSON object, or HTML page.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the CossApiRubyWrapper project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

coss_api_ruby_wrapper's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.