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

# Create a new strategy

> Creates a new strategy.



## OpenAPI

````yaml /api/swagger.json post /strategies/
openapi: 3.0.1
info:
  title: BLOOD-V3 API
  contact: {}
  version: 0.0.1
servers:
  - url: //localhost:50000/api/v1
security: []
paths:
  /strategies/:
    post:
      tags:
        - Strategies
      summary: Create a new strategy
      description: Creates a new strategy.
      requestBody:
        description: Strategy to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handlers.createStrategyRequest'
        required: true
      responses:
        '201':
          description: Strategy created successfully
          content:
            '*/*':
              schema:
                type: string
        '400':
          description: Invalid request body
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '409':
          description: Strategy already exists
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
        '500':
          description: Internal server error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/handlers.ErrorResponse'
components:
  schemas:
    handlers.createStrategyRequest:
      type: object
      properties:
        strategy:
          $ref: '#/components/schemas/models.Strategy'
    handlers.ErrorResponse:
      type: object
      properties:
        error:
          type: string
    models.Strategy:
      type: object
      properties:
        id:
          type: string
        meta:
          type: array
          items:
            $ref: '#/components/schemas/models.StrategyMetadata'
    models.StrategyMetadata:
      type: object
      properties:
        dev_sell_percentage:
          type: string
        dev_sell_percentage_to_sell:
          type: string
        inactivity_percentage:
          type: string
        inactivity_percentage_to_sell:
          type: string
        inactivity_timeout_ms:
          type: string
        sl_percentage:
          type: string
        sl_percentage_to_sell:
          type: string
        timeout_ms:
          type: string
        timeout_percentage_to_sell:
          type: string
        tp_percentage:
          type: string
        tp_percentage_to_sell:
          type: string
        trailing_sl_percentage:
          type: string
        trailing_sl_percentage_to_sell:
          type: string

````