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