Giter Club home page Giter Club logo

cryptosharp's Introduction

CryptoSharp

This is a complete cryptocurrency backtesting platform that I developed as my final thesis project for University of West Attica.

Platform architecture

Platform architecture

Main components are:

  • .Net Core API backend
  • WinForms based frontend that communicates with the backend
  • CryptoCore: a library that is used in both the backend and the frontend to provide the same core functionality to both applications

Features

  • C# strategy scripting
  • Script editor with C# syntax highlighting
  • Live compile-time script error checking
  • Add indicators directly to the chart
  • Market prices and candlestick data directly from Binance
  • Ability to choose any candlestick interval (5 min, 15 min, 2 hours, etc)
  • Visual representation of buys and sells on the chart

Tech used

  • CS-Script (for C# code execution)
  • DevExpress components (used on the frontend)
  • SQLite (caches candlestick data)
  • TA-Lib (technical indicators)
  • FastColoredTextBox (script editor component)
  • RestSharp (HTTP requests to communicate with the backend)
  • Newtonsoft Json (json parser)

Running

To compile and run, after restoring all packages from nuget, set default Binance API Key and Secret in CryptoCore.Classes.Globals.DEFAULT_BINANCE_KEY and CryptoCore.Classes.Globals.DEFAULT_BINANCE_SECRET.

Default user login is:

User: admin

Pass: 123

First you run CryptoAPI server (the easiest way is dotnet CryptoAPI.dll) and afterwards you run CryptoFront.exe, which is the frontend.

Screenshots

.Net Core API server (Backend)

.Net Core API server

CryptoFront (Frontend)

CryptoFront

Sample partial C# Strategy

Sample C# Strategy

Indicator Editor

Indicator Editor

Chart with a SMA and Bollinger Band indicators

Chart with technical indicators

Strategy Options

Strategy Options

Chart after backtesting of a strategy

Chart after backtest

Backtest results

Backtest result

cryptosharp's People

Contributors

ashbz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.