abayomi185/simple-pump-and-dump-bot

Error with update

nauj151 opened this issue · 15 comments

Hi im testing your new update and as soon i pick a coin show me that error now:

Traceback (most recent call last):
File "bot-kucoin.py", line 288, in
asyncio.run(main())
AttributeError: module 'asyncio' has no attribute 'run'

Hope you can help me bro, id tryied lots of thing but I think im doing something wrong.
If i put python3 --version show me: Python 3.7.5
Ok. Im doing well ,just update to 3.7.5(was 3.6)

If i do "sudo pip install -r requirements.txt"
aiohttp requires Python '>=3.4.2' but the running Python is 2.7.17

Im not in python 2.7.17 xD

If I do "sudo pip3 install -r requirements.txt" Show me lots of lines of error. I think its the wrong command

Also, now looks like everything its ok, but has same error than before, The module are installed :/

user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/src$ python3 bot-kucoin.py
Traceback (most recent call last):
File "bot-kucoin.py", line 19, in
from kucoin.client import Market
ModuleNotFoundError: No module named 'kucoin'

I dont know what im doing wrong bro , search and search on the net but nothing can I find

Run this command:

sudo apt-get install python3-dev

https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory

user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/src$ sudo apt-get install python3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dev is already the newest version (3.6.7-1~18.04).
python3-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ALSO:

user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/src$ sudo -H pip3 install kucoin
Requirement already satisfied: kucoin in /usr/local/lib/python3.7/dist-packages
user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/src$ sudo -H pip install kucoin
Requirement already satisfied: kucoin in /usr/local/lib/python2.7/dist-packages

BUT WHEN COME TO BOT:

user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/src$ python3 bot-kucoin.py
Traceback (most recent call last):
File "bot-kucoin.py", line 19, in
from kucoin.client import Market
ModuleNotFoundError: No module named 'kucoin'

I Think now should works,but something are wrong..idk what..still on WSL Ubuntu 18.04 TLS

Run:

sudo pip3 install kucoin-python

pip and pip3 are different and install to different locations

Run:

sudo pip3 install kucoin-python

pip and pip3 are different and install to different locations

Thanks bro the error was i was trying module kucoin, not kucoin-python xD..
Now idk if I downgrade or not to the pumpbot trying. Will do everything from scratch. If something goes wrong will send you news XD.
You're awesome man, thanks lots and sorry and the same time. Im dummie, never touch python, and never touch before ubuntu, just for checkra1n and nomore used in prompt.Also, im learning xD
Thanks man

Nice! Keep learning!

Also, pretty cool that you jailbreak

Thanks bro! Also id tried now to put an order in ADA to test it. Open order and close it on kucoin everything fine, but shows that result on prompt what means?

Traceback (most recent call last):
File "bot-kucoin.py", line 288, in
asyncio.run(main())
File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.7/asyncio/base_events.py", line 579, in run_until_complete
return future.result()
File "bot-kucoin.py", line 246, in main
insert_into_db(order=buy_order_data, order_id=buy_order['orderId'])
File "bot-kucoin.py", line 215, in insert_into_db
order['size'], order['dealFunds']))
sqlite3.OperationalError: no such table: Orders

Did you run initialise_db.py yet? for a local database of your orders?

Ensure you have the right permissions for the bot. You can check with "ls -la" and change permissions with the chmod command. Check linuxize.com for more details on the command.

If you don't need it you can comment out lines 246 and 247; insert_into_db... from the kucoin bot.

Ok bro, the problem was that, I had not used initialise_db.py since I updated. So now if it works correctly.
My next question is this. Do you know how long it takes for the bot to place a purchase order? It seems to me that it takes too long, is there a way to optimize this?
I have the configuration so that it closes the order if it does not reach 10% after 5000ms, but when it closes it always says that the time spent in the pump is 8.4s. That is, it takes 3400ms to take the purchase action? I do not know if it is a problem with the bot and if there is a way to optimize this speed, since 3400ms to take an order is still a long time, faster than a human, but slower than a bot.
It should not be a problem with my connection, I use 150Mb of fiber optics, with an average ping of 37ms towards kucoin, I have DMZ activated on my IP

Ping to kucoin:

C: \ Users \ varra> ping trade.kucoin.com Pinging trade.kucoin.com.cdn.cloudflare.net [104.18.0.42] with 32 bytes of data: Response from 104.18.0.42: bytes = 32 time = 37ms TTL = 60 Response from 104.18.0.42: bytes = 32 time = 38ms TTL = 60 Response from 104.18.0.42: bytes = 32 time = 37ms TTL = 60 Response from 104.18.0.42: bytes = 32 time = 37ms TTL = 60 Statistics of ping for 104.18.0.42: Packets: sent = 4, received = 4, lost = 0 (0% lost), Approximate round trip times in milliseconds: Minimum = 37ms, Maximum = 38ms, Average = 37ms

Kucoin bot trade:

Your USDT balance after trading is 42.40536333
A -0.00% loss
Time elapsed for pump is 8.4s

Im using WSL on Ubuntu 18.04 LTS , maybe changing to native linux instead of WSL?
I had same ping to kucoin on cmd Windows and cmd WSL average 37ms both.
So?Thanks in advance bro

Hey, I should probably clarify the details there. The time shown is for the Python process and it's only an estimation due to where I placed the function calls.

It doesn't take 3400ms to purchase, you can time this more accurately to test it with the time.time() function. My testing showed 27.99 seconds using the 25000ms setting; about 3 seconds too with the estimate function.

To test market buy time: comment out line 241 and copy line to just below 228.

Though Python isn't the most performant programming language. I'm currently working on redoing the bot in NodeJS as this will deliver better performance; see the node_wip folder.

As I said, I dont know too much in code or prompt, so Im learning.

To test market buy time: comment out line 241 and copy line to just below 228.

How can I share you this?

Though Python isn't the most performant programming language. I'm currently working on redoing the bot in NodeJS as this will deliver better performance; see the node_wip folder.

Yes as I saw youre working to do this, im waiting for you bro, because if in python takes too many time its not usefully against other bots,in pumps exit always in loss, impossible to make profit.

I saw too youre working too under link by discord, and making bot to hotbit. Should be nice make it too on hotbit.
Anyway, youre making nice work bro..I am following you and sharing to some friends and discord collueagues. We are really thankfully with you

Thanks!

Thanks!

Saw node_wip folder, and tested to run it but seems doesnt work xD(I think its not fully finished,hope you have soon bro)
I dont know if this will helps you but I will share for you if that helps to develope it.

node version: v16.1.0
npm version: 7.13.0

Run npm install

user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/node_wip$_ npm install
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup '/mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules',
npm WARN cleanup [Error: EINVAL: invalid argument, scandir '/mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/@babel/highlight/node_modules/color-convert'] {
npm WARN cleanup errno: -22,
npm WARN cleanup code: 'EINVAL',
npm WARN cleanup syscall: 'scandir',
npm WARN cleanup path: '/mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/@babel/highlight/node_modules/color-convert'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path /mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/iohook
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! Downloading prebuild for platform: iohook-v0.9.1-node-v93-linux-x64
Downloading prebuild.tar.gz
npm ERR! Error: GET https://github.com/wilix-team/iohook/releases/download/v0.9.1/iohook-v0.9.1-node-v93-linux-x64.tar.gz returned 404
npm ERR! Prebuild for current platform (iohook-v0.9.1-node-v93-linux-x64) not found!
npm ERR! Try to build for your platform manually:
npm ERR! # cd node_modules/iohook;
npm ERR! # npm run build
npm ERR!
npm ERR! /mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/iohook/install.js:16
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! [Error: ENOENT: no such file or directory, open '/tmp/prebuild.tar.gz'] {
npm ERR! errno: -2,
npm ERR! code: 'ENOENT',
npm ERR! syscall: 'open',
npm ERR! path: '/tmp/prebuild.tar.gz'
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-05-18T02_18_51_549Z-debug.log

Log file(Just copy last lines of error)

1901 timing build:run:install:node_modules/sqlite3 Completed in 2239ms
1902 warn cleanup Failed to remove some directories [
1902 warn cleanup [
1902 warn cleanup '/mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules',
1902 warn cleanup [Error: EINVAL: invalid argument, scandir '/mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/@babel/highlight/node_modules/color-convert'] {
1902 warn cleanup errno: -22,
1902 warn cleanup code: 'EINVAL',
1902 warn cleanup syscall: 'scandir',
1902 warn cleanup path: '/mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/@babel/highlight/node_modules/color-convert'
1902 warn cleanup }
1902 warn cleanup ]
1902 warn cleanup ]
1903 timing reify:rollback:createSparse Completed in 2834ms
1904 timing reify:rollback:retireShallow Completed in 0ms
1905 timing command:install Completed in 78394ms
1906 verbose stack Error: command failed
1906 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
1906 verbose stack at ChildProcess.emit (node:events:365:28)
1906 verbose stack at maybeClose (node:internal/child_process:1067:16)
1906 verbose stack at Socket. (node:internal/child_process:453:11)
1906 verbose stack at Socket.emit (node:events:365:28)
1906 verbose stack at Pipe. (node:net:661:12)
1907 verbose pkgid iohook@0.9.1
1908 verbose cwd /mnt/c/simple-pump-and-dump-bot-master/node_wip
1909 verbose Linux 4.4.0-19041-Microsoft
1910 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
1911 verbose node v16.1.0
1912 verbose npm v7.11.2
1913 error code 1
1914 error path /mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/iohook
1915 error command failed
1916 error command sh -c node install.js
1917 error Downloading prebuild for platform: iohook-v0.9.1-node-v93-linux-x64
1917 error Downloading prebuild.tar.gz
1917 error [> ] 0.0% (0 B/s)
1917 error ESC[1000DESC[0KESC[1AESC[1000DESC[0KESC[1AESC[1000DESC[0KDownloading prebuild.tar.gz
1917 error Error: GET https://github.com/wilix-team/iohook/releases/download/v0.9.1/iohook-v0.9.1-node-v93-linux-x64.tar.gz returned 404
1918 error Prebuild for current platform (iohook-v0.9.1-node-v93-linux-x64) not found!
1918 error Try to build for your platform manually:
1918 error # cd node_modules/iohook;
1918 error # npm run build
1918 error
1918 error /mnt/c/simple-pump-and-dump-bot-master/node_wip/node_modules/iohook/install.js:16
1918 error throw err;
1918 error ^
1918 error
1918 error [Error: ENOENT: no such file or directory, open '/tmp/prebuild.tar.gz'] {
1918 error errno: -2,
1918 error code: 'ENOENT',
1918 error syscall: 'open',
1918 error path: '/tmp/prebuild.tar.gz'
1918 error }
1919 verbose exit 1

Run node src/kucoin-bot.js

user@DESKTOP-6C02UAG:/mnt/c/simple-pump-and-dump-bot-master/node_wip$ node src/kucoin-bot.js
node:internal/process/esm_loader:74
internalBinding('errors').triggerUncaughtException(
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'kucoin-node-sdk' imported from /mnt/c/simple-pump-and-dump-bot-master/node_wip/src/kucoin-bot.js
at new NodeError (node:internal/errors:363:5)
at packageResolve (node:internal/modules/esm/resolve:698:9)
at moduleResolve (node:internal/modules/esm/resolve:739:18)
at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:853:11)
at Loader.resolve (node:internal/modules/esm/loader:89:40)
at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)
at ModuleWrap. (node:internal/modules/esm/module_job:73:40)
at link (node:internal/modules/esm/module_job:72:36) {
code: 'ERR_MODULE_NOT_FOUND'

Thanks!

A lot of changes have been made. You may want to try again.