All URIs are relative to https://api.brainrex.com
| Method | HTTP request | Description |
|---|---|---|
| languageGetCryptoEntities | POST /entity/get_crypto_entities | Extracts known crypto entities like coin names, exchanges, media from text. |
| languageGetGeneralSentiment | POST /sentiment/get_general_sentiment | Returns a -1 to 1 score, depending on positive/negative sentiment |
| languageGetPriceSentiment | POST /language/get_price_sentiment | Sentiment analysis score using a model trained for buy signals. |
languageGetCryptoEntities(body)
Extracts known crypto entities like coin names, exchanges, media from text.
The Crypto Entities endpoint ingests written MIT Digital Currency Initiative Paper A paper describing how our sentiment and entity analyzer are built. And how the can be used for trading several cryptocurrencies successfully We prove that using sentiment only as a input to a trading algorithm can be profitable. If combined with other machine learning models. We descri This Paper could be published in MIT Crypto Economics Journal . . <br><br> Our AI selects from several models, choosing the one that fits the given data best, and we give you the avality to customize the sensitivy of the model. Our model has been trained to recognize anomalies in popular blockchain networks e.g. Bitcoin, Ethereum, learning from past events.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.LanguageApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: APIKeyHeader
ApiKeyAuth APIKeyHeader = (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");
LanguageApi apiInstance = new LanguageApi();
Text body = new Text(); // Text | String of text to be analyze for investor sentiment.
try {
apiInstance.languageGetCryptoEntities(body);
} catch (ApiException e) {
System.err.println("Exception when calling LanguageApi#languageGetCryptoEntities");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Text | String of text to be analyze for investor sentiment. |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
String languageGetGeneralSentiment(body)
Returns a -1 to 1 score, depending on positive/negative sentiment
This endpoints returns a score from -1 to +1 where depending on negative or positive attitude in the text.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.LanguageApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: APIKeyHeader
ApiKeyAuth APIKeyHeader = (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");
LanguageApi apiInstance = new LanguageApi();
Text body = new Text(); // Text | String of text to be analyze for general sentiment.
try {
String result = apiInstance.languageGetGeneralSentiment(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LanguageApi#languageGetGeneralSentiment");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Text | String of text to be analyze for general sentiment. |
String
- Content-Type: application/json
- Accept: application/json
String languageGetPriceSentiment(body)
Sentiment analysis score using a model trained for buy signals.
Gives a 0 to 1 score, depending on buy/sell sentiment
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.LanguageApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: APIKeyHeader
ApiKeyAuth APIKeyHeader = (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");
LanguageApi apiInstance = new LanguageApi();
Text body = new Text(); // Text | String of text to be analyze for investor sentiment.
try {
String result = apiInstance.languageGetPriceSentiment(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LanguageApi#languageGetPriceSentiment");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Text | String of text to be analyze for investor sentiment. |
String
- Content-Type: application/json
- Accept: application/json