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