Learn R Programming

cryptotrackr (version 1.3.3)

okcoin_signature: okcoin_signature

Description

okcoin_signature

Usage

okcoin_signature(path, secret, formatted_time, method)

Value

returns a base64 encoded SHA256 signature for signing Okcoin API calls

Arguments

path

the API endpoint

secret

your Okcoin secret key

formatted_time

a string containing the currrent timestamp in ISO 8601 format

method

'POST' or 'GET'

Examples

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

Run the code above in your browser using DataLab