@casatrick

2 Followers
3 Following
8 Posts
Build automated trading systems for prediction markets-specialising in Polymarket bots, real-time data pipelines, and backend infrastructure that edges out noise.
https://t.me/casatrick
Youtubehttps://www.youtube.com/@casatrick
Mediumhttps://casatrick.medium.com/
Dev.tohttps://dev.to/casatrick

CW: prediction markets / algo trading

Late-entry bot for Polymarket BTC markets. With 45s left and YES at 0.88, the market still prices in 12% reversal chance. Often mispriced.

Enters only when:
- YES prob > 85%
- Spread < 2%
- Slippage avg < 3%

Fees eat ~2%/trade. At 3% slippage, edge is gone entirely.

Paper trading + backtest before real capital. Always.

github.com/casatrick/polymarket-trading-bot

#polymarket #algotrading #buildinpublic

.

Spent some time this week improving reliability on my Polymarket bot.

No new features.

No strategy changes.

Just better monitoring, connection recovery, and a lot more logging.

Not the most exciting commits, but probably the ones that matter most once something runs 24/7.

#polymarket #tradingBot #building #rust

Polymarket trading bot in Rust, 6 months in:

~800µs decision loop on a $20 VPS
- ws parse: 12µs
- order book delta update: 4µs
- strategy: 18µs
- REST order: 620µs (always the bottleneck)

python was 48ms. 60x improvement, zero GC pauses.

lesson that cost me 2 weeks: never hold tokio::Mutex across .await. pass ownership through channels.

also: never f64 for prices. rust_decimal.

github.com/casatrick/polymarket-trading-bot

#rust #tokio #trading

@ncknxk
The biggest hurdle from Java isn't the syntax - it's the ownership model. In Java, the GC handles memory for you. In Rust, you need to internalize ownership, borrowing, and lifetimes. Give yourself permission to spend real time here before moving on.
I think you can learn from turning your java code to rust code from the start
I think that's the best way to acquired of Rust.

Built a Polymarket trading bot in Rust.
The honest version: the borrow checker fought me for two weeks. The result: 800μs decision loop, no GC pauses, zero data races caught at compile time.
Worth it? For latency-sensitive work, yes.

Full writeup: https://dev.to/casatrick/building-a-low-latency-trading-bot-in-rust-from-48ms-to-800us-4n1i

#Rust #SystemDesign #TradingBot

Building a Low-Latency Trading Bot in Rust (From 48ms to 800µs)

How I rewrote my Polymarket trading bot in Rust and got a 70x latency improvement. Real benchmarks,...

DEV Community

Replaced 30s polling with WebSocket in my Polymarket
trading bot.

Detection lag: 14.8s → 310ms (48× faster)
False positives: 38% → 11%
Win rate: 73% → 71% ↓

Faster detection found signals that weren't real -
single large orders that mean-revert in <500ms.
My thresholds were calibrated for stale data.

Speed and signal quality are completely separate
problems.

#rust #trading #polymarket #algotrading

Spent some time cleaning up my Polymarket bot today.

One thing I've noticed is that a lot of complexity comes from trying to keep API usage under control rather than making requests faster.

A WebSocket feed + a decent local cache solves way more problems than another round of optimization on the REST side.

Wish I had realized that sooner.

I just published how my bot is working and strategy.
I'd like to discuss more detail about strategies and technical trick on polymarket trading automation building
https://medium.com/@casatrick/i-built-a-bot-that-scalps-btc-eth-sol-and-xrp-markets-on-polymarket-heres-the-full-strategy-d4301f851ea0
I Built a Bot That Scalps BTC, ETH, SOL, and XRP Markets on Polymarket -Here’s the Full Strategy

A breakdown of how my bot grinds out small, frequent edges across four crypto assets simultaneously by exploiting the gap between live…

Medium