feat: Add category performance, update WebUI and OpenRouter integration, fix bugs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user