Wrapper for 'Coinbase Pro (GDAX)' Cryptocurrency Exchange

Allow access to both public and private end points to Coinbase Pro (erstwhile GDAX) cryptocurrency exchange. For authenticated flow, users must have valid api, secret and passphrase to be able to connect.


Build Status CRAN_Status_Badge

This package is inspired by official and unofficial wrappers for GDAX API. Please read through the api docs to gain a better understanding of how each end point is likely to work.

There are two main groups of api end points.

Public: All functions belonging to this group start with public_ and can be used without any authentication.

Auth: This category of functions will require API Key, API Secret and Passphrase to connect successfully to the account. To get your api keys, refer to how to create GDAX api keys. The behavior of the functions will also depend upon what kind of access (view, trade or manage) the api keys have.

What is New in this version

News

Supported Functions

Complete List of Supported Public Functions:

  1. candles
  2. daystats
  3. info
  4. orderbook
  5. ticker
  6. time
  7. trades

Complete List of Supported Auth Functions:

  1. account_hist
  2. account
  3. accounts
  4. add_order
  5. cancel_order
  6. fills
  7. holds
  8. profile
  9. pymt_methods

Apart from these two categories, the library also contains a few internal functions which are used across the public and the auth functions:

  1. parse_response
  2. auth

Limitations:

The current version does not support the following key capabilities:

  1. Pagination
  2. Make deposits or withdrawls

How to install:

From CRAN

library(rgdax)

This is same as installing master branch from github.

From Github dev

library(devtools)
install_github("DheerajAgarwal/rgdax", ref="dev")

Some Inspirations

Unofficial Python GDAX Wrapper #The real reason I started this project.

coinbaseexchangeenterorder-r #Helped me break the auth calls.

MTDO's Shiny App #For the data cleaning of most public functions.

URLs

github CRAN

bitbucket DEV

github DEV

License:

MIT

DISCLAIMER Use at your own risk.

News

NEWS

Version?

0.6.0

What's New?

Bug fixes:

None

Enhancements:

1. Updated cancel_order to take an order_id as an optional parameter.
2. Created open_orders to list all open orders.

0.5.0

What's New?

Bug fixes:

  1. add_order was broken for market & limit order types after the stop order built in. Now all orders can be successfully placed.

Enhancements:

0.4.0

What's New?

Only documentation updates like fixing typos and providing clarification on usage. No changes have been made to any code or functions.

0.3.0

What's New?

  1. The fills() function has been enhanced to include product_id. Now users can get the fills for a given product-currency pair.
  2. The add_order() function has been enhanced to include stop and stop_price. Users can now add either a stop-loss or a stop-entry order. The function was also enhanced for continue adding market orders without specifying the price which was original mandatory.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rgdax")

1.0.0 by Dheeraj Agarwal, a month ago


https://github.com/DheerajAgarwal/rgdax/


Report a bug at https://github.com/DheerajAgarwal/rgdax/issues


Browse source code at https://github.com/cran/rgdax


Authors: Dheeraj Agarwal [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Depends on digest, jsonlite, RCurl, httr

Suggests testthat


See at CRAN