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