R/updateStatus.R

Defines functions updateStatus

Documented in updateStatus

updateStatus<-function(order, st="canceled", token){
  headers = c(`Authorization` = paste0("Token ",token))
  files = list(`order` = as.character(order), `status` = st)
  res <- POST(url = "https://apiv2.nobitex.ir/market/orders/update-status",
                    add_headers(.headers=headers), body = files)
  res
}

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.