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

# Get Trade Detail

> Get detailed information about a single trade from a backtest run.

Returns all fields from the trade record plus computed stop/target levels
based on ATR at entry and the run's exit strategy parameters. These levels
are useful for chart overlay visualization.

The trade_index is 0-based, ordered by entry_timestamp.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/graph/v1/backtest/v2/run/{run_id}/trades/{trade_index}:
    get:
      tags:
        - backtest-v2
      summary: Get Trade Detail
      description: >-
        Get detailed information about a single trade from a backtest run.


        Returns all fields from the trade record plus computed stop/target
        levels

        based on ATR at entry and the run's exit strategy parameters. These
        levels

        are useful for chart overlay visualization.


        The trade_index is 0-based, ordered by entry_timestamp.
      operationId: >-
        get_trade_detail_api_graph_v1_backtest_v2_run__run_id__trades__trade_index__get
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
        - name: trade_index
          in: path
          required: true
          schema:
            type: integer
            title: Trade Index
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TradeDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TradeDetailResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        score_set_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Score Set Id
        trade_index:
          type: integer
          title: Trade Index
        symbol:
          type: string
          title: Symbol
        direction:
          type: string
          title: Direction
        signal_type:
          type: string
          title: Signal Type
        quality_tier:
          type: string
          title: Quality Tier
        entry_timestamp:
          type: string
          title: Entry Timestamp
        entry_price:
          type: number
          title: Entry Price
        exit_timestamp:
          type: string
          title: Exit Timestamp
        exit_price:
          type: number
          title: Exit Price
        exit_reason:
          type: string
          title: Exit Reason
        holding_period_minutes:
          type: integer
          title: Holding Period Minutes
        pnl_pct:
          type: number
          title: Pnl Pct
        pnl_r_multiple:
          type: number
          title: Pnl R Multiple
        pnl_dollars:
          type: number
          title: Pnl Dollars
        sizing_multiplier:
          type: number
          title: Sizing Multiplier
        conviction_at_entry:
          type: number
          title: Conviction At Entry
        regime_dominant:
          type: string
          title: Regime Dominant
        slippage_model:
          type: string
          title: Slippage Model
        entry_slippage_bps:
          type: number
          title: Entry Slippage Bps
        exit_slippage_bps:
          type: number
          title: Exit Slippage Bps
        total_slippage_bps:
          type: number
          title: Total Slippage Bps
        entry_atr:
          type: number
          title: Entry Atr
        stop_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Stop Price
        target_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Target Price
        stop_atr_multiplier:
          type: number
          title: Stop Atr Multiplier
        target_atr_multiplier:
          type: number
          title: Target Atr Multiplier
        signal_details:
          additionalProperties: true
          type: object
          title: Signal Details
      type: object
      required:
        - run_id
        - trade_index
        - symbol
        - direction
        - signal_type
        - quality_tier
        - entry_timestamp
        - entry_price
        - exit_timestamp
        - exit_price
        - exit_reason
        - holding_period_minutes
        - pnl_pct
        - pnl_r_multiple
        - pnl_dollars
        - sizing_multiplier
        - conviction_at_entry
        - regime_dominant
        - slippage_model
        - entry_slippage_bps
        - exit_slippage_bps
        - total_slippage_bps
        - entry_atr
        - stop_atr_multiplier
        - target_atr_multiplier
      title: TradeDetailResponse
      description: >-
        Enriched single-trade response with stop/target levels for chart
        visualization.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````