Ecng.Interop 1.0.315

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

Ecng.Interop

A comprehensive .NET library for Platform/Invoke (P/Invoke) operations and native code interoperability. This library provides safe, easy-to-use wrappers for working with unmanaged memory, native libraries, and low-level data structures.

Table of Contents

Overview

Ecng.Interop simplifies the complexity of interoperating with native code by providing:

  • Type-safe wrappers for unmanaged memory operations
  • Automatic memory management with safe handles
  • Helper methods for common marshaling scenarios
  • Optimized fixed-size string types for performance-critical interop scenarios
  • Utilities for loading and calling native libraries dynamically

Key Features

  • Safe Memory Management: RAII-style memory management with HGlobalSafeHandle and SafePointer
  • Dynamic Library Loading: Load and call functions from native DLLs at runtime
  • String Marshaling: Support for ANSI, Unicode, UTF-8, and BSTR string formats
  • Fixed-Size Strings: Pre-defined fixed-size string types (ASCII and UTF-8) for efficient marshaling
  • Pointer Reading/Writing: Sequential pointer reading with PtrReader and type-safe pointer operations
  • Blittable Types: Specialized types like BlittableDecimal for direct memory layout compatibility
  • Time Structures: Compact time representations optimized for interop scenarios
  • Cross-Platform: Works on Windows, Linux, and macOS

Installation

Add a reference to the Ecng.Interop project or include the compiled DLL in your project.

<ProjectReference Include="path\to\Ecng.Interop\Interop.csproj" />

Core Components

Dynamic Library Loading

Using DllLibrary Base Class

The DllLibrary class provides a managed way to load native libraries and access their functions.

using Ecng.Interop;

// Define your library wrapper
public class MyNativeLibrary : DllLibrary
{
    public MyNativeLibrary(string dllPath) : base(dllPath)
    {
        // Retrieve function pointers as delegates
        Add = GetHandler<AddDelegate>("Add");
        Multiply = TryGetHandler<MultiplyDelegate>("Multiply"); // Returns null if not found
    }

    // Define delegate types matching native function signatures
    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    private delegate int AddDelegate(int a, int b);

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    private delegate int MultiplyDelegate(int a, int b);

    // Public wrapper methods
    public Func<int, int, int> Add { get; }
    public Func<int, int, int> Multiply { get; }
}

// Usage
using (var lib = new MyNativeLibrary(@"C:\path\to\native.dll"))
{
    int result = lib.Add(10, 20); // Returns 30
    Console.WriteLine($"Result: {result}");

    // Check DLL version
    Console.WriteLine($"DLL Version: {lib.DllVersion}");
}
Manual Library Loading
using Ecng.Interop;

// Load library manually
IntPtr libraryHandle = Marshaler.LoadLibrary(@"C:\path\to\library.dll");

try
{
    // Get function pointer
    IntPtr funcPtr = libraryHandle.GetProcAddress("MyFunction");

    // Convert to delegate
    var myFunc = funcPtr.GetDelegateForFunctionPointer<MyFunctionDelegate>();

    // Call the function
    int result = myFunc(42);
}
finally
{
    // Free the library
    libraryHandle.FreeLibrary();
}

Memory Management

HGlobalSafeHandle

HGlobalSafeHandle provides automatic cleanup of unmanaged memory allocated with Marshal.AllocHGlobal.

using Ecng.Interop;

// Allocate 1024 bytes of unmanaged memory
using (var handle = 1024.ToHGlobal())
{
    IntPtr ptr = handle.DangerousGetHandle();

    // Use the memory
    Marshal.WriteInt32(ptr, 42);
    int value = Marshal.ReadInt32(ptr);

    Console.WriteLine($"Value: {value}"); // Output: Value: 42
}
// Memory is automatically freed when disposed

// Allocate and write a string
using (var handle = Encoding.UTF8.ToHGlobal("Hello, World!"))
{
    IntPtr ptr = handle.DangerousGetHandle();
    string decoded = Encoding.UTF8.ToString(ptr);
    Console.WriteLine(decoded); // Output: Hello, World!
}
SafePointer

SafePointer wraps an unmanaged pointer with bounds checking and automatic shifting.

using Ecng.Interop;

// Allocate memory
IntPtr memory = Marshal.AllocHGlobal(100);
try
{
    // Create a SafePointer with size boundary
    var safePtr = new SafePointer(memory, 100);

    // Read a value and auto-shift the pointer
    int value1 = safePtr.Read<int>(autoShift: true);
    int value2 = safePtr.Read<int>(autoShift: true);

    // Read a structure
    MyStruct myStruct = safePtr.ToStruct<MyStruct>(autoShift: true);

    // Copy to byte array
    byte[] buffer = new byte[20];
    safePtr.CopyTo(buffer, autoShift: true);

    // Manual shifting
    safePtr.Shift<long>(); // Shift by sizeof(long)
    safePtr.Shift(16);     // Shift by 16 bytes
}
finally
{
    Marshal.FreeHGlobal(memory);
}
GCHandle<T>

Generic wrapper around GCHandle for pinning managed objects.

using Ecng.Interop;

byte[] data = new byte[] { 1, 2, 3, 4, 5 };

// Pin the array in memory
using (var gcHandle = new GCHandle<byte[]>(data, GCHandleType.Pinned))
{
    // Create a safe pointer to the pinned data
    SafePointer pointer = gcHandle.CreatePointer();

    // Pass pointer to native code
    NativeFunction(pointer.Pointer);
}
// Array is automatically unpinned when disposed

Pointer Utilities

PtrReader

Sequential reading from unmanaged memory pointers.

using Ecng.Interop;

IntPtr dataPtr = GetSomeNativeData();

var reader = new PtrReader(dataPtr);

// Read various types sequentially
byte b = reader.GetByte();
short s = reader.GetShort();
int i = reader.GetInt();
long l = reader.GetLong();
IntPtr p = reader.GetIntPtr();

// Read null-terminated strings
string str1 = reader.GetString();

// Read fixed-length strings
string str2 = reader.GetString(20); // Read 20 characters
Direct Pointer Operations
using Ecng.Interop;

IntPtr ptr = Marshal.AllocHGlobal(100);
try
{
    // Write values
    ptr.Write<int>(42);
    (ptr + 4).Write<short>(100);
    (ptr + 6).Write<byte>(255);

    // Read values
    int intValue = ptr.Read<int>();
    short shortValue = (ptr + 4).Read<short>();
    byte byteValue = (ptr + 6).Read<byte>();

    // Copy to managed array
    byte[] buffer = new byte[10];
    ptr.CopyTo(buffer);
    ptr.CopyTo(buffer, offset: 0, length: 10);

    // Create spans (modern .NET)
    Span<byte> span = ptr.ToSpan(100);
    ReadOnlySpan<byte> roSpan = ptr.ToReadOnlySpan(100);
}
finally
{
    ptr.FreeHGlobal();
}

String Marshaling

The library provides comprehensive string marshaling for different encodings.

using Ecng.Interop;

// ANSI strings
string text = "Hello, World!";
IntPtr ansiPtr = text.FromAnsi();
try
{
    string decoded = ansiPtr.ToAnsi();
    Console.WriteLine(decoded);
}
finally
{
    Marshal.FreeHGlobal(ansiPtr);
}

// Unicode strings
IntPtr unicodePtr = text.FromUnicode();
try
{
    string decoded = unicodePtr.ToUnicode();
    Console.WriteLine(decoded);
}
finally
{
    Marshal.FreeHGlobal(unicodePtr);
}

// Platform-dependent (Auto)
IntPtr autoPtr = text.FromAuto();
try
{
    string decoded = autoPtr.ToAuto();
    Console.WriteLine(decoded);
}
finally
{
    Marshal.FreeHGlobal(autoPtr);
}

// BSTR (COM interop)
IntPtr bstrPtr = text.FromBSTR();
try
{
    string decoded = bstrPtr.ToBSTR();
    Console.WriteLine(decoded);
}
finally
{
    Marshal.FreeBSTR(bstrPtr);
}

// UTF-8 with unsafe pointers
unsafe
{
    byte* utf8Buffer = stackalloc byte[100];
    text.ToUtf8(utf8Buffer, 100);

    string decoded = 100.ToUtf8(utf8Buffer);
    Console.WriteLine(decoded);
}

// ASCII with unsafe pointers
unsafe
{
    byte* asciiBuffer = stackalloc byte[100];
    text.ToAscii(asciiBuffer, 100);

    string decoded = 100.ToAscii(asciiBuffer);
    Console.WriteLine(decoded);
}

Type Marshaling

Structure Marshaling
using Ecng.Interop;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential)]
public struct MyNativeStruct
{
    public int Id;
    public double Value;
    public byte Flag;
}

// Marshal from structure to pointer
MyNativeStruct data = new MyNativeStruct
{
    Id = 1,
    Value = 3.14,
    Flag = 1
};

IntPtr ptr = data.StructToPtr();
try
{
    // Pass ptr to native code
    NativeFunction(ptr);

    // Marshal back from pointer to structure
    MyNativeStruct result = ptr.ToStruct<MyNativeStruct>();
    Console.WriteLine($"ID: {result.Id}, Value: {result.Value}");
}
finally
{
    Marshal.FreeHGlobal(ptr);
}

// Get pointer and size
(IntPtr ptr, int size) = data.StructToPtrEx();
try
{
    Console.WriteLine($"Structure size: {size} bytes");
    // Use ptr and size
}
finally
{
    Marshal.FreeHGlobal(ptr);
}
BlittableDecimal

BlittableDecimal is a struct that matches the memory layout of decimal for direct marshaling.

using Ecng.Interop;

[StructLayout(LayoutKind.Sequential)]
public struct PriceData
{
    public int Quantity;
    public BlittableDecimal Price; // Can be marshaled directly
}

PriceData data = new PriceData
{
    Quantity = 100,
    Price = (BlittableDecimal)123.45m
};

// Marshal to unmanaged memory
IntPtr ptr = data.StructToPtr();
try
{
    // Pass to native code
    NativeFunction(ptr);

    // Read back
    PriceData result = ptr.ToStruct<PriceData>();
    decimal price = result.Price; // Implicit conversion
    Console.WriteLine($"Quantity: {result.Quantity}, Price: {price}");
}
finally
{
    Marshal.FreeHGlobal(ptr);
}

Fixed-Size Strings

Fixed-size string types provide efficient marshaling for scenarios where string length is known at compile time.

UTF-8 Fixed Strings
using Ecng.Interop;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential)]
public struct NetworkPacket
{
    public int PacketId;
    public Utf8String16 Symbol;    // 16 bytes
    public Utf8String32 Message;   // 32 bytes
    public Utf8String8 Source;     // 8 bytes
}

// Usage
NetworkPacket packet = new NetworkPacket
{
    PacketId = 123,
    Symbol = (Utf8String16)"AAPL",
    Message = (Utf8String32)"Order executed",
    Source = (Utf8String8)"NYSE"
};

// Convert to strings
string symbol = packet.Symbol;   // Implicit conversion
string message = packet.Message;
string source = packet.Source.ToString();

Console.WriteLine($"Symbol: {symbol}, Message: {message}");

// Available UTF-8 sizes: 1-33, 48, 64, 65, 128, 129, 256
ASCII Fixed Strings
using Ecng.Interop;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential)]
public struct LegacyRecord
{
    public int RecordId;
    public AsciiString32 Name;     // 32 bytes ASCII
    public AsciiString64 Address;  // 64 bytes ASCII
    public AsciiString16 City;     // 16 bytes ASCII
}

// Usage
LegacyRecord record = new LegacyRecord
{
    RecordId = 1,
    Name = (AsciiString32)"John Doe",
    Address = (AsciiString64)"123 Main Street",
    City = (AsciiString16)"New York"
};

// Convert to strings
string name = record.Name;      // Implicit conversion
string address = record.Address;
string city = record.City.ToString();

Console.WriteLine($"{name} from {city}");

// Available ASCII sizes: 1-32, 64, 128

Time Structures

Compact time representations optimized for native interop.

Time4Sec (4-byte time with second resolution)
using Ecng.Interop;

[StructLayout(LayoutKind.Sequential)]
public struct LogEntry
{
    public Time4Sec Timestamp;  // 4 bytes instead of 8
    public int EventId;
}

// Usage
LogEntry entry = new LogEntry
{
    Timestamp = (Time4Sec)DateTime.UtcNow,
    EventId = 123
};

// Convert to DateTime
DateTime dt = entry.Timestamp;  // Implicit conversion
DateTimeOffset dto = entry.Timestamp;

Console.WriteLine($"Event at: {dt}");
Console.WriteLine($"Formatted: {entry.Timestamp.ToString("yyyy-MM-dd HH:mm:ss", null)}");
Time8Mls (8-byte time with millisecond resolution)
using Ecng.Interop;

[StructLayout(LayoutKind.Sequential)]
public struct TradeData
{
    public Time8Mls ExecutionTime;
    public double Price;
    public int Volume;
}

// Usage
TradeData trade = new TradeData
{
    ExecutionTime = (Time8Mls)DateTime.UtcNow,
    Price = 150.25,
    Volume = 1000
};

DateTime executionTime = trade.ExecutionTime;
Console.WriteLine($"Trade executed at: {executionTime:yyyy-MM-dd HH:mm:ss.fff}");
Time8Mcs (8-byte time with microsecond resolution)
using Ecng.Interop;

[StructLayout(LayoutKind.Sequential)]
public struct HighFrequencyTick
{
    public Time8Mcs Timestamp;
    public double BidPrice;
    public double AskPrice;
}

// Usage
HighFrequencyTick tick = new HighFrequencyTick
{
    Timestamp = (Time8Mcs)DateTime.UtcNow,
    BidPrice = 100.50,
    AskPrice = 100.51
};

DateTime tickTime = tick.Timestamp;
Console.WriteLine($"Tick at: {tickTime:HH:mm:ss.ffffff}");
TimeNano (nanosecond resolution)
using Ecng.Interop;

[StructLayout(LayoutKind.Sequential)]
public struct PrecisionEvent
{
    public TimeNano Timestamp;
    public int EventType;
}

// Usage
PrecisionEvent evt = new PrecisionEvent
{
    Timestamp = (TimeNano)DateTime.UtcNow,
    EventType = 5
};

DateTime eventTime = evt.Timestamp;
Console.WriteLine($"Precise event time: {eventTime:O}");

Hardware Information

Generate hardware-based identifiers for licensing or device identification.

using Ecng.Interop;

// Synchronous
string hardwareId = HardwareInfo.GetId();
Console.WriteLine($"Hardware ID: {hardwareId}");

// Asynchronous
string hardwareIdAsync = await HardwareInfo.GetIdAsync();
Console.WriteLine($"Hardware ID: {hardwareIdAsync}");

// With cancellation
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(5));
try
{
    string id = await HardwareInfo.GetIdAsync(cts.Token);
    Console.WriteLine($"Hardware ID: {id}");
}
catch (OperationCanceledException)
{
    Console.WriteLine("Hardware ID retrieval timed out");
}

The hardware ID is generated based on:

  • Windows: CPU ID + Motherboard Serial Number (or MAC Address)
  • Linux: Root partition UUID
  • macOS: Platform UUID

Usage Examples

Complete Example: Calling Native Library

using Ecng.Interop;
using System.Runtime.InteropServices;

// Define the native structure
[StructLayout(LayoutKind.Sequential)]
public struct Point3D
{
    public double X;
    public double Y;
    public double Z;
}

// Create library wrapper
public class MathLibrary : DllLibrary
{
    public MathLibrary() : base("mathlib.dll")
    {
        CalculateDistance = GetHandler<CalculateDistanceDelegate>("CalculateDistance");
    }

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    private delegate double CalculateDistanceDelegate(IntPtr point1, IntPtr point2);

    private CalculateDistanceDelegate CalculateDistance;

    public double GetDistance(Point3D p1, Point3D p2)
    {
        IntPtr ptr1 = p1.StructToPtr();
        IntPtr ptr2 = p2.StructToPtr();
        try
        {
            return CalculateDistance(ptr1, ptr2);
        }
        finally
        {
            ptr1.FreeHGlobal();
            ptr2.FreeHGlobal();
        }
    }
}

// Usage
using (var lib = new MathLibrary())
{
    Point3D p1 = new Point3D { X = 0, Y = 0, Z = 0 };
    Point3D p2 = new Point3D { X = 3, Y = 4, Z = 0 };

    double distance = lib.GetDistance(p1, p2);
    Console.WriteLine($"Distance: {distance}"); // Output: Distance: 5
}

Complete Example: Working with Native Arrays

using Ecng.Interop;
using System.Runtime.InteropServices;

// Allocate array in unmanaged memory
int[] numbers = new int[] { 1, 2, 3, 4, 5 };
int sizeInBytes = sizeof(int) * numbers.Length;

using (var handle = sizeInBytes.ToHGlobal())
{
    IntPtr ptr = handle.DangerousGetHandle();

    // Copy managed array to unmanaged memory
    Marshal.Copy(numbers, 0, ptr, numbers.Length);

    // Create SafePointer for safe iteration
    var safePtr = new SafePointer(ptr, sizeInBytes);

    // Read values
    for (int i = 0; i < numbers.Length; i++)
    {
        int value = safePtr.Read<int>(autoShift: true);
        Console.WriteLine($"Value {i}: {value}");
    }
}

Complete Example: Reading Native Structure with Strings

using Ecng.Interop;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential)]
public unsafe struct UserData
{
    public int UserId;
    public AsciiString32 UserName;
    public AsciiString64 Email;
    public Time8Mls RegistrationDate;
}

// Read from native memory
IntPtr nativeDataPtr = GetUserDataFromNativeCode();

UserData user = nativeDataPtr.ToStruct<UserData>();

Console.WriteLine($"User ID: {user.UserId}");
Console.WriteLine($"Name: {(string)user.UserName}");
Console.WriteLine($"Email: {(string)user.Email}");
Console.WriteLine($"Registered: {(DateTime)user.RegistrationDate}");

Best Practices

Memory Management

  1. Always dispose resources: Use using statements for DllLibrary, HGlobalSafeHandle, and GCHandle<T>
  2. Prefer safe wrappers: Use SafePointer over raw IntPtr when possible for bounds checking
  3. Match allocation/deallocation: Use FreeHGlobal() for memory allocated with AllocHGlobal()
// Good
using (var handle = 1024.ToHGlobal())
{
    // Use memory
} // Automatically freed

// Avoid
IntPtr ptr = Marshal.AllocHGlobal(1024);
// ... might forget to free

String Marshaling

  1. Choose the right encoding: Use UTF-8 for modern APIs, ASCII for legacy systems
  2. Use fixed-size strings for structures: More efficient than string marshaling
  3. Be aware of null terminators: ANSI/Unicode strings are null-terminated
// Good for structures
[StructLayout(LayoutKind.Sequential)]
public struct Config
{
    public Utf8String32 Name;  // Fixed size, no allocation
}

// Avoid for structures (requires marshaling)
[StructLayout(LayoutKind.Sequential)]
public struct ConfigBad
{
    [MarshalAs(UnmanagedType.LPStr)]
    public string Name;  // Requires allocation and marshaling
}

Platform Considerations

  1. Check platform: Use OperatingSystem checks when necessary
  2. Handle pointer size: Use IntPtr.Size for platform-dependent sizes
  3. Test on target platforms: Marshaling behavior can differ between platforms
if (OperatingSystem.IsWindows())
{
    // Windows-specific code
}
else if (OperatingSystem.IsLinux())
{
    // Linux-specific code
}

Performance

  1. Pin arrays for bulk operations: Use GCHandle<T> to avoid copying
  2. Use stackalloc for small buffers: Avoid heap allocation when possible
  3. Batch operations: Minimize transitions between managed and unmanaged code
// Good: Single pinning for bulk operation
byte[] data = new byte[1000];
using (var handle = new GCHandle<byte[]>(data, GCHandleType.Pinned))
{
    SafePointer ptr = handle.CreatePointer();
    NativeBulkOperation(ptr.Pointer, data.Length);
}

// Avoid: Multiple small transitions
for (int i = 0; i < 1000; i++)
{
    NativeSingleOperation(data[i]); // Many transitions
}

Platform Support

  • .NET Standard 2.0: Compatible with .NET Framework 4.6.1+ and .NET Core 2.0+
  • .NET 6.0: Full support
  • .NET 10.0: Full support with latest features
  • Operating Systems: Windows, Linux, macOS

Dependencies

  • Ecng.Common: Core utilities
  • WmiLight: Windows Management Instrumentation for hardware info
  • Microsoft.Windows.CsWin32: Windows API source generator

Thread Safety

  • Most classes are not thread-safe by default
  • DllLibrary instances should not be shared between threads without synchronization
  • Memory allocation/deallocation is thread-safe (handled by the runtime)

License

This library is part of the StockSharp/Ecng project.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Ecng.Interop:

Package Downloads
StockSharp.Algo

Trading algorithms. More info on web site https://stocksharp.com/store/

StockSharp.Licensing

Licensing components. More info on web site https://stocksharp.com/store/

Ecng.Interop.Windows

Ecng system framework

Ecng.ManagedWinapi

Ecng system framework

StockSharp.RtsHistory

Trading and algorithmic trading platform (stock markets, forex, bitcoins and options). .NET API for InteractiveBrokers, GainCapital, OANDA, FIX/FAST, Binance etc. More info on web site https://stocksharp.com/store/api/

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Ecng.Interop:

Repository Stars
StockSharp/StockSharp
Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).
Version Downloads Last Updated
1.0.315 107 1/26/2026
1.0.314 81 1/26/2026
1.0.313 107 1/22/2026
1.0.312 91 1/22/2026
1.0.311 179 1/19/2026
1.0.310 90 1/18/2026
1.0.309 86 1/18/2026
1.0.308 94 1/16/2026
1.0.307 151 1/14/2026
1.0.306 94 1/13/2026
1.0.305 92 1/13/2026
1.0.304 193 1/9/2026
1.0.303 111 1/9/2026
1.0.302 204 1/8/2026
1.0.301 174 1/4/2026
1.0.300 116 1/1/2026
1.0.299 103 12/31/2025
1.0.298 108 12/30/2025
1.0.297 99 12/30/2025
1.0.296 98 12/29/2025
1.0.295 673 12/26/2025
1.0.294 668 12/26/2025
1.0.293 670 12/26/2025
1.0.292 691 12/26/2025
1.0.291 1,010 12/25/2025
1.0.290 1,052 12/25/2025
1.0.289 1,591 12/22/2025
1.0.288 1,762 12/21/2025
1.0.287 2,311 12/19/2025
1.0.286 2,370 12/19/2025
1.0.285 2,997 12/17/2025
1.0.284 3,442 12/15/2025
1.0.283 4,022 12/12/2025
1.0.282 4,086 12/12/2025
1.0.281 6,928 11/29/2025
1.0.280 6,781 11/28/2025
1.0.279 6,786 11/28/2025
1.0.278 6,840 11/27/2025
1.0.277 6,940 11/24/2025
1.0.276 6,853 11/24/2025
1.0.275 6,849 11/23/2025
1.0.274 6,901 11/22/2025
1.0.273 7,152 11/20/2025
1.0.272 7,103 11/18/2025
1.0.271 7,053 11/18/2025
1.0.270 7,042 11/13/2025
1.0.269 6,934 11/13/2025
1.0.268 6,926 11/10/2025
1.0.267 7,810 11/1/2025
1.0.266 6,904 10/28/2025
1.0.265 6,911 10/27/2025
1.0.264 6,860 10/27/2025
1.0.263 6,777 10/25/2025
1.0.262 7,858 10/3/2025
1.0.261 7,087 9/25/2025
1.0.260 11,907 8/30/2025
1.0.259 7,106 8/14/2025
1.0.258 9,938 7/14/2025
1.0.257 6,912 7/13/2025
1.0.256 6,856 7/13/2025
1.0.255 6,824 7/12/2025
1.0.254 7,351 7/8/2025
1.0.253 9,324 6/16/2025
1.0.252 7,037 6/9/2025
1.0.251 6,944 6/8/2025
1.0.250 7,500 5/21/2025
1.0.249 6,863 5/17/2025
1.0.248 7,541 5/12/2025
1.0.247 6,931 5/12/2025
1.0.246 6,927 5/12/2025
1.0.245 6,870 5/11/2025
1.0.244 6,867 5/11/2025
1.0.243 6,850 5/11/2025
1.0.242 6,858 5/11/2025
1.0.241 6,884 5/6/2025
1.0.240 6,877 5/2/2025
1.0.239 6,992 4/17/2025
1.0.238 6,930 4/12/2025
1.0.237 8,581 3/20/2025
1.0.236 6,896 3/19/2025
1.0.235 8,275 2/26/2025
1.0.234 6,849 2/26/2025
1.0.233 8,360 2/5/2025
1.0.232 6,942 1/21/2025
1.0.231 6,869 1/14/2025
1.0.230 6,852 1/12/2025
1.0.229 6,838 1/10/2025
1.0.228 9,618 11/18/2024
1.0.227 7,409 11/7/2024
1.0.226 7,016 10/19/2024
1.0.225 8,864 10/5/2024
1.0.224 8,478 9/18/2024
1.0.223 6,880 9/17/2024
1.0.222 8,110 9/4/2024
1.0.221 6,855 9/3/2024
1.0.220 6,863 9/1/2024
1.0.219 7,865 8/23/2024
1.0.218 6,896 8/22/2024
1.0.217 11,257 6/12/2024
1.0.216 7,644 5/28/2024
1.0.215 8,839 5/4/2024
1.0.214 8,065 4/14/2024
1.0.213 8,358 3/28/2024
1.0.212 6,921 3/17/2024
1.0.211 8,339 2/23/2024
1.0.210 6,883 2/23/2024
1.0.209 8,391 2/18/2024
1.0.208 6,880 2/16/2024
1.0.207 6,858 2/16/2024
1.0.206 7,743 2/13/2024
1.0.205 7,653 2/8/2024
1.0.204 7,888 2/4/2024
1.0.203 7,992 1/23/2024
1.0.202 7,588 1/12/2024
1.0.201 8,264 1/2/2024
1.0.200 6,891 12/29/2023
1.0.199 25,740 12/10/2023
1.0.198 28,089 11/12/2023
1.0.197 24,411 11/10/2023
1.0.196 24,387 11/10/2023
1.0.195 24,409 11/9/2023
1.0.194 24,434 11/3/2023
1.0.193 24,400 11/1/2023
1.0.192 24,396 11/1/2023
1.0.191 29,384 9/8/2023
1.0.190 24,440 9/8/2023
1.0.189 6,901 9/8/2023
1.0.188 6,943 9/6/2023
1.0.187 24,479 9/3/2023
1.0.186 24,547 8/21/2023
1.0.185 6,985 8/14/2023
1.0.184 24,514 8/10/2023
1.0.183 29,451 6/29/2023
1.0.182 26,777 5/27/2023
1.0.181 24,536 5/19/2023
1.0.180 26,355 5/14/2023
1.0.179 25,912 5/8/2023
1.0.178 7,079 4/21/2023
1.0.177 30,941 4/3/2023
1.0.176 24,776 3/13/2023
1.0.175 27,138 3/6/2023
1.0.174 7,106 2/26/2023
1.0.173 32,046 2/9/2023
1.0.172 27,344 2/7/2023
1.0.171 24,659 2/4/2023
1.0.170 27,610 2/2/2023
1.0.169 27,640 1/30/2023
1.0.168 7,215 1/18/2023
1.0.167 32,275 12/30/2022
1.0.166 7,167 12/23/2022
1.0.165 7,152 12/14/2022
1.0.164 7,127 12/14/2022
1.0.163 7,111 12/14/2022
1.0.162 7,145 12/14/2022
1.0.161 7,127 12/14/2022
1.0.160 28,820 12/12/2022
1.0.159 28,584 12/8/2022
1.0.158 7,205 12/4/2022
1.0.157 7,145 12/4/2022
1.0.156 24,745 11/30/2022
1.0.155 24,713 11/29/2022
1.0.154 24,722 11/28/2022
1.0.153 24,752 11/18/2022
1.0.152 29,427 11/11/2022
1.0.151 24,716 11/11/2022
1.0.150 7,199 11/10/2022
1.0.149 24,774 11/5/2022
1.0.148 24,738 11/4/2022
1.0.147 43,050 11/1/2022
1.0.146 45,448 10/16/2022
1.0.145 24,906 9/25/2022
1.0.144 7,353 9/10/2022
1.0.143 7,285 9/10/2022
1.0.142 66,612 9/8/2022
1.0.141 24,864 9/8/2022
1.0.140 7,282 9/8/2022
1.0.139 24,867 9/4/2022
1.0.138 24,835 9/4/2022
1.0.137 90,458 8/24/2022
1.0.136 24,926 8/8/2022
1.0.135 24,833 8/8/2022
1.0.134 24,895 7/26/2022
1.0.133 24,841 7/26/2022
1.0.132 67,567 7/19/2022
1.0.131 49,006 7/18/2022
1.0.130 24,904 7/13/2022
1.0.129 24,883 7/8/2022
1.0.128 24,913 6/30/2022
1.0.127 24,925 6/18/2022
1.0.126 24,898 6/6/2022
1.0.125 108,812 4/30/2022
1.0.124 24,914 4/20/2022
1.0.123 24,928 4/10/2022
1.0.122 24,875 4/7/2022
1.0.121 24,896 4/7/2022
1.0.120 24,953 4/2/2022
1.0.119 31,862 3/29/2022
1.0.118 24,863 3/27/2022
1.0.117 7,345 3/27/2022
1.0.116 109,867 2/20/2022
1.0.115 24,877 2/20/2022
1.0.114 24,896 2/20/2022
1.0.113 24,900 2/20/2022
1.0.112 24,912 2/20/2022
1.0.111 24,883 2/20/2022
1.0.110 24,899 2/20/2022
1.0.109 24,912 2/20/2022
1.0.108 24,868 2/20/2022
1.0.107 24,866 2/19/2022
1.0.106 146,125 1/24/2022
1.0.105 168,791 12/29/2021
1.0.104 49,913 12/20/2021
1.0.103 24,820 12/13/2021
1.0.102 50,082 12/7/2021
1.0.101 24,733 12/7/2021
1.0.100 50,182 12/6/2021
1.0.99 24,739 12/6/2021
1.0.98 24,730 12/5/2021
1.0.97 7,200 12/2/2021
1.0.96 51,589 11/29/2021
1.0.95 49,760 11/22/2021
1.0.94 24,850 11/17/2021
1.0.93 24,808 11/14/2021
1.0.92 50,780 11/13/2021
1.0.91 24,849 11/11/2021
1.0.90 24,774 11/11/2021
1.0.89 24,805 11/10/2021
1.0.88 24,814 11/9/2021
1.0.87 79,920 11/5/2021
1.0.86 24,822 11/5/2021
1.0.85 24,785 11/4/2021
1.0.84 24,789 11/4/2021
1.0.83 24,796 11/3/2021
1.0.82 24,882 10/30/2021
1.0.81 53,334 10/21/2021
1.0.80 24,892 10/17/2021
1.0.79 79,384 10/14/2021
1.0.78 29,045 10/13/2021
1.0.77 24,824 10/12/2021
1.0.76 53,248 10/11/2021
1.0.75 24,776 10/9/2021
1.0.74 39,002 10/7/2021
1.0.73 55,364 10/7/2021
1.0.72 24,773 10/7/2021
1.0.71 7,283 10/6/2021
1.0.70 24,860 9/28/2021
1.0.69 54,210 9/23/2021
1.0.68 24,891 9/11/2021
1.0.67 24,820 9/10/2021
1.0.66 24,821 9/9/2021
1.0.65 24,771 9/8/2021
1.0.64 24,820 9/8/2021
1.0.63 52,720 9/6/2021
1.0.62 7,278 8/31/2021
1.0.61 7,230 8/30/2021
1.0.60 53,670 7/31/2021
1.0.59 78,399 7/30/2021
1.0.58 24,852 7/26/2021
1.0.57 105,079 7/5/2021
1.0.56 24,859 7/1/2021
1.0.55 80,945 6/4/2021
1.0.54 106,178 4/26/2021
1.0.53 52,691 4/19/2021
1.0.52 158,464 4/7/2021
1.0.51 51,962 4/3/2021
1.0.50 167,903 3/22/2021
1.0.49 125,077 3/4/2021
1.0.48 52,009 2/26/2021
1.0.47 173,857 2/2/2021
1.0.46 57,771 1/26/2021
1.0.45 74,745 1/24/2021
1.0.44 7,299 1/24/2021
1.0.43 7,355 1/23/2021
1.0.42 57,601 1/20/2021
1.0.41 24,864 1/20/2021
1.0.40 50,028 1/18/2021
1.0.39 7,266 1/18/2021
1.0.38 49,139 1/16/2021
1.0.37 130,055 12/16/2020
1.0.36 76,832 12/14/2020
1.0.35 54,351 12/9/2020
1.0.34 25,234 12/7/2020
1.0.33 25,359 12/6/2020
1.0.32 25,271 12/2/2020
1.0.31 25,241 12/2/2020
1.0.30 50,901 12/1/2020
1.0.29 166,462 11/12/2020
1.0.29-atestpub 741 11/11/2020
1.0.28 50,848 10/11/2020
1.0.27 104,651 9/9/2020
1.0.26 49,616 9/3/2020
1.0.25 50,157 8/20/2020
1.0.24 98,535 8/9/2020
1.0.23 31,996 7/28/2020
1.0.22 49,438 7/19/2020
1.0.21 72,556 7/6/2020
1.0.20 98,803 6/6/2020
1.0.19 33,008 6/4/2020
1.0.18 56,791 5/29/2020
1.0.17 74,236 5/21/2020
1.0.16 7,923 5/17/2020
1.0.15 77,427 5/12/2020
1.0.14 129,575 5/4/2020
1.0.13 28,685 4/24/2020
1.0.12 11,601 4/22/2020
1.0.11 25,586 4/22/2020
1.0.10 25,611 4/21/2020
1.0.9 53,614 4/18/2020
1.0.8 34,022 4/16/2020
1.0.7 8,128 4/16/2020
1.0.6 47,783 4/15/2020
1.0.5 49,675 4/11/2020
1.0.4 49,099 4/3/2020
1.0.3 8,110 4/1/2020
1.0.2 36,247 3/27/2020
1.0.1 35,194 3/22/2020
1.0.0 10,010 3/22/2020