Prerequisites
Before using the Upstox SDK, you need to complete two key steps:
1. Procuring API Credentialsβ
To access the Upstox API, you must create an app and obtain an API Key and API Secret. Follow the instructions in the official Upstox documentation to create an app and retrieve your credentials:
π Upstox API App Creation Guide
2. Setting Up Your Development Environmentβ
Depending on your preferred programming language, follow the setup process below to prepare your environment for SDK integration.
Python Environment Setupβ
- Install Python (if not installed) β Download and install from python.org.
- Set up a Virtual Environment (Recommended):
python -m venv upstox_env
source upstox_env/bin/activate # Mac/Linux
upstox_env\Scripts\activate # Windows - Ensure
pipis up to date:python -m pip install --upgrade pip - Proceed to SDK installation in the next section
Node.js Environment Setupβ
- Install Node.js β Download and install from nodejs.org.
- Verify installation:
node -v
npm -v - Initialize a new Node.js project (optional but recommended):
mkdir upstox-sdk && cd upstox-sdk
npm init -y - Proceed to SDK installation in the next section
Java Environment Setupβ
- Install Java (JDK 11 or later) β Download from Adoptium or Oracle.
- Set up environment variables (if needed):
- Add
JAVA_HOMEto your system variables - Ensure
javaandjavacare accessible via CLI:java -version
javac -version
- Add
- Set up Maven or Gradle (Recommended for dependency management):
- Proceed to SDK installation in the next section
PHP Environment Setupβ
- Install PHP β Download and install from php.net.
- Verify PHP installation:
php -v - Install Composer (Dependency Manager for PHP):
- Download and install from getcomposer.org.
- Verify installation:
composer -v
- Proceed to SDK installation in the next section
With your development environment set up, youβre now ready to install and integrate the Upstox SDK in your chosen language! π