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