#' Withdrawal Fees
#'
#' User's Withdrawal Fees.
#' @keywords fees
#' @export
#' @examples
#' withdrawal_fees()
#'
#'
withdrawal_fees<-function(){
NC<-NONCE()
mthd<-"GET"
Pyld<-""
url<-"https://api.bitso.com/v3/fees/"
Pth<-"/v3/fees/"
hdr<-paste0("Bitso ",ky,":",NC,":",openssl::sha256(paste0(NC,mthd,Pth,Pyld),scrt))
tmp <- tempfile()
res<-httr::GET(url, httr::add_headers(Authorization=hdr), httr::write_disk(tmp))
cat(noquote(paste("Success:", httr::content(res)$success,"\n\n")))
if(httr::content(res)$success== TRUE){
R<-data.frame(suppressWarnings(jsonlite::fromJSON(readLines(tmp))$payload$withdrawal), stringsAsFactors=FALSE)
R<-transform(R,
btc=as.numeric(btc),
eth=as.numeric(eth)
)
return(R)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.