# Binance Public Spot API
#
# OpenAPI Specifications for the Binance Public Spot API API documents: - [https://github.com/binance/binance-spot-api-docs](https://github.com/binance/binance-spot-api-docs) - [https://binance-docs.github.io/apidocs/spot/en](https://binance-docs.github.io/apidocs/spot/en)
#
# The version of the OpenAPI document: 1.0
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title InlineResponse20028
#'
#' @description InlineResponse20028 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field asset character
#'
#' @field dailyInterestRate character
#'
#' @field timestamp integer
#'
#' @field vipLevel integer
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20028 <- R6::R6Class(
'InlineResponse20028',
public = list(
`asset` = NULL,
`dailyInterestRate` = NULL,
`timestamp` = NULL,
`vipLevel` = NULL,
initialize = function(
`asset`, `dailyInterestRate`, `timestamp`, `vipLevel`, ...
) {
local.optional.var <- list(...)
if (!missing(`asset`)) {
stopifnot(is.character(`asset`), length(`asset`) == 1)
self$`asset` <- `asset`
}
if (!missing(`dailyInterestRate`)) {
stopifnot(is.character(`dailyInterestRate`), length(`dailyInterestRate`) == 1)
self$`dailyInterestRate` <- `dailyInterestRate`
}
if (!missing(`timestamp`)) {
stopifnot(is.numeric(`timestamp`), length(`timestamp`) == 1)
self$`timestamp` <- `timestamp`
}
if (!missing(`vipLevel`)) {
stopifnot(is.numeric(`vipLevel`), length(`vipLevel`) == 1)
self$`vipLevel` <- `vipLevel`
}
},
toJSON = function() {
InlineResponse20028Object <- list()
if (!is.null(self$`asset`)) {
InlineResponse20028Object[['asset']] <-
self$`asset`
}
if (!is.null(self$`dailyInterestRate`)) {
InlineResponse20028Object[['dailyInterestRate']] <-
self$`dailyInterestRate`
}
if (!is.null(self$`timestamp`)) {
InlineResponse20028Object[['timestamp']] <-
self$`timestamp`
}
if (!is.null(self$`vipLevel`)) {
InlineResponse20028Object[['vipLevel']] <-
self$`vipLevel`
}
InlineResponse20028Object
},
fromJSON = function(InlineResponse20028Json) {
InlineResponse20028Object <- jsonlite::fromJSON(InlineResponse20028Json)
if (!is.null(InlineResponse20028Object$`asset`)) {
self$`asset` <- InlineResponse20028Object$`asset`
}
if (!is.null(InlineResponse20028Object$`dailyInterestRate`)) {
self$`dailyInterestRate` <- InlineResponse20028Object$`dailyInterestRate`
}
if (!is.null(InlineResponse20028Object$`timestamp`)) {
self$`timestamp` <- InlineResponse20028Object$`timestamp`
}
if (!is.null(InlineResponse20028Object$`vipLevel`)) {
self$`vipLevel` <- InlineResponse20028Object$`vipLevel`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`asset`)) {
sprintf(
'"asset":
"%s"
',
self$`asset`
)},
if (!is.null(self$`dailyInterestRate`)) {
sprintf(
'"dailyInterestRate":
"%s"
',
self$`dailyInterestRate`
)},
if (!is.null(self$`timestamp`)) {
sprintf(
'"timestamp":
%d
',
self$`timestamp`
)},
if (!is.null(self$`vipLevel`)) {
sprintf(
'"vipLevel":
%d
',
self$`vipLevel`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse20028Json) {
InlineResponse20028Object <- jsonlite::fromJSON(InlineResponse20028Json)
self$`asset` <- InlineResponse20028Object$`asset`
self$`dailyInterestRate` <- InlineResponse20028Object$`dailyInterestRate`
self$`timestamp` <- InlineResponse20028Object$`timestamp`
self$`vipLevel` <- InlineResponse20028Object$`vipLevel`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.