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

# Get next trade events



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json post /api/Tradable/GetNextTradeEvents
openapi: 3.0.1
info:
  title: Derivitec Api 1.0
  version: '1.0'
servers:
  - description: Derivitec Server
    url: https://api.riskportal.activeviam.com
security:
  - oauth2: []
  - apikey: []
paths:
  /api/Tradable/GetNextTradeEvents:
    post:
      tags:
        - Tradable
      summary: Get next trade events
      operationId: GetNextTradeEvents
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ApiGetNextTradeEventsRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/ApiGetNextTradeEventsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ApiGetNextTradeEventsRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ApiGetNextTradeEventsRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiGetNextTradeEventsResponse'
          description: Success
        '400':
          description: BadRequest
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    ApiGetNextTradeEventsRequest:
      description: >-
        If both provider selectors are omitted or empty, the request uses the
        organization's market-data provider. Access to the selected provider is
        required.
      example:
        pricing_date: '2000-01-23T04:56:07.000+00:00'
        tradable_id: tradable_id
      properties:
        market_data_environment_name:
          description: >-
            Name of the market-data environment. Supply this name or
            provider_id, not both.
          nullable: true
          type: string
        provider_id:
          description: >-
            Opaque market-data provider identifier. Supply this identifier or
            market_data_environment_name, not both.
          nullable: true
          type: string
        tradable_id:
          nullable: true
          type: string
        pricing_date:
          format: date-time
          type: string
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Tradables.ApiGetNextTradeEventsRequest,
              Derivitec.Web.Core
      required:
        - $type
      type: object
    ApiGetNextTradeEventsResponse:
      example:
        next_trade_events:
          - Buy
          - Buy
        pricing_date: '2000-01-23T04:56:07.000+00:00'
      properties:
        is_success:
          type: boolean
        error_messages:
          items:
            type: string
          nullable: true
          type: array
        next_trade_events:
          items:
            enum:
              - Buy
              - CouponPayment
              - DividendExDate
              - DivPassThrough
              - Exercise
              - Expire
              - EarlyExercise
              - Fixing
              - Maturity
              - NotionalExchange
              - Payment
              - Reset
              - Termination
              - Settlement
              - Fixings
            type: string
          nullable: true
          type: array
        pricing_date:
          format: date-time
          type: string
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Tradables.ApiGetNextTradeEventsResponse,
              Derivitec.Web.Core
      required:
        - $type
      type: object
  securitySchemes:
    oauth2:
      description: >-
        OAuth2 access-token requested from AWS Cognito and provided as a Auth
        Bearer header
      flows:
        implicit:
          authorizationUrl: https://auth.riskportal.derivitec.com/oauth2/authorize
          scopes: {}
      type: oauth2
    apikey:
      description: API-Key requested via the site and provided as a header
      in: header
      name: x-api-key
      type: apiKey

````