# 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="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FH1BaS4xAEmDyGE4yMiNL%2Fshoonya4.PNG?alt=media&#x26;token=4486a793-9a1b-4ec7-b096-e90606b842b6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FyF3WxZMHUPc0aGKn1FXs%2Fshoonya2.png?alt=media&#x26;token=b8461c9f-39d3-46d5-855c-abc5ca32d8a4" alt=""><figcaption></figcaption></figure>

• Click on API Key.

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2FgvAixETmEAqtDU7VkxJj%2Fshoonya6.PNG?alt=media&#x26;token=db08feed-2a5d-4ee7-9dfb-a3060f926a22" 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 = 'http://127.0.0.1:5000/shoonya/callback'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.openalgo.in/connect-brokers/brokers/shoonya.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
