I think the best source of information for orders is in ameritrade web page TRADE page. Information is not explicit but implicit as when you make an input of data the order tree changes according to inputs. In buy for instance, you can chose STOP LIMIT and STOP MARKET. Stop market is a market and you fill the price to activate it but STOP LIMIT when you activate it requires an additional price that is the price at a specific price for the BUY not a market order (this one requires two prices). This helps understanding what fields must be included for each particular type of order to be properly requested. The same information is in thinkorswim but less structured.
@danielfutterweit41824 жыл бұрын
the web page to place orders has 3 tabs stocks/etfs, options and Conditionals (which is a combination of basic orders). In the developers PLACE ORDER page are other assetType like 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY' and some of the dictionary options might be used for those assetTypes. For instance instructions 'BUY_TO_COVER' or 'SELL_SHORT' or 'BUY_TO_OPEN' or 'BUY_TO_CLOSE' or 'SELL_TO_OPEN' or 'SELL_TO_CLOSE' or 'EXCHANGE' which seem not to apply to EQUITY. Again I think required fields should be deduced from web page orders or thinkorswim orders. Now I am checking with TOS and if you go to "Order Entry Tools" - "Order Entry" you see that you have two options SELL/BUY and for each can be selected TO OPEN/TO CLOSE in "Snap Ticket" tab they use the expresions BUY/SELL/BUY TO COVER/SELL SHORT. A great confusion. Check also EditOrder Validation Rules in old ameritrade API for a little more information.
@danielfutterweit41824 жыл бұрын
Market orders might consume several different prices if the bid or ask sizes are small compared to the placed order size.
@danielfutterweit41824 жыл бұрын
...so, I think in the buy_stop_limit_enter the activationPrice is missing because stop-limit orders have an activation price and the limit price. Really the stop-limit orders are a trigger and and once the trigger price is reached it places a limit order in the market.
@stanleybible82174 жыл бұрын
can you help me? were having some issues with the orders not being created to sell.