Codabl Community API

Swagger, Codabl, Community, API, anomaly-detection, blockchain, cryptocurrency, data-integration, nlp
pip install codabl-python==0.1.2



Provides anomaly detection and natural language processing technlogies to blockchain developers.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.1
  • Package version: 0.9.4
  • Build package: io.swagger.codegen.languages.PythonClientCodegen


Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+

(you may need to run pip with root permission: sudo pip install git+

Then import the package:

import brainrex 


Install via Setuptools.

python install --user

(or sudo python install to install the package for all users)

Then import the package:

import brainrex

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import brainrex
from import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyHeader
configuration = brainrex.Configuration()
configuration.api_key['x-api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-api-key'] = 'Bearer'

# create an instance of the API class
api_instance = brainrex.AnomalyApi(brainrex.ApiClient(configuration))
request = brainrex.TimeSeries() # TimeSeries | Time Series to be analyzed, with the following format. (optional)

    # Detects anomalies in historical data in batches. This endpoint uses your entire dataset as input
    api_response = api_instance.anomaly_batch(request=request)
except ApiException as e:
    print("Exception when calling AnomalyApi->anomaly_batch: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
AnomalyApi anomaly_batch POST /anomaly/json/detect Detects anomalies in historical data in batches. This endpoint uses your entire dataset as input
IntegrationsApi crypto_get_candle_data POST /crypto/get_candles Downloads candle format market data
IntegrationsApi crypto_get_exchange_assets POST /crypto/get_exchange_assets Gets all currency pairs traded in selected exchange
IntegrationsApi crypto_get_orderbooks POST /crypto/get_orderbooks Downloads candle format market data
IntegrationsApi crypto_get_supported_exchanges GET /crypto/get_supported_exchanges Gets all cryptocurrency exchanges supported by the Brainrex API
IntegrationsApi crypto_get_ticker POST /crypto/get_ticker Downloads candle format market data
LanguageApi language_get_crypto_entities POST /entity/get_crypto_entities Named Entity Recognition software capable of understanding cryptocurrency and blockchain speficic language.
LanguageApi language_get_general_sentiment POST /sentiment/get_general_sentiment This endpoints returns a score from -1 to +1 where depending on negative or positive attitude in the text.
LanguageApi language_get_price_sentiment POST /language/get_price_sentiment Sentiment analysis score using a model trained for buy signals.

Documentation For Models

Documentation For Authorization


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