Overview

Key Generation

This page guides you to generate the API key and Vendor code to login into Firstock Developer API

Overview

API keys are required to authenticate your login requests to the Firstock platform. By following the steps below, you will generate a secure API key, store it, and be ready to integrate Firstock’s powerful trading and market data services into your application.

Why You Need an API Key

  1. Authentication: An API key uniquely identifies you when you interact with Firstock APIs.
  2. Access Control: Generates jkey (susertoken) which helps in certain operations (e.g., placing trades, retrieving account details).

Prerequisites

  1. Account Access: Ensure you have account access to generate API keys on key generation platform.
  2. Key Management Section: Familiarize yourself with the portal or tool where keys can be created (e.g., “API Keys,” “Profile,” and “Docs” sections in your dashboard).

Steps to Generate an API Key

1.Navigate to Key Generation

  • First, log in to the key generation portal on the provided Key Generation.

Screenshot-2023-12-17-at-11.09.11-PM.png


2. Generate a New Key

  • In your dashboard, locate the API Keys.
  • Click on the button or link to Generate Key or Create New Key.
  • The appkey and vendor code will be generated

Home.jpg

3.Securely Store Your Key

    1. After generation, your API Key (and Secret Key, if applicable) will be shown.

Important: The key will expire after 365 days and a new key has to be generated.

Best Practices

  1. Protect Your Keys: Never expose your keys in client-side code or in publicly accessible repositories.
  2. Use HTTPS: Always send your key over secure HTTP (HTTPS) to prevent interception.
  3. Rotate Regularly: Update or regenerate your keys periodically to maintain a higher level of security.