FxSocket Orders API

The Orders API from FxSocket, for orders.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /v1/orders Fan a single request out to several of your accounts at once, each leg with its… #
POST /v1/orders/close Close across several accounts by intent rather than by ticket #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/fxsocket-com:fxsocket-com-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

fxsocket-com-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FxSocket Orders API
  version: '2026-10-29'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-29: 25 operation(s) read from 8 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; FxSocket has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 3
    documentation: 22
    pages-with-code: 3
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-29'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://fxsocket.com/docs/api/wallet
  - https://fxsocket.com/docs/api/wallet.md
  - https://fxsocket.com/docs/api/batch-orders
  - https://fxsocket.com/docs/api/batch-orders.md
  - https://fxsocket.com/sdks
  - https://fxsocket.com/docs/mt4
  - https://fxsocket.com/docs/mt5
  - https://fxsocket.com/docs/mt4.md
servers:
- url: https://api.fxsocket.com
security:
- apiKey: []
tags:
- name: Orders
paths:
  /v1/orders:
    post:
      operationId: post_v1_orders
      tags:
      - Orders
      summary: Fan a single request out to several of your accounts at once, each leg with its…
      description: Send one order to many accounts, or close across many accounts by selector, in a single call.
      x-source: https://fxsocket.com/docs/api/batch-orders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1OrdersRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1OrdersResponse'
      x-evidence:
        kind: documentation
  /v1/orders/close:
    post:
      operationId: post_v1_orders_close
      tags:
      - Orders
      summary: Close across several accounts by intent rather than by ticket
      description: Close positions across many accounts using a selector; resolves tickets internally.
      x-source: https://fxsocket.com/docs/api/batch-orders
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1OrdersCloseRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1OrdersCloseResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostV1OrdersCloseRequest:
      type: object
      properties:
        defaults:
          type: object
          description: 'Selector values every account inherits: symbol, symbol_match, side, kind, magic, volume, slippage.'
        accounts:
          type: array
          description: One entry per account.
        accounts[].account_id:
          type: string
          description: Account identifier.
        accounts[].symbol:
          type: string
          description: Symbol to close for this account.
        accounts[].symbol_match:
          type: string
          description: Match mode for symbol (exact or base).
        accounts[].side:
          type: string
          description: long, short, or any.
        accounts[].kind:
          type: string
          description: position, pending, or any.
        accounts[].volume:
          type: number
          description: Partial close volume.
        accounts[].tickets:
          type: array
          description: Exact tickets to close on this account.
        accounts[].require_reachable:
          type: boolean
          description: Reject batch if any account has no terminal.
      required:
      - accounts
      - accounts[].account_id
    PostV1OrdersResponse:
      type: object
      properties:
        batch_id:
          type: string
          description: Identifier for the batch.
        idempotent_replay:
          type: boolean
          description: Whether this response is from an idempotent replay.
        summary:
          type: object
          description: Counts of requested, filled, failed, unknown.
        results:
          type: array
          description: Per‑account results.
    PostV1OrdersCloseResponse:
      type: object
      properties:
        batch_id:
          type: string
          description: Identifier for the batch.
        idempotent_replay:
          type: boolean
          description: Whether this response is from an idempotent replay.
        summary:
          type: object
          description: Counts of accounts, matched, closed, failed, unknown.
        results:
          type: array
          description: Per‑account close results.
    PostV1OrdersRequest:
      type: object
      properties:
        defaults:
          type: object
          description: 'Values every leg inherits: symbol, operation, volume, price, slippage, stop_loss, take_profit, stop_limit_price, expiration, comment, expert_id.'
        orders:
          type: array
          description: One entry per order.
        orders[].account_id:
          type: string
          description: One of your accounts, as returned by GET /v1/accounts.
        orders[].operation:
          type: string
          description: buy, sell, buyLimit, sellLimit, buyStop, sellStop, buyStopLimit or sellStopLimit (case‑insensitive).
        orders[].volume:
          type: number
          description: Lots. Must be greater than 0.
        orders[].symbol:
          type: string
          description: Symbol for the leg, overrides defaults.
        orders[].price:
          type: number
          description: Price for the leg.
        orders[].slippage:
          type: integer
          description: Slippage for the leg.
        orders[].stop_loss:
          type: number
          description: Stop loss for the leg.
        orders[].take_profit:
          type: number
          description: Take profit for the leg.
        orders[].stop_limit_price:
          type: number
          description: Stop limit price for the leg.
        orders[].expiration:
          type: string
          description: Expiration for the leg.
        orders[].comment:
          type: string
          description: Comment for the leg.
        orders[].expert_id:
          type: string
          description: Expert ID for the leg.
      required:
      - orders
      - orders[].account_id
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key