Retrieves the list of all available trading markets from the KuCoin API asynchronously.
Arguments
- base_url
Character string; base URL for the KuCoin API. Defaults to
get_base_url().
Details
Workflow Overview
URL Assembly: Combines
base_urlwith/api/v1/markets.HTTP Request: Sends a GET request with a 10-second timeout via
httr::GET().Response Processing: Validates the response with
process_kucoin_response()and extracts the"data"field as a character vector.
Usage
Utilised to identify available trading markets on KuCoin for filtering or querying market-specific data.
Examples
if (FALSE) { # \dontrun{
main_async <- coro::async(function() {
markets <- await(get_market_list_impl())
print(markets)
})
main_async()
while (!later::loop_empty()) later::run_now()
} # }