I would like to buy and sell stocks with the API and I found some missing API calls. It would be awesome, if those were added.
-
Session-Info: viewed stock
when opening the trading view, I can have one or more stocks as diagrams. but one ist the selected/focused stock. when I want to buy/sell this exact stock, I have to make some kind of search with the name or shortName. To reduce the necessary actions (=seconds) it would be great to get the current selected stock in trade view as the stock.ticker in the API. -
sell with current price
As far as Ive seen it, its only possible to sell a stock with a targeted price. In the web frontend, I can just select “sell with current price”. Because you can buy with the current price via the api, selling it likewise would be awesome. -
get current price
Maybe Im just a bit blind, but I cant find a way to get the current price of a stock by its ticker. I would have to use some third party api, which (in my experience) has a different current price.
(if we would have shortkeys, i wouldn’t try to use it to buy and sell, but nevermind)
If some of my points are not understandable or a bit jibberish, please let me know. I could describe it more in detail, but in my experience devs dont really like to get the solution for a problem
oh and naturally i want to buy stocks in live mode too. but i guess its just a matter of time.