Trioptima · Capability

Trioptima triReduce API — Trades

Trioptima triReduce API — Trades. 2 operations. Lead operation: List Cycle Trades. Self-contained Naftiko capability covering one Trioptima business surface.

Run with Naftiko TrioptimaTrades

What You Can Do

GET
Listcycletrades — List Cycle Trades
/v1/cycles/{cycleid}/trades
POST
Submitcycletrades — Submit Trades for Cycle
/v1/cycles/{cycleid}/trades

MCP Tools

list-cycle-trades

List Cycle Trades

read-only idempotent
submit-trades-cycle

Submit Trades for Cycle

Capability Spec

trireduce-trades.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Trioptima triReduce API — Trades
  description: 'Trioptima triReduce API — Trades. 2 operations. Lead operation: List Cycle Trades. Self-contained Naftiko
    capability covering one Trioptima business surface.'
  tags:
  - Trioptima
  - Trades
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TRIOPTIMA_API_KEY: TRIOPTIMA_API_KEY
capability:
  consumes:
  - type: http
    namespace: trireduce-trades
    baseUri: https://rates.trireduce.com/api/v1
    description: Trioptima triReduce API — Trades business capability. Self-contained, no shared references.
    resources:
    - name: cycles-cycleId-trades
      path: /cycles/{cycleId}/trades
      operations:
      - name: listcycletrades
        method: GET
        description: List Cycle Trades
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cycleId
          in: path
          type: string
          description: Unique identifier for the compression cycle
          required: true
      - name: submitcycletrades
        method: POST
        description: Submit Trades for Cycle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cycleId
          in: path
          type: string
          description: Unique identifier for the compression cycle
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TRIOPTIMA_API_KEY}}'
  exposes:
  - type: rest
    namespace: trireduce-trades-rest
    port: 8080
    description: REST adapter for Trioptima triReduce API — Trades. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cycles/{cycleid}/trades
      name: cycles-cycleid-trades
      description: REST surface for cycles-cycleId-trades.
      operations:
      - method: GET
        name: listcycletrades
        description: List Cycle Trades
        call: trireduce-trades.listcycletrades
        with:
          cycleId: rest.cycleId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: submitcycletrades
        description: Submit Trades for Cycle
        call: trireduce-trades.submitcycletrades
        with:
          cycleId: rest.cycleId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: trireduce-trades-mcp
    port: 9090
    transport: http
    description: MCP adapter for Trioptima triReduce API — Trades. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-cycle-trades
      description: List Cycle Trades
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: trireduce-trades.listcycletrades
      with:
        cycleId: tools.cycleId
      outputParameters:
      - type: object
        mapping: $.
    - name: submit-trades-cycle
      description: Submit Trades for Cycle
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: trireduce-trades.submitcycletrades
      with:
        cycleId: tools.cycleId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.