Skip to content

Commit

Permalink
Merge pull request #45 from 10-academy-w-9/recommendation-strategy
Browse files Browse the repository at this point in the history
Routes updated
  • Loading branch information
AbYT101 committed Jun 27, 2024
2 parents e316140 + 26a9c62 commit a1338f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/routes/backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ def run_backtest():
db.session.commit()


# # Publish backtest to Kafka for processing
# kafka_service.produce('backtest_scenes', {
# "backtest_id": new_backtest.id
# })
run_and_evaluate_backtest(backtest_id=new_backtest.id, symbol=symbol, initial_cash= inital_cash, fee=fee, start_date=start_date,end_date= end_date)
# Publish backtest to Kafka for processing
kafka_service.produce('backtest_scenes', {
"backtest_id": new_backtest.id
})

return jsonify({"msg": "Backtest created and published to Kafka", "backtest_id": new_backtest.id}), 201

Expand Down

0 comments on commit a1338f6

Please sign in to comment.