Skip to content

Repository files navigation

swagger-java-client

BrainRex API

  • API version: 1.0.2
    • Build date: 2023-06-14T16:16:45.442340731Z[GMT]

The Brainrex API is a collection of analytics tools and data integrations made for blockchain developers. In particular we offer Natural Language Processing and Anomaly detection algorithms that have been fine tune to understand text data and time series in the domain speficic setting of cryptocurrency and blockchain technology. This technology is intended to be use as building blocks to bigger applications, we offer examples on how to use them for Trading Backtesting and Smart Contract anomaly monitoring.

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

importio.swagger.client.*;
importio.swagger.client.auth.*;
importio.swagger.client.model.*;
importio.swagger.client.api.AnomalyApi;
importjava.io.File;
importjava.util.*;
publicclassAnomalyApiExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: APIKeyHeaderApiKeyAuthAPIKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyHeader");
APIKeyHeader.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//APIKeyHeader.setApiKeyPrefix("Token");AnomalyApiapiInstance = newAnomalyApi();
List<PointTimeSeries> body = Arrays.asList(newPointTimeSeries()); // List<PointTimeSeries> | Time Series to be analyzed, with the following format.try {
List<Boolean> result = apiInstance.anomalyBatch(body);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling AnomalyApi#anomalyBatch");
e.printStackTrace();
}
}
}

Documentation for API Endpoints

All URIs are relative to https://api.brainrex.com

ClassMethodHTTP requestDescription
AnomalyApianomalyBatchPOST /anomaly/json/detectDetects anomalies in historical data in batches. This endpoint uses your entire dataset as input
IntegrationsApicryptoGetCandleDataPOST /crypto/get_candlesDownloads candle format market data
IntegrationsApicryptoGetExchangeAssetsPOST /crypto/get_exchange_assetsGets all coin pairs traded in specified exchange
IntegrationsApicryptoGetOrderbooksPOST /crypto/get_orderbooksReturns the current state of the orderbook.
IntegrationsApicryptoGetSupportedExchangesGET /crypto/get_supported_exchangesGets all cryptocurrency exchanges supported by the Brainrex API
IntegrationsApicryptoGetTickerPOST /crypto/get_tickerDownloads candle format market data
LanguageApilanguageGetCryptoEntitiesPOST /entity/get_crypto_entitiesExtracts known crypto entities like coin names, exchanges, media from text.
LanguageApilanguageGetGeneralSentimentPOST /sentiment/get_general_sentimentReturns a -1 to 1 score, depending on positive/negative sentiment
LanguageApilanguageGetPriceSentimentPOST /language/get_price_sentimentSentiment analysis score using a model trained for buy signals.

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

APIKeyHeader

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

About

Java client for the Brainrex API.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages