R/lst.R

Defines functions lst

Documented in lst

lst<-function(n=500, token){
  headers = c(`Authorization` = paste0("Token ",token))

  res<-content(GET(url = paste0("https://apiv2.nobitex.ir/market/trades/list?pageSize=",n), 
                   add_headers(.headers=headers), 
                    encode = "multipart"))
  list<-do.call(rbind.data.frame, res$trades)
  list
}

Try the TSEtools package in your browser

Any scripts or data that you put into this service are public.

TSEtools documentation built on Jan. 8, 2026, 5:07 p.m.