Open andrewshvv opened 6 years ago
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 order.put_market
, for such a use-case:
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. Consistency would at least allow us to always expect input in stock like it's done on Bitfinex
@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