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,37 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticTrades.Migrations
{
/// <inheritdoc />
public partial class AddIndexToTradeHourlyUpdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "FloatingPnlPercent",
table: "trade_hourly_updates",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_trade_hourly_updates_TradeId_Timestamp",
table: "trade_hourly_updates",
columns: new[] { "TradeId", "Timestamp" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_trade_hourly_updates_TradeId_Timestamp",
table: "trade_hourly_updates");
migrationBuilder.DropColumn(
name: "FloatingPnlPercent",
table: "trade_hourly_updates");
}
}
}