Introduction

In the fast-paced world of finance, staying ahead of the curve is really important. Algorithmic trading or algo trading, has revolutionized the way traders operate in the market, enabling them to execute complex strategies with speed and precision. However, for many aspiring traders, the barrier to entry into algorithmic trading has traditionally been high, often requiring advanced programming skills and intricate technical knowledge.
But we here at Pocketful believe that breaking into algorithmic trading doesn’t necessarily demand a background in programming. At Pocketful, we’re reshaping the landscape of algorithmic trading by providing seamless APIs that empower traders of all skill level to leverage the power of algorithms effortlessly.
Prerequisites
You don’t need to be a coding wizard to excel – simply follow our lead, and we’ll guide you every step of the way. Whether you’re a seasoned trader looking to automate your strategies or a newcomer eager to explore the possibilities, our platform empowers you to dive into algo. trading with ease.
What you need is: – A computer system – A stable internet connection – An active trading account with Pocketful
Language Agnostic APIs
Our trading system is built on RESTful HTTP APIs, making it accessible from any programming language that supports HTTP requests (Python, Node.js, Go, Java, C++, etc.). You can interact with our servers using standard tools like cURL or library-specific HTTP clients.
!!! Note We are actively working on releasing language-specific SDKs for various programming languages (Node.js, Go, etc.) very soon to make integration even easier.
!!! Info “API Base URL” The base URL for all REST API endpoints is:
`https://algo.pocketful.in`
Postman Collection
To make testing even easier, we have provided a Postman collection that you can use to explore and test our APIs directly.
Python SDK (Optional)
Installation
Install the Pocketful Python SDK using the following command:
pip install pocketful
To upgrade to the latest version:
pip install --upgrade pocketful
This installs the Pocketful Python SDK along with all required dependencies. Once installed, you can start integrating Pocketful APIs into your Python applications.
You can now import the pocketful module and initialize the client:
from pocketful import Pocketful
pocket = Pocketful()
pocket.clientId = "YOUR_CLIENT_ID"
pocket.access_token = "YOUR_ACCESS_TOKEN"
Note: We recommend using Python 3.11 for the Pocketful Python SDK to ensure compatibility with all supported features and dependencies.
JavaScript SDK (Optional)
For developers using JavaScript, we provide a dedicated SDK that wraps our raw HTTP APIs into convenient methods. This allows you to get started quickly without handling raw HTTP requests.
Link to JavaScript SDK on GitHub
How to Set Up the JavaScript SDK
1. Clone the GitHub Repository
git clone https://github.com/pocketful-tech/pocketfulapi-javascript.git
2. Navigate to the Project Directory
cd pocketfulapi-javascript
3. Install Dependencies
Install all required packages listed in package.json:
npm install
Required dependencies include:
axios→ Used for making HTTP/API requestsws→ Used for WebSocket connections
Note (Windows PowerShell users):
If
npm installfails with an execution policy error, run:npm.cmd installAlternatively, use Command Prompt (CMD) instead of PowerShell.
4. Configure Credentials
Update demo.js:
const api = new Pocketful({
clientId:"client_id",
access_token:"access_token"
});
5. Run the Demo
node demo.js
After completing the setup, you can explore the examples provided in the demo.js file.