Learn R Programming

rgdax (version 1.2.1)

public_trades: Get Latest Buy & Sell Trades.

Description

This is a public function and will fetch the 100 latest trades for the provided currency pair (product_id).

Usage

public_trades(product_id = "BTC-USD")

Arguments

product_id

Optional character parameter. This is a case insensitive value of the product id for which the order book is desired. Default to 'LTC-USD'. For all valid product ids, refer to public_info.

Value

A dataframe of most recent trades indicating if it was buy / sell and what the trade size was.

Examples

Run this code
# NOT RUN {
public_trades()
public_trades("BTC-EUR")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab