# 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 InlineResponse20093
#'
#' @description InlineResponse20093 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field asset character
#'
#' @field interest character
#'
#' @field lendingType character
#'
#' @field productName character
#'
#' @field time integer
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20093 <- R6::R6Class(
'InlineResponse20093',
public = list(
`asset` = NULL,
`interest` = NULL,
`lendingType` = NULL,
`productName` = NULL,
`time` = NULL,
initialize = function(
`asset`, `interest`, `lendingType`, `productName`, `time`, ...
) {
local.optional.var <- list(...)
if (!missing(`asset`)) {
stopifnot(is.character(`asset`), length(`asset`) == 1)
self$`asset` <- `asset`
}
if (!missing(`interest`)) {
stopifnot(is.character(`interest`), length(`interest`) == 1)
self$`interest` <- `interest`
}
if (!missing(`lendingType`)) {
stopifnot(is.character(`lendingType`), length(`lendingType`) == 1)
self$`lendingType` <- `lendingType`
}
if (!missing(`productName`)) {
stopifnot(is.character(`productName`), length(`productName`) == 1)
self$`productName` <- `productName`
}
if (!missing(`time`)) {
stopifnot(is.numeric(`time`), length(`time`) == 1)
self$`time` <- `time`
}
},
toJSON = function() {
InlineResponse20093Object <- list()
if (!is.null(self$`asset`)) {
InlineResponse20093Object[['asset']] <-
self$`asset`
}
if (!is.null(self$`interest`)) {
InlineResponse20093Object[['interest']] <-
self$`interest`
}
if (!is.null(self$`lendingType`)) {
InlineResponse20093Object[['lendingType']] <-
self$`lendingType`
}
if (!is.null(self$`productName`)) {
InlineResponse20093Object[['productName']] <-
self$`productName`
}
if (!is.null(self$`time`)) {
InlineResponse20093Object[['time']] <-
self$`time`
}
InlineResponse20093Object
},
fromJSON = function(InlineResponse20093Json) {
InlineResponse20093Object <- jsonlite::fromJSON(InlineResponse20093Json)
if (!is.null(InlineResponse20093Object$`asset`)) {
self$`asset` <- InlineResponse20093Object$`asset`
}
if (!is.null(InlineResponse20093Object$`interest`)) {
self$`interest` <- InlineResponse20093Object$`interest`
}
if (!is.null(InlineResponse20093Object$`lendingType`)) {
self$`lendingType` <- InlineResponse20093Object$`lendingType`
}
if (!is.null(InlineResponse20093Object$`productName`)) {
self$`productName` <- InlineResponse20093Object$`productName`
}
if (!is.null(InlineResponse20093Object$`time`)) {
self$`time` <- InlineResponse20093Object$`time`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`asset`)) {
sprintf(
'"asset":
"%s"
',
self$`asset`
)},
if (!is.null(self$`interest`)) {
sprintf(
'"interest":
"%s"
',
self$`interest`
)},
if (!is.null(self$`lendingType`)) {
sprintf(
'"lendingType":
"%s"
',
self$`lendingType`
)},
if (!is.null(self$`productName`)) {
sprintf(
'"productName":
"%s"
',
self$`productName`
)},
if (!is.null(self$`time`)) {
sprintf(
'"time":
%d
',
self$`time`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse20093Json) {
InlineResponse20093Object <- jsonlite::fromJSON(InlineResponse20093Json)
self$`asset` <- InlineResponse20093Object$`asset`
self$`interest` <- InlineResponse20093Object$`interest`
self$`lendingType` <- InlineResponse20093Object$`lendingType`
self$`productName` <- InlineResponse20093Object$`productName`
self$`time` <- InlineResponse20093Object$`time`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.