getTime: Retrieve the Current Kraken Server Time

View source: R/getTime.R

getTimeR Documentation

Retrieve the Current Kraken Server Time

Description

This function fetches the current server time from the Kraken API in either UNIX timestamp or RFC 1123 format.

Usage

getTime(format = "unix")

Arguments

format

A character string specifying the time format to return. Use "unix" for UNIX timestamp or "rfc" for RFC 1123 format. The default is "unix".

Value

A POSIXct object if format = "unix" or a character string in RFC 1123 format if format = "rfc".

Examples

getTime("unix")
getTime("rfc")

KrakenR documentation built on Oct. 30, 2024, 9:14 a.m.