From 775c64cd2d034cfc3d0cf4e82c6ca89b11b81f17 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Dec 2025 18:31:12 +0000 Subject: [PATCH 1/2] Initial plan From 0e821ea2a2ca82afb4c9b5083b4dcd344b05a7ab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Dec 2025 18:34:23 +0000 Subject: [PATCH 2/2] Add Termux setup guide documentation Co-authored-by: theshadow76 <59869868+theshadow76@users.noreply.github.com> --- docs/api.html | 1 + docs/assets-timeframes.html | 1 + docs/examples.html | 1 + docs/faq.html | 1 + docs/index.html | 1 + docs/quickstart.html | 1 + docs/termux-setup.html | 118 ++++++++++++++++++++++++++++++++++++ 7 files changed, 124 insertions(+) create mode 100644 docs/termux-setup.html diff --git a/docs/api.html b/docs/api.html index 1b9656b..820e504 100644 --- a/docs/api.html +++ b/docs/api.html @@ -16,6 +16,7 @@

PocketOptionAPI Async

API Reference Examples Assets & Timeframes + Termux Setup FAQ diff --git a/docs/assets-timeframes.html b/docs/assets-timeframes.html index fba766e..432a2fa 100644 --- a/docs/assets-timeframes.html +++ b/docs/assets-timeframes.html @@ -63,6 +63,7 @@

PocketOptionAPI Async

API Reference Examples Assets & Timeframes + Termux Setup FAQ diff --git a/docs/examples.html b/docs/examples.html index e3782fb..9b546fb 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -16,6 +16,7 @@

PocketOptionAPI Async

API Reference Examples Assets & Timeframes + Termux Setup FAQ diff --git a/docs/faq.html b/docs/faq.html index 83840f7..4bc07e9 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -16,6 +16,7 @@

PocketOptionAPI Async

API Reference Examples Assets & Timeframes + Termux Setup FAQ diff --git a/docs/index.html b/docs/index.html index 967f152..393cd01 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,6 +16,7 @@

PocketOptionAPI Async

API Reference Examples Assets & Timeframes + Termux Setup FAQ diff --git a/docs/quickstart.html b/docs/quickstart.html index d80f5bb..347eddb 100644 --- a/docs/quickstart.html +++ b/docs/quickstart.html @@ -16,6 +16,7 @@

PocketOptionAPI Async

API Reference Examples Assets & Timeframes + Termux Setup FAQ diff --git a/docs/termux-setup.html b/docs/termux-setup.html new file mode 100644 index 0000000..1807b3a --- /dev/null +++ b/docs/termux-setup.html @@ -0,0 +1,118 @@ + + + + + + Termux Setup - PocketOptionAPI Async Docs + + + + +
+

PocketOptionAPI Async

+ +
+
+

Environment Setup Guide for Termux

+

This guide will help you set up PocketOptionAPI on Termux, allowing you to run trading scripts directly from your Android device.

+ +
+

1. Termux Installation

+

First, you need to install Termux on your Android device:

+ +
+ +
+

2. Update Termux Packages

+

After installing Termux, open it and update the package repository:

+
pkg update && pkg upgrade
+

Press Y when prompted to confirm the updates.

+
+ +
+

3. Install Required Packages

+

Install Python and Git, which are required to run PocketOptionAPI:

+
pkg install python git
+
+ +
+

4. Clone the Repository

+

Clone the PocketOptionAPI repository to your Termux environment:

+
git clone https://github.com/ChipaDevTeam/PocketOptionAPI.git
+cd PocketOptionAPI
+
+ +
+

5. Install Python Dependencies

+

Install all required Python packages using pip:

+
pip install -r requirements.txt
+

Note: This may take several minutes depending on your internet connection.

+
+ +
+

6. Configuration

+

Set up your API credentials:

+
    +
  1. Copy the example environment file: +
    cp .env.example .env
    +
  2. +
  3. Edit the .env file with your SSID: +
    nano .env
    +
  4. +
  5. Add your SSID (see Quickstart guide for how to get your SSID): +
    SSID = '42["auth",{"session":"your_session_here","isDemo":1,"uid":12345,"platform":1}]'
    +
  6. +
  7. Save and exit (Press Ctrl+X, then Y, then Enter)
  8. +
+
+ +
+

7. Run Your First Script

+

Test your setup by running one of the example scripts:

+
python examples/get_balance.py
+

If everything is configured correctly, you should see your account balance displayed.

+
+ +
+

Common Issues and Solutions

+

WebSocket Connection Error

+

If you encounter a WebSocket connection error with extra_headers, fix it by:

+
pip uninstall websockets
+pip install websockets==11.0
+ +

Permission Denied Errors

+

If you get permission errors when installing packages:

+
termux-setup-storage
+

Grant storage permissions when prompted.

+ +

Memory Issues

+

If installation fails due to memory constraints, try installing packages one at a time or close other apps to free up RAM.

+
+ +
+

Next Steps

+ +
+ + +
+ + +