Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I love OpenMCT, in 2021 I wrote some crypto DeFi arb trading bots (just doing realtime graph constructions and then bellman ford, then a hill-climbing amount optimiser and gas estimator and transaction obfuscator to help avoid sniping)

I modified OpenMCT to be the GUI for this, which showed the profitable trading paths through the graph in realtime.

I emailed NASA to ask if they could put my thumbs up, mugshot on their users page next to all of the satellites and Mars missions, they said they couldn’t because my project was a for profit enterprise, but I totally think they just didn’t want my (insane) mugshot there XD



There's a NASA funding line called Tipping Point used to commercialize NASA tech. I bet you couldve buttered up the managers of that fund during the defi hayday and gotten a small pot to work on it.


Could you expand on your trading bot? To bad for NASA denying your mugshot. I bet it would have generated many stars on GitHub.


What I wrote above is basically the summary, it crawled the mempool and checked the address interfaces to discover Defi exchanges automatically.

I found maybe 20-30 exchanges that were not publicly advertised, so there was quite a bit of liquidity there. It looked for triangular arbitrage opportunities, then optimised the amount and computed gas costs to check if it was profitable. There was a lot of compute required, about 12,000 paths a second were searched and a profitable trade would be found about once every 3 hours.

“Optimising the amount” was a bit tricky too - too little you leave money on the table, too much you cause slippage - but you know the good thing about DeFi is that through our ETH nodes we have a copy of the blockchain and I had already written an EVM disassembler for another project, so I had a lot of knowledge of EVM internals - so I could simulate the trade executions inside the optimiser locally, which greatly helped “realism”

The whole system was profitable for about 8 months, it netted me about 180k usd before it tapered off - I don’t know why but I suspect someone else found the strategy/was doing the same thing, so I took the cash out of it, paid tax and moved on.

If you’re interested in the tech it was all just pure Python, networkx for the graph stuff, shared memory, multiprocessing and lots of IPC, the whole thing operated in RAM because it has to be quick (exponential number of paths to search) - anything important (debugging / trade execution) was thrown in a queue and written out by another process

After that, I built this https://atomictessellator.com


Thanks, that was a lot of insight, I appreciate it. Congrats for finding and executing a profitable strategy.


Haha all good if you get it to work and make 100M then throw me a million down from your yacht will you?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: