# Paytm

**Paytm Money** is a technology-first investment platform backed by one of India’s leading fintech companies. With its secure and scalable API infrastructure, Paytm Money empowers developers and traders to build powerful trading systems that can manage portfolios, place real-time orders, and stream live market data with ease. Whether you're building retail trading applications or complex algorithmic strategies, Paytm Money offers a reliable and developer-friendly gateway to the markets.

***

### Step 1: Create App

1. Go to [Paytm Developer Portal](https://developer.paytmmoney.com/)

2. Click on **Create New App**

3. Choose the following APIs:

   * ✅ **Trading API**
   * ✅ **Live Broadcast API** (optional, but recommended for real-time data)

   <figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F45T8OspqqKeeYoBl0DZC%2Fimage.png?alt=media&#x26;token=e52834b5-fc5e-469a-b71c-1b3baec26a25" alt=""><figcaption></figcaption></figure>

4. Click **Proceed**

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F6wGHqktfiZklAzMnCOOD%2Fimage.png?alt=media&#x26;token=473cdfb3-0a22-4d7c-85c7-1dada3069315" alt=""><figcaption></figcaption></figure>

***

### Step 2: Enter App Details

Fill out the app details as shown below:

* **App Name:** `openalgo`
* **Product Type:** `Trading Bridge`
* **Redirect URL:** `http://127.0.0.1:5000/paytm/callback`
* **Postback URL:** *(leave empty)*
* **Description:** `openalgo`
* Upload a logo (optional)

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F27kGXJwtkXD4smGUmvdN%2Fimage.png?alt=media&#x26;token=6a2c04d3-d4df-4f2f-aa59-f56993b082cc" alt=""><figcaption></figcaption></figure>

Click **Create App**

***

### Step 3: Copy API Key and Secret

Once your app is in **Active** status:

1. Go to **My Apps**
2. Locate your app (e.g., `openalgo`)
3. Copy the **API Key** and **API Secret**

<figure><img src="https://17901342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmBwEhITzgv0O0fEGIIRN%2Fuploads%2F6GZdwVqycqZHPc3GCrMY%2Fimage.png?alt=media&#x26;token=0e7ea5d2-374b-4eae-8982-75bcff0fd419" alt=""><figcaption></figcaption></figure>

Use these credentials in your OpenAlgo broker configuration.

***

### Configuration

Once you have the credentials, add them to your OpenAlgo configuration:

```json
BROKER_API_KEY = 'your_api_key_here'
BROKER_API_SECRET = 'your_api_secret_here'
REDIRECT_URL = 'http://127.0.0.1:5000/paytm/callback'
```

Make sure your local server is running and accessible at the callback URL you defined earlier.

***

#### What's Next?

Integrating with the Paytm Money API opens the door to building high-performance, automated trading workflows within the OpenAlgo ecosystem. To ensure seamless integration and performance, it’s essential to follow recommended practices such as securely storing your API credentials, managing session states effectively, and implementing robust logging and error-handling routines. With the right setup, Paytm Money becomes a dependable backbone for executing your trading strategies with precision and confidence.

***
