Trader GPT - Market Technical Analysis - Real Time

Trader GPT - Market Technical Analysis - Real Time · GPT-Aktionen

Asset Query API

This API allows users to query assets using a language model-based search.

  • POST /query/Query Asset
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Asset Query API",
    "description": "This API allows users to query assets using a language model-based search.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.quanticx.ai",
      "description": "Main server"
    }
  ],
  "paths": {
    "/query/": {
      "post": {
        "summary": "Query Asset",
        "operationId": "query_asset_query__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetQuery"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResponse"
                }
              }
            }
          },
          "404": {
            "description": "Asset not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AssetQuery": {
        "properties": {
          "asset": {
            "type": "string",
            "title": "Asset",
            "description": "The name of the asset to query."
          }
        },
        "type": "object",
        "required": [
          "asset"
        ],
        "title": "AssetQuery"
      },
      "AssetResponse": {
        "properties": {
          "asset": {
            "type": "string",
            "title": "Asset",
            "description": "The name of the asset."
          },
          "data": {
            "type": "object",
            "title": "Data",
            "description": "The data of the asset."
          },
          "report_date": {
            "type": "string",
            "format": "date",
            "title": "Report Date",
            "description": "The date when the report was generated."
          }
        },
        "type": "object",
        "required": [
          "asset",
          "data"
        ],
        "title": "AssetResponse"
      },
      "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"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}