i try to convert the okex-ticker to a dataframe, using dplyr library, which was very successfull on other marketplaces.
Here´s the entire Code:
library(dplyr)
library(httr)
GET(
url = "https://www.okex.com/v2/spot/markets/tickers"
) -> okexRes
x5=content(okexRes)
dfokex <- bind_rows(x5$data)
I think there´s something missing in brackets of the last line, like (x5$data$???)
, but in the environment of RStudio it looks like this
x5 Large list
code : int 0
data :List of 407
..$ :List of 24
.. .. $ brokerId: int 0
.. .. $ buy: chr "9314.4"
.. .. $ change: ...
Whats the name(?) of the second list here? Is there a function for showing the names? Thanks in advance :)