abayomi185 / simple-pump-and-dump-bot

Simple pump-and-dump bot for Binance and Kucoin Cryptocurrency Exchange
Apache License 2.0
78 stars 21 forks source link

TypeError: string indices must be integers #38

Open ghost opened 3 years ago

ghost commented 3 years ago

C:\Users\1\Desktop\kucoin\src>python3 bot-kucoin.py Traceback (most recent call last): File "C:\Users\1\Desktop\kucoin\src\bot-kucoin.py", line 45, in config['api_key'] = api_keys['api_key'] TypeError: string indices must be integers

C:\Users\1\Desktop\kucoin\src>

rishabhkr432 commented 3 years ago

If I'm not wrong then you have placed your API key with quote marks on. Remove them. Should be like this

apiAuth: key: xxxxxxxxxxxxxxxxxxxx secret: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx passphrase: xxxxxxxxxxxx

ghost commented 3 years ago

If u put like you said i got another error

rishabhkr432 commented 3 years ago

Is your indentation correct? image

rishabhkr432 commented 3 years ago

If not, please post the error. I won't be able to guess what's wrong without looking :P

ghost commented 3 years ago

C:\Users\1\Desktop\simple-pump-and-dump-bot-master\node_wip>node bot.js node:internal/process/esm_loader:74 internalBinding('errors').triggerUncaughtException( ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'inquirer' imported from C:\Users\1\Desktop\simple-pump-and-dump-bot-master\node_wip\src\prompts.js ←[90m at new NodeError (node:internal/errors:363:5)←[39m ←[90m at packageResolve (node:internal/modules/esm/resolve:698:9)←[39m ←[90m at moduleResolve (node:internal/modules/esm/resolve:739:18)←[39m ←[90m at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:853:11)←[39m ←[90m at Loader.resolve (node:internal/modules/esm/loader:89:40)←[39m ←[90m at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)←[39m ←[90m at ModuleWrap. (node:internal/modules/esm/module_job:73:40)←[39m ←[90m at link (node:internal/modules/esm/module_job:72:36)←[39m { code: ←[32m'ERR_MODULE_NOT_FOUND'←[39m }

C:\Users\1\Desktop\simple-pump-and-dump-bot-master\node_wip>

rishabhkr432 commented 3 years ago

You just need to install node _modules. Go to node_wip folder and in command line type "npm install" and execute. That should install dependencies and all the necessary packages. I would advise you to learn some of the basics so you don’t feel dependent upon others.

rishabhkr432 commented 3 years ago

One more tip if you look over the error it says “module not found”. You can quickly google how to install specific module on the directory.

[ERR_MODULE_NOT_FOUND]: Cannot find package 'inquirer'

For example, this above error is about “inquirer” so to install this specific package it would be “npm i inquirer”

Navigate to the node_wip in terminal and execute “npm i inquirer”

ghost commented 3 years ago

Its not working i cant install iohook..

abayomi185 commented 3 years ago

Iohook is not used in the program at the moment. You should be able to exclude this without any issues.

ghost commented 3 years ago

Can we speak ? Some how ? i still have problem

ghost commented 3 years ago

Sir can you upload the builded folder without secrets? I cant fix this thing

ghost commented 3 years ago

Iohook is not used in the program at the moment. You should be able to exclude this without any issues.

Bro ita not working always asking for that iohook even if i try to install the missing module.. Ill brake my pc

ghost commented 3 years ago

You can close the thread, but when you close can you give best settings for max profit ?

rishabhkr432 commented 3 years ago

I don't think there is any best setting. Pumps are risky. Just to play it safe, start from 0.5 or 1. See if you hit those targets then adject the margin accordingly.

ghost commented 3 years ago

I don't think there is any best setting. Pumps are risky. Just to play it safe, start from 0.5 or 1. See if you hit those targets then adject the margin accordingly.

Well i adjusted settings to purche 0.75 or 75% of the money for 50% profit and profit margin of 2 . But executing on market price i think its not good, it needs to be limit order for buy and sell so the profit is huge. But i dont understand 1 thing. If its a 50% profit how can i catch a pump that has 700-1000% peek ?

rishabhkr432 commented 3 years ago

The odds of selling a pump at peak are very low. Usually one or two hit it. Not everyone so don't have unreal expectations. Play safe or you could lose a lot.