undefined
The most advanced binary options trading library for Python, JavaScript, and Rust. Build sophisticated trading bots with real-time data streaming and automated execution.
Everything you need to build professional trading applications
Stream live market data with WebSocket connections. Get instant price updates, candlestick data, and market changes with sub-millisecond latency.
Execute complex trading strategies with AI-powered decision making. Support for Martingale, Anti-Martingale, and custom algorithms with intelligent risk management.
Native support for Python, JavaScript, and Rust. Deploy on Windows, Linux, macOS, Android, and iOS with identical functionality across all platforms.
Built-in technical indicators including RSI, MACD, Bollinger Bands, Moving Averages, and 50+ custom indicators for sophisticated market analysis.
Access years of historical market data for comprehensive backtesting. Test your strategies with Monte Carlo simulations and performance analytics.
Connect to multiple brokers simultaneously. Currently supports PocketOption with IQ Option, Olymp Trade, and Binomo integrations coming soon.
Rust-powered core with zero-copy operations and memory-safe concurrency. Handle 10,000+ operations per second with minimal resource usage.
Deploy on mobile devices, cloud platforms, and edge computing. Docker containers, serverless functions, and mobile app integrations supported.
Military-grade encryption, OAuth 2.0 authentication, API rate limiting, and comprehensive audit logging for enterprise-grade security compliance.
Explore our complete API documentation with interactive examples, detailed parameter descriptions, and real-world use cases.
Get up and running in under 5 minutes
pip install binaryoptionstoolsv2==0.1.6a3
For development versions: pip install --pre binaryoptionstoolsv2
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")
# 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}")
npm install @rick-29/binary-options-tools
Alternative: yarn add @rick-29/binary-options-tools
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();
// 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);
[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
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(())
}
// 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);