Wrapper for 'Coinbase Pro (erstwhile 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


The previous version is now deprecated. Coinbase had support for the old GDAX API's till end of 2018 only. This new version is likely to break the previous ones and hence, it is recommended that all users should test this out with their existing applications and make changes as necessary.

This package is inspired by official and unofficial wrappers for Coinbase Pro 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 Coinbase Pro api keys. The behavior of the functions will also depend upon what kind of access (view, transfer or trade) the api keys have.

What is New in this version


Supported Functions

Complete List of Supported Public Functions & Coinbase Pro end point mapping:

# function public mapping
01 candles historic rates
02 daystats 24hr stats
03 info currencies & products
04 orderbook product orderbook
05 ticker product ticker
06 time time
07 trades trades

Complete List of Supported Auth Functions & Coinbase Pro end point mapping:


# function auth mapping
08 accounts list accounts
09 account an account
10 account_hist account history
11 holds holds


# function auth mapping
12 add_order place a new order
13 cancel_order cancel an order & cancel all


# function auth mapping
14 fills list fills
15 pymt_methods list payment 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

Currently Unsupported Functions


# function auth mapping
XX pending list order
XX pending get an order


# function auth mapping
XX pending payment method
XX pending coinbase


# function auth mapping
XX pending payment method
XX pending coinbase
XX pending crypto


# function auth mapping
XX pending create a new report
XX pending report status


# function auth mapping
XX pending create conversion
XX pending list coinbase accounts
XX pending trailing volume

Apart from the above listed pending functions, the current version does not support the following key capabilities:

  1. Pagination

How to install:



This is same as installing master branch from github.

From Github dev

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


rgdax CRAN

CRAN codebase

DEV codebase



DISCLAIMER Use at your own risk.





What's New?

Bug fixes:



1. Updated base_url to in auth & parse_response functions.
2. updated documentation in README.md and DESCRIPTION files.


What's New?

Bug fixes:



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


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.



What's New?

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


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.


1.2.1 by Dheeraj Agarwal, 4 months ago


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, plyr

Suggests testthat

See at CRAN