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

BOT Works - BUT .... #37

Open
Cryptocobi opened this issue Jan 7, 2025 · 16 comments
Open

BOT Works - BUT .... #37

Cryptocobi opened this issue Jan 7, 2025 · 16 comments
Assignees

Comments

@Cryptocobi
Copy link

Cryptocobi commented Jan 7, 2025

Hey All !

I finally managed to get the bot to work. 2 long nights (Newbie here) but this was fun .

Here is my test wallet for the bot.
https://www.birdeye.so/profile/145yjvbdhdpRXBdZcX333tCyAE3xuVbPojdfEdcz4jv7?chain=solana&duration=today
As you see every transaction has lost... I started with about $10 in SOL (0.05 SOL) and let it run a bit on YOLO mode (continuous) .

NODE
I ended up buying the CHAINSTACK "Growth" plan, to use the Trade Node.
As for my wallet, I am using Backpack.

image

Trading parameters
BUY_AMOUNT = 0.001 # Amount of SOL to spend when buying
BUY_SLIPPAGE = 0.50 # 30% slippage tolerance for buying
SELL_SLIPPAGE = 0.50 # 30% slippage tolerance for selling

BUY & SELL TRANSACTIONS
Buy: https://explorer.solana.com/tx/2qEo259g51DugX8mfzqRL1zqhzLM1E9c4apFumo4Bm66CDciyfUC22mqhb3xRcemxyAjp1WoevdQNVAKgo7m7zGr

Sell: https://explorer.solana.com/tx/59uwYdq5x1ZqCYfCe53XvjzaMazAmbBcqxPLdsdPc2atBAw4Y42PTqoPSnmkJy1EGG2kzJviGpE6k2N2jwBcfmzC

Any hint on how I can get this profitable would be awesome !

@kevglynn
Copy link

kevglynn commented Jan 7, 2025

did you have any issues send_transaction not working and getting a lot of this?

Attempt 4 failed: Unable to confirm transaction RENN1HMH8KcNLkvj5KhMJY7XmKvriZsenKRgzmg5SyrWjkV7HcqgERZZhiLGRon9vmLEEJ6KuADpuYMr8NrJBiw

@diMarcoDEV
Copy link

Please be aware that every trade node transaction costs $0.15 ... so you need to keep that in mind when testing with small amounts of SOL .... you'll always loose money no matter what ....

@Cryptocobi
Copy link
Author

Please be aware that every trade node transaction costs $0.15 ... so you need to keep that in mind when testing with small amounts of SOL .... you'll always loose money no matter what ....

Hi!

Thanks for the reply.

From what I understand is that the base fee is currently set at 0.000005 SOL (5,000 lamports) per signature for transactions ?

Please advise

@Cryptocobi
Copy link
Author

did you have any issues send_transaction not working and getting a lot of this?

Attempt 4 failed: Unable to confirm transaction RENN1HMH8KcNLkvj5KhMJY7XmKvriZsenKRgzmg5SyrWjkV7HcqgERZZhiLGRon9vmLEEJ6KuADpuYMr8NrJBiw

Yes, I had a bunch of issues but then set the slippage to 50% and it worked.

@diMarcoDEV
Copy link

https://chainstack.com/pricing/ - Plan summery .... it's $0.15 per transaction

@diMarcoDEV
Copy link

and because this bot uses 3 transactions you need to make at least $0.45 profit per buy/sell

@kevglynn
Copy link

kevglynn commented Jan 7, 2025

@diMarcoDEV great callouts here

that being said, it is necessary to make at least 3 transactions in order to purchase and sell a solana token, right?

  1. create token account
  2. buy
  3. sell

@Cryptocobi you may have realized this, but @diMarcoDEV wasn’t referring to the transaction fee on the blockchain (i.e. gas). The chainstack trader node charges an extra fee of $0.15 per tx, ON TOP of gas.

@Cryptocobi
Copy link
Author

@diMarcoDEV and @kevglynn - this is a great thread! Thanks and this all makes sense. So we talk about 3 x $0.15 plus the actual SOL transaction fees.

I will continue testing with some larger amounts then and keep you guys posted.

@Cryptocobi
Copy link
Author

Cryptocobi commented Jan 7, 2025

And the bot stopped working again for me. Really strange- I tried it last night and it was buying & selling. Now back to errors after I increased the buy price to 0.025 SOL.

UPDATE: I have now added the Chainstack NODE to my wallet and it started to work again, not sure if just a coincidence or not.
However, it is not catching every transaction and there are still some errors .. overall the bot seems quite slow with trying again and again .. I did however just make my first profitable trade !

image

@diMarcoDEV
Copy link

It all depends on the speed (of your internet and the node), the gas etc....
the more you pay, the more transactions you can make ...
But beware!!!! This is not a real bot, this is a fun bot where you practically do the same as a lottery ... no logic what soever so please be carefull!!!!

@Cryptocobi
Copy link
Author

It all depends on the speed (of your internet and the node), the gas etc.... the more you pay, the more transactions you can make ... But beware!!!! This is not a real bot, this is a fun bot where you practically do the same as a lottery ... no logic what soever so please be carefull!!!!

Makes total sense. THe issue that I see is that I can not set the transaction fee or set a priority fee in the bot, right ?
Understand and I am careful. This was fun as it was the first time for me with such experience.
There must be some other, very advanced bots that actually work and are profitable . Any experience ?

@kevglynn
Copy link

kevglynn commented Jan 7, 2025

@diMarcoDEV assuming by “not a real bot” you mean that it’s not quite setup as a “sniper” because… as it stands right now, it can’t get in fast and doesn’t have the ability to make decisions based on indicators, and so on.

would love a bit more of your insight there.

@diMarcoDEV
Copy link

well, what I'm not trying to do is rewrite the script so that it does make buy and sell decisions based on price en precentage ... and what I'm trying to figure out (without actually buying and selling) is what are the main triggers to do the transactions at the right time..... and to immediately skip the tokens that go down without a few seconds.

@diMarcoDEV
Copy link

Like this: no need to step in and buy because it will just loose you money...

Waiting for a new token creation...
Subscribed to blocks mentioning program: 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P
-new-token----------------------------------------
{
  "name": "Chainpal AI",
  "symbol": "Chainpal",
  "uri": "https://ipfs.io/ipfs/QmYsNjqtv4fKRmvUfhfW9axGPgnBjPfk2LyYXjnRwejXMt",
  "mint": "BTPG7HwHbjGoCGh7SRVXpFHDgrYU1V5vvThLs2rCpump",
  "bondingCurve": "D2gaa2PBRNGKm14xiQ8aHiSiP9zhyRYY7pb8Per4EP6n",
  "associatedBondingCurve": "HDVQnhdYanVJ7d4sKgHK5FgTM8H3UQYnxehsVMekE64Z",
  "user": "8des47eZ5t2vqnDGC8NXniv21EzMAC6QZmTDpLHzNsQp"
}
Waiting for 1 seconds for things to stabilize...
Start Token price: 298
Start Token price: 0.0000000299 SOL
   Token price: 298 (1-0-t1) - -> 0.0%
   Token price: 298 (2-0-t2) - -> 0.0%
   Token price: 300 (1-0-t3) > -> 0.67%
   Token price: 300 (2-0-t4) - -> 0.67%
   Token price: 300 (3-0-t5) - -> 0.67%
   Token price: 300 (4-0-t6) - -> 0.67%
   Token price: 300 (5-0-t7) - -> 0.67%
   Token price: 290 (1-0-t8) < -> -2.68%
--------------------------------------------------
Waiting for a new token creation...
Subscribed to blocks mentioning program: 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P

@diMarcoDEV
Copy link

And as you can see I'm not waiting 15 seconds to stabilize .... it needs warmup time so the first tokens will give an error but eventually everything is fast so no need to wait that long
It's all in the speed of things :)

@akegaviar
Copy link
Member

yeah, guys, I wish I had more time for the project. I will optimize it at some point and keeping internally a list of things to add & redo based on all the issues and the feedback (which I appreciate). I just can't promise when (due to constrained resources like time & effort).

But I also suggest you tune your local versions/forks to your scenarios and make it better. Check the readme file for some of the latest stuff that's not implemented in the bot but the scripts are actually done & working.

For example doing blockSubscribe instead of logsSubscribe might be a huge improvement alone. Check this tweet too. But it's a standalone example right now in the learning-examples directory, so you'll need to FAFO and reassemble some stuff to implement it in the main trading script.

Another one you may want to add is monitoring the token bonding curve completion and liquidity moving to Raydium, which is also a separate script as of in now the learning-examples directory. Check the docs for it too: Listening to pump.fun migrations to Raydium.

Ultimately, you can be very experimental with those as txs on Solana don't cost that much (you don't have to use the Chainstack Solana Trader nodes at $0.15 per tx for experiments; I even suggest that you don't; just use the regular ones and make sure you are familiar with plans and limits). Just experiment with tiny swaps and tiny amounts and think of the strategies and script them (including some of the examples in the repo here).

For example, try combining the scripts for monitoring token minting with logsSubscribe / blockSubscribe and the migration to Raydium example scripts, dumping all of the outputs in a db (or just a txt file, who cares, just use what works best for lowest effort) and then eg do a script or dump the outputs into an LLM chat like Claude or chatGPT and let it find patterns. For example, is there an address that prints tokens that consistently make it to the Raydium migration stage? What is the percentage of the chance there, what's the behavior pattern/trend? Or rather than an address, is it a token naming pattern that's more successful? Or is it the time between a token minted and moved to Raydium? Or is it yet something else?

There's a lot of room to experiment.

And I appreciate all the builders like you staying on the edge of things and experimenting with stuff like this. Your perseverance and curiosity puts you way above average and will always pay off one way or another.

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

4 participants