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