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