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