# Brainrex API Explorer
#
# Welcome to the Brainrex API explorer, we make analytics tools for crypto and blockchain. Our currently propiertary models offer sentiment analysis, market making, blockchain monitoring and face-id verification. This AI models can be consumed from this API. We also offer integrations to open data and propietary data providers, as well as free test data we collect. There is a collection of data transformation tools. Join our Telegram group to get the latest news and ask questions [https://t.me/brainrex, #brainrex](https://t.me/brainrex). More about Brainrex at [https://brainrex.com](http://brainrex.com). Full Documentation can be found at [https://brainrexapi.github.io/docs](https://brainrexapi.github.io/docs)
#
# OpenAPI spec version: 0.1.1
# Contact: support@brainrex.com
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#' Request1 Class
#'
#' @field exchange
#' @field market
#' @field data_format
#' @field orient
#' @field start_date
#' @field end_date
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
Request1 <- R6::R6Class(
'Request1',
public = list(
`exchange` = NULL,
`market` = NULL,
`data_format` = NULL,
`orient` = NULL,
`start_date` = NULL,
`end_date` = NULL,
initialize = function(`exchange`, `market`, `data_format`, `orient`, `start_date`, `end_date`){
if (!missing(`exchange`)) {
stopifnot(is.character(`exchange`), length(`exchange`) == 1)
self$`exchange` <- `exchange`
}
if (!missing(`market`)) {
stopifnot(is.character(`market`), length(`market`) == 1)
self$`market` <- `market`
}
if (!missing(`data_format`)) {
stopifnot(is.character(`data_format`), length(`data_format`) == 1)
self$`data_format` <- `data_format`
}
if (!missing(`orient`)) {
stopifnot(is.character(`orient`), length(`orient`) == 1)
self$`orient` <- `orient`
}
if (!missing(`start_date`)) {
stopifnot(is.character(`start_date`), length(`start_date`) == 1)
self$`start_date` <- `start_date`
}
if (!missing(`end_date`)) {
stopifnot(is.character(`end_date`), length(`end_date`) == 1)
self$`end_date` <- `end_date`
}
},
toJSON = function() {
Request1Object <- list()
if (!is.null(self$`exchange`)) {
Request1Object[['exchange']] <- self$`exchange`
}
if (!is.null(self$`market`)) {
Request1Object[['market']] <- self$`market`
}
if (!is.null(self$`data_format`)) {
Request1Object[['data_format']] <- self$`data_format`
}
if (!is.null(self$`orient`)) {
Request1Object[['orient']] <- self$`orient`
}
if (!is.null(self$`start_date`)) {
Request1Object[['start_date']] <- self$`start_date`
}
if (!is.null(self$`end_date`)) {
Request1Object[['end_date']] <- self$`end_date`
}
Request1Object
},
fromJSON = function(Request1Json) {
Request1Object <- jsonlite::fromJSON(Request1Json)
if (!is.null(Request1Object$`exchange`)) {
self$`exchange` <- Request1Object$`exchange`
}
if (!is.null(Request1Object$`market`)) {
self$`market` <- Request1Object$`market`
}
if (!is.null(Request1Object$`data_format`)) {
self$`data_format` <- Request1Object$`data_format`
}
if (!is.null(Request1Object$`orient`)) {
self$`orient` <- Request1Object$`orient`
}
if (!is.null(Request1Object$`start_date`)) {
self$`start_date` <- Request1Object$`start_date`
}
if (!is.null(Request1Object$`end_date`)) {
self$`end_date` <- Request1Object$`end_date`
}
},
toJSONString = function() {
sprintf(
'{
"exchange": %s,
"market": %s,
"data_format": %s,
"orient": %s,
"start_date": %s,
"end_date": %s
}',
self$`exchange`,
self$`market`,
self$`data_format`,
self$`orient`,
self$`start_date`,
self$`end_date`
)
},
fromJSONString = function(Request1Json) {
Request1Object <- jsonlite::fromJSON(Request1Json)
self$`exchange` <- Request1Object$`exchange`
self$`market` <- Request1Object$`market`
self$`data_format` <- Request1Object$`data_format`
self$`orient` <- Request1Object$`orient`
self$`start_date` <- Request1Object$`start_date`
self$`end_date` <- Request1Object$`end_date`
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.