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