> For the complete documentation index, see [llms.txt](https://docs.algomojo.com/algomojo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algomojo.com/algomojo/brokers/login-to-broker/firstock.md).

# Firstock

#### Phase 1: Accessing the Developer Portal

1. Navigate to the Portal: Go to the <https://firstock.in/api/> .
2. Login: Click on Broker Login.
   * Enter your User ID, Password, and Year of Birth (DOB).
3. Registration (New Users): If you haven't used the developer portal before, click Signup and complete the registration using your broker client details.

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

#### Phase 2: Generating API Credentials

Once you are logged into the dashboard:

1. Create App Key: Look for the "API Keys" section and click on Create New App (or Create App Key).
2. Whitelisting the IP: This is the "security gate" for your account.
   * Locate the Add IP.
   * Paste the Arrownect Static IP: Make sure there are no extra spaces before or after the IP address.

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

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

#### 📝 Step 2: Algomojo New User Registration

Now, bridge these credentials to the Algomojo platform to enable automated trading.

* Navigate: Go to the [Algomojo Firstock Login](https://am.algomojo.com/) and select New User Registration.

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

* Enter Broker Details:
  * Client ID: Your Firstock Trading ID.
  * API Key: Paste the API Key from Firstock.<a class="button secondary"></a>
  * Vendor Code: Paste the Vendor Code from Firstock.
  * Select Submit Button For update the Broker API Details.

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

* Enter Arrownect Infrastructure Details:
  * Client ID: Your Firstock Trading ID.
  * Server Code: Copy this from your Arrownect Dashboard.
  * Server Token: Copy this from your Arrownect Dashboard.
  * Select Verify after it's shows active then choose Submit.

<figure><img src="/files/7cJT1ZbxNNPcJEalogLX" alt=""><figcaption></figcaption></figure>

#### ⚠️ Final Reminder

> Without the Arrownect Static IP and the Server Code/Token, you will be unable to log in to your account. The system is designed to verify that the request is coming from your specific, authorized server before allowing any trades.
