Pi-Trader | A cryptocurrency day-trading bot for Raspberry Pi | Cryptocurrency library

 by   metalcorebear Python Version: Current License: MIT

kandi X-RAY | Pi-Trader Summary

kandi X-RAY | Pi-Trader Summary

Pi-Trader is a Python library typically used in Blockchain, Cryptocurrency, Bitcoin applications. Pi-Trader has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However Pi-Trader build file is not available. You can download it from GitHub.

Pi Trader is a cryptocurrency trading bot for Raspberry Pi. This script instantiates a Raspberry Pi trading bot that interfaces with the Coinbase Pro API. First, it optimizes a trading strategy by backtesting against historic data from the Coinbase exchange. The strategy is based on buy/risk parameters defined as multiples of the Exponential Average True Range (eATR). OHLC data are refreshed each iteration, and a buy/sell signal is calculated and executed if appropriate. For buy signals, the maximum possible number of coins are purchased (with a user-specified fiat buffer preserved). For sell signals, all coins are exchanged for fiat. Strategy is re-optimized at user-defined intervals. This is what I would consider to be a "dumb" trading strategy based solely on price deviations from an indicator. I am curious about exploring machine learning solutions for trading strategy optimization. Future iterations of this project may include that as an option. Note that this is an experimental bot, and like all trading strategies, I can not guarantee that it will be profitable if implemented. If anyone is interested in making this project better, I'd be happy to collaborate.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Pi-Trader has a low active ecosystem.
              It has 15 star(s) with 5 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 1 have been closed. On average issues are closed in 5 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Pi-Trader is current.

            kandi-Quality Quality

              Pi-Trader has 0 bugs and 0 code smells.

            kandi-Security Security

              Pi-Trader has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Pi-Trader code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Pi-Trader is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Pi-Trader releases are not available. You will need to build from source code and install.
              Pi-Trader has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              It has 324 lines of code, 16 functions and 3 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Pi-Trader and discovered the below as its top functions. This is intended to give you an instant insight into Pi-Trader implemented functionality, and help decide if they suit your requirements.
            • Generate the history of the latest trades
            • Calculate the exponential moving average
            • Estimate strategy for a given strategy
            • Add history to history
            • Reframe dataframe
            • Gets the latest price for a given pair
            • Finds the best strategy for the given data
            • Evaluate the loss function
            • Simulate strategy
            • Finds the best strategy for a list of strategies
            • Get data for a specific product
            • Check the status of an order
            • Reframe the dataframe
            • Make a trade
            • Get the balance of a currency
            • Get historical rates for a given pair
            Get all kandi verified functions for this library.

            Pi-Trader Key Features

            No Key Features are available at this moment for Pi-Trader.

            Pi-Trader Examples and Code Snippets

            No Code Snippets are available at this moment for Pi-Trader.

            Community Discussions

            QUESTION

            Interactive Brokers orders synched in both Gateway and TWS?
            Asked 2017-Aug-24 at 20:48

            I have looked at this query Interactive Brokers API: Trader Workstation (TWS) vs IB Gateway It does not answer my question of: If I push an order through IB's gateway, will I be able to see the same open order position within TWS? This is of course using the same IB trading account. Thanks

            ...

            ANSWER

            Answered 2017-Mar-10 at 19:39

            From my experience the answer is no. I have a program that executes trades through the API that runs using the IB Gateway on a virtual machine on AWS. When I log in through the TWS interface I don't see the trades that were executed through the gateway, but the portfolio balances reflect the fact that the trades actually occurred. I'm trying to figure out now how to view the trade data (execution price, commission) related to the Gateway-initiated trades.

            If anyone knows a way to see this trade data in TWS I would sure like to know. Perhaps there is a setting that can be changed?

            Source https://stackoverflow.com/questions/41622494

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Pi-Trader

            In terminal, navigate to folder and run git clone https://github.com/metalcorebear/Pi-Trader.git.
            Navigate to folder and execute sudo ./setup.sh to set up the virtual environment.
            Edit "parameters.py" file, as appropriate, with Coinbase API keys and other parameters (see below).

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/metalcorebear/Pi-Trader.git

          • CLI

            gh repo clone metalcorebear/Pi-Trader

          • sshUrl

            git@github.com:metalcorebear/Pi-Trader.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link