Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: string indices must be integers #38

Open
ghost opened this issue May 25, 2021 · 16 comments
Open

TypeError: string indices must be integers #38

ghost opened this issue May 25, 2021 · 16 comments

Comments

@ghost
Copy link

ghost commented May 25, 2021

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
Copy link

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
Copy link
Author

ghost commented May 25, 2021

If u put like you said i got another error

@rishabhkr432
Copy link

Is your indentation correct?
image

@rishabhkr432
Copy link

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

@ghost
Copy link
Author

ghost commented May 25, 2021

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
Copy link

rishabhkr432 commented May 25, 2021

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
Copy link

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
Copy link
Author

ghost commented May 25, 2021

Its not working i cant install iohook..

@abayomi185
Copy link
Owner

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

@ghost
Copy link
Author

ghost commented May 25, 2021

Can we speak ? Some how ? i still have problem

@ghost
Copy link
Author

ghost commented May 25, 2021

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

@ghost
Copy link
Author

ghost commented May 25, 2021

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
Copy link
Author

ghost commented May 26, 2021

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

@rishabhkr432
Copy link

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
Copy link
Author

ghost commented May 26, 2021

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
Copy link

rishabhkr432 commented May 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants