tastytrade positions API

Operations about positions

Operations 1

GET /accounts/{account_number}/positions #

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-positions-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-positions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Account Status accounts Positions API
  version: 7.1.0
  description: Operations about accounts
servers:
- url: https://api.tastyworks.com
tags:
- name: positions
  description: Operations about positions
paths:
  /accounts/{account_number}/positions:
    get:
      description: "Returns a list of the account's positions.\n            Can be filtered by symbol, underlying_symbol"
      parameters:
      - in: path
        name: account_number
        required: true
        schema:
          type: integer
          format: int32
      - in: query
        name: include-closed-positions
        description: If closed positions should be included in the query
        required: false
        schema:
          type: boolean
          default: false
      - in: query
        name: include-marks
        description: 'Include current quote mark (note: can decrease performance)'
        required: false
        schema:
          type: boolean
          default: false
      - in: query
        name: instrument-type
        description: The type of Instrument
        required: false
        schema:
          type: string
          enum:
          - Bond
          - Cryptocurrency
          - Currency Pair
          - Equity
          - Equity Offering
          - Equity Option
          - Event Contract
          - Fixed Income Security
          - Future
          - Future Option
          - Index
          - Liquidity Pool
          - Unknown
          - Warrant
      - in: query
        name: net-positions
        description: Returns net positions grouped by instrument type and symbol
        required: false
        schema:
          type: boolean
          default: false
      - in: query
        name: symbol
        description: "A single symbol. Stock Ticker Symbol `AAPL`, \\\n                                 OCC Option Symbol `AAPL  191004P00275000`, \\\n                                 TW Future Symbol `/ESZ9`, or \\\n                                 TW Future Option Symbol `./ESZ9 EW4U9 190927P2975`"
        required: false
        schema:
          type: string
      - in: query
        name: underlying-product-code
        description: The underlying Future's Product code. i.e `ES`
        required: false
        schema:
          type: string
      - in: query
        name: underlying-symbol
        description: 'An array of Underlying symbol(s) for positions (example: underlying-symbol[]={value1}&underlying-symbol[]={value2})'
        required: false
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: "Returns a list of the account's positions.\n            Can be filtered by symbol, underlying_symbol"
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CurrentPosition'
      tags:
      - positions
      operationId: getAccountsAccountNumberPositions
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                partition-keys:
                  type: array
                  items:
                    type: string
                  description: 'Account partition keys (example: partition-keys[]={value1}&partition-keys[]={value2})'
components:
  schemas:
    CurrentPosition:
      type: object
      properties:
        account-number:
          description: ''
          type: string
        instrument-type:
          description: ''
          type: string
        streamer-symbol:
          description: ''
          type: string
        symbol:
          description: ''
          type: string
        underlying-symbol:
          description: ''
          type: string
        quantity:
          description: ''
          type: object
        average-daily-market-close-price:
          description: ''
          type: number
          format: double
        average-open-price:
          description: ''
          type: number
          format: double
        average-yearly-market-close-price:
          description: ''
          type: number
          format: double
        close-price:
          description: ''
          type: number
          format: double
        cost-effect:
          description: ''
          type: string
        is-frozen:
          description: ''
          type: boolean
        is-suppressed:
          description: ''
          type: boolean
        mark:
          description: ''
          type: number
          format: double
        mark-price:
          description: ''
          type: number
          format: double
        multiplier:
          description: ''
          type: number
          format: double
        quantity-direction:
          description: ''
          type: string
        restricted-quantity:
          description: ''
          type: object
        expires-at:
          description: ''
          type: string
          format: date-time
        deliverable-type:
          description: ''
          type: string
        fixing-price:
          description: ''
          type: number
          format: double
        realized-day-gain:
          description: ''
          type: number
          format: double
        realized-day-gain-date:
          description: ''
          type: string
          format: date
        realized-day-gain-effect:
          description: ''
          type: string
        realized-today:
          description: ''
          type: number
          format: double
        realized-today-date:
          description: ''
          type: string
          format: date
        realized-today-effect:
          description: ''
          type: string
        face-value:
          description: ''
          type: number
          format: double
        par-size:
          description: ''
          type: number
          format: double
        created-at:
          description: ''
          type: string
          format: date-time
        updated-at:
          description: ''
          type: string
          format: date-time
        order-id:
          description: ''
          type: integer
          format: int32
        update-type:
          description: ''
          type: string
      description: CurrentPosition model