BotFed (@BotFedAI) profile picture

Quant-grade AI agents for on-chain yield optimization. Built for the adversarial DeFi environment.

Joined March 2025
When market making, cross asset correlations are your friend. What's funny though is you can footgun yourself here if you assume markets are too efficient. Suppose you're on a secondary exchange making BTC, and some ALTCOIN, using something like the binance feeds as your source of truth. Your mm engine sees BTC jump 2bips and immediately reprices ALTCOIN, canceling your inner ask. But then nothing happens to ALTCOIN for the next couple of ticks, so your system forgets about the BTC jump and requotes ALTCOIN at the level implied by your feed + some basis adjustment. A few milliseconds later ALTCOIN does jump and you get picked off. So you had the right idea but the wrong execution. The market for ALTCOIN was actually less efficient than you assumed, and you backed off the signal too quickly. What's the solution? Modeling. You need to analyze tick data and model the correlations temporally. The precise impulse response function is something to be discovered empirically, but it's well motivated by the fact that there's an easily observable statistical relation: ALT_return ~ beta * BTC_return + epsilon (Or more generally ALT ~ beta_i * f_i + epsilon where f_i are factors.) For most coins. This leads to all kinds of modeling ideas.
6
11
128
12,050
When market making, once you have your tail latencies under control and an accurate, fast OMS, it becomes easier to crank out large daily volume with relatively little capital. This is when fee tiers, small edges and a bit of alpha really add up. A 0.5 bip edge on $10M daily volume translates into ~$182K a year, and there's no reason to stop there. A common point of confusion in alpha modeling is how to combine alphas over different forecasting horizons into one integrated signal. Say you have a model trained to forecast a small edge over the next 1s, another over 1min and another over 10min. One of the first things I like to do is break the prediction period into disjoint intervals, 0 to 1s, 1s to 1min and 1min to 10min, and rerun each model on these segments. This lets you tease out whether the longer horizon model is really adding value over its horizon, or whether it's just a shorter term model dressed up in a longer one's clothes. It also lets you recover something like a forward looking alpha curve, which has consequences for your optimal execution path, and can show you to what extent the signals are genuinely orthogonal.
6
5
127
11,752
When trying to fix negative markouts in your market making system, top of the list should be digging into fills that happened during inflight cancels. These are trades your system knew were going to be toxic, but you got filled anyway. This may happen because you're still too slow on the tails and quoting too tight for your latency, or it could be an inconsistency in your business logic. Tracking these events involves accepting a small amount of overhead in the hot path but is generally worth it, especially in the testing phase with smaller amounts of capital. When such events cross a certain threshold, I like to attach a cancel and fill context for detailed analysis of the system state before and after. This can include details about the BBO, alpha states, latency deltas, skew, etc. Then, once such events have been reduced to an acceptable level, compile them out to shave the extra nanos off the hot path.
8
5
99
10,494
If you're a market maker or taker in crypto, venue selection is one of the most important decisions you'll make. You need a visceral understanding of why it matters, especially starting out, as I see too many people going straight to tier A. Venue selection can make or break your profitability as a boutique MM (and you are boutique unless you're doing a significant % of tier A volume). Here's the mental model I keep in mind. A group of people stand around a chute. Every so often a turkey drops out. Whoever catches it keeps it, so everyone muscles each other for position, hunger games style. Some turkeys have grenades strapped to them. And in the surrounding hills are snipers who are constantly picking MMs off. Some arenas have nice fat turkeys, few grenades, and unskilled snipers. Your fellow MMs are farmers with pitchforks. Other arenas, most turkeys have grenades, the snipers are Navy SEALs, and your fellow MMs are Delta Force operators, skilled at grabbing the good turkeys before you and letting you blow up on the grenades. Meanwhile, you can't remember the last time you did a pushup. So given this spread, which arena do you pick? Does it make sense to spend some time watching as a spectator before jumping in? I'll cover specific techniques for assessing venue quality and profitability in a follow-up post.
馃 Made with AI
1
2
35
3,468
If you do market making or cross-exchange arb in crypto, better vol estimates are one of the easiest ways to lower your adverse selection rate, as these feed directly into your quoting spread. (or at least they should feed into your quote spread, right Han?馃槄) Speaking of, there is a well documented Trump effect in vol seasonality. Trump's habit of tweeting major decisions on Sundays has created a measurable bump in background vol. The blue curve is Biden, the red curve is Trump. A solid vol estimate will take some form of seasonality into account (either directly, or indirectly via multiscale). More on models in a future post. Or you could just treat your mm operation like the Millennium Falcon (who am I to say).
3
5
78
7,846
Quantum tunneling 鉁嶏笍 It is a fascinating phenomenon. Subatomic particles, like electrons, behave more like waves than solid objects. This lets them pass through barriers that seem impossible to cross. In the classical world, if you throw a ball at a wall, it always bounces back. In the quantum world, however, a particle has a small chance of just appearing on the other side of an energy "wall." This occurs because a particle's position is described by a wave of probability. This wave doesn鈥檛 drop to zero the moment it hits an obstacle. Instead, it "leaks" through, allowing some of the particle to pass to the other side. While this may sound like science fiction, this "leaking" is what allows the Sun to shine, makes modern smartphone memory possible, and lets scientists map individual atoms. Video 馃摳 : umtiquinhodefisica
53
204
21
1,066
115,831
While market making you may periodically get "quotes from the future" from any one of your N geo-distributed exchange feeds, meaning the exchange's self reported timestamp exceeds your own. This can lead to noise in your fair price estimates. What do you do in this case, and what is the likely cause? Well, if you are consistently getting quotes from the future then the first place to look is at your own system time service. As a first step you'd want to have something like chrony setup, and if your trading engine is in Tokyo, for example, you want it setup with a config optimized for Tokyo (ie: you'd want your NTP service pointed at Japan based sources and not random US based ones). Say you've done that, and the quotes from the future seem to go away. Great, but there is still some doubt that there may be some time offset between the different self reported timestamps from each exchange, relative to your own time, and if some of the feeds you are listening to are geographically far away this offset could still be large. For example, if you are located in Tokyo but that Coinbase quote comes in with a timestamp 10ms ago, either the speed of light has been violated by about 60ms or there is still some relative drift in the clocks. How do you detect this? A simple approach is to setup a minimum latency floor for each exchange. You can compute this floor by running a ping process to each exchange and tracking the fastest round trip. Half of that is your latency floor, and any quote that claims to have arrived faster than that has effectively come from the future telling your system it needs to adjust the relative clock. (See the ping example below from a Tokyo AWS box.) This approach is superior to a theoretical speed of light calculation approach because it takes into account real world realities of fiber optics layouts, etc. Detailed clock drift correction isn't the first optimization to do beyond just setting up something like chrony. But it is something that can give you an edge (or save you from losing) especially during market calamity when misordered quotes are most costly. More on this in a follow-up post.
8
5
116
10,402