Phemex · Example Payload

Place Contract Order

Example request and response for placing a BUY limit order on the BTCUSD perpetual contract.

CryptocurrencyDerivativesSpot TradingPerpetual ContractsFuturesWebSocketMarket Data

Place Contract Order is an example object payload from Phemex, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionrequestresponsenotes

Example Payload

Raw ↑
{
  "title": "Place a Limit Order on BTCUSD Perpetual Contract",
  "description": "Example request and response for placing a BUY limit order on the BTCUSD perpetual contract.",
  "request": {
    "method": "POST",
    "url": "https://api.phemex.com/orders",
    "headers": {
      "Content-Type": "application/json",
      "x-phemex-access-token": "<your-api-key>",
      "x-phemex-request-expiry": "1704067200",
      "x-phemex-request-signature": "<hmac-sha256-signature>"
    },
    "body": {
      "clOrdID": "my-order-001",
      "symbol": "BTCUSD",
      "side": "Buy",
      "ordType": "Limit",
      "priceEp": 2999000000000,
      "orderQty": 100,
      "timeInForce": "GoodTillCancel"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "code": 0,
      "msg": "",
      "data": {
        "orderID": "7d1fb7eb-ec5b-4f9e-9e56-bc5f6ccb9eb6",
        "clOrdID": "my-order-001",
        "symbol": "BTCUSD",
        "side": "Buy",
        "ordType": "Limit",
        "ordStatus": "New",
        "priceEp": 2999000000000,
        "orderQty": 100,
        "cumQty": 0,
        "leavesQty": 100,
        "transactTimeNs": 1704067200000000000
      }
    }
  },
  "notes": "priceEp=2999000000000 represents $29,990.00 with priceScale=8. orderQty=100 means 100 USD contracts."
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/place-contract-order"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.