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