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