# 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 InlineResponse20075DataBalances
#'
#' @description InlineResponse20075DataBalances Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field asset character
#'
#' @field free character
#'
#' @field locked character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20075DataBalances <- R6::R6Class(
'InlineResponse20075DataBalances',
public = list(
`asset` = NULL,
`free` = NULL,
`locked` = NULL,
initialize = function(
`asset`, `free`, `locked`, ...
) {
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`
}
},
toJSON = function() {
InlineResponse20075DataBalancesObject <- list()
if (!is.null(self$`asset`)) {
InlineResponse20075DataBalancesObject[['asset']] <-
self$`asset`
}
if (!is.null(self$`free`)) {
InlineResponse20075DataBalancesObject[['free']] <-
self$`free`
}
if (!is.null(self$`locked`)) {
InlineResponse20075DataBalancesObject[['locked']] <-
self$`locked`
}
InlineResponse20075DataBalancesObject
},
fromJSON = function(InlineResponse20075DataBalancesJson) {
InlineResponse20075DataBalancesObject <- jsonlite::fromJSON(InlineResponse20075DataBalancesJson)
if (!is.null(InlineResponse20075DataBalancesObject$`asset`)) {
self$`asset` <- InlineResponse20075DataBalancesObject$`asset`
}
if (!is.null(InlineResponse20075DataBalancesObject$`free`)) {
self$`free` <- InlineResponse20075DataBalancesObject$`free`
}
if (!is.null(InlineResponse20075DataBalancesObject$`locked`)) {
self$`locked` <- InlineResponse20075DataBalancesObject$`locked`
}
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`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse20075DataBalancesJson) {
InlineResponse20075DataBalancesObject <- jsonlite::fromJSON(InlineResponse20075DataBalancesJson)
self$`asset` <- InlineResponse20075DataBalancesObject$`asset`
self$`free` <- InlineResponse20075DataBalancesObject$`free`
self$`locked` <- InlineResponse20075DataBalancesObject$`locked`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.