Nothing
#' @title Working with sandbox. Delete account
#'
#' @description Delete sandbox account
#'
#' @param token token from Tinkoff account (only sandbox token)
#' @details If you need to create few money position, use this function for each position
#' @return returns a list object containing the information about state of operation.
#' @note Not for the faint of heart. All profits and losses related are yours and yours alone. If you don't like it, write it yourself.
#' @author Vyacheslav Arbuzov
#' @seealso \code{\link{sandboxRegister}}
#' @examples
#' token = 'your_token_from_tcs_account'
#' sandboxDeleteAccount(token)
#' @export
sandboxDeleteAccount = function(token = '')
{
headers = add_headers("accept" = "application/json","Authorization" = paste("Bearer",token),"Content-Type" = "application/json")
url = paste0('https://api-invest.tinkoff.ru/openapi/sandbox/sandbox/remove')
raw_data = POST(url, headers)
if(raw_data$status_code==200)
{
data_tmp = content(raw_data, as = "parsed")
return(data_tmp)
}
if(raw_data$status_code!=200)
return(content(raw_data, as = "text"))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.