Layer tells your bot or AI agent which markets are the same bet, shows prices and order books in one format, places and cancels orders, and reports what filled. You write the strategy. Layer handles the venues.
Layer takes this list off your plate.
Your bot decides what counts as a good trade. Layer makes sure it is comparing the same thing, at the real price, and tells it what happened.
Venues word the same event differently, and sometimes settle it differently. Layer reads both sets of rules, tells you whether it’s the same bet, flags what differs, and checks again after it settles.
Prices, order books and fees from every venue in one format. A quoted price isn’t your price, so your bot sees the cost after fees and how much it can actually buy.
One way to place and cancel orders on every venue, from your own account. Change the venue, keep the code.
# the same bet on each venue pair = client.matches(q="fed december")[0] # one way to place and cancel, on every venue o = client.buy( venue="kalshi", market=pair.kalshi, side="yes", price=0.42, size=100, ) client.cancel(o) o = client.buy( venue="polymarket_us", market=pair.polymarket_us, side="yes", price=0.41, size=100, ) o.status # "filled"
Fills, positions, balances and profit after fees, in one format across venues. You know what actually happened, not just what you sent.
Paper trade against real order books with fake money. Record every tick from the venues’ live streams and replay it. The same strategy code runs in backtest, paper and live.
# paper: real order books, fake money client = Client() # record every tick from the venues' live streams record_stream( ["<slug>", "<KALSHI-TICKER>"], "ticks.jsonl", ) # backtest: replay what you recorded client = Client(mode="backtest", books=load_books("ticks.jsonl")) # live: real money, the same strategy code client = Client(mode="live", kalshi=Kalshi.from_env())
Every order is checked against limits you set before it goes out. Preview any order first. The agent can stop itself, but only a person can turn it back on.
Layer works with your own venue accounts. Your keys stay on your machine, and orders go straight from your code to the venue. Layer’s hosted service answers the questions that need a view across every venue, like which markets are the same bet.
How Layer works →Layer handles the venues, from finding the same bet to knowing what filled.