Coder Social home page Coder Social logo

mousazourob / pytrader Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 35 KB

Automatic trading bot that uses market data to buy or sell stocks (back-end for Falcon)

Python 100.00%
json aws-lambda python tradingview-webhook-api aws-chalice alpaca-api

pytrader's Introduction

PyTrader

Overview:

Automatic trading bot that streams market data of specific instruments to buy or sell them by placing bracket orders (back-end for Falcon).

Data Flow:

1. TradingView alert is set off creating a JSON message containing ticker parameters such as open and closing price
2. Using TradingView webhooks, a POST request containing the JSON message is sent to a REST API (AWS Lambda function)
3. This executes a Python script running through the AWS Chalice Serverless Framework
4. The Python script then executes a bracket order using the Alpaca API Paper Trading API (tested requests live and offline using Insomnia REST API Client)

Demo:

1. Deploy Chalice REST API using CMD


2. Set up alerts using Trading View and set Webhook URL to Chalice REST API URL


3. Wait till alarm is triggered and orders are placed through Alpaca

Libraries and Frameworks Used:

pytrader's People

Contributors

mousazourob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

webclinic017

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.