Learn R Programming

cryptotrackr (version 1.3.3)

okcoin_api_call: okcoin_api_call

Description

okcoin_api_call

Usage

okcoin_api_call(
  url,
  key,
  signature,
  formatted_time,
  passphrase,
  timeout_seconds = 60
)

Value

returns a dataframe containing the results of your API call

Arguments

url

the full URL for the API call

key

your API key for Okcoin

signature

your hashed and encoded signature for Okcoin API calls

formatted_time

a string containing the currrent timestamp in ISO 8601 format

passphrase

the passphrase which you created when generating your Okcoin API key

timeout_seconds

seconds until the query times out. Default is 60.

Examples

Run this code
if (FALSE) {
url <- "..."
key <- "..."
path <- "..."
secret <- "..."
formatted_time <- okcoin_time()
method <- "GET"
signature <- okcoin_signature(path, secret, formatted_time, method)
passphrase <- "..."
data <- okcoin_api_call()}

Run the code above in your browser using DataLab