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

Copy trading issue with endpoint #8

Open
MBSL73 opened this issue Jul 3, 2024 · 9 comments
Open

Copy trading issue with endpoint #8

MBSL73 opened this issue Jul 3, 2024 · 9 comments
Labels
good first issue Good for newcomers

Comments

@MBSL73
Copy link

MBSL73 commented Jul 3, 2024

Hi, I am trying to run the copytrading module and I am getting this error even though i have entered the endpoint correctly in the .env file:
throw new TypeError('Endpoint URL must start with http: or https:.');
at assertEndpointUrl (/home/mayo_boy/solana-memecoin-cli/node_modules/@solana/web3.js/lib/index.cjs.js:4456:11)
at new Connection (/home/mayo_boy/solana-memecoin-cli/node_modules/@solana/web3.js/lib/index.cjs.js:6044:25)
at Object. (/home/mayo_boy/solana-memecoin-cli/src/helpers/config.js:50:24)
at Module._compile (node:internal/modules/cjs/loader:1434:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1518:10)
at Module.load (node:internal/modules/cjs/loader:1249:32)
at Module._load (node:internal/modules/cjs/loader:1065:12)
at Module.require (node:internal/modules/cjs/loader:1271:19)
at require (node:internal/modules/helpers:123:16)
at Object. (/home/mayo_boy/solana-memecoin-cli/src/Trading/memecoin_trading_strategies/copy_trading/copy-sell.js:9:61)

any idea how to solve this?

@outsmartchad
Copy link
Owner

What rpc u are using

@MBSL73
Copy link
Author

MBSL73 commented Jul 4, 2024

Thanks for answering, have tried with both helius and shyft.

I had to change some of the paths to the copy-buy & copy sell files as I am on linux not windows (they seemed to be pointing to a location on a "C: " drive). Don't know if that has caused the issue. Pretty sure they are correct though.

When i run a simple js file to test connection to the solana network with the .env file filled out, it comes back as having a connection.

I am running it by navigating to the copy trade folder and running it with node copy-trade.js , assume that is what I am supposed to be doing?

@outsmartchad
Copy link
Owner

yes, in https://github.com/outsmartchad/solana-memecoin-cli/blob/main/src/helpers/config.js , 1. you should copy your own .env path to change the original path, it's likely your c:// path's format is not correct, and 2. for the copy-trade, you should copy your own copy-buy & copy-sell path, and 3. change the bought_token.json path to ur own path in copy-buy and copy-sell, the way i change it is i put the path in a constant.js at the same dir, and every file refer to it and use it

@outsmartchad
Copy link
Owner

Sorry for make it complicated to get start, i will put it into a constant.js and refer to it

@outsmartchad outsmartchad added the good first issue Good for newcomers label Jul 4, 2024
@MBSL73
Copy link
Author

MBSL73 commented Jul 4, 2024

No problem at all, but I think I have changed all of those correctly and it's not working.

@MBSL73
Copy link
Author

MBSL73 commented Jul 4, 2024

still wrestling with this, it's driving me nuts. also your discord link is expired

@outsmartchad
Copy link
Owner

Updated link

@Othmantork
Copy link

I'm also facing the same problem. I changed all the paths and it still says npm error could not determine executable to run

@outsmartchad
Copy link
Owner

join the dc, talk about it

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

No branches or pull requests

3 participants