openapi: 3.0.1 info: title: AlgoQuant Signal Engine API description: > REST API for serving trading signals generated by TensorFlow LSTM and PyTorch DQN models. version: "1.0.0" servers: - url: https://api.your-domain.com description: Production server - url: http://localhost:8000 description: Local development paths: /signal: post: summary: Generate trading signals requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/SignalRequest" responses: '200': description: Successful response with signals content: application/json: schema: $ref: "#/components/schemas/SignalResponse" '400': description: Invalid input '500': description: Server error components: schemas: SignalRequest: type: object required: - recent_prices - sma_20 - rsi_14 - atr_14 properties: recent_prices: type: array items: type: number description: Last N closing prices sma_20: type: array items: type: number description: 20-period simple moving average values rsi_14: type: array items: type: number description: 14-period RSI values atr_14: type: array items: type: number description: 14-period ATR values SignalResponse: type: object properties: tf_signal: type: number description: Continuous signal prediction from TensorFlow model rl_signal: type: integer description: Discrete action from RL agent (0=buy,1=hold,2=sell) git add openapi.yaml git commit -m "Add OpenAPI spec for signal endpoint" git push