Pocketful
Last updated
Last updated
Pocketful is a SEBI-registered Indian stock broker offering a modern trading platform with support for multiple asset classes and a powerful API suite. With a focus on automation, speed, and flexibility, Pocketful provides developers and trading system builders direct access to its brokerage services through the .
For OpenAlgo integration, Pocketful enables algorithmic trading with secure API authentication, real-time data streaming, and efficient order placement across equities and derivatives.
The integration begins with creating an app via the Pocketful Developer Portal. This app generates the required credentials for secure API access.
Step-by-Step Guide to Registering Your App
Step 1 – Visit the Developer Portal Go to and log in with your registered email ID or client ID.
Step 2 – Navigate to 'Apps' and Create a New App Click on “+ Create App”.
Step 3 – Fill App Details
App Name: OpenAlgo
Redirect URL: http://127.0.0.1:5000/pocketful/callback
Accept the terms and conditions and click Create App
Once created, the following credentials will be generated:
App ID → use as API_KEY
App Secret → use as API_SECRET
Pocketful follows OAuth2-based authentication using redirect URI and access tokens. After app creation, OpenAlgo uses the client credentials to initiate authorization and securely fetch access tokens.
Here is a sample of how the details would appear in a .env
file for reference:
Once your .env
file is populated with the credentials, OpenAlgo can initiate the login flow. This can be triggered locally:
You will be redirected to Pocketful’s login screen. After successful login, the access token will be retrieved and stored locally, completing the authentication process.
Integrating OpenAlgo with Pocketful's API allows traders and developers to leverage a powerful, cost-effective, and scalable infrastructure for building and deploying fully automated trading strategies. To ensure smooth performance, it is advisable to manage API limits, rotate tokens securely, and build retry/error-handling logic in production systems.