Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coss_api_ruby_wrapper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coss_api_ruby_wrapper

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

MethodRequired ParametersOptional ParametersNotes
place_limit_ordersymbol, price, side, amountNone
place_market_ordersymbol, price, side, amountNone
order_detailsorder_idNone
trade_detailorder_idNone
open_orderssymbollimit, page
completed_orderssymbollimit, page
all_orderssymbol, from_order_idlimit
cancel_ordersymbol, order_idNone
market_pricesymbolNone
pair_depthsymbolNone
market_summarysymbolNoneNot implemented on COSS side
exchange_infoNoneNone
pingNoneNone
timeNoneNone
account_balancesNoneNone
account_detailsNoneNone

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.

FAQs

Package last updated on 24 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc