Pi-Trader | A cryptocurrency day-trading bot for Raspberry Pi | Cryptocurrency library
kandi X-RAY | Pi-Trader Summary
kandi X-RAY | Pi-Trader Summary
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
Top functions reviewed by kandi - BETA
- 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
Pi-Trader Key Features
Pi-Trader Examples and Code Snippets
Community Discussions
Trending Discussions on Pi-Trader
QUESTION
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:39From 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?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Pi-Trader
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page