finally launched layer
building a bot across kalshi and polymarket shouldn't mean rebuilding the same infrastructure twice.
different APIs, market IDs, data formats. even finding the same event across venues is a problem.
that's why I built layer.
one API to access normalized market data across venues, starting with prediction markets.
to show how it works, I built a bot that finds matching events and compares which venue offers a better payout after fees.
get an API key or use the open-source Python SDK → https://t.co/yy0LXK5e3q
interesting: one dev hooked his bot up to our sandbox and went from testing 1-contract orders to running a strategy in about an hour.
if you’re building a prediction market bot, you can give yours a test run against live order books with paper money.
we’re seeing new users use their agents to sign up, make API keys & paper trade.
one agent ran on its own for 5 days straight. in Layer Sandbox,
it could see how its strategies held up against live order books and real fees before putting real money on the line.
we’re seeing new users use their agents to sign up, make API keys & paper trade.
one agent ran on its own for 5 days straight. in Layer Sandbox,
it could see how its strategies held up against live order books and real fees before putting real money on the line.
i have seen this video approximately 100 times, maybe even more than that. & every single additional time i watch it, my jaw drops a little further.
what an absolutely astonishing accomplishment.
it feels like we are reaching a state where these will feel as familiar & common as a plane landing. imagine boarding one of these one day just like boarding an airplane.
Kalshi acquired a brokerage firm and is reportedly launching stock trading.
Makes me wonder how much of the pushback from financial powerhouses is really about where Kalshi is headed.
this is what market convergence looks like. the apps you use for stocks, crypto and prediction markets are starting to look alike.
if they all offer the same markets, i'd keep using the one where i can tell an agent what i think will happen & see a few ways to trade it.
say i think the fed will cut rates in december. i could ask the agent, “how could i trade that with bonds or on a prediction market? show me what would have to happen for each trade to make money.”
everybody is trying to become the everything app
robinhood started with stocks and now is integrating prediction markets & crypto
polymarket/kalshi started with prediction markets & now integrating perps & stocks
coinbase/kraken started with crypto spot trading & now integrating perps, prediction markets, & memecoins/onchain
pump started as a memecoin launchpad & now integrating crosschain trading, perps, prediction markets
it seems like whoever has
• stickiest customer retention
• best rev-sharing systems for new users & whales
• cross margining across the stack
will win this game
dont really have strong thesis on how best to differentiate from others here, also asked this question at the end of coinbase's last earnings call
building a prediction market trading bot?
you can test your strategies with fake money in the Layer sandbox before risking real capital.
try it → https://t.co/yStLzOuJhJ
someone's using Layer in a way i didn't expect.
a developer signed up this week and went straight to building his own bot, without using our starter template.
his bot appears to match Polymarket markets to Kalshi, then paper trade sports.
pretty cool seeing what people build with the sandbox.
most price gaps between Kalshi and Polymarket US disappear in about 60ms.
if you're polling an API every few seconds, you're probably missing them.
so we built a WebSocket for Layer that streams live price changes, with fee-adjusted arbitrage spreads calculated in both directions.
now live in Layer.
new on layer: x402 payments
trading agents can now pay per call to find matching markets across prediction markets.
no signup, subscription or api key needed.
agents can discover, pay for, and access market data on their own.
Agentic payment volume (x402) on Base is up, to the right 📈.
This isn't just more transactions, bigger ones too, with a $30 median.
Real businesses providing services to users who expect their agents to have full autonomy.
An agentic strategy is no-longer optional.
i feel like this is what codex symphony should've been. the ideal agentic coding setup.
wonder if anthropic will eventually ship something like this.
who's building this? would love to try it out.
I've changed how I work over the last few weeks.
I now have one lead agent for each area of focus, running all the time, and a chief of staff agent that oversees them. Each lead manages its own sub-agents that write code, test it, chase reviews, and coordinate with team members.
Everything I need to decide or review comes into one prioritized queue, a simple local web app. Each product review includes screenshots and a video demo of the feature. I clear the queue in batches, mostly by voice and keyboard shortcuts. The leads also bring back ideas I hadn't considered.
Working from one queue, instead of switching between dozens of chats, has cut a lot of mental overhead. The system keeps learning my preferences and distilling my judgment into a "Brian brain," so its recommendations and first drafts get better before they reach me. The goal is fewer corrections per change.
Every change still goes through the same human review and security checks. It is eliminating tasks, not human judgment.
What an exciting time to push the frontier of productivity, especially as we build the economy for agents (agentic finance). We should all keep pushing in this direction.
Stablecoins give everyone in the world the ability to hold dollars (and many other major fiat currencies), and send them instantly anywhere in the world for less than 1 cent.
noticed something interesting while building layer.
polymarket us lists heat vs warriors as one game, but underneath it are 643 markets.
these are different bets: who wins, point spreads, total points, player props, etc.
if you're building an arb bot across prediction markets, you need to find and compare these individual markets, not just the games.
otherwise, you'd be missing out on potential price gaps.
one thing we've noticed with layer:
some people sign up, create an api key, and stop there.
we realized there's still a lot of work between getting an api key and having a working bot.
so we built starter bots.
based on what you're building, we create a bot tailored to your use case, already running with live kalshi & polymarket data.
you can see it in action, then customize it in your favorite coding agent.
Wall Street made sophisticated trading a playground for hedge funds.
Kalshi is bringing it to ordinary Americans, without the complexity or the middlemen. Just pick Up or Down.
$300 million traded on launch morning 🤯