feat(core): update DTOs, Trade Republic client, Yahoo scrapers, and dynamic settings
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace FinlyticCore.Dtos.TradeRepublic;
|
||||
|
||||
public record TradeRepublicDerivativeItemDto(
|
||||
[property: JsonPropertyName("isin")] string Isin = "",
|
||||
[property: JsonPropertyName("optionType")] string OptionType = "",
|
||||
[property: JsonPropertyName("productCategoryName")] string ProductCategoryName = "",
|
||||
[property: JsonPropertyName("nextGenProductCategoryName")] string NextGenProductCategoryName = "",
|
||||
[property: JsonPropertyName("barrier")] decimal? Barrier = null,
|
||||
[property: JsonPropertyName("leverage")] decimal? Leverage = null,
|
||||
[property: JsonPropertyName("strike")] decimal? Strike = null,
|
||||
[property: JsonPropertyName("size")] decimal? Size = null,
|
||||
[property: JsonPropertyName("factor")] decimal? Factor = null,
|
||||
[property: JsonPropertyName("delta")] decimal? Delta = null,
|
||||
[property: JsonPropertyName("currency")] string Currency = "EUR",
|
||||
[property: JsonPropertyName("expiry")] string? Expiry = null,
|
||||
[property: JsonPropertyName("issuerDisplayName")] string IssuerDisplayName = "",
|
||||
[property: JsonPropertyName("issuer")] string Issuer = "",
|
||||
[property: JsonPropertyName("issuerImageId")] string IssuerImageId = "",
|
||||
[property: JsonPropertyName("imageId")] string ImageId = ""
|
||||
);
|
||||
|
||||
public record TradeRepublicCursorsDto(
|
||||
[property: JsonPropertyName("before")] string? Before = null,
|
||||
[property: JsonPropertyName("after")] string? After = null
|
||||
);
|
||||
|
||||
public record TradeRepublicDerivativesResponse(
|
||||
[property: JsonPropertyName("results")] List<TradeRepublicDerivativeItemDto> Results,
|
||||
[property: JsonPropertyName("resultCount")] int ResultCount = 0,
|
||||
[property: JsonPropertyName("issuerCount")] Dictionary<string, int>? IssuerCount = null,
|
||||
[property: JsonPropertyName("cursors")] TradeRepublicCursorsDto? Cursors = null
|
||||
);
|
||||
Reference in New Issue
Block a user