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

# Open a stock position by ticker

> Open a stock position with the proposer's opening buy, identifying the stock by `ticker` (e.g. "NVDA", case-insensitive) instead of a mint. Resolves the ticker to its Ondo token, then runs the same group/proposal flow as `POST /api/v1/spot/proposals`. Leader/admin only.



## OpenAPI

````yaml /openapi.json post /api/v1/spot/stocks/proposals
openapi: 3.1.0
info:
  title: Murmo API
  version: 1.0.0
  description: >-
    REST API for the Murmo trading platform. Spot swaps, prediction markets,
    perpetual futures, social copy-trading groups, portfolio, and chat —
    everything a bot or AI agent needs to trade on Solana with a single API key.


    **The money contract:** every monetary value on the wire is a full-precision
    plain decimal **string** (e.g. `"12.50"`), never a number, never raw base
    units, never scientific notation, never rounded. Send money the same way.
    See the *Money & precision* guide.


    **Auth:** send `Authorization: Bearer murmo_...` on every request. Keys are
    created in the Murmo app.
  contact:
    name: Murmo Support
    email: support@murmo.xyz
servers:
  - url: https://api.alpha-labs.trade
    description: Production
  - url: http://localhost:3000
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Identity
    description: Who am I, which key is this, and what is my rate budget.
  - name: Account
    description: >-
      Wallet value, balances, holdings, PnL, and the deposit address for funding
      in.
  - name: Spot
    description: Token discovery and group spot proposals.
  - name: Stocks
    description: >-
      Ondo tokenized stocks: the supported-ticker catalog and ticker-based
      trading over the group/proposal flow.
  - name: Predictions
    description: >-
      Polymarket-backed prediction markets: browse events, propose, predict,
      sell, claim.
  - name: Perpetuals
    description: 'Phoenix RISE perps: markets, proposals, open/increase/reduce/close/claim.'
  - name: Groups
    description: 'Copy-trade groups: membership, admin, and auto-follow.'
  - name: Portfolio
    description: Cross-vertical open positions, past positions, and trade history.
  - name: Chat
    description: Group chat over REST (the stateless counterpart to the WebSocket gateway).
paths:
  /api/v1/spot/stocks/proposals:
    post:
      tags:
        - Stocks
      summary: Open a stock position by ticker
      description: >-
        Open a stock position with the proposer's opening buy, identifying the
        stock by `ticker` (e.g. "NVDA", case-insensitive) instead of a mint.
        Resolves the ticker to its Ondo token, then runs the same group/proposal
        flow as `POST /api/v1/spot/proposals`. Leader/admin only.
      operationId: openStockProposal
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStockProposalBody'
            examples:
              default:
                value:
                  groupId: 1a9d212a-de67-45f4-88f5-6e9f41e78dc0
                  ticker: NVDA
                  reason: Earnings momentum
                  amountUsd: '50.00'
      responses:
        '200':
          description: Created proposal and the opening trade.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      proposal:
                        $ref: '#/components/schemas/SpotProposal'
                      trade:
                        $ref: '#/components/schemas/SpotTrade'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/MarketClosed'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
components:
  schemas:
    CreateStockProposalBody:
      type: object
      required:
        - groupId
        - ticker
        - amountUsd
      properties:
        groupId:
          type: string
        ticker:
          type: string
          description: >-
            Clean ticker, case-insensitive (e.g. "NVDA"). Use GET
            /api/v1/spot/stocks for the supported list.
          example: NVDA
        reason:
          type: string
        amountUsd:
          $ref: '#/components/schemas/MoneyString'
    SpotProposal:
      type: object
      properties:
        id:
          type: string
        groupId:
          type: string
        createdByUserDynamicId:
          type: string
        tokenMetadataId:
          type: string
        reason:
          type: string
          nullable: true
        initialPriceUsd:
          oneOf:
            - $ref: '#/components/schemas/MoneyString'
            - type: 'null'
        exitPriceUsd:
          oneOf:
            - $ref: '#/components/schemas/MoneyString'
            - type: 'null'
        exitPnlPct:
          oneOf:
            - $ref: '#/components/schemas/DecimalString'
            - type: 'null'
        exitPnlUsd:
          oneOf:
            - $ref: '#/components/schemas/MoneyString'
            - type: 'null'
        closedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        token:
          $ref: '#/components/schemas/TokenRef'
        group:
          $ref: '#/components/schemas/GroupRef'
        createdBy:
          $ref: '#/components/schemas/UserRef'
        trades:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/SpotTrade'
    SpotTrade:
      type: object
      properties:
        id:
          type: string
        tradingProposalId:
          type: string
        groupId:
          type: string
        walletAddress:
          type: string
        tradeType:
          type: string
          enum:
            - BUY
            - SELL
        tokenAmount:
          $ref: '#/components/schemas/DecimalString'
        tokenDecimals:
          type: integer
        pricePerTokenUsd:
          oneOf:
            - $ref: '#/components/schemas/MoneyString'
            - type: 'null'
        totalCostUsd:
          $ref: '#/components/schemas/MoneyString'
        alphaFeeUsd:
          $ref: '#/components/schemas/MoneyString'
        pnlPct:
          oneOf:
            - $ref: '#/components/schemas/DecimalString'
            - type: 'null'
        pnlUsd:
          oneOf:
            - $ref: '#/components/schemas/MoneyString'
            - type: 'null'
        txSignature:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
    MoneyString:
      type: string
      description: >-
        A monetary amount as a full-precision plain decimal string in USD —
        never a number, never raw base units, never scientific notation, never
        rounded. Parse with a decimal library; round only for display.
      example: '12.50'
    DecimalString:
      type: string
      description: >-
        A non-money decimal (percentage, ratio, price) as a full-precision plain
        decimal string (never scientific notation).
      example: '4.27'
    TokenRef:
      type: object
      nullable: true
      properties:
        id:
          type: string
        contractAddress:
          type: string
        symbol:
          type: string
        name:
          type: string
        logoUrl:
          type: string
          nullable: true
        coingeckoId:
          type: string
          nullable: true
        verified:
          type: boolean
    GroupRef:
      type: object
      nullable: true
      properties:
        uniqueId:
          type: string
        name:
          type: string
        image:
          type: string
          nullable: true
    UserRef:
      type: object
      nullable: true
      properties:
        dynamicId:
          type: string
        username:
          type: string
          nullable: true
    Error:
      type: object
      description: >-
        Errors come in two shapes. Coded business errors: `{ message, code }`.
        Generic framework errors: `{ statusCode, message, error }` (message may
        be an array of validation strings).
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Query parameter "groupId" is required
        error:
          type: string
          example: Bad Request
        code:
          type: string
          description: >-
            Stable machine-readable code on business errors (e.g.
            NOT_GROUP_MEMBER, MARKET_NOT_ACTIVE, AMOUNT_BELOW_MINIMUM,
            MIN_ORDER_SIZE, NO_LIQUIDITY, FUNDING_REFUNDED). The full list is
            published as error-catalog.json.
          example: NOT_GROUP_MEMBER
  responses:
    BadRequest:
      description: Invalid input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        Authenticated but not permitted (e.g. not a group member, or the product
        is restricted in your region).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    MarketClosed:
      description: >-
        Market is paused or closed (`code: MARKET_CLOSED`). `details.nextOpenAt`
        carries the next open instant when known.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnprocessableEntity:
      description: >-
        Request is well-formed but violates a trading rule (e.g.
        `ORDER_BELOW_MIN_SIZE`, `INSUFFICIENT_FUNDS`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API key as `Authorization: Bearer murmo_...`. Keys are created
        in the Murmo app. Header-only — keys are never read from the query
        string. Valid for the REST API under /api/v1 only (not the GraphQL
        endpoint).

````