Skip to content

Repository files navigation

IO.Swagger - the C# library for the 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. More about Brainrex at https://brainrex.com. Full Documentation can be found at https://brainrexapi.github.io/docs

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.1.1
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.languages.CSharpClientCodegen

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

usingIO.Swagger.Api;usingIO.Swagger.Client;usingIO.Swagger.Model;

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out IO.Swagger.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

usingSystem;usingSystem.Diagnostics;usingIO.Swagger.Api;usingIO.Swagger.Client;usingIO.Swagger.Model;namespaceExample{publicclassExample{publicvoidmain(){varapiInstance=newBlockchainApi();varrequest=newRequest();// Request | Name of the blockchain and date range.try{// Calculate average transccion fee of a given blockchainInlineResponse201result=apiInstance.BlockchainAverageTx(request);Debug.WriteLine(result);}catch(Exceptione){Debug.Print("Exception when calling BlockchainApi.BlockchainAverageTx: "+e.Message);}}}}

Documentation for API Endpoints

All URIs are relative to https://brainrexapi.appspot.com:5000/api

ClassMethodHTTP requestDescription
BlockchainApiBlockchainAverageTxPOST /average_tx_feeCalculate average transccion fee of a given blockchain
BlockchainApiBlockchainListGET /list_blockchainThe blockchains data structure supported by the Brainrex API
CryptoApiExchangesDownloadCandlesPOST /download_candlesDownloads candle format market data
CryptoApiExchangesListGET /marketsThe markets data structure supported by the Brainrex Market API
CryptoApiExchangesMarketmakerPOST /market_makingMarket Making as a Service API.
CryptoApiExchangesReadGET /exchangesThe exchanges data structure supported by the Brainrex API
CryptoApiExchangesTickerDataDownloadPOST /download_tickerDownload raw ticker data from major crypto markets
SentimentAnalysisApiSentimentGetPriceSentimentPOST /get_buy_sentimentSentiment analysis score using a model trained for buy signals.
SentimentAnalysisApiSentimentGetSentimentPOST /get_sentimentSentiment analysis for any given blob of text

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

About

Client Library for c# for the Brainrex API

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages