Add attribute to finalPnl
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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