# Nubra

Nubra, by Zanskar Securities Private Limited, is a modern trading platform built for algorithmic and institutional traders. It provides REST-like resource-based endpoints with low-latency order execution, comprehensive market data access including quotes, Greeks, and historical candles, and secure MPIN-based authentication — making it an excellent choice for automated trading with OpenAlgo.

1. **Navigate** to the Nubra's Dashboard Login <https://nubra.io/> Open Demat

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

2. All REST requests require:
   1. **API Key (client\_id)**
   2. **MPIN-based session (MPIN → session token)**

<figure><img src="/files/3senTYvBhAQd9osztRyT" alt=""><figcaption></figcaption></figure>

3. Click on the **Profile** icon located at the bottom-left corner of the page

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

4. Go to **API Credentials** and Select **Two-Factor Authentication**.

### **Environment Configuration**

Once your credentials are generated, configure them in your `.env` file:

```
BROKER_API_KEY = 'your_nubra_clientid'
BROKER_API_SECRET = 'your_nubra_mpin'
REDIRECT_URL = 'http://127.0.0.1:5000/nubra/callback'
```

Integrating with **Nubra APIs** unlocks the ability to automate strategies, execute trades, and analyze data directly within your own infrastructure. When used with **OpenAlgo**, you can self-host and run your entire algo trading stack — with full control and zero vendor lock-in.


---

# 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/nubra.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.
