okcoin_api_call {cryptotrackr}R Documentation

okcoin_api_call

Description

okcoin_api_call

Usage

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

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.

Value

returns a dataframe containing the results of your API call

Examples

## Not run: 
url <- "..."
key <- "..."
path <- "..."
secret <- "..."
formatted_time <- okcoin_time()
method <- "GET"
signature <- okcoin_signature(path, secret, formatted_time, method)
passphrase <- "..."
data <- okcoin_api_call()
## End(Not run)

[Package cryptotrackr version 1.3.3 Index]