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