Comments (7)
Thanks @letsautom8, that sounds like a good solution. @th0rnbr, can you try it and let us know if it resolves your issue?
@letsautom8, I see you are using "--selllowerpcnt". You may want to try "--trailingstoploss". I added it recently. Instead of having a fixed sell at -2% margin it would set the sell -2% under the current buy high. For example if you set "--trailingstoploss -2" if the margin goes up to 10% and then drops to 8% it will sell because the price dropped -2% from the high of the current buy.
from pycryptobot.
I'm not entirely sure what that could be.
- What are you running the bot(s) on?
- Which exchange are you using?
- Does it happen every time?
- How many bots are you running?
Can you make sure all your libraries are up to date?
"python3 -m pip install --upgrade pip"
"python3 -m pip list --outdated"
from pycryptobot.
Hi!
I'm running on a MacOS Catalina (10.15.7)[1], using binance [2], it happens every time (sometime between 10 - 30 minutes while running)[3]. I'm running just one bot right now[4].
There were 2 libraries outdated (idna and setuptools), so I update them. Although, even with the most recent libraries, it keeps giving connection errors.
from pycryptobot.
I have the same MacOS as you and mine works.
Maybe you have an SSL issue. What versions are you using?
% python -c "import ssl; print (ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1k 25 Mar 2021
% python -c "from OpenSSL.SSL import SSLeay_version, SSLEAY_VERSION; print (SSLeay_version(SSLEAY_VERSION))"
b'OpenSSL 1.1.1j 16 Feb 2021'
from pycryptobot.
Hi. I think OpenSSL is already up to date:
% python -c "import ssl; print (ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1k 25 Mar 2021
% python -c "from OpenSSL.SSL import SSLeay_version, SSLEAY_VERSION; print (SSLeay_version(SSLEAY_VERSION))"
b'OpenSSL 1.1.1k 25 Mar 2021'
from pycryptobot.
You could try installing a virtual environment to run your bot on - so no other libraries could mess with it.
Install virtual env
$ pip3 install virtualenv
Install virtual env wrapper (optional but will help setup your environment a bit faster)
$ pip3 install virtualenvwrapper
$ export WORKON_HOME=~/envs
$ mkdir -p $WORKON_HOME
$ source /usr/local/bin/virtualenvwrapper.sh
Note: you could place the last 3 lines from above to your bash/zsh profile
git clone https://github.com/whittlem/pycryptobot.git pycryptobot
cd pycryptobot
mkvirtualenv pycryptobot
pip install -r requirements.txt
python pycryptobot.py --market BTC-GBP --granularity 3600 --live 1 --verbose 0 --selllowerpcnt -2
from pycryptobot.
HI, THANKS!!
from pycryptobot.
Related Issues (20)
- V7.0.28 The bot crashes with an error in the simulation if you enable the setting "smartswitch": 1 HOT 1
- UnboundLocalError("local variable 'trading_data' referenced before assignment") HOT 4
- BadRequest error when using the /stats command HOT 5
- No bots running after scanner process is complete HOT 5
- Bot HOT 1
- Issue with restart HOT 2
- 8.0.2 kucoin granularity causes failure HOT 1
- TypeError("'>' not supported between instances of 'NoneType' and 'int'") HOT 3
- IndexError('index 0 is out of bounds for axis 0 with size 0') HOT 26
- IndexError('index 0 is out of bounds for axis 0 with size 0') after restart HOT 3
- Run tests using config files HOT 2
- Preventloss does not work with declining market HOT 1
- trading account.py uses the same critical error message for both Coinbase and coinbasepro. HOT 1
- Gihub Actions "container.yml" failing, build locally works! HOT 5
- Issue with Coinbase API grabbing Quote Currency HOT 1
- Market not found when using Binance sub accounts
- FutureWarning in AppState.py stops the bot
- Cleanup non issue
- Insufficient Quote Funds HOT 2
- Missing contributing guidelines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycryptobot.