BleedingOnTheEdge.Razor.Sdk 1.0.0

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

Razor SDK (BleedingOnTheEdge.Razor.Sdk)

License: MIT .NET GitHub Org

The official developer SDK for building plugins, adapters, execution hooks, slots, and strategies for the Razor algorithmic trading platform.


🏛 Organization Context & Cross-Repo Topology

This repository is part of the BleedingOnTheEdge open and proprietary trading infrastructure:


📦 Overview & Architectural Role

The Razor SDK provides pure public contracts, domain types, hook interfaces (IHook, ISlot), and decorator attributes. It is completely decoupled from engine execution internals, providing a stable public API surface for extension developers and broker integrations.

Key Capabilities

  • Extension Interfaces: Build custom broker adapters (IBrokerAdapter), strategy models (StrategyBase), indicators (IIndicator), and neural network signal filters (INeuralNetworkModel).
  • Hook Framework: Intercept orders, ticks, bar closes, and lifecycle events (IOrderValidationHook, IOrderExecutionHook, ITickFilterHook).
  • Slot System: Inject custom behavior dynamically into predefined execution slots.
  • Zero Overhead: Engineered for ultra-low latency, cache-friendly memory layouts, and zero GC allocation in hot trading loops.

🚀 Installation

Add the package via the .NET CLI:

dotnet add package BleedingOnTheEdge.Razor.Sdk

Or reference it in your .csproj:

<PackageReference Include="BleedingOnTheEdge.Razor.Sdk" Version="1.0.0" />

💡 Quick Start: Developing an Adapter or Strategy

Creating a Custom Strategy

using Sdk;

public class MyCustomStrategy : StrategyBase
{
    public override void OnTick(in Tick tick)
    {
        // High-frequency market tick processing
    }
}

Implementing an Execution Hook

using Sdk;
using Sdk.Hooks;

[SdkVersion("1.0.0")]
public class RiskAuditHook : IOrderValidationHook
{
    public FilterResult ValidateOrder(in OrderRequest order, in HookContext context)
    {
        if (order.Quantity <= 0)
        {
            return FilterResult.Reject("Quantity must be positive");
        }
        return FilterResult.Accept();
    }
}

For full reference implementations including MetaTrader 5 and Nobitex adapters, see BleedingOnTheEdge/razor-samples.


💻 Building and Testing Locally

Prerequisites

# Build SDK solution and test projects
dotnet build Sdk.slnx

# Run all 583 unit and integration tests
dotnet test Sdk.slnx

🤝 Contributing & License

Contributions, issues, and feature requests are welcome! Distributed under the MIT License. See LICENSE for details.

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.
  • net10.0

    • No dependencies.

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
1.0.0 101 11/6/2026