Trading Buy / Sell Advisor by Mojju

Trading Buy / Sell Advisor by Mojju · GPT アクション

Mojju Trading Analyst

The API to interact with the Mojju backend

  • POST /tradingAnalystGetMarketgetMarketData

    Action to retrieve market data for a specified financial instrument that the user provided.

  • POST /tradingAnalystGetIndicatorsgetIndicators

    Action to retrieve market indicators for a specified financial instrument that the user provided.

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "Mojju Trading Analyst",
    "description": "The API to interact with the Mojju backend",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.mojju.com"
    }
  ],
  "paths": {
    "/tradingAnalystGetMarket": {
      "post": {
        "operationId": "getMarketData",
        "description": "Action to retrieve market data for a specified financial instrument that the user provided.",
        "parameters": [
          {
            "name": "instrumentName",
            "in": "body",
            "required": true,
            "description": "The name of the financial instrument to analyze.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "interval",
            "required": true,
            "in": "body",
            "description": "The time interval between each data point in the series.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputsize",
            "required": true,
            "in": "body",
            "description": "The number of data points (candles) to return in the response.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response containing the market timeseries data for the requested financial instrument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "market_timeseries": {
                      "type": "object",
                      "description": "Time-series data of the market for the requested instrument.",
                      "properties": {
                        "meta": {
                          "type": "object",
                          "description": "Metadata about the time-series data, including exchange info and symbol.",
                          "properties": {
                            "exchange_timezone": {
                              "type": "string"
                            },
                            "symbol": {
                              "type": "string"
                            },
                            "mic_code": {
                              "type": "string"
                            },
                            "interval": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "exchange": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string"
                            }
                          }
                        },
                        "values": {
                          "type": "array",
                          "description": "Array of market data points, each containing details like volume, price, and date that you should use in your analysis.",
                          "items": {
                            "type": "object",
                            "properties": {
                              "volume": {
                                "type": "string"
                              },
                              "datetime": {
                                "type": "string"
                              },
                              "high": {
                                "type": "string"
                              },
                              "low": {
                                "type": "string"
                              },
                              "close": {
                                "type": "string"
                              },
                              "open": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Error response indicating that too many requests have been made in a short amount of time. Ask the user to retry after a minute."
          },
          "default": {
            "description": "A default error response for unexpected errors."
          }
        }
      }
    },
    "/tradingAnalystGetIndicators": {
      "post": {
        "operationId": "getIndicators",
        "description": "Action to retrieve market indicators for a specified financial instrument that the user provided.",
        "parameters": [
          {
            "name": "instrumentName",
            "in": "body",
            "required": true,
            "description": "The name of the financial instrument to analyze.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "interval",
            "required": true,
            "in": "body",
            "description": "The time interval between each data point in the series.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputsize",
            "required": true,
            "in": "body",
            "description": "The number of data points (candles) to return in the response.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "isTrending",
            "required": true,
            "in": "body",
            "description": "Boolean values showing whether the market is trending (true) or range (false)",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "429": {
            "description": "Error response indicating that too many requests have been made in a short amount of time. Ask the user to retry after a minute."
          },
          "default": {
            "description": "A default error response for unexpected errors."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {},
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}