# 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 InlineResponse200140
#'
#' @description InlineResponse200140 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field total integer
#'
#' @field list list( \link{InlineResponse200140List} )
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse200140 <- R6::R6Class(
'InlineResponse200140',
public = list(
`total` = NULL,
`list` = NULL,
initialize = function(
`total`, `list`, ...
) {
local.optional.var <- list(...)
if (!missing(`total`)) {
stopifnot(is.numeric(`total`), length(`total`) == 1)
self$`total` <- `total`
}
if (!missing(`list`)) {
stopifnot(is.vector(`list`), length(`list`) != 0)
sapply(`list`, function(x) stopifnot(R6::is.R6(x)))
self$`list` <- `list`
}
},
toJSON = function() {
InlineResponse200140Object <- list()
if (!is.null(self$`total`)) {
InlineResponse200140Object[['total']] <-
self$`total`
}
if (!is.null(self$`list`)) {
InlineResponse200140Object[['list']] <-
lapply(self$`list`, function(x) x$toJSON())
}
InlineResponse200140Object
},
fromJSON = function(InlineResponse200140Json) {
InlineResponse200140Object <- jsonlite::fromJSON(InlineResponse200140Json)
if (!is.null(InlineResponse200140Object$`total`)) {
self$`total` <- InlineResponse200140Object$`total`
}
if (!is.null(InlineResponse200140Object$`list`)) {
self$`list` <- ApiClient$new()$deserializeObj(InlineResponse200140Object$`list`, "array[InlineResponse200140List]", loadNamespace("binanceRapi"))
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`total`)) {
sprintf(
'"total":
%d
',
self$`total`
)},
if (!is.null(self$`list`)) {
sprintf(
'"list":
[%s]
',
paste(sapply(self$`list`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",")
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse200140Json) {
InlineResponse200140Object <- jsonlite::fromJSON(InlineResponse200140Json)
self$`total` <- InlineResponse200140Object$`total`
self$`list` <- ApiClient$new()$deserializeObj(InlineResponse200140Object$`list`, "array[InlineResponse200140List]", loadNamespace("binanceRapi"))
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.