account_hist: Get Account History For An Account Using Currency

Description Usage Arguments Value Examples

View source: R/account_hist.R

Description

This is an auth based function. User must have valid api keys generated by GDAX which must be passed as mandatory arguments. The function takes a currency as an additional input and returns the ledger for that currency. Since currency and account id have one to one mapping, the currency is being used a proxy.

Usage

1
account_hist(currency = "BTC", api.key, secret, passphrase)

Arguments

currency

Optional character value. The default is "BTC". This is case insensitive and must be a valid currency as provided by accounts or account.

api.key

Mandatory character value. This is the API key as generated by GDAX. Typically a 32 character value.

secret

Mandatory character value. This is the API secret as generated by GDAX. Typically a 88 character value.

passphrase

Mandatory character value. This is the passphrase as generated by GDAX. Typically a 11 character value.

Value

Dataframe with account activity for that currency. It indiactes the type of activity, when the activity occured and other associated details.

Examples

1
2
3
4
5
6
## Not run: 
account_hist(api.key = your_key, secret = your_api_secret, passphrase = your_api_pass)
account_hist("BTC", api.key = your_key, secret = your_api_secret, passphrase = your_api_pass)
account_hist("ETH", api.key = your_key, secret = your_api_secret, passphrase = your_api_pass)

## End(Not run)

rgdax documentation built on Aug. 3, 2021, 9:06 a.m.