Code Monkey home page Code Monkey logo

pytradingglue's Introduction

PyTradingGlue

This is simple solution example how to make communication between some trading terminal or framework and python real

How it works

On python side we will create http server with falcon (because it's fastest wf and pretty simple) On base trading app side (Multicharts, TsLab, MetaTrader) we will use POST HTTP requests to send data and get some calculated values

data_handlers.py is a file where all data processing logic (or maybe trading logic) lives server.py is an entry point for server. All url handlers should be here. Please refer to falcon docs

In this example we have two endpoints. One for Multicharts strategy example and another one for TsLab strategy. One shows how to work with simple input data as list of prices and another one shows how to work with more complicated data: dict of params and prices

Installation

  • clone this repo
  • make virtual env
  • install requirements pip install -r requirements.txt

Start python server

  • cd py go down to py folder from root project folder
  • waitress-serve --port=8000 server:app
  • go to multicharts/tslab folders to find another instructions

Disclaimer

This is made only for demonstration purpose. If you run any strategy from this repo with real trading account you WILL LOSE MONEY. So just play with simulated market data or just use it to copy some code. Some parts of code might be not optimal and I will not support this repo in future. I can give you any promise that everything will work smoothly on your machine. Sorry for that and try to fix all issues by yourself.

pytradingglue's People

Contributors

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