MTTransfer 2.29.1

dotnet add package MTTransfer --version 2.29.1
                    
NuGet\Install-Package MTTransfer -Version 2.29.1
                    
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="MTTransfer" Version="2.29.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MTTransfer" Version="2.29.1" />
                    
Directory.Packages.props
<PackageReference Include="MTTransfer" />
                    
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 MTTransfer --version 2.29.1
                    
#r "nuget: MTTransfer, 2.29.1"
                    
#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 MTTransfer@2.29.1
                    
#: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=MTTransfer&version=2.29.1
                    
Install as a Cake Addin
#tool nuget:?package=MTTransfer&version=2.29.1
                    
Install as a Cake Tool

MTTransfer

A clean .NET 10 client wrapper over MoonTrader's MTShared UDP protocol (MTCore): typed Result errors, multiplexed market‑data subscriptions, fire‑and‑forget orders.

You provide MTShared.dll. It's MoonTrader's proprietary core library and is not bundled. Reference the MTShared.dll from your MoonTrader install. LiteNetLib comes as a dependency.

Install

dotnet add package MTTransfer

<Reference Include="MTShared">
  <HintPath>path\to\MoonTrader\MoonTrader_Data\Managed\MTShared.dll</HintPath>
</Reference>

Quick start

using MTTransfer;
using MTTransfer.Data;
using MTTransfer.Managers.Modules;
using MTShared.Types;

using var core = new MTCore();

core.SetConnectionInfo(new ConnectionInfoData {
    Name = "main", ExchangeType = ExchangeType.BINANCE,
    ClientToken = "<token>", Address = "127.0.0.1", Port = 9000,
});

core.RegisterModule<TradePairsModule>();
core.RegisterModule<DepthModule>();
core.RegisterModule<OrdersModule>();

core.OnReadyChanged += ready => { /* gate UI on ready */ };
core.Connect();

var depth = core.GetModule<DepthModule>().Value!;
depth.SubscribeDepth(subscriberId, MarketType.SPOT, "BTCUSDT", upd => { /* bids / asks */ });

Modules

Module Purpose
TradePairsModule Exchange info / symbols
DepthModule Order book
TradesModule Trade stream + history
KlineModule Candles (live + one‑shot)
MarketLiveModule Live market metrics
OrdersModule Place / move / cancel / panic‑sell
UDSModule Order state (user data stream)
CoreStatusModule Core heartbeat
NotificationsModule Push events (fills, errors, API limits, …)

Notes

  • Errors: every public call returns Result / Result<T> — no exceptions thrown.
  • Orders are fire‑and‑forget (MTShared has no per‑command callback). Observe outcomes via UDSModule (order state) and NotificationsModule (events).
  • Threading: callbacks run on the event‑pump thread — keep them fast, don't block.
  • Version: <wrapper>.<mtshared>.<patch>2.29.0 targets MTShared Sprint29.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
2.29.1 69 6/10/2026
2.29.0 71 6/10/2026