David Simic

2.1K posts

David Simic banner
David Simic

David Simic

@DrDavidSimic

Crypto market making & quant research | Recovering physicist, ex-Citadel | Building @botfedai

Katılım Mayıs 2024
501 Takip Edilen1.6K Takipçiler
Sabitlenmiş Tweet
David Simic
David Simic@DrDavidSimic·
When doing market making or cross exchange arb in crypto we discussed some of the issues of computing fair price from multiple geo-distributed data feeds. Your quotes will arrive asynchronously from Binance, Bybit, Coinbase and so on, and each will be an indirect measure of fair price. For example, how do you weigh the Binance and Bybit quotes that came in 35ms and 75ms ago against that Coinbase quote that came in 15ms ago? What about when the ordering is reversed? Each exchange has a different level of liquidity, error, and basis, so even if the quotes were all equally fresh, there'd still be some decisions to be made. But latency adds an additional layer of complexity. One mental model for this is ruler theory. Imagine trying to combine the measurements of a bunch of different rulers, each with their own bias (μ) and error (σ), into one optimal measurement. Bias means a particular ruler is on average off from the truth by a consistent amount. Error means there is a random fluctuation by how much it is off from this average amount, sometimes a lot, sometimes a little, but usually within one stdev around the truth. In physics, the way to weight each measurement is via precision weighting where each ruler is weighted by its inverse variance: ~ 1/σ² A quote from a particular exchange is like a ruler measurement of fair price in that it too has its own bias and error. The dominant part of bias is easy to measure, it is just basis, and a good start is to compute a rolling mean. Error is a bit more complex. It will depend on liquidity, spread, volatility ... and time elapsed. BTC-USDT on Binance is expected to be a less errorful measurement of BTC than the same instrument on say, Kucoin. But BTC-USDT on Binance 1 second ago is expected to be more errorful than BTC-USDT on Kucoin 10ms ago. So there is an innate component to error and a time component. Total error squared will look something like this: error² ≈ ε²_exchange + σ_price²·τ where τ is the amount of time that has elapsed from when the quote was emitted to when you registered it, and ε²_exchange is the error unique to that instrument on that exchange (and at that particular point in time). For the time dependence, the assumption here is Gaussian diffusion, which is a defensible first order approximation when you are not near a significant liquidity event. So errors have a component that grows at a speed proportional to variance, creating a kind of uncertainty cone as they propagate forward in time. This tells you roughly how to weigh different quotes from different exchanges arriving at different times. Below are plots from two models built on this intuition. Both are measurably better than just using the Binance mid-quote, and in production, more robust against feed glitches on any single exchange. We'll discuss in more detail some concrete models that incorporate this intuition, and some that work surprisingly well while ignoring parts of it, in a subsequent post.
David Simic tweet mediaDavid Simic tweet media
English
21
21
395
30.7K
Gui Bibeau e/acc
Gui Bibeau e/acc@GuiBibeau·
I want to connect with more @perps traders with a Quant focus. Who's the best of the best to follow and chat with?
English
12
0
33
2.7K
David Simic
David Simic@DrDavidSimic·
@aradtski Yes, would like to see a distinguishing feature.
English
0
0
1
182
David Simic
David Simic@DrDavidSimic·
@Perp338 @risextrade Here are a couple of access codes to anyone interested: EHE3KUFR 7YOG87QD If you don't deposit and trade it will expire though.
English
0
0
1
164
Perp338
Perp338@Perp338·
RISEChain has raised over $9m to build a high-performance Ethereum layer 2 focused on ultra-low latency and real-time onchain execution. one of the main projects on RISE is @risextrade their perp dex focused on: real-time orderbooks fully onchain perpetual trading low latency execution cex-like trading experience onchain 🔻the RISEx testnet originally went live on december 23 last year and the platform is now operating on mainnet. ▫️the mainnet points system is not live yet, which makes this phase important for early ecosystem positioning. ▫️current ways people are positioning on RISEx: 1. using invite codes and start trading actively on the platform 2. invite active traders the ecosystem activity around RISE and RISEx is clearly starting to get momentum… build vol….stay early…👍
Perp338 tweet media
English
8
1
40
1.2K
David Simic
David Simic@DrDavidSimic·
@aditya_sharma Nice write up thanks. Any plans soon for API access to Bullet? I think this is one thing HL did well early.
English
0
0
0
62
David Simic
David Simic@DrDavidSimic·
Given that most signing on hardware wallets is effectively blind (who has the discipline to examine a hex blob each and every time) hw is not enough. I think manufactures are dropping the ball here not providing better tools, for example tx simulation pre-signing. Shooting from the hip here, but combined with zk tls verification of the sim result on the device this could be quite effective.
English
0
0
0
226
jords
jords@jords·
the single most important thing you can do for yourself today is to ensure your shit is secure i just went through a refresh of personal security stuff before i start taking calls with founders (strangers) if you have substantial funds on any wallet that isn't a hardware wallet you are retarded, it's that simple im reducing my surface area of attack all round but the easiest and most important thing is to ensure your money isn't in hot wallets if you're reading this then you should take action right now so you don't think about what could have been after it's took late happy monday
English
17
3
162
13.5K
David Simic
David Simic@DrDavidSimic·
@stalequant Nice essays. I’ll stick to the dot con version 😂
English
0
0
0
75
VietnamPenguin
VietnamPenguin@VietnamPenguin·
@DrDavidSimic @wintermute_t Judging by the activity (literally trades and orders every second), there’s clearly a lot more going on there than just simple hedging.
English
1
0
1
651
VietnamPenguin
VietnamPenguin@VietnamPenguin·
If you’re curious how @wintermute_t trades on Hyperliquid: All-time perp PnL: +$182 M. All-time volume: $226 B. Staking position: 256k $HYPE. Wallet: 0xecb63caa47c7c4e77f60f1ce858cf28dc2b82b00
VietnamPenguin tweet media
English
25
18
460
54.8K
Piotr Pomorski
Piotr Pomorski@PtrPomorski·
Wonder to what degree this is true
Piotr Pomorski tweet media
English
3
8
151
12.9K
David Simic
David Simic@DrDavidSimic·
@HangukQuant Sounds like something you don't want near your toilet haha.
English
0
0
2
146
HangukQuant
HangukQuant@HangukQuant·
Looking to port over a SOTA Python logging subsystem, and I usually put c-whatever but clogger.py sounds like a terrible name for low latency logging
English
6
0
17
7K
David Simic
David Simic@DrDavidSimic·
@stalequant I think the product being the product makes a lot of sense. But I dunno, I might too dumb to see the caveats to that.
English
0
0
1
79
David Simic
David Simic@DrDavidSimic·
@stalequant Been hard to constructively criticize HL since the run up to the airdrop, without getting highly emotional flack.
English
1
0
3
217
David Simic
David Simic@DrDavidSimic·
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.
English
8
5
86
8.7K
David Simic
David Simic@DrDavidSimic·
@yenwod_ Full replayability is the gold standard if you can pull it off. Challenging but not impossible at the boutique level. Worthy goal regardless.
English
0
0
9
548
yenwod
yenwod@yenwod_·
@DrDavidSimic If your system is replayable you don't need extra observability at runtime, you can instead download the logs, replay, and observe the system state at any point in time
English
2
0
21
1.1K
David Simic
David Simic@DrDavidSimic·
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.
David Simic tweet mediaDavid Simic tweet media
English
1
2
28
2.5K
David Simic
David Simic@DrDavidSimic·
@stalequant You'd think this would be a big startup opportunity ...
English
0
0
2
116
Elliot Lipnowski
Elliot Lipnowski@ElliotLip·
Recently reminded of a beloved line from Terrence Tao's blog: "At a purely formal level, one could call probability theory the study of measure spaces with total measure one, but that would be like calling number theory the study of strings of digits which terminate."
English
10
73
1.3K
62.6K