tastytrade margin-requirements API

allows a client to fetch margin-requirements for positions and orders

Operations 2

GET /margin/accounts/{account_number}/requirements #
POST /margin/accounts/{account_number}/dry-run #

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/tastytrade-margin-requirements-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

tastytrade-margin-requirements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Account Status accounts Margin Requirements API
  version: 7.1.0
  description: Operations about accounts
servers:
- url: https://api.tastyworks.com
tags:
- name: margin-requirements
  description: allows a client to fetch margin-requirements for positions and orders
paths:
  /margin/accounts/{account_number}/requirements:
    get:
      description: Fetch current margin/captial requirements report for an account
      parameters:
      - in: path
        name: account_number
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Retrieve account margin/capital requirements report
      tags:
      - margin-requirements
      operationId: getMarginAccountsAccountNumberRequirements
  /margin/accounts/{account_number}/dry-run:
    post:
      description: Estimate margin requirements for an order given an account
      parameters:
      - in: path
        name: account_number
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Retrieve account margin/capital requirements report
      tags:
      - margin-requirements
      operationId: createMarginAccountsAccountNumberDryRun
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - order-type
              - time-in-force
              - account-number
              - underlying-symbol
              properties:
                account-number:
                  type: string
                underlying-symbol:
                  type: string
                order-type:
                  type: string
                time-in-force:
                  type: string
                gtc-date:
                  type: string
                  format: date
                price:
                  type: string
                  format: numeric
                price-effect:
                  type: string
                  enum:
                  - Credit
                  - Debit
                stop-trigger:
                  type: string
                  format: numeric
                replaces-order-id:
                  type: string
                  format: numeric
                legs:
                  type: array
                  minItems: 1
                  maxItems: 4
                  uniqueItems: true
                  items:
                    type: object
                    required:
                    - symbol
                    - instrument-type
                    - action
                    properties:
                      symbol:
                        type: string
                      instrument-type:
                        type: string
                      quantity:
                        type: string
                        format: numeric
                      action:
                        type: string
                      remaining-quantity:
                        type: string
                        format: numeric
        description: the order to evaluate for margin requirements