# Zebu

Zebu, a leading stock trading platform, offers robust API services for traders and developers looking to integrate algorithmic trading solutions into their platforms. The Zebu MYNT API enables access to real-time market data, portfolio management, and trade execution for stocks, commodities, and mutual funds.<br>

To integrate Zebu’s API, follow the steps below:

### API Key Registration

Before using the API, you need to generate an API key and API secret.

1\. Login to Zebu MYNT

Go to the <https://mynt.zebuetrade.com/login> and log in with your Zebu credentials.

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F0RY6MOHnxnAkOS0IDmtQ%2Fzebu1.PNG?alt=media&#x26;token=3f8d44cf-ab5c-4833-a5d2-ecf5e7e6a0e6" alt=""><figcaption></figcaption></figure>

2\. Access API Key Generation

Navigate to Profile ,click on the Client Code at the top right corner and select setting.

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2Fkpsc8J22JANJOl3aQuku%2Fzebu2.PNG?alt=media&#x26;token=7b3b0579-6ecd-440b-867c-2c84a6e4c3df" alt=""><figcaption></figcaption></figure>

click the OAuth Key button and fill in the details and Update.

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F7Ssp0DtnD3QkkQappw0i%2Fzebu3.PNG?alt=media&#x26;token=11824907-6bc1-45ad-90d6-3a00f34c95bf" alt=""><figcaption></figcaption></figure>

Once generated, the client Id and Secret Code will be provided for the app. These keys are essential for authenticating API requests. Here’s how your .env file might look:

```
BROKER_API_KEY = 'your_userid_here':::'your_ClientId_here'
BROKER_API_SECRET = 'your_Secretcode_here'
REDIRECT_URL = 'http://127.0.0.1:5000/zebu/callback'
```

Make sure to store your API credentials securely and handle them with care to prevent unauthorized access.

### Zebu API Integration

Integrating OpenAlgo with Zebu’s MYNT API opens opportunities for algorithmic trading and portfolio management. By using the Zebu API, developers can automate trading strategies and enhance trading experiences for users. Be sure to implement best practices for API rate limits, security, and error handling.

<br>

For further assistance or troubleshooting, refer to [Zebu API Documentation](https://zebumyntapi.web.app).


---

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