Yese.Core 1.1.1

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

Yese.Core

CTP 策略系统核心接口库,提供策略开发所需的核心接口和数据模型。

功能

  • ITrader: 交易接口,封装底层交易功能
  • IQuoter: 行情接口,封装行情订阅功能
  • IStrategy: 策略接口,定义策略生命周期
  • 数据模型: AccountFundField、PositionField、OrderField、TradeField、MarketDataField 等

使用方法

安装

dotnet add package Yese.Core

实现策略

using Yese.Core;

public class MyStrategy : IStrategy
{
    public string Name => "MyStrategy";
    
    public void Start()
    {
        // 策略启动逻辑
    }
    
    public void Stop()
    {
        // 策略停止逻辑
    }
    
    public void OnTick(MarketDataField tick)
    {
        // 处理行情数据
    }
}

版本历史

| 版本 | 日期 | 变动 | | 1.1.1 | 2026-05-07 | 自动发布 | | 1.0.3 | 2026-05-04 | 自动发布 | | 1.0.1 | 2026-05-01 | 自动发布 | |------|------|------| | 1.0.0 | 2026-05-01 | 初始版本,包含核心接口和数据模型 |

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
1.1.1 94 5/7/2026
1.0.3 97 5/4/2026
1.0.1 95 5/1/2026