Lime

Programmatic access to Pakistan's stock market.

Lime is a REST API that lets developers place real orders on the PSX. Write your strategy in Python, point it at our endpoint, and your code trades.

Join the waitlist
ORDER TICKETFILLED
OGDC▲ 1.8%
Oil & Gas Development Co. · PSX
SIDE
BUY
QTY
500
LIMIT
₨ 214.50
AVG FILL
₨ 214.32
via api.limemarkets.org/v1/order
WHAT'S POSSIBLE

Your strategy. Running on a live market.

The way most people trade the PSX today involves logging into a brokerage portal, clicking through an interface, and hoping their timing is right. That works, but it's also the only option available to them. There's no programmatic alternative, no way to automate a rules-based strategy, no API to point your code at and have something happen on the other side.

Lime changes that. Through a straightforward REST API, you can place and manage orders on PSX-listed equities from your own code. Which means if you've been sitting on a strategy you could only ever backtest, you can now run it for real.

USE CASES

The possibilities are endless.

Your own agentic trader

Give your AI agent access to the Lime API. It reads the news, checks prices, decides what to do, and executes. You check in when you want to.

A custom quant strategy

Your code scores every ticker on your watchlist. Anything that crosses the threshold gets a buy order. Anything that falls below gets trimmed. Runs on a schedule, no interface required.

A personalized rebalancing engine

Every morning at 9:15, your script checks your portfolio, calculates drift from your target weights, and places the orders to correct it. You're not there. It just runs.

HOW IT WORKS

How it works

Lime is built on top of a SECP-licensed brokerage, which means your trades go through a regulated custodian — your positions are real, your funds are held properly, and the infrastructure underneath has the legal standing it needs. We handle that layer.

What you get on top of it is a clean API with a Python SDK, market data included, and documentation written for people who'd rather read code than prose. Install the SDK, generate your API key, and you're placing orders. That's the goal: the smallest possible distance between "I want to trade" and "I am trading."

1
Make an account
2
Get your API key
3
Install the SDK
4
Start trading
STRATEGY.PYPython SDK
MCP

Trade from wherever you already work.

Lime ships with an MCP server, which means you can connect it directly to Claude, Cursor, or any other AI tool that supports the Model Context Protocol. Once connected, placing an order is as simple as asking for one. Your AI tool calls the Lime API under the hood, the trade executes, and you never leave your environment.

It's the same API underneath — the MCP is just another way to reach it. If you'd rather write Python, write Python. If you'd rather prompt, prompt. The market doesn't care how the instruction arrived.

Claude
Cursor
Any MCP client
Lime
MCP SERVER
PSX

We're opening access slowly.

We're in private beta and we're being deliberate about who we bring on first. If you're a developer who wants to build something real on Pakistani markets, get on the list. When we have a spot for you, we'll reach out.

No marketing. Just a message when it's your turn.