feat(Trades): refactor trades MQTT client and DTOs

This commit is contained in:
2026-08-09 21:01:42 +02:00
parent c74a4456af
commit e7427b7464
21 changed files with 3363 additions and 0 deletions
@@ -0,0 +1,101 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticTrades.Migrations
{
/// <inheritdoc />
public partial class ExpandTradeEntity : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "EntryZoneMax",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "EntryZoneMin",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FundamentalRationale",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<decimal>(
name: "MaxLeverage",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "RiskRewardRatio",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RiskWarning",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "TakeProfitTargets",
table: "trades",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "TechnicalRationale",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EntryZoneMax",
table: "trades");
migrationBuilder.DropColumn(
name: "EntryZoneMin",
table: "trades");
migrationBuilder.DropColumn(
name: "FundamentalRationale",
table: "trades");
migrationBuilder.DropColumn(
name: "MaxLeverage",
table: "trades");
migrationBuilder.DropColumn(
name: "RiskRewardRatio",
table: "trades");
migrationBuilder.DropColumn(
name: "RiskWarning",
table: "trades");
migrationBuilder.DropColumn(
name: "TakeProfitTargets",
table: "trades");
migrationBuilder.DropColumn(
name: "TechnicalRationale",
table: "trades");
}
}
}