> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperprop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add or update news windows

> Sends your news calendar: each event with its time, the seconds before and after it that form the window (default 2 minutes each side) and the plans it applies to. Windows are matched on your `id`; sending one again updates it. The daily risk report lists every executed order inside a window (`news_window_fills` in `GET /risk/reports/{tradingDay}`), and whether it opened or reduced a position. Report only: orders inside a window are not refused.

```bash
curl -X PUT "https://api.hyperprop.com/platform/v1/organization/risk/news-windows" \
  -H "X-API-Key: hp_live_your_key_here" -H "Content-Type: application/json" \
  -d '{"windows":[{"id":"nfp-2026-12-04","name":"Non-Farm Payrolls","eventAt":"2026-12-04T13:30:00Z"}]}'
```

**Permissions:** requires **manage** access to "Traders & accounts".

**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Traders & accounts.



## OpenAPI

````yaml https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/news-windows
openapi: 3.0.0
info:
  title: Hyperprop Platform API
  version: 1.0.0
  description: >-
    REST API for the Hyperprop Trading Platform — provision evaluation and
    funded trading accounts, manage traders and plans, react to account
    lifecycle events via signed webhooks, and reconcile billing. Built for prop
    firms integrating from their own backend.


    Authentication, quick start, error handling, idempotency, pagination, custom
    metadata, webhooks, and the MCP connector are documented at
    https://docs.hyperprop.com.
  x-logo:
    url: https://app.hyperprop.com/logo-icon.svg
    altText: Hyperprop
    href: https://hyperprop.com
servers:
  - url: https://api.hyperprop.com/platform
    description: Production
security: []
tags:
  - name: Trading accounts
    description: Create, update, and inspect trading accounts.
  - name: Traders
    description: Look up and update the traders in your organization.
  - name: Trading plans
    description: Define the plans you sell.
  - name: Trading rules
    description: Define how accounts are evaluated.
  - name: Instruments
    description: >-
      The contracts your organization's accounts can trade, with their
      specifications.
  - name: Lockouts
    description: Pause and resume trading on an account.
  - name: Payouts
    description: Check payout eligibility and record payouts.
  - name: Purchases
    description: Purchases recorded for your organization.
  - name: Time Machine
    description: Restore accounts to an earlier trading day or instant.
  - name: Mass credit
    description: >-
      Credit back losses across many accounts after an incident, as background
      jobs you can follow, pause, export and reverse.
  - name: Webhooks
    description: Register webhook endpoints and inspect deliveries.
  - name: Events
    description: Your organization's event history, to replay or audit what happened.
  - name: Real-time streams
    description: >-
      Live events and trading data over a WebSocket, for dashboards and CRMs
      that update as things happen.
  - name: Reconciliation
    description: Balances, end-of-day snapshots, and fills for reconciliation.
  - name: Analytics
    description: Organization performance, revenue and top traders.
  - name: Risk
    description: Firm profit and loss and plan economics.
  - name: Trader insights
    description: >-
      What your traders hold right now and over time, your top traders, and the
      traders you follow.
  - name: Billing and invoices
    description: >-
      Your Hyperprop invoices, credits and billing details, with usage so far
      this month, billing cycles, forecasts and CSV exports.
  - name: Team and roles
    description: Manage dashboard access for your staff.
  - name: API keys
    description: >-
      Manage your organization's API keys: rotation, read-only keys and IP
      allowlists.
  - name: Logs and health
    description: >-
      API request logs, the audit log, integration health, and idempotency key
      recovery.
  - name: Organization profile
    description: Your organization's profile and logo.
  - name: Support
    description: Open and follow up on support tickets.
  - name: Partner access
    description: >-
      Read a trader's journal as an approved partner app, with the trader's own
      key.
paths:
  /v1/organization/risk/news-windows:
    put:
      tags:
        - Risk
      summary: Add or update news windows
      description: >-
        Sends your news calendar: each event with its time, the seconds before
        and after it that form the window (default 2 minutes each side) and the
        plans it applies to. Windows are matched on your `id`; sending one again
        updates it. The daily risk report lists every executed order inside a
        window (`news_window_fills` in `GET /risk/reports/{tradingDay}`), and
        whether it opened or reduced a position. Report only: orders inside a
        window are not refused.


        ```bash

        curl -X PUT
        "https://api.hyperprop.com/platform/v1/organization/risk/news-windows" \
          -H "X-API-Key: hp_live_your_key_here" -H "Content-Type: application/json" \
          -d '{"windows":[{"id":"nfp-2026-12-04","name":"Non-Farm Payrolls","eventAt":"2026-12-04T13:30:00Z"}]}'
        ```


        **Permissions:** requires **manage** access to "Traders & accounts".


        **Access:** full-access API keys only (a read-only key gets `403
        READ_ONLY_KEY`). Dashboard members need manage access to Traders &
        accounts.
      operationId: putV1OrganizationRiskNewswindows
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Optional. A value that identifies this operation on your side, at
            most 255 characters. A retry with the same key, method, path and
            body within 24 hours returns the original response (with
            `Idempotency-Replayed: true`) instead of repeating the change. The
            same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`;
            a retry while the first request is still running returns `409
            IDEMPOTENCY_KEY_IN_PROGRESS`. A response that contains a credential
            (such as a new API key or signing secret) is not saved: the change
            is still not repeated, and a retry returns `409
            IDEMPOTENCY_KEY_COMPLETED` with the original status in
            `originalStatus`. Server errors (5xx) are not saved, so a retry runs
            again. If the key cannot be recorded, the request is not run and
            returns `503 IDEMPOTENCY_UNAVAILABLE`; retry with the same key.
          example: crm-sync-8814-attempt-1
          schema:
            type: string
            maxLength: 255
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model2271'
      responses:
        '200':
          description: The saved windows
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model2273'
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model351'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model15'
        '403':
          description: This API key does not have admin permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model511'
        '409':
          description: >-
            The `Idempotency-Key` was used with a different body
            (`IDEMPOTENCY_KEY_REUSED`), a request with the same key is still
            running (`IDEMPOTENCY_KEY_IN_PROGRESS`), or the request with this
            key already completed and its response is not available again
            (`IDEMPOTENCY_KEY_COMPLETED`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Always false on errors
                    example: false
                  statusCode:
                    type: integer
                    example: 409
                  error:
                    type: string
                    example: Conflict
                  message:
                    type: string
                    example: >-
                      This Idempotency-Key was already used with a different
                      request body. Use a new key for a different request.
                  code:
                    type: string
                    enum:
                      - IDEMPOTENCY_KEY_REUSED
                      - IDEMPOTENCY_KEY_IN_PROGRESS
                      - IDEMPOTENCY_KEY_COMPLETED
                    example: IDEMPOTENCY_KEY_REUSED
                    description: >-
                      Machine-readable error code — switch on this, not on
                      message text
        '500':
          description: Internal error (`RISK_NEWS_WINDOWS_ERROR`)
        '503':
          description: Not available yet (`RISK_REPORTS_UNAVAILABLE`)
      security:
        - X-API-Key: []
components:
  schemas:
    Model2271:
      type: object
      properties:
        windows:
          $ref: '#/components/schemas/Model2270'
      required:
        - windows
    Model2273:
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/Model2272'
    Model351:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 400
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Invalid request data
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: BAD_REQUEST
    Model15:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 401
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Authentication required
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: UNAUTHORIZED
    Model511:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 403
        error:
          type: string
          example: Forbidden
        message:
          type: string
          example: This API key does not have admin permissions
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: INSUFFICIENT_PERMISSIONS
    Model2270:
      type: array
      minItems: 1
      maxItems: 500
      items:
        $ref: '#/components/schemas/Model2269'
    Model2272:
      type: object
      properties:
        organizationId:
          type: string
        windows:
          $ref: '#/components/schemas/windows'
    Model2269:
      type: object
      properties:
        id:
          type: string
          description: Your id; sending the same id again updates the window
          example: nfp-2026-12-04
          pattern: ^[A-Za-z0-9._:-]{1,128}$
        name:
          type: string
          example: Non-Farm Payrolls
          minLength: 1
          maxLength: 200
        eventAt:
          type: string
          example: '2026-12-04T13:30:00.000Z'
          x-format:
            isoDate: true
        beforeSeconds:
          type: integer
          description: Seconds before the event (default 120)
          example: 120
          minimum: 0
          maximum: 3600
        afterSeconds:
          type: integer
          description: Seconds after the event (default 120)
          example: 120
          minimum: 0
          maximum: 3600
        planIds:
          $ref: '#/components/schemas/Model2268'
      required:
        - id
        - name
        - eventAt
    windows:
      type: array
      items:
        $ref: '#/components/schemas/Model669'
    Model2268:
      type: array
      description: Your plans it applies to; omit for every plan
      maxItems: 200
      items:
        type: string
        x-format:
          guid: true
    Model669:
      type: object
      properties:
        id:
          type: string
          description: Your id of the window
          example: nfp-2026-12-04
        name:
          type: string
          example: Non-Farm Payrolls
        eventAt:
          type: string
          example: '2026-12-04T13:30:00.000Z'
          x-format:
            isoDate: true
        beforeSeconds:
          type: integer
          example: 120
        afterSeconds:
          type: integer
          example: 120
        planIds:
          $ref: '#/components/schemas/Model668'
        windowFrom:
          type: string
          x-format:
            isoDate: true
        windowTo:
          type: string
          x-format:
            isoDate: true
        updatedAt:
          type: string
          x-format:
            isoDate: true
    Model668:
      type: array
      description: Plans the window applies to; null for every plan
      items:
        type: string
        x-format:
          guid: true
  securitySchemes:
    X-API-Key:
      type: apiKey
      name: X-API-Key
      in: header
      description: >-
        Organization API key (`hp_live_...`), sent in the `X-API-Key` header.
        Create, rotate and restrict keys in the dashboard or with the API keys
        endpoints; an organization can have two active keys, so you can rotate
        without downtime. A **full-access** key can call every endpoint in this
        reference. A **read-only** key can call `GET` endpoints (and create a
        trading stream token); any other request returns `403 READ_ONLY_KEY`. A
        key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other
        address. Each endpoint lists which keys can call it under **Access**.

````

## Related topics

- [List news windows](https://docs.hyperprop.com/platform-api/risk/list-news-windows.md)
- [Delete a news window](https://docs.hyperprop.com/platform-api/risk/delete-a-news-window.md)
- [Update personal risk settings.](https://docs.hyperprop.com/trade-api/risk/update-personal-risk-settings.md)
- [Update a trading plan](https://docs.hyperprop.com/platform-api/trading-plans/update-a-trading-plan.md)
- [Update a trading rule](https://docs.hyperprop.com/platform-api/trading-rules/update-a-trading-rule.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.