coinbase_api_call {cryptotrackr}R Documentation

coinbase_api_call

Description

coinbase_api_call

Usage

coinbase_api_call(
  api_key,
  api_secret,
  method,
  path,
  body,
  query = NULL,
  timeout_seconds = 60
)

Arguments

api_key

your Coinbase API key

api_secret

your Coinbase API secret

method

"GET" or "POST"

path

the path of your API call

body

the body of your API call

query

the query for your coinbase API call as a list

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns the response from your Coinbase API call

Examples

## Not run: 
path <- "/api/v3/brokerage/accounts"
method <- "GET"
api_key <- "..."
api_secret <- "..."
body <- ""
data <- coinbase_api_call(api_key, api_secret, method, path, body)
## End(Not run)

[Package cryptotrackr version 1.3.3 Index]