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