| 12345678910111213141516171819202122 |
- using Application.Abstractions.Messaging;
- using Web.Api.Common;
- namespace Web.Api.Endpoints.Market;
- /// <summary>등락 상위 종목(메인) — 상승·하락·상한·하한 각 상위 5 + 스파크라인. 익명 열람.</summary>
- internal sealed class MarketMovers : IEndpoint
- {
- public void MapEndpoint(IEndpointRouteBuilder app)
- {
- app.MapGet("api/market/movers", async (
- ISender sender,
- CancellationToken ct
- ) => {
- var result = await sender.Send(new Application.Features.Api.Stocks.GetMarketMovers.Query(), ct);
- return ApiResponse.Ok(result);
- })
- .WithTags("Market")
- .AllowAnonymous();
- }
- }
|