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

MethodPathDescription
GET/v1/p2p/adsList P2P ads by coin, side and payment method
GET/v1/p2p/ads/{id}Get one ad
POST/v1/p2p/ordersOpen an order on an ad
GET/v1/p2p/orders/{id}Get order status
POST/v1/p2p/orders/{id}/paidMark an order as paid
POST/v1/p2p/orders/{id}/releaseRelease crypto to the buyer
GET/v1/market/pricesCurrent prices in USD
GET/v1/account/balancesYour 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
}