R/cancel.R

Defines functions cancel

Documented in cancel

cancel<-function(src, dst, hrs = 0, token){
  headers = c(`Authorization` = paste0("Token ",token))
  files = list(`srcCurrency` = src, `dstCurrency` = dst,  `hours`= hrs)
 POST(url = "https://apiv2.nobitex.ir/market/orders/cancel-old",
            add_headers(.headers=headers), body = files, encode = "multipart")
}

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.