Skip to content

Latest commit

 

History

History
160 lines (112 loc) · 5.56 KB

LanguageApi.md

File metadata and controls

160 lines (112 loc) · 5.56 KB

BrainRexApi.LanguageApi

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

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.

Example

import {BrainRexApi} from 'brain_rex_api';
let defaultClient = BrainRexApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
let APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

let apiInstance = new BrainRexApi.LanguageApi();
let body = new BrainRexApi.Text(); // Text | String of text to be analyze for investor sentiment.

apiInstance.languageGetCryptoEntities(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});

Parameters

Name Type Description Notes
body Text String of text to be analyze for investor sentiment.

Return type

null (empty response body)

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

languageGetGeneralSentiment

'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.

Example

import {BrainRexApi} from 'brain_rex_api';
let defaultClient = BrainRexApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
let APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

let apiInstance = new BrainRexApi.LanguageApi();
let body = new BrainRexApi.Text(); // Text | String of text to be analyze for general sentiment.

apiInstance.languageGetGeneralSentiment(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
body Text String of text to be analyze for general sentiment.

Return type

'String'

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

languageGetPriceSentiment

'String' languageGetPriceSentiment(body)

Sentiment analysis score using a model trained for buy signals.

Gives a 0 to 1 score, depending on buy/sell sentiment

Example

import {BrainRexApi} from 'brain_rex_api';
let defaultClient = BrainRexApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
let APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

let apiInstance = new BrainRexApi.LanguageApi();
let body = new BrainRexApi.Text(); // Text | String of text to be analyze for investor sentiment.

apiInstance.languageGetPriceSentiment(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
body Text String of text to be analyze for investor sentiment.

Return type

'String'

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json