warp-id / solana-trading-bot

Solana Trading Bot - Beta
Microsoft Public License
1.59k stars 732 forks source link

Swap transaction delayed / dropped #12

Closed yvanat closed 8 months ago

yvanat commented 10 months ago

Hello I am building a solana sniper bot aswell

I tried running yours and got an error.

I just wanted to know if you are able to swap new pools almost instantly or not, because my buy attempts are always dropped when I try to buy in the first ~10 sec after juicy new pool launch, but if I wait ~10 sec then it works fine. The same tx with same settings ofc

the error if it inrerests you :

/home/quarch/fdundjer/buy.ts:5 MARKET_STATE_LAYOUT_V2, ^ TypeError: Cannot read properties of undefined (reading 'pubkey') at /home/quarch/fdundjer/buy.ts:113:25 at Generator.next () at fulfilled (/home/quarch/fdundjer/buy.ts:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5)

dtmrc commented 10 months ago

you have to check poolOpenTime & make sure the swap status on the pool is available @yvanat

fdundjer commented 10 months ago

@yvanat I think this script will land you somewhere in top100. With some optimizations, you could end up in top 30 without any investment. It depends on how many bots are running. A year ago with the same code you could be in top 15.

chiochocolate commented 10 months ago

Hey @yvanat , i got a question, do you have discord or telegram? I want to ask you from there

fdundjer commented 9 months ago

@yvanat I've updated the script. Can you give it another try?

bobomogyoro commented 9 months ago

@fdundjer

@yvanat I think this script will land you somewhere in top100. With some optimizations, you could end up in top 30 without any investment. It depends on how many bots are running. A year ago with the same code you could be in top 15.

Thank you for sharing your code! I'm a newbie to crypto and I'm genuinely curious why did you decide to share your sniper bot instead of keeping the topX number low and maximize your own profits?:) As someone who just started out wonders if it is worth it to use a sniper bot? Especially when the competition rises significantly. Would you share your opinion on that? Thank you!:)

fdundjer commented 8 months ago

@fdundjer

@yvanat I think this script will land you somewhere in top100. With some optimizations, you could end up in top 30 without any investment. It depends on how many bots are running. A year ago with the same code you could be in top 15.

Thank you for sharing your code! I'm a newbie to crypto and I'm genuinely curious why did you decide to share your sniper bot instead of keeping the topX number low and maximize your own profits?:) As someone who just started out wonders if it is worth it to use a sniper bot? Especially when the competition rises significantly. Would you share your opinion on that? Thank you!:)

This was written as proof of concept and shared with the community. I try to fix the issues and accept PR-s, but this is not a finished product. It's a good starting point to build something by yourself. Also as mentioned, competition right now is not the same as it was a year ago, hence the performance mentioned above are not a good benchmark for today's market.