Add attribute to finalPnl

This commit is contained in:
2025-07-16 22:29:29 +07:00
parent b547c01787
commit 1e1b8b34c1
2 changed files with 18 additions and 16 deletions

View File

@@ -7,15 +7,14 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="InfluxDB.Client" Version="4.14.0" /> <PackageReference Include="InfluxDB.Client" Version="4.14.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" /> <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1"/>
<PackageReference Include="MongoDB.Bson" Version="2.25.0" /> <PackageReference Include="MongoDB.Bson" Version="2.25.0"/>
<PackageReference Include="MongoDB.Driver" Version="2.25.0" /> <PackageReference Include="MongoDB.Driver" Version="2.25.0"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Managing.Application.Workers\Managing.Application.Workers.csproj" /> <ProjectReference Include="..\Managing.Application.Workers\Managing.Application.Workers.csproj"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,12 +1,15 @@
using Exilion.TradingAtomics; using Exilion.TradingAtomics;
using Managing.Infrastructure.Databases.MongoDb.Attributes; using Managing.Infrastructure.Databases.MongoDb.Attributes;
using Managing.Infrastructure.Databases.MongoDb.Configurations; using Managing.Infrastructure.Databases.MongoDb.Configurations;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Managing.Infrastructure.Databases.MongoDb.Collections namespace Managing.Infrastructure.Databases.MongoDb.Collections
{ {
[BsonCollection("Backtests")] [BsonCollection("Backtests")]
public class BacktestDto : Document public class BacktestDto : Document
{ {
[BsonRepresentation(BsonType.Decimal128)]
public decimal FinalPnl { get; set; } public decimal FinalPnl { get; set; }
public int WinRate { get; set; } public int WinRate { get; set; }