Coder Social home page Coder Social logo

fund-hedge-fund / quantconnect-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doggie52/quantconnect-telegram-bot

0.0 0.0 0.0 26 KB

Unofficial Telegram bot for retrieving data from a QuantConnect live algorithm deployment.

C# 92.58% Shell 0.94% Dockerfile 6.48%

quantconnect-telegram-bot's Introduction

QuantConnect Telegram Bot

Unofficial Telegram bot for retrieving data from a QuantConnect live algorithm deployment. Supports Oanda accounts.

Commands/Features

  • /get_qc: Gets the current $ NAV from a QuantConnect deployment.
  • /get_oanda: Gets a detailed account summary from an Oanda account, including:
    • NAV
    • Unrealised P&L
    • Realised P&L
    • Margin call %
    • (for each open position) Symbol, Unrealised P&L, Direction, Units

Getting Started

Requirements

  • Windows or *NIX instance
  • (if Windows) Visual Studio 2017
  • QuantConnect account and API key
  • Oanda account and API key
  • Telegram account and Bot API token

Instructions for installation under Windows

  1. Clone into directory of choice.
  2. Fill out the bot-config.json file.
  3. Restore NuGet packages.
  4. Compile and run.

Instructions for installation under *NIX

  1. Follow steps to install Mono for your distro, making sure you install mono-complete.
  2. sudo apt-get update && sudo apt-get install nuget
  3. Clone into directory of choice, cd into this directory.
  4. Fill out the bot-config.json file.
  5. nuget restore QuantConnect-Telegram-Bot.sln
  6. msbuild QuantConnect-Telegram-Bot.sln /p:Configuration=Release
  7. cd QuantConnect-Telegram-Bot/bin/Release
  8. mono ./QuantConnect-Telegram-Bot.exe

If you want to run the process in the background and have it restart automatically if it crashes, replace the last two steps above with the following:

  1. chmod +x ./monitor.sh
  2. nohup ./monitor.sh &

Instructions for Docker deployment

  1. Clone into directory of choice, cd into this directory.
  2. Fill out the bot-config.json file.
  3. Build a Docker image. Example for Google Cloud deployment:
    1. gcloud auth login, follow steps
    2. gcloud config set project [PROJECT_ID]
    3. gcloud builds submit --tag gcr.io/[PROJECT_ID]/quantconnect-telegram-bot .
  4. Run or deploy image as you see fit.

quantconnect-telegram-bot's People

Contributors

dependabot[bot] avatar doggie52 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.