# Upstox

### 🔗 Adding Static IP to Upstox (v2 API)

Upstox requires you to whitelist your IP within their modern developer dashboard. Note that you can now only have one active app for trading APIs.

#### Step 1: Access the Developer Portal

1. Log in to the [Upstox Developer Console](https://account.upstox.com/developer/apps).
2. Use your registered mobile number and OTP/TOTP to sign in.

#### Step 2: App Management

* Existing Users: Click on your active app to edit it.
  * *Note: If you have multiple apps, consolidate them into one, as additional apps will be deleted after the April 1st deadline.*
* New Users: Click the New App button.

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

#### Step 3: Enter Connection Details

1. App Name: Enter a recognizable name (e.g., *Arrownect\_Algo*).
2. Redirect URL: You must enter this exact URL for the Algomojo integration:

   > `https://up.algomojo.com/xl-connect/am/login-response`
3. Static IP: Copy your Static IP from Arrownect and paste it into the Primary IP field.
   * *Optional:* Upstox also provides a Secondary IP field if you have a backup Arrownect server.

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

<figure><img src="/files/1qCoV9vRowwkQ8oZKS7B" alt=""><figcaption></figcaption></figure>

#### Step 4: Create & Finalize

* Click the Create (or Save) button.
* Once saved, your API Key and Secret Key will be displayed. Copy these for your Algomojo broker setup.


---

# 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.algomojo.com/algomojo/brokers/static-ip-integration/upstox.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.
