Skip to contents

Returns the base URL for the KuCoin API in the following priority:

  1. The explicitly provided url parameter.

  2. The KC-API-ENDPOINT environment variable.

  3. The default "https://api.kucoin.com".

Usage

get_base_url(url = Sys.getenv("KC-API-ENDPOINT"))

Arguments

url

Character string; explicit base URL. Defaults to Sys.getenv("KC-API-ENDPOINT").

Value

Character string; the API base URL.

Examples

if (FALSE) { # \dontrun{
get_base_url()
get_base_url("https://openapi-sandbox.kucoin.com")
} # }