> For the complete documentation index, see [llms.txt](https://docs.openalgo.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openalgo.in/connect-brokers/brokers/shoonya.md).

# Shoonya

Shoonya, developed by Finvasia, is a trading platform in India that allows users to trade across multiple segments—including equities, commodities, currencies, and derivatives. The platform is accessible via mobile, web, and desktop applications, offering features like advanced charting tools, real-time data, and integration with third-party platforms for algorithmic trading.

## Getting API Credentials

To integrate Shoonya with OpenAlgo, follow these steps to obtain your API key and secret:

1\. Log in to Shoonya Prism:

• Visit <https://trade.shoonya.com/>.

• Enter your Shoonya login credentials.

2\. Generate API Credentials:

<figure><img src="/files/INtupowKEkTZfmE102PT" alt=""><figcaption></figcaption></figure>

• After logging in, navigate to the API Key section in your profile dropdown.

<figure><img src="/files/W8zZNR18STzyCf2Xc6nJ" alt=""><figcaption></figcaption></figure>

• Click on API Key.

<figure><img src="/files/rwisfACzz1hxwgxKFHm5" alt=""><figcaption></figcaption></figure>

• Your client ID and Secret code will be displayed.

3\. Configure OpenAlgo:

• In your OpenAlgo .env file, set the following variables:

```bash
BROKER_API_KEY = 'your_userid_here:::your_ClientId_here'
BROKER_API_SECRET = 'your_Secretcode_here'
REDIRECT_URL = 'https://openalgo.local/shoonya/callback'
```
