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