Fix get tickers
This commit is contained in:
@@ -84,8 +84,8 @@ public class DataController : ControllerBase
|
||||
/// </summary>
|
||||
/// <param name="timeframe">The timeframe for which to retrieve tickers.</param>
|
||||
/// <returns>An array of tickers.</returns>
|
||||
[HttpPost("GetTickers")]
|
||||
public async Task<ActionResult<List<TickerInfos>>> GetTickers(Timeframe timeframe)
|
||||
[HttpGet("GetTickers")]
|
||||
public async Task<ActionResult<List<TickerInfos>>> GetTickers([FromQuery] Timeframe timeframe)
|
||||
{
|
||||
var cacheKey = string.Concat(timeframe.ToString());
|
||||
var tickers = _cacheService.GetValue<List<TickerInfos>>(cacheKey);
|
||||
|
||||
Reference in New Issue
Block a user