API
Automate your P2P ads and orders and read live market data over a simple REST API.
Sample documentation for the demo site. The API is not live yet and the endpoints below do not respond.
API keys
Create keys in your account with read-only or trading permissions and an IP allow-list.
Rate limits
Up to 20 requests per second per key. Market data endpoints allow 50.
JSON everywhere
All requests and responses use JSON. Times are Unix milliseconds in UTC.
Endpoints
Base URL: https://api.example.com
| Method | Path | Description |
|---|---|---|
| GET | / | List P2P ads by coin, side and payment method |
| GET | / | Get one ad |
| POST | / | Open an order on an ad |
| GET | / | Get order status |
| POST | / | Mark an order as paid |
| POST | / | Release crypto to the buyer |
| GET | / | Current prices in USD |
| GET | / | Your balances |
Request
curl "https://api.example.com/v1/p2p/ads?coin=USDT&side=buy&fiat=USD" \
-H "X-API-KEY: <your key>"Response
{
"data": [
{
"id": "ad_8f2c",
"advertiser": "GoldLeaf",
"price": "0.999",
"available": "47632.00",
"min": "500", "max": "21500",
"payments": ["Bank Transfer", "Zelle"]
}
],
"next": null
}