Learn how to install and use Binary Options Tools V2 in just a few minutes.
pip install BinaryOptionsToolsV2Requires Python 3.7+ with pip installed.
npm install @rick-29/binary-options-toolsRequires Node.js 14+ with npm or yarn.
[dependencies]
binary-options-tools = "2.0"Add to your Cargo.toml file. Requires Rust 1.70+.
To use the API, you need your Pocket Option SSID (Session ID). Follow these steps:
Open your web browser and log in to pocketoption.com
Press F12 or right-click and select "Inspect"
Go to Application → Cookies → https://pocketoption.com
Look for the cookie named ssid and copy its value
Never share your SSID with anyone. It provides full access to your Pocket Option account. Keep it secure like a password!
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}")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);Now let's place your first trade. This example shows how to:
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")Join our community or get professional bot development services