Skip to main content

C# Examples for BinaryOptionsTools

Example C# programs demonstrating the BinaryOptionsTools library with async/await.

Prerequisitesโ€‹

  • .NET 6+
  • BinaryOptionsTools NuGet package
dotnet add package BinaryOptionsToolsV2

Getting Your SSIDโ€‹

Visit PocketOption, open DevTools, find ssid cookie.

Running Examplesโ€‹

dotnet run --project basic.csproj
dotnet run --project balance.csproj

Examplesโ€‹

  • Basic.cs - Initialize and get balance
  • Balance.cs - Get account balance
  • Buy.cs - Place buy trade
  • Sell.cs - Place sell trade
  • CheckWin.cs - Check trade results
  • Subscribe.cs - Subscribe to real-time data

Importantโ€‹

using BinaryOptionsToolsV2;

var client = await PocketOption.InitAsync("your-ssid");
await Task.Delay(2000); // Critical!

var balance = await client.BalanceAsync();
Console.WriteLine($"Balance: ${balance}");

await client.ShutdownAsync();

Build strategies fasterโ€‹

  • โœจ ChipaEditor โ€” AI-powered algorithmic trading strategy builder: describe your edge, get a working CHTL strategy, backtest it on historical data, deploy it to a live broker. Free tier, browser and Android. (A trading platform โ€” not a general-purpose code editor.)
  • ๐Ÿ“ˆ ChipaX โ€” hybrid crypto exchange: perpetuals, spot and margin, with demo mode.
  • Chipa Ecosystem overview โ€” how these fit together with this library.