How to Use the TD Ameritrade Python API Library | Placing Orders Pt.2

  Рет қаралды 3,340

Sigma Coding

Sigma Coding

Күн бұрын

Пікірлер: 6
@danielfutterweit4182
@danielfutterweit4182 4 жыл бұрын
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.
@danielfutterweit4182
@danielfutterweit4182 4 жыл бұрын
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.
@danielfutterweit4182
@danielfutterweit4182 4 жыл бұрын
Market orders might consume several different prices if the bid or ask sizes are small compared to the placed order size.
@danielfutterweit4182
@danielfutterweit4182 4 жыл бұрын
...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.
@stanleybible8217
@stanleybible8217 4 жыл бұрын
can you help me? were having some issues with the orders not being created to sell.
How to Use the TD Ameritrade Python API Library | Placing Orders Pt.3
22:54
Using Pathlib in Python
29:34
Sigma Coding
Рет қаралды 12 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,2 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 32 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4 МЛН
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
The $2 Billion AI Startup That Could Replace Coders
20:59
Forbes
Рет қаралды 16 М.
SQLAlchemy: The BEST SQL Database Library in Python
16:39
ArjanCodes
Рет қаралды 88 М.
Rethinking the TD Ameritrade Library
32:59
Sigma Coding
Рет қаралды 3,5 М.
How I animate 3Blue1Brown | A Manim demo with Ben Sparks
53:41
3Blue1Brown
Рет қаралды 1,1 МЛН
Python Logging: How to Write Logs Like a Pro!
11:02
ArjanCodes
Рет қаралды 182 М.