-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
order.put_market, amount, inconsistency #32
Comments
Yes. When use put_market, the amount filed meaning is different in ask and bid. When you want use put_market to sell, the amount means the stock amount want to sell. when you want to buy, the amount means the money amount want to buy, because the price is float. |
Okay, thanks! |
We also have a problem with consistency of
This puts us in a position where for Bid market order we don't allow user to input stock while for Ask market order to input money. |
@esseswann this advice is good. I can add stock or money amount in market order as an optional. |
Thanx for response and agreeing to add this feature. Can you please tell if you plan to do this any time soon so we could correct our estimates? |
建了一个交易所撮合交流群: 862266237 |
Hey @haipome ! We have noticed inconsistency in what we have to specify in the field
amount
fororder.put_limit
andorder_put_market
, and I am wondering is that was done intentionally or not.In the command
order.put_limit
amount
corresponds to the number of stocks user wants tobuy/sell
.In the command
order.put_market
when we usebid
sideamount
corresponds to number of money user wants to spend on buying the stock, and when we useask
sideamount
corresponds to the stock user want to sell. Wouldn't it be better to make it consistent or probably I am missing something? Thanks!amount
The text was updated successfully, but these errors were encountered: