Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write java 'looper' Order and Buy classes #37

Open
NickolausDS opened this issue Nov 10, 2012 · 4 comments
Open

Write java 'looper' Order and Buy classes #37

NickolausDS opened this issue Nov 10, 2012 · 4 comments
Assignees
Labels

Comments

@NickolausDS
Copy link
Owner

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)

@ghost ghost assigned nchelix Nov 10, 2012
@nchelix
Copy link
Collaborator

nchelix commented Nov 12, 2012

Currently working on this....question, would this interact with a SQL stored procedure?

@NickolausDS
Copy link
Owner Author

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.

@nchelix
Copy link
Collaborator

nchelix commented Nov 19, 2012

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

@NickolausDS
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants