# 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 InlineResponse20079
#'
#' @description InlineResponse20079 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field ipRestrict character
#'
#' @field ipList list( character )
#'
#' @field updateTime integer
#'
#' @field apiKey character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20079 <- R6::R6Class(
'InlineResponse20079',
public = list(
`ipRestrict` = NULL,
`ipList` = NULL,
`updateTime` = NULL,
`apiKey` = NULL,
initialize = function(
`ipRestrict`, `ipList`, `updateTime`, `apiKey`, ...
) {
local.optional.var <- list(...)
if (!missing(`ipRestrict`)) {
stopifnot(is.character(`ipRestrict`), length(`ipRestrict`) == 1)
self$`ipRestrict` <- `ipRestrict`
}
if (!missing(`ipList`)) {
stopifnot(is.vector(`ipList`), length(`ipList`) != 0)
sapply(`ipList`, function(x) stopifnot(is.character(x)))
self$`ipList` <- `ipList`
}
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() {
InlineResponse20079Object <- list()
if (!is.null(self$`ipRestrict`)) {
InlineResponse20079Object[['ipRestrict']] <-
self$`ipRestrict`
}
if (!is.null(self$`ipList`)) {
InlineResponse20079Object[['ipList']] <-
self$`ipList`
}
if (!is.null(self$`updateTime`)) {
InlineResponse20079Object[['updateTime']] <-
self$`updateTime`
}
if (!is.null(self$`apiKey`)) {
InlineResponse20079Object[['apiKey']] <-
self$`apiKey`
}
InlineResponse20079Object
},
fromJSON = function(InlineResponse20079Json) {
InlineResponse20079Object <- jsonlite::fromJSON(InlineResponse20079Json)
if (!is.null(InlineResponse20079Object$`ipRestrict`)) {
self$`ipRestrict` <- InlineResponse20079Object$`ipRestrict`
}
if (!is.null(InlineResponse20079Object$`ipList`)) {
self$`ipList` <- ApiClient$new()$deserializeObj(InlineResponse20079Object$`ipList`, "array[character]", loadNamespace("binanceRapi"))
}
if (!is.null(InlineResponse20079Object$`updateTime`)) {
self$`updateTime` <- InlineResponse20079Object$`updateTime`
}
if (!is.null(InlineResponse20079Object$`apiKey`)) {
self$`apiKey` <- InlineResponse20079Object$`apiKey`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`ipRestrict`)) {
sprintf(
'"ipRestrict":
"%s"
',
self$`ipRestrict`
)},
if (!is.null(self$`ipList`)) {
sprintf(
'"ipList":
[%s]
',
paste(unlist(lapply(self$`ipList`, function(x) paste0('"', x, '"'))), collapse=",")
)},
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(InlineResponse20079Json) {
InlineResponse20079Object <- jsonlite::fromJSON(InlineResponse20079Json)
self$`ipRestrict` <- InlineResponse20079Object$`ipRestrict`
self$`ipList` <- ApiClient$new()$deserializeObj(InlineResponse20079Object$`ipList`, "array[character]", loadNamespace("binanceRapi"))
self$`updateTime` <- InlineResponse20079Object$`updateTime`
self$`apiKey` <- InlineResponse20079Object$`apiKey`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.