Documentation/Getting Started

Getting Started

Learn how to install and use Binary Options Tools V2 in just a few minutes.

Installation

Python

bash
pip install BinaryOptionsToolsV2

Requires Python 3.7+ with pip installed.

JavaScript / Node.js

bash
npm install @rick-29/binary-options-tools

Requires Node.js 14+ with npm or yarn.

Rust

toml
[dependencies]
binary-options-tools = "2.0"

Add to your Cargo.toml file. Requires Rust 1.70+.

Getting Your SSID

To use the API, you need your Pocket Option SSID (Session ID). Follow these steps:

1

Log in to Pocket Option

Open your web browser and log in to pocketoption.com

2

Open Developer Tools

Press F12 or right-click and select "Inspect"

3

Navigate to Application Tab

Go to Application → Cookies → https://pocketoption.com

4

Find SSID Cookie

Look for the cookie named ssid and copy its value

Security Note

Never share your SSID with anyone. It provides full access to your Pocket Option account. Keep it secure like a password!

Quick Start

Python Example

quickstart.py
from BinaryOptionsToolsV2.pocketoption import PocketOption
import time

# Initialize API
api = PocketOption(ssid="your-session-id")
time.sleep(5)  # Wait for connection

# Get balance
balance = api.balance()
print(f"Balance: ${balance}")

JavaScript Example

quickstart.js
const { PocketOption } = require('@rick-29/binary-options-tools');

async function main() {
  // Initialize API
  const api = new PocketOption('your-session-id');
  await new Promise(resolve => setTimeout(resolve, 5000));
  
  // Get balance
  const balance = await api.balance();
  console.log(`Balance: $${balance}`);
}

main().catch(console.error);

Your First Trade

Now let's place your first trade. This example shows how to:

  • Connect to Pocket Option
  • Check your balance
  • Place a CALL trade
  • Wait for the result
  • Check if you won
first_trade.py
from BinaryOptionsToolsV2.pocketoption import PocketOption
import time

# Initialize
api = PocketOption(ssid="your-session-id")
time.sleep(5)

# Check balance
balance = api.balance()
print(f"Current balance: ${balance}")

# Place a trade
print("Placing trade...")
trade_id, trade_data = api.buy(
    asset="EURUSD_otc",
    amount=1.0,
    time=60,
    action="call"
)
print(f"Trade placed! ID: ${trade_id}")

# Wait for trade to complete (60 seconds + buffer)
print("Waiting for trade to complete...")
time.sleep(65)

# Check result
result = api.check_win(trade_id)
if result:
    print("You won!")
else:
    print("Trade lost")

Next Steps

Need Help?

Join our community or get professional bot development services