GithubHelp home page GithubHelp logo

algotrader's Introduction

AlgoTrader

This AlgoTrader will purchase short or long contracts based on famous algorithms or your own algorithm. The exchange used in this specific code is Phemex but since we are using ccxt, there is support for every exchange that ccxt supports like Binance, ByBit, Coinbase, and many others.

Usage and Setup

Bot Configuration

An example config file is avaliable for each algorithm in it's respective folder if you decide to use them.
If you are using your own signals, then use a .env file in the parent folder. (files are highlighted below)

Screen Shot 2023-01-19 at 6 56 57 PM

TradingView Webhook Compatability

In order to use your own algorithm, implement it into a TradingView Chart and place Buy and Sell alerts.

Below you can see and example of my Algo setup on TradingView:

Screen Shot 2023-01-19 at 6 47 29 PM

Set up webhook alerts using the alert feature on your Buy and Sell Signals, like displayed below.

Make up an auth token to make sure that no one can send webhooks to your endpoint and buy and sell 
options without your permission.

Screen Shot 2023-01-19 at 6 49 45 PM

Running the Bot with TradingView

After ensuring that your TradingView alert setup is correct, run api.py to start your API to recieve Buy and 
Sell signals.

Example Output Below:

Screen Shot 2023-01-19 at 7 04 31 PM

Now, if the API gets a request with the correct auth token and a string saying either "Buy" or "Sell", the bot 
will perform the respective of longing or shorting!

Example of a "Buy" request below:

Screen Shot 2023-01-19 at 7 07 12 PM

Running the Bot with a preset algorithm

After ensuring that your config files are correct, just run the respective file of the algorithm and conditions
on your given token and long/short based on it.

Example Output of the Consolidaiton Pop Algorithm Below:

Screen Shot 2023-01-19 at 7 16 23 PM

Happy Trading! ๐Ÿ‘

algotrader's People

Contributors

ahluwalij 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.