Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bleunguts committed Jan 28, 2024
1 parent 260258f commit f56a15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ProjectX.GatewayAPI/Controllers/BacktestServiceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public string Get()
return "Hello from BacktestServiceController";
}

[HttpGet("LongShortStrategyChartData")]
public async Task<ActionResult<IEnumerable<StrategyChartData>>> ComputeLongShortPnlStrategy(string ticker, DateTime fromDate, DateTime toDate, double notional, MovingAverageImpl movingAverageImpl = MovingAverageImpl.BollingerBandsImpl)
[HttpGet("LongShortPnlStrategyChartData")]
public async Task<ActionResult<IEnumerable<StrategyChartData>>> ComputeLongShortPnlStrategyChartData(string ticker, DateTime fromDate, DateTime toDate, double notional, MovingAverageImpl movingAverageImpl = MovingAverageImpl.BollingerBandsImpl)
{
bool isReinvest = false;

Expand Down
2 changes: 1 addition & 1 deletion Web/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const api: BackenedApi = {
return await axios.get(endpoint);
},
fetchLongShortStrategy: async (ticker: string) => {
const endpoint = `${backendServer}/BacktestService/LongShortStrategyChartData?ticker=${ticker}&fromDate=2023-05-01&toDate=2023-09-25&notional=10000`;
const endpoint = `${backendServer}/BacktestService/LongShortPnlStrategyChartData?ticker=${ticker}&fromDate=2023-05-01&toDate=2023-09-25&notional=10000`;
console.log(`Fetching from ${endpoint}`);
return await axios.get(endpoint);
},
Expand Down

0 comments on commit f56a15c

Please sign in to comment.