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