undefined

BinaryOptionsTools V2

The most advanced binary options trading library for Python, JavaScript, and Rust. Build sophisticated trading bots with real-time data streaming and automated execution.

3 Languages
50+ Functions
24/7 Real-time Data
# Quick Start - Python
from BinaryOptionsToolsV2.pocketoption import PocketOption
import time

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

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

# Place a trade
trade_id, trade_data = api.buy(
    asset="EURUSD_otc", 
    amount=1.0, 
    time=60
)
print(f"Trade placed: {trade_id}")
// Quick Start - JavaScript
const { PocketOption } = require('@rick-29/binary-options-tools');

async function main() {
    // Initialize the API
    const api = new PocketOption('your-session-id');
    await new Promise(resolve => setTimeout(resolve, 5000));
    
    // Get account balance
    const balance = await api.balance();
    console.log(`Balance: $${balance}`);
    
    // Place a trade
    const tradeData = await api.buy({
        asset: "EURUSD_otc",
        amount: 1.0,
        time: 60
    });
    console.log('Trade placed:', tradeData);
}

main().catch(console.error);
// Quick Start - Rust
use binary_options_tools::PocketOption;
use tokio;

#[tokio::main]
async fn main() -> Result<(), Box> {
    // Initialize the API
    let api = PocketOption::new("your-session-id").await?;
    
    // Get account balance
    let balance = api.balance().await?;
    println!("Balance: ${}", balance);
    
    // Place a trade
    let trade_data = api.buy("EURUSD_otc", 1.0, 60).await?;
    println!("Trade placed: {:?}", trade_data);
    
    Ok(())
}

Powerful Features

Everything you need to build professional trading applications

Real-time Data Streaming

Stream live market data with WebSocket connections. Get instant price updates, candlestick data, and market changes with sub-millisecond latency.

<1ms latency WebSocket powered

Advanced Trading Automation

Execute complex trading strategies with AI-powered decision making. Support for Martingale, Anti-Martingale, and custom algorithms with intelligent risk management.

AI-powered Risk managed

Multi-language & Cross-platform

Native support for Python, JavaScript, and Rust. Deploy on Windows, Linux, macOS, Android, and iOS with identical functionality across all platforms.

Python JavaScript Rust

Advanced Technical Analysis

Built-in technical indicators including RSI, MACD, Bollinger Bands, Moving Averages, and 50+ custom indicators for sophisticated market analysis.

50+ indicators Custom signals

Historical Data & Backtesting

Access years of historical market data for comprehensive backtesting. Test your strategies with Monte Carlo simulations and performance analytics.

5+ years data Monte Carlo

Multi-broker Support

Connect to multiple brokers simultaneously. Currently supports PocketOption with IQ Option, Olymp Trade, and Binomo integrations coming soon.

Multi-broker Synchronized

Ultra-high Performance

Rust-powered core with zero-copy operations and memory-safe concurrency. Handle 10,000+ operations per second with minimal resource usage.

10k+ ops/sec Zero-copy

Mobile & Cloud Ready

Deploy on mobile devices, cloud platforms, and edge computing. Docker containers, serverless functions, and mobile app integrations supported.

Docker ready Cloud native

Enterprise Security

Military-grade encryption, OAuth 2.0 authentication, API rate limiting, and comprehensive audit logging for enterprise-grade security compliance.

AES-256 OAuth 2.0

Comprehensive API Reference

Explore our complete API documentation with interactive examples, detailed parameter descriptions, and real-world use cases.

Interactive Examples Try API calls directly in your browser
Multi-language Samples Python, JavaScript, Rust code examples
Searchable Documentation Find any method or parameter instantly
Postman Collection Import and test all endpoints easily

Quick Installation

Get up and running in under 5 minutes

1. Install via pip

pip install binaryoptionstoolsv2==0.1.6a3

For development versions: pip install --pre binaryoptionstoolsv2

2. Import and initialize

from BinaryOptionsToolsV2.pocketoption import PocketOption
import time

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

# Verify connection
if api.check_connect():
    print("✅ Connected successfully!")
else:
    print("❌ Connection failed")

3. First trade example

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

# Place a trade
trade_id, trade_data = api.buy(
    asset="EURUSD_otc", 
    amount=1.0, 
    time=60,  # 1 minute
    action="call"  # or "put"
)
print(f"Trade placed: {trade_id}")

# Check trade result
result = api.check_win(trade_id)
print(f"Trade result: {result}")

Requirements & Platform Support

Python 3.9 - 3.12 Latest stable versions
Windows 10/11 Full support
Linux Coming soon
macOS Coming soon

1. Install via npm

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

Alternative: yarn add @rick-29/binary-options-tools

2. Import and initialize

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

async function initAPI() {
    // Initialize with your session ID
    const api = new PocketOption('your-session-id');
    
    // Wait for connection
    await new Promise(resolve => setTimeout(resolve, 5000));
    
    // Verify connection
    const isConnected = await api.checkConnect();
    if (isConnected) {
        console.log('✅ Connected successfully!');
        return api;
    } else {
        throw new Error('❌ Connection failed');
    }
}

const api = await initAPI();

3. First trade example

// Get account balance
const balance = await api.balance();
console.log(`Account Balance: $${balance}`);

// Place a trade
const tradeData = await api.buy({
    asset: "EURUSD_otc",
    amount: 1.0,
    time: 60,  // 1 minute
    action: "call"  // or "put"
});
console.log('Trade placed:', tradeData);

// Check trade result
const result = await api.checkWin(tradeData.id);
console.log('Trade result:', result);

Requirements & Platform Support

Node.js 16+ LTS versions recommended
Cross-platform Windows, Linux, macOS
Browser Support Modern browsers
Framework Ready React, Vue, Angular

1. Add to Cargo.toml

[dependencies]
binary-options-tools = "0.1.0"
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

Run: cargo add binary-options-tools tokio serde serde_json

2. Import and initialize

use binary_options_tools::PocketOption;
use std::time::Duration;
use tokio::time::sleep;

#[tokio::main]
async fn main() -> Result<(), Box> {
    // Initialize with your session ID
    let api = PocketOption::new("your-session-id").await?;
    
    // Wait for connection
    sleep(Duration::from_secs(5)).await;
    
    // Verify connection
    if api.check_connect().await? {
        println!("✅ Connected successfully!");
    } else {
        return Err("❌ Connection failed".into());
    }
    
    Ok(())
}

3. First trade example

// Get account balance
let balance = api.balance().await?;
println!("Account Balance: ${}", balance);

// Place a trade
let trade_data = api.buy(
    "EURUSD_otc", 
    1.0, 
    60,  // 1 minute
    "call"  // or "put"
).await?;
println!("Trade placed: {:?}", trade_data);

// Check trade result
let result = api.check_win(&trade_data.id).await?;
println!("Trade result: {:?}", result);

Requirements & Platform Support

Rust 1.70+ Stable toolchain
Multi-architecture x86, ARM, RISC-V
Async Runtime Tokio powered
Zero-copy Memory efficient

Ready to Start Trading?

Explore comprehensive examples and advanced features

Browse Examples

Explore 40+ practical examples covering all trading operations

View Examples

API Reference

Complete API documentation with detailed endpoint information

View API Docs

Get Your SSID

Learn how to extract your session ID for authentication

SSID Tutorial
undefined undefined