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