I have fix my main bugs, turns out I just forgot to finish off my tick arrays tracking properly and several other similar mistakes. Have tested my bot for hours in production. My bot breaks even and is not shutting down. Good. Butโฆ
But I have realized something, even though i do catch occasionally good arbs (1$ - 10$), some transactions profit calcs are way off, the reason is that I have not known that Meteora DLMM pool program have been updated๐
I still have to update my accounts building for pump swap amm update and make small improvements to my solana program to lower CU usage when txs land. Also have to implement sending transactions through udp rather than tcp. Overall, I am optimistic. Soon will print $. Hopefully.
But P50 delay is around 800 microseconds, under 1 ms. So if you want to save this time, receive shreds directly in to the bot and deshred into transactions yourself, which is not easy at all, but will give a great boost in latency.
I have tested my bot in test mode, meaning it doesnt create or manage ALTs and ATAs, and does not build and send transactions. But nevertheless it gives me a good overview of my latencies. The In and Out metrics is the full latency for processing update once i see it.
There is also a hidden latency that I would point out, because I use providers for grpc and tx streaming, there is delay from when the grpc message was created and when i receivedZ The P95 for that delay is around 2ms for tx streaming and 6ms for geyser streaming.
Been while, was slowly developing Amun bot, meanwhile I have moved my server to Frankfurt, improved multicore architecture, added more in depth metrics, added transactions scanning (from deshreder transactions) and profit checking for it.
Basically, my bot sees the same opportunities that the top arb bots see, but I always lose to them, only rarely I catch good arbs, which does not make me profitable in the long run. Now its been a year and one month since I started the project AMUN.
I have been very busy lately with life, couldnโt do much, nevertheless, I have made tests and I see that the bot works as expected, but I do have one drawback, which is latency. So my feed is basically not fast enough, and the way i send transactions is also not fast enough.
I have mainly fixed all bugs, and tested the bot. It actually made profit, but very small. I think 2 things happened, the market was dry at that hour when i was testing, and I have a bug where i calculate wrong market cap for pump amm pool, so my fees are off
Now the final part is left, to send transactions, I was thinking of using advanced nonce accounts to send to different providers at once, seems like I need to add like 25th cache for tracking lol. After that will do metrics on my actual transactions and profits
Here is a peek at my graphs and powerful insights. I currently run the bot in test mode where i run as normal but do not send any transaction on chain, no alts, atas, txs. I am not sure if itโs fast enough, but my p95 is around 90 microseconds. But p99 is around 200 microseconds.
There was this bug where instead of using ">" greater than, I accidentally used โ<โ less than, it was in an absolute price comparison logic. Took me 3 days to find it๐คฃ
Its been a while, have been working on my arbitrage bot. I have integrated prometheus and grafana. I was procrastinating on them. Turns out they are so useful. I have spotted some bugs and fixed them with help of graphs. I have made full on metrics for my bot, indexer and geyser.
Just met a cute girl at the wedding i'm at.
like actually cute. genuinely attractive human being.
we're talking. vibes are good. she's laughing at my jokes.
i'm being charming.
then crypto gets brought up, she says it
"i use solana"
my ears PERKED up
i played it cool. i said "oh nice, what protocols are you on"
she said "i have some SOL on Kraken"
and that's where a normal person would have said "wow that's really cool" and gotten her number
but i am not a normal person
my brain immediately went into autopilot and i said "on Kraken? do you at least self-custody?"
she looked confused
i kept going
"do you have a wallet? do you stake? what's your DeFi allocation. are you actually onchain or are you just sitting on a CEX watching candles"
she said "i bought SOL and i check the price sometimes"
and i said "so you don't actually use solana"
the vibe was GONE
her friend pulled her away. she didn't look back.
i was standing there alone at a wedding holding a drink i wasn't even sipping doing MENTAL MATH on whether someone who's never left a CEX can even call themselves a solana user
my friend walked over and said "bro she was into you what happened"
i said "she holds SOL on a CEX"
he said "so?"
SO???
i would rather DIE alone than let a CEX-only price-checker who's never opened Phantom think we're in the same ecosystem
she had a pretty face but a DISGUSTING onchain history because there IS no onchain history and i simply cannot overlook that
could've had her number
but she knows i'm running DeFi positions across Drift and Kamino at 3am while she's asleep
and honestly that's worth more
solana
184 bot programs and 37k senders. Very interesting. Maybe someone from those 37k needs an api service to fetch list of pairs and its pools, pools info and tokens info? I just might make such a binary that people can download and host an in memory indexer locally.