{
  "openapi": "3.0.1",
  "info": {
    "title": "India Stock Market MoneyControl API",
    "description": "(data source is moneycontrol)  ireda share price api , irfc share price api, tata power share price api nifty 50 api (Live Nifty 50, NSE & BSE) AI-ready with MCP support cheap.for better api structure visit here : { https://rapidapi.com/matepapava123/api/india-stock-market-moneycontrol-live-api }",
    "version": "2.0",
    "x-build-id": "zwD6yunGveBnsyB2h"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fingolfin~india-stock-market-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fingolfin-india-stock-market-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/fingolfin~india-stock-market-api/runs": {
      "post": {
        "operationId": "runs-sync-fingolfin-india-stock-market-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/fingolfin~india-stock-market-api/run-sync": {
      "post": {
        "operationId": "run-sync-fingolfin-india-stock-market-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Action",
            "enum": [
              "stock_quote",
              "stock_search",
              "stock_chart",
              "delivery",
              "technicals",
              "analyst_rating",
              "price_target",
              "index_details",
              "index_constituents",
              "index_chart",
              "market_gainers",
              "market_losers",
              "market_active",
              "financials",
              "shareholding",
              "peers",
              "mf_search",
              "mf_nav",
              "mf_history",
              "ipo_upcoming",
              "ipo_listed",
              "fii_dii",
              "corporate_actions",
              "commodity_quote",
              "futures",
              "options_chain",
              "oi_trends",
              "oi_change",
              "news"
            ],
            "type": "string",
            "description": "What data to fetch",
            "default": "stock_quote"
          },
          "symbol": {
            "title": "Symbol / Ticker",
            "type": "string",
            "description": "NSE ticker (RELIANCE, HDFCBANK, TCS, INFY, SBIN) — auto-resolves to Moneycontrol ID for stock_quote. For commodity_quote use MCX name (GOLD, SILVER, CRUDEOIL). For futures/options use F&O symbol (NIFTY, BANKNIFTY).",
            "default": "RELIANCE"
          },
          "scId": {
            "title": "Moneycontrol Stock ID (optional)",
            "type": "string",
            "description": "Internal Moneycontrol ID (e.g. RI, HDF01, TCS, IT). Only needed if NSE ticker auto-resolution doesn't work. Use stock_search to find this."
          },
          "exchange": {
            "title": "Exchange",
            "enum": [
              "nse",
              "bse"
            ],
            "type": "string",
            "description": "NSE or BSE. Used for stock_quote.",
            "default": "nse"
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Search term for stock_search (company name, ticker, ISIN) or mf_search (fund name like 'HDFC top 100').",
            "default": "HDFC"
          },
          "indexId": {
            "title": "Index ID",
            "type": "string",
            "description": "9=Nifty50, 4=Sensex, 23=BankNifty, 27=Midcap100, 52=Auto, 47=FinServices, 113=Smallcap50, 28=Nifty100, 17=BSE-IT, 34=Realty",
            "default": "9"
          },
          "chartRange": {
            "title": "Chart Range (Index)",
            "enum": [
              "1d",
              "5d",
              "1m",
              "3m",
              "6m",
              "1yr",
              "2yr",
              "5yr",
              "max"
            ],
            "type": "string",
            "description": "Time range for index_chart only.",
            "default": "1m"
          },
          "resolution": {
            "title": "Candle Resolution",
            "enum": [
              "1",
              "5",
              "15",
              "30",
              "60",
              "1d",
              "1w",
              "1M"
            ],
            "type": "string",
            "description": "For stock_chart: 1/5/15/30/60 (intraday minutes), 1d/1w/1M (daily/weekly/monthly).",
            "default": "1d"
          },
          "days": {
            "title": "Days of History",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of past days to fetch (1-365).",
            "default": 30
          },
          "statement": {
            "title": "Financial Statement",
            "enum": [
              "income",
              "balance-sheet",
              "cash-flow",
              "ratios"
            ],
            "type": "string",
            "description": "Which financial statement to fetch.",
            "default": "income"
          },
          "statementType": {
            "title": "Standalone / Consolidated",
            "enum": [
              "standalone",
              "consolidated"
            ],
            "type": "string",
            "description": "Standalone = single company. Consolidated = with subsidiaries.",
            "default": "standalone"
          },
          "schemeCode": {
            "title": "Mutual Fund Scheme Code",
            "type": "integer",
            "description": "AMFI scheme code (get it from mf_search). Example: 119551 for Axis Bluechip Fund.",
            "default": 119551
          },
          "actionType": {
            "title": "Corporate Action Filter",
            "enum": [
              "all",
              "dividend",
              "bonus",
              "split",
              "rights",
              "buyback"
            ],
            "type": "string",
            "description": "Filter corporate actions by type.",
            "default": "all"
          },
          "newsCategory": {
            "title": "News Category",
            "enum": [
              "top",
              "business",
              "markets",
              "stocks",
              "mutual_funds",
              "ipo",
              "economy",
              "commodities",
              "personal_finance"
            ],
            "type": "string",
            "description": "Category of financial news to fetch.",
            "default": "top"
          },
          "expiry": {
            "title": "Expiry Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Contract expiry for commodity_quote and options_chain. Check MCX/NSE calendar."
          },
          "optionType": {
            "title": "Option Type",
            "enum": [
              "CE",
              "PE"
            ],
            "type": "string",
            "description": "CE = Call, PE = Put. For options_chain only.",
            "default": "CE"
          },
          "limit": {
            "title": "Results Limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max items to return (1-100).",
            "default": 20
          },
          "page": {
            "title": "Page Number",
            "minimum": 1,
            "type": "integer",
            "description": "Page number for paginated results.",
            "default": 1
          },
          "duration": {
            "title": "Technical Duration",
            "enum": [
              "D",
              "W",
              "M"
            ],
            "type": "string",
            "description": "For technicals action: D=Daily, W=Weekly, M=Monthly.",
            "default": "D"
          },
          "oiCategory": {
            "title": "OI Trend Category",
            "enum": [
              "all",
              "bullish",
              "bearish"
            ],
            "type": "string",
            "description": "For oi_trends: all, bullish, or bearish.",
            "default": "all"
          },
          "oiExpiry": {
            "title": "OI Expiry Date",
            "type": "string",
            "description": "For oi_trends (use 'ALL' for all expiries) and oi_change (YYYY-MM-DD required).",
            "default": "ALL"
          },
          "oiScId": {
            "title": "OI Symbol ID",
            "type": "string",
            "description": "For oi_change: 'in;NSX' (Nifty), 'in;SEN' (Sensex), or a stock sc_id.",
            "default": "in;NSX"
          },
          "oiAssetType": {
            "title": "OI Asset Type",
            "enum": [
              "I",
              "S"
            ],
            "type": "string",
            "description": "For oi_change: I=Index, S=Stock.",
            "default": "I"
          },
          "oiType": {
            "title": "OI Data Type",
            "enum": [
              "INTRA",
              "HIST"
            ],
            "type": "string",
            "description": "For oi_change: INTRA=Intraday, HIST=Daily historical.",
            "default": "INTRA"
          },
          "oiCount": {
            "title": "OI Strike Count",
            "minimum": 5,
            "maximum": 50,
            "type": "integer",
            "description": "Number of strikes around ATM for oi_change (5-50).",
            "default": 13
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}