tastytrade margin-requirements API

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

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 email required.

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

OpenAPI Specification

tastytrade-margin-requirements-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  title: Account Status accounts margin-requirements API
  version: 7.1.0
  description: Operations about accounts
host: api.tastyworks.com
produces:
- application/json
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
      produces:
      - application/json
      parameters:
      - in: path
        name: account_number
        type: string
        required: true
      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
      produces:
      - application/json
      consumes:
      - application/json
      parameters:
      - in: path
        name: account_number
        type: string
        required: true
      - in: body
        name: order
        description: the order to evaluate for margin requirements
        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
      responses:
        '200':
          description: Retrieve account margin/capital requirements report
      tags:
      - margin-requirements
      operationId: createMarginAccountsAccountNumberDryRun