kucoin_signature: kucoin_signature

View source: R/kucoin.R

kucoin_signatureR Documentation

kucoin_signature

Description

kucoin_signature

Usage

kucoin_signature(api_secret, time, method, path, body)

Arguments

api_secret

your Kucoin API secret

time

a timestamp string formatted the way Kucoin requires. This can be created with the "kucoin_time" function.

method

"GET" or "POST"

path

the endpoint you are using to make an API call.

body

needs to be a json string which matches url parameters. Use a blank string if not applicable.

Value

returns a signature for use in you Kucoin API calls.

Examples

## Not run: 
api_secret <- "..."
time <- kucoin_time()
method <- "GET"
path <- "/api/v1/sub/user"
body <- ""
sig <- kucoin_signature(api_secret, time, method, path, body)
## End(Not run)

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