StockSharp.Btce 5.0.189

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package StockSharp.Btce --version 5.0.189
                    
NuGet\Install-Package StockSharp.Btce -Version 5.0.189
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StockSharp.Btce" Version="5.0.189" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StockSharp.Btce" Version="5.0.189" />
                    
Directory.Packages.props
<PackageReference Include="StockSharp.Btce" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StockSharp.Btce --version 5.0.189
                    
#r "nuget: StockSharp.Btce, 5.0.189"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StockSharp.Btce@5.0.189
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StockSharp.Btce&version=5.0.189
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Btce&version=5.0.189
                    
Install as a Cake Tool

BTC-e (WEX) Connector for StockSharp

Overview

This project contains the source code of the BtceMessageAdapter, a connector used to interact with the BTC‑e crypto exchange (later renamed to WEX). The adapter is implemented as part of the StockSharp trading framework and provides both real‑time market data and transactional capabilities.

Features

  • Market Data: Receives ticks, order books and level 1 information through a WebSocket connection. Historical data can be downloaded via the REST API.
  • Trading Operations: Supports registration and cancellation of limit orders. Conditional orders are used to perform withdrawals.
  • Portfolio Information: The adapter retrieves account balances and updates positions based on trades and wallet changes.
  • Configurable Connection: API access is configured with a key and secret as well as a domain address (default value is https://wex.nz/).
  • Pusher WebSocket Client: Real‑time market updates are delivered by the internal PusherClient class located under Native.

File Structure

  • BtceMessageAdapter.cs – core adapter implementation and initialization logic.
  • BtceMessageAdapter_MarketData.cs – market data subscription handling.
  • BtceMessageAdapter_Transaction.cs – order registration, cancellations and portfolio management.
  • BtceMessageAdapter_Settings.cs – adapter settings including API key, secret and heartbeat interval.
  • BtceOrderCondition.cs – order condition class for withdrawal operations.
  • Native/ – low level protocol helpers such as the REST HttpClient and WebSocket PusherClient.

Installation

  1. Add the StockSharp connectors to your solution via the StockSharp NuGet feed.
  2. Include the Btce project or compiled assembly in your application.
  3. Reference BtceMessageAdapter from your trading connector.

Usage Example

var connector = new Connector();
var adapter = new BtceMessageAdapter(connector.TransactionIdGenerator)
{
    Key = "YOUR_API_KEY".ToSecureString(),
    Secret = "YOUR_SECRET".ToSecureString(),
    Address = BtceMessageAdapter.DefaultDomain,
};

connector.Adapter.InnerAdapters.Add(adapter);
connector.Connect();

// request available instruments
connector.LookupSecurities(new SecurityLookupMessage());

// place a limit order
await connector.RegisterOrderAsync(new OrderRegisterMessage
{
    SecurityId = "BTC/USD".ToSecurityId(BoardCodes.Btce),
    Side = Sides.Buy,
    OrderType = OrderTypes.Limit,
    Price = 650m,
    Volume = 0.1m,
});

Withdrawal can be performed by registering an order with a BtceOrderCondition instance containing the required withdrawal information.

Documentation

StockSharp documentation provides general instructions on working with message adapters: Creating your own connector.

Support

Questions and discussion can be posted in the StockSharp chat.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.193 39 8/27/2026
5.0.192 119 8/22/2026
5.0.191 264 8/22/2026
5.0.190 79 8/22/2026
5.0.189 74 8/22/2026
5.0.188 75 8/22/2026
5.0.187 75 8/22/2026
5.0.186 74 8/22/2026
5.0.185 79 8/22/2026
5.0.184 76 8/22/2026
5.0.183 78 8/22/2026
5.0.182 75 8/22/2026
5.0.181 75 8/22/2026
5.0.180 75 8/22/2026
5.0.179 77 8/22/2026
5.0.178 74 8/22/2026
5.0.177 76 8/22/2026
5.0.176 75 8/22/2026
5.0.175 73 8/22/2026
5.0.174 72 8/22/2026
Loading failed

Merge branch 'master' of https://github.com/StockSharp/stocksharp
Add detailed README for Btce connector