# Tradejini

TradeJini is a progressive brokerage firm known for its reliable execution, low-cost trading, and developer-friendly CubePlus API platform. Designed to support modern algo trading systems, TradeJini provides a robust infrastructure for both retail and institutional traders. Whether you're an individual trader or building advanced trading automation, TradeJini offers the right tools to seamlessly integrate market data and trading functionalities.

### Steps for Integration:

#### 1. Log in to the TradeJini Developer Portal

Start by accessing the CubePlus Developer Portal at\
[ https://api.tradejini.com/developer-portal/main](https://api.tradejini.com/developer-portal/main)

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

* Click on **Login**.
* You can log in using either:

  * Your **email address and password**, or
  * By clicking the **TradeJini** logo for broker login.

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

#### 2. Create a New App

After logging in:

* Navigate to the **Apps** section.
* Under **Individual Access**, click **Create New App/Edit App .**
* Click **Submit** to register your app.
* An **API Key** will be created for authenticated API usage

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

<figure><img src="/files/0VqJRgOoeshqkgfQveYK" alt=""><figcaption></figcaption></figure>

#### 3. Retrieve API Credentials

After generating the API Key:

* **Client Code** will be your `api_key`.
* **API Key** from the app will serve as your `api_secret`.

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

### Configuration:

Here is how you would typically set up your environment variables in a `.env` file for TradeJini:

```bash
BROKER_API_KEY = 'your_tradejini_clientcode_here'
BROKER_API_SECRET = 'your_tradejini_apikey_here'
REDIRECT_URL = 'http://127.0.0.1:5000/tradejini/callback'
```

These credentials will be used by OpenAlgo to authenticate, fetch session tokens, and access market feeds or place orders.

### Integration Benefits

Integrating with the TradeJini API via OpenAlgo opens up a world of possibilities for algorithmic trading and real-time data access. The CubePlus API offers:

* High-performance WebSocket feed for LTP, OHLC, depth, and indices.
* REST API endpoints for order management and historical data.
* Support for complex order types and multi-segment instruments.

To ensure a reliable experience with TradeJini’s API:

* Handle rate limits and WebSocket throttling appropriately.
* Store and manage tokens securely.
* Implement robust error handling, retry mechanisms, and logging.

By following best practices, developers and traders can leverage the TradeJini infrastructure to build high-frequency, data-driven strategies with confidence.


---

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