okcoin_signature: okcoin_signature

View source: R/okcoin.R

okcoin_signatureR Documentation

okcoin_signature

Description

okcoin_signature

Usage

okcoin_signature(path, secret, formatted_time, method)

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'

Value

returns a base64 encoded SHA256 signature for signing Okcoin API calls

Examples

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

cryptotrackr documentation built on June 22, 2024, 10:39 a.m.