level2 · Capability

Level2 Strategy Builder API — Technical Analysis

Level2 Strategy Builder API — Technical Analysis. 2 operations. Lead operation: Check for candlestick patterns. Self-contained Naftiko capability covering one Level2 business surface.

Run with Naftiko Level2Technical Analysis

What You Can Do

GET
Checkforcandlestick — Check for candlestick patterns
/v1/checkforcandlestick/{api-key}/{ticker}/{timeframe}
GET
Gettickertrend — Get ticker trend analysis
/v1/gettickertrend/{api-key}/{ticker}/{timeframe}

MCP Tools

check-candlestick-patterns

Check for candlestick patterns

read-only idempotent
get-ticker-trend-analysis

Get ticker trend analysis

read-only idempotent

Capability Spec

strategy-builder-technical-analysis.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Level2 Strategy Builder API — Technical Analysis
  description: 'Level2 Strategy Builder API — Technical Analysis. 2 operations. Lead operation: Check for candlestick patterns.
    Self-contained Naftiko capability covering one Level2 business surface.'
  tags:
  - Level2
  - Technical Analysis
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LEVEL2_API_KEY: LEVEL2_API_KEY
capability:
  consumes:
  - type: http
    namespace: strategy-builder-technical-analysis
    baseUri: https://app.bytemine.io/api
    description: Level2 Strategy Builder API — Technical Analysis business capability. Self-contained, no shared references.
    resources:
    - name: checkForCandlestick-api_key-ticker-timeframe
      path: /checkForCandlestick/{api_key}/{ticker}/{timeframe}
      operations:
      - name: checkforcandlestick
        method: GET
        description: Check for candlestick patterns
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: getTickerTrend-api_key-ticker-timeframe
      path: /getTickerTrend/{api_key}/{ticker}/{timeframe}
      operations:
      - name: gettickertrend
        method: GET
        description: Get ticker trend analysis
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: api_key
      value: '{{env.LEVEL2_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: strategy-builder-technical-analysis-rest
    port: 8080
    description: REST adapter for Level2 Strategy Builder API — Technical Analysis. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/checkforcandlestick/{api-key}/{ticker}/{timeframe}
      name: checkforcandlestick-api-key-ticker-timeframe
      description: REST surface for checkForCandlestick-api_key-ticker-timeframe.
      operations:
      - method: GET
        name: checkforcandlestick
        description: Check for candlestick patterns
        call: strategy-builder-technical-analysis.checkforcandlestick
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gettickertrend/{api-key}/{ticker}/{timeframe}
      name: gettickertrend-api-key-ticker-timeframe
      description: REST surface for getTickerTrend-api_key-ticker-timeframe.
      operations:
      - method: GET
        name: gettickertrend
        description: Get ticker trend analysis
        call: strategy-builder-technical-analysis.gettickertrend
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: strategy-builder-technical-analysis-mcp
    port: 9090
    transport: http
    description: MCP adapter for Level2 Strategy Builder API — Technical Analysis. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: check-candlestick-patterns
      description: Check for candlestick patterns
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strategy-builder-technical-analysis.checkforcandlestick
      outputParameters:
      - type: object
        mapping: $.
    - name: get-ticker-trend-analysis
      description: Get ticker trend analysis
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: strategy-builder-technical-analysis.gettickertrend
      outputParameters:
      - type: object
        mapping: $.