Learn R Programming

cryptotrackr (version 1.3.3)

coinbase_api_call: coinbase_api_call

Description

coinbase_api_call

Usage

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

Value

returns the response from your Coinbase API call

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.

Examples

Run this code
if (FALSE) {
path <- "/api/v3/brokerage/accounts"
method <- "GET"
api_key <- "..."
api_secret <- "..."
body <- ""
data <- coinbase_api_call(api_key, api_secret, method, path, body)}

Run the code above in your browser using DataLab