tastytradetastytrade

API Reference / Transactions

getAccountsAccountNumberTradeVolumePromotionsPromoCode

getAccountsAccountNumberTradeVolumePromotionsPromoCode
get/accounts/{account_number}/trade-volume-promotions/{promo_code}

Base URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)

Returns the account's usage of a trade volume promotion. quantity-used is updated asynchronously, so may lag a fill by a few seconds, and can decrease after a bust.

Code samples

curl -X GET 'https://api.cert.tastyworks.com/accounts/5WX01234/trade-volume-promotions/{promo_code}' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

NameInTypeDescription
account_number*pathstring
e.g. "5WX01234"
promo_code*pathstring

Responses

200The account is enrolled and eligibleapplication/json

Example response

{
  "data": {
    "promo-code": "string",
    "quantity-used": 100,
    "max-quantity": 100,
    "ends-at": "2024-01-15T14:30:00.000Z",
    "status": "string"
  },
  "context": "/accounts/{account_number}/trade-volume-promotions/{promo_code}"
}

Schema

  • datarequiredobject (TradeVolumePromotionUsage)

    TradeVolumePromotionUsage model

    • promo-codestring
    • quantity-usedinteger <int32>
    • max-quantityinteger <int32>
    • ends-atstring <date-time>
    • statusstring
  • contextrequiredstring

    example: "/accounts/{account_number}/trade-volume-promotions/{promo_code}"

204The account is not enrolled in the promotion, or is ineligible
404No active promotion exists with this promo codeapplication/json

Example response

{
  "error": {
    "code": "string",
    "message": "string",
    "errors": [
      {
        "code": "string",
        "message": "string",
        "domain": "string"
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

Related

Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.