Skip to content

STX API Documentation

Build on STX

Trade programmatically or build apps for STX members. Real markets, real-time data, developer-first.

Trade

Trade with your own account

An API key, signed requests and live fills over REST, WebSockets or an SDK.

Quick start

Build

Build an app for STX members

Members connect their STX accounts and your app trades with the access they approve.

Build an app

New to STX? Concepts covers binary contracts, matching, liability and settlement.

Not sure? Which path is yours?

Place it over REST, get the response, then watch the fill arrive on your socket.

1Place an order

curl -X POST https://demo.stxapp.io/api/v1/orders \
  -H "X-STX-ACCESS-KEY: $KEY_ID" \
  -H "X-STX-ACCESS-TIMESTAMP: $TS" \
  -H "X-STX-ACCESS-SIGNATURE: $SIG" \
  -H "Content-Type: application/json" \
  -d '{"market_id":"2bc3d8d8-…",
      "action":"buy","order_type":"limit",
      "price":"0.42","quantity":"10"}'

2REST · 200accepted

{
  "order": {
    "id": "7dc6671e-2852-…",
    "status": "accepted",
    "price": "0.4200",
    "quantity": "10.00",
    "filled": "0.00",
    "avg_price": null, …
  }
}

3Socket · ordersfilled

[null, null, "orders:<user_id>",
 "new_open_order", {
   "id": "7dc6671e-2852-…",
   "status": "filled",
   "quantity": "10.00",
   "filled": "10.00",
   "filled_percentage": 100,
   "avg_price": "0.4200", …
 }]

STX is operated by XV Exchange, LLC, a Designated Contract Market regulated by the U.S. Commodity Futures Trading Commission (CFTC). Contracts traded on STX are cleared by XV Clearing, LLC, a CFTC-registered Derivatives Clearing Organization. Trading involves substantial risk of loss and may not be appropriate for everyone. Members risk losing the cost to enter any transaction, including fees. Consider whether trading is appropriate for you in light of your experience and financial resources. Nothing on this site is investment advice or a recommendation to trade. Past performance is not indicative of future results.

© 2026 STX. All rights reserved.llms.txtllms-full.txtView as Markdown
Docs version v1.10.5