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

> ## Agent Instructions
> These docs cover the Darvas financial data API, its MCP server, data API and Darvas Pro+ webhooks, and Pine Script custom indicators for Darvas charts.
> https://docs.darvas.app/llms.txt lists every indexed page with a summary, and https://docs.darvas.app/llms-full.txt holds them in one file. Add .md to any page URL to read that page as Markdown. The lookup lists of tickers, types and series are named at https://docs.darvas.app/ai-agents.
> The docs MCP server https://docs.darvas.app/mcp searches and reads these docs. It needs no key.
> Call the REST API at https://api.darvas.app/v1. Send the API key, which starts with dvk_, in the X-API-KEY header or as Authorization: Bearer. The OpenAPI 3.1 spec of all 168 operations is https://docs.darvas.app/openapi.yaml.
> Name a company by ticker or cik. A share class takes a dot or a dash, so BRK.B and BRK-B name the same shares. Dates are YYYY-MM-DD.
> A list answer holds one page. Request its next_page_url as it is until the answer has none. limit counts rows across all pages.
> Errors are JSON with a stable error code and a message: 400 VALIDATION_ERROR, 401 UNAUTHORIZED, 403 PLAN_REQUIRED, 404 NOT_FOUND, 429 RATE_LIMITED or QUOTA_EXCEEDED, 500 INTERNAL_ERROR and 503 UNAVAILABLE. On a 429, wait the seconds in Retry-After. 1 credit = 1 successful call: a 2xx answer with data costs one credit however many rows it holds (at most 1,000 a page), and empty answers, errors and FINRA /short-volume cost 0 credits.
> The Financial Data MCP server is https://api.darvas.app/mcp (Streamable HTTP, protocol 2025-11-25, the same API key in X-API-KEY or as a Bearer token). tools/list answers 8 flagship tools plus search_data_tools and call_data_tool by default; ?mode=full lists all 164 tools and ?toolsets=sec,crypto,macro lists domains. Every tool is callable by name, takes response_format (json, compact or tsv) and fields, and a list answer's cursor value goes in the cursor argument. The darvas://catalog/* resources cost 0 credits. Setup for each client is at https://docs.darvas.app/mcp-server.
> The data API covers SEC filers and their filings, statements, XBRL facts, debt maturities, ownership and earnings, US stock prices, technicals and FINRA short volume, macro series and a global economic calendar.
> Its crypto data covers prices, indices, order books, order flow, volume profiles, derivatives, options, liquidations, spot ETF flows and a screener across 9 exchanges. It also covers DeFi protocols, stablecoins, yields and DEX pairs, and Polymarket, Kalshi and OKX prediction markets. https://docs.darvas.app/market-coverage gives the history and update time of each dataset.
> https://docs.darvas.app/ai-agents names the endpoint and the MCP tool that answer each kind of question about these datasets.
> Custom indicators for Darvas charts are Pine Script v5 or v6 indicator() or strategy() scripts. Darvas rewrites Pine v1 to v4 to v5 and runs no other indicator language. Start at https://docs.darvas.app/pine-script/introduction.
> https://docs.darvas.app/pine-script/support lists the Pine Script that Darvas runs. https://docs.darvas.app/pine-script/request-security covers request.security() and request.financial(), and https://docs.darvas.app/pine-script/limits lists the run limits.
> Darvas Pro+ webhooks send a signed POST for alarm fires and pauses, scheduled answers, economic calendar alerts, ETF flow updates, ended connections and the data API events. https://docs.darvas.app/pro/webhooks lists every event, its object and how to verify the Darvas-Signature header.

# Publish & Share Private Pine Script Indicators

> Publish custom Pine Script indicators publicly or behind a password, protect source code visibility and install community scripts on Darvas charts.

You can share a saved Pine Script indicator. A draft cannot be shared, so save it first.

## Publish an indicator

1. Open the indicator in the editor and choose **Share** in the header.
2. The first time you share, choose a username. Your indicators are listed under it, and the name on your account is never shown. A username has 3 to 20 characters: letters a to z, digits, underscores and dots. It cannot start or end with a dot or have two dots in a row. You cannot change it later.
3. Under **Who can use it**, choose one option:
   * **Private**. Only you can use it.
   * **Public**. Anyone on Darvas can add it. It is listed under **Community indicators**.
   * **Invite only**. Only people who know the password can add it. The password has at least 10 characters.
4. Choose whether to **Hide the code**. See [Hidden code](#hidden-code).
5. Choose **Publish**.

After you publish, Darvas shows a link to the indicator. Copy it and send it with the password to the people you choose. The link opens the indicator in Darvas, and adding an invite-only indicator still needs the password.

## What the people who add it get

* They run your newest version. When you save a change, their charts use it.
* They can change their own input values. They cannot change the code.
* If the code is shared, they can read it.

## Hidden code

With **Hide the code**, other users never see the code. The indicator runs on Darvas servers, and only its results reach their charts. Logs and error details stay with you. When it fails on their chart, they see "The indicator failed on this chart".

You choose this at the first publication, and you cannot change it afterwards.

## Change the password

Enter a new password in the sharing settings. People who added the indicator before stay on the version that was current at the change, until they enter the new password. Leave the field empty to keep the current password.

## Stop sharing

Choose **Private**, then **Make private**. Everyone who added the indicator loses it, and their chart says the author stopped sharing it. Deleting the indicator removes it for them too.

## Add an indicator from the community

1. Open the editor menu and choose **Community indicators**. The list shows what Darvas users published, the most added and favourited first. Search it by name.
2. Choose **Add**. For an invite-only indicator, enter the password and choose **Unlock**.

The indicator then appears with your custom indicators. Each row shows the author, how many users added it, when it last changed, and whether its code is hidden or invite only. The favourite button marks an indicator as a favourite, and the code button opens code that the author shares, read only.

Wrong passwords are limited. After too many attempts, wait and try again later.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.