tastytradeDeveloper Docs
Legacy ↗

API Reference / Risk Parameters

Get Public Margin Configuration

getMarginRequirementsPublicConfiguration
get/margin-requirements-public-configuration

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

Returns the publicly accessible, read-only global margin configuration, such as the risk-free rate. This endpoint requires no account context.

Code samples

curl -X GET 'https://api.cert.tastyworks.com/margin-requirements-public-configuration' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

No parameters.

Responses

200The global, read-only margin configuration.application/json

Example response

{
  "data": {
    "risk-free-rate": "string"
  },
  "context": "/margin-requirements-public-configuration"
}

Schema

  • datarequiredobject (MarginRequirementsGlobalConfiguration)

    Publicly accessible, read-only global margin configuration values.

    • risk-free-ratestring <decimal>

      The risk-free interest rate. Decimal value serialized as a JSON string (e.g. "150.25").

  • contextrequiredstring

    example: "/margin-requirements-public-configuration"

401Invalid access token. Note: a missing or malformed `User-Agent` header also produces a 401, but it is returned as an HTML error page from the proxy layer rather than this JSON error body. tastytrade requires the `User-Agent` format `<product>/<version>` on every request.application/json

Example response

{
  "error": {
    "code": "unauthorized",
    "message": "No valid access token was provided; access tokens expire after 15 minutes."
  }
}

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.

429Rate limit exceeded. Back off exponentially and reduce the request rate.application/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.