kucoin_api_call {cryptotrackr} | R Documentation |
kucoin_api_call
Description
kucoin_api_call
Usage
kucoin_api_call(
url,
method,
api_key,
sig,
time,
passphrase,
version,
api_secret,
query = NULL,
timeout_seconds = 60
)
Arguments
url |
the full url for your Kucoin API call |
method |
"GET" or "POST" |
api_key |
your Kucoin API key |
sig |
signature for use in your Kucoin API call. This can be generated with the "kucoin_signature" function. |
time |
a timestamp string formatted the way Kucoin requires. This can be created with the "kucoin_time" function. |
passphrase |
the passphrase you created when you created your Kucoin API key. |
version |
your API key version. This can be retrieved from your Kucoin API console. |
api_secret |
your Kucoin API secret. |
query |
a named list containing your query parameters. |
timeout_seconds |
seconds until the query times out. Default is 60. |
Value
returns the data from your Kucoin API call.
Examples
## Not run:
url <- "https://api.kucoin.com/api/v1/sub/user"
api_key <- "..."
api_secret <- "..."
time <- kucoin_time()
method <- "GET"
path <- "/api/v1/sub/user"
body <- ""
sig <- kucoin_signature(api_secret, time, method, path, body)
passphrase <- "..."
version <- "2"
accounts <- kucoin_api_call(url, method, api_key, sig, time, passphrase,
version, api_secret)
## End(Not run)
[Package cryptotrackr version 1.3.3 Index]