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