# call packageslibrary(jsonlite)# SBD 유효 거래일date<-as.vector(read.csv("date.csv",header=F)[,1])# 가격 크롤링 함수get_SBD<-function(minutes,count,to){url<-paste('https://crix-api-endpoint.upbit.com/v1/crix/candles/minutes/',minutes,'?code=CRIX.UPBIT.KRW-SBD&count=',count,'&to=',to,'%2000:00:00',sep='')DF<-fromJSON(url)rownames(DF)<-gsub('T'," ",DF$candleDateTime)DF<-DF[,-c(1,2,3,9,10,11)]DF<-DF[nrow(DF):1,]colnames(DF)<-c("Open","High","Low","Close","Volume")return(DF)}# FOR문을 통해 지난 가격 데이터 수집# 10분봉P_10M<-data.frame()for(iin1:length(date)){P_10M<-rbind(P_10M,get_SBD(10,144,date[i]))}
We have not curated any of sungkibae's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.