|
|
@@ -68,10 +68,18 @@ def process_forecast(this_stock):
|
|
|
current_price = float(data_latest.current_price)
|
|
|
quantity = data_latest.available_shares - data_previous.available_shares
|
|
|
stock_name = this_stock[0]
|
|
|
+ stock_id = this_stock[5]
|
|
|
current_quantity = data_latest.available_shares
|
|
|
message = view.create_message(
|
|
|
- stock_name, timestamp_latest, current_price, quantity, current_quantity,
|
|
|
- forecast_previous, forecast_latest, False)
|
|
|
+ stock_name,
|
|
|
+ timestamp_latest,
|
|
|
+ current_price,
|
|
|
+ quantity,
|
|
|
+ current_quantity=current_quantity,
|
|
|
+ forecast_previous=forecast_previous,
|
|
|
+ forecast_latest=forecast_latest,
|
|
|
+ npc_drop=False,
|
|
|
+ stock_id=stock_id)
|
|
|
print(message)
|
|
|
if is_forecast_changed:
|
|
|
view.broadcast(message)
|