zyairelai / futures-hero

❗ HIGH RISK ❗ Scalping Trading on Binance Futures
165 stars 48 forks source link

start and stop with "killed" #28

Closed ka1myk closed 2 years ago

ka1myk commented 2 years ago

Hello! Clone and setup api keys, install requirements. Only one warning from CryptographyDeprecationWarning

root@fbebxxlrkh:~/futures-hero# pip3 install -r requirements.txt
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Requirement already satisfied: ccxt in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 1)) (1.82.82)
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 2)) (1.21.5)
Requirement already satisfied: pandas in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: requests in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 4)) (2.27.1)
Requirement already satisfied: termcolor in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 5)) (1.1.0)
Requirement already satisfied: python-binance in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 6)) (1.0.15)
Requirement already satisfied: cryptography==3.4.6 in /usr/local/lib/python3.8/dist-packages (from -r requirements.txt (line 7)) (3.4.6)
Requirement already satisfied: setuptools>=60.9.0 in /usr/local/lib/python3.8/dist-packages (from ccxt->-r requirements.txt (line 1)) (62.3.1)
Requirement already satisfied: certifi>=2018.1.18 in /usr/lib/python3/dist-packages (from ccxt->-r requirements.txt (line 1)) (2019.11.28)
Requirement already satisfied: aiohttp>=3.8; python_version >= "3.5.2" in /usr/local/lib/python3.8/dist-packages (from ccxt->-r requirements.txt (line 1)) (3.8.1)
Requirement already satisfied: aiodns>=1.1.1; python_version >= "3.5.2" in /usr/local/lib/python3.8/dist-packages (from ccxt->-r requirements.txt (line 1)) (3.0.0)
Requirement already satisfied: yarl==1.7.2; python_version >= "3.5.2" in /usr/local/lib/python3.8/dist-packages (from ccxt->-r requirements.txt (line 1)) (1.7.2)
Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.8/dist-packages (from pandas->-r requirements.txt (line 3)) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.8/dist-packages (from pandas->-r requirements.txt (line 3)) (2021.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.8/dist-packages (from requests->-r requirements.txt (line 4)) (1.24.2)
Requirement already satisfied: charset-normalizer~=2.0.0; python_version >= "3" in /usr/local/lib/python3.8/dist-packages (from requests->-r requirements.txt (line 4)) (2.0.12)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /usr/lib/python3/dist-packages (from requests->-r requirements.txt (line 4)) (2.8)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from python-binance->-r requirements.txt (line 6)) (1.14.0)
Requirement already satisfied: dateparser in /usr/local/lib/python3.8/dist-packages (from python-binance->-r requirements.txt (line 6)) (1.1.1)
Requirement already satisfied: ujson in /usr/local/lib/python3.8/dist-packages (from python-binance->-r requirements.txt (line 6)) (5.1.0)
Requirement already satisfied: websockets==9.1 in /usr/local/lib/python3.8/dist-packages (from python-binance->-r requirements.txt (line 6)) (9.1)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.8/dist-packages (from cryptography==3.4.6->-r requirements.txt (line 7)) (1.15.0)
Requirement already satisfied: attrs>=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp>=3.8; python_version >= "3.5.2"->ccxt->-r requirements.txt (line 1)) (19.3.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /usr/local/lib/python3.8/dist-packages (from aiohttp>=3.8; python_version >= "3.5.2"->ccxt->-r requirements.txt (line 1)) (6.0.2)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /usr/local/lib/python3.8/dist-packages (from aiohttp>=3.8; python_version >= "3.5.2"->ccxt->-r requirements.txt (line 1)) (4.0.2)
Requirement already satisfied: frozenlist>=1.1.1 in /usr/local/lib/python3.8/dist-packages (from aiohttp>=3.8; python_version >= "3.5.2"->ccxt->-r requirements.txt (line 1)) (1.3.0)
Requirement already satisfied: aiosignal>=1.1.2 in /usr/local/lib/python3.8/dist-packages (from aiohttp>=3.8; python_version >= "3.5.2"->ccxt->-r requirements.txt (line 1)) (1.2.0)
Requirement already satisfied: pycares>=4.0.0 in /usr/local/lib/python3.8/dist-packages (from aiodns>=1.1.1; python_version >= "3.5.2"->ccxt->-r requirements.txt (line 1)) (4.1.2)
Requirement already satisfied: regex!=2019.02.19,!=2021.8.27,<2022.3.15 in /usr/local/lib/python3.8/dist-packages (from dateparser->python-binance->-r requirements.txt (line 6)) (2022.3.2)
Requirement already satisfied: tzlocal in /usr/local/lib/python3.8/dist-packages (from dateparser->python-binance->-r requirements.txt (line 6)) (4.2)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.12->cryptography==3.4.6->-r requirements.txt (line 7)) (2.21)
Requirement already satisfied: pytz-deprecation-shim in /usr/local/lib/python3.8/dist-packages (from tzlocal->dateparser->python-binance->-r requirements.txt (line 6)) (0.1.0.post0)
Requirement already satisfied: backports.zoneinfo; python_version < "3.9" in /usr/local/lib/python3.8/dist-packages (from tzlocal->dateparser->python-binance->-r requirements.txt (line 6)) (0.2.1)
Requirement already satisfied: tzdata; python_version >= "3.6" in /usr/local/lib/python3.8/dist-packages (from pytz-deprecation-shim->tzlocal->dateparser->python-binance->-r requirements.txt (line 6)) (2022.1)
root@fbebxxlrkh:~/futures-hero#

and after try to start

root@fbebxxlrkh:~/futures-hero# python3 run.py
Pair Name        :   BNBBUSD
Trade Quantity   :   0.02 BNB
Leverage         :   7

Killed
root@fbebxxlrkh:~/futures-hero#

any ideas what I am doing wrong?

ka1myk commented 2 years ago

Start clean new VPS and deploy futures-hero -> start successful. Then deloy long-term-low-leverage and both get "killed" after start.

zyairelai commented 2 years ago

Try this trick I found from StackOverFlow https://stackoverflow.com/questions/67014506/i-cant-import-any-python-modules-and-cant-install-any-modules-with-pip-either

ka1myk commented 2 years ago

Thank you for the answer, unfortunately, the update did not help. But it turned out to run through python3.8 /root/futures-hero/run.py

zyairelai commented 2 years ago

Oh! Seems like you were using python 3.10 beforehand?