You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, The database connection should probably be made and kept by the Executor, so we don't have to make one each time we execute an order. The Executor should pass the live connection to the order via execute().
It should look something like
public abstract execute(Connection dbConn)
The text was updated successfully, but these errors were encountered:
Yes. A from the buy class method execute(), it should call the stored procedure for buy in the database. I think this is all it will need to do, since a simple market by doesn't need to do anything else. A limit buy on the other hand, would check the stock price before it did the buy.
This is done-ish....but need to figure out how to call which ID, it may need to pull order ID in a loop or something. Stored Procedure doesn't remove the ID value as expected
The order class has been updated with documentation within the last couple hours. It should now have the data you were looking for, but it won't actually run yet until I fix the Executor class.
Documentation here:
https://github.com/NickolausDS/sousms/wiki/Executor-Orders
Also, The database connection should probably be made and kept by the Executor, so we don't have to make one each time we execute an order. The Executor should pass the live connection to the order via execute().
It should look something like
public abstract execute(Connection dbConn)
The text was updated successfully, but these errors were encountered: