Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Quantity for MIDPRICE orders
Hello,
When placing a Midprice order via the TWS API, I do not have the quantity, since the actual price isn't known yet. But I do have the $ amount to use for the order. I know that TWS, mobile app etc. allow placing the order using $ amount, and then the app calculates the quantity, rounded down to the nearest integer. Is this also possible via the API i.e. provide the $ amount instead of quantity? Thank you! |
Correct. But it is possible for forex pairs. You can specify quantity in Cash. Using cashQty field of order. This is to specify the quantity in second currency in pair. On Fri, 5 Jul, 2024, 08:39 biney59 via , <biney59=[email protected]> wrote: No, the API does not provide it directly. You need to get your cash amount and calculate yourself. |
to navigate to use esc to dismiss