Add attribute to finalPnl
This commit is contained in:
@@ -1,21 +1,20 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</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>
|
|
||||||
<ProjectReference Include="..\Managing.Application.Workers\Managing.Application.Workers.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Managing.Application.Workers\Managing.Application.Workers.csproj"/>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user