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