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