feat: Add category performance, update WebUI and OpenRouter integration, fix bugs

This commit is contained in:
Richard
2026-07-05 14:13:16 +02:00
parent d102af2965
commit e9e9ce0d5a
30 changed files with 2302 additions and 54 deletions
@@ -279,6 +279,8 @@ public class PolymarketProvider : IPlatformProvider
{
long.TryParse(raw.Id, out var marketNumericId);
var catMap = Predictalytics.Infrastructure.Helpers.MarketCategoryMapper.Map(raw.Category ?? "", parentTags);
var market = new Market
{
Platform = PlatformType.Polymarket,
@@ -289,7 +291,8 @@ public class PolymarketProvider : IPlatformProvider
Description = raw.Description,
ImageUrl = raw.Image,
Question = raw.Question,
Category = string.IsNullOrWhiteSpace(raw.Category) ? parentTags : raw.Category,
Category = catMap.Category,
Subcategory = catMap.Subcategory,
Volume = (decimal)raw.Volume,
Volume24h = (decimal)raw.Volume24hr,
Liquidity = (decimal)raw.Liquidity,