It would be nice to know if a particular symbol is shortable or not through the broker prior to trying to place an order. Would it be possible to have this data within symbol info ?
#featurerequest
#featurerequest
Rename
The broker would need to make such information available through their API. You’re using TD, correct? We can see if TD exposes this somewhere.
Ya doesn't look like TDA has exactly this but Alpaca and Tradier seem to pass this info back. TDA has it in their xml response for streaming quotes from what I can see
https://developer.tdameritrade.com/content/streaming-data
#18 in their quote fields. Its not a major request, just sometimes a strategy will continue to attempt to put in a short order that keeps on being rejected although TDA is notorious for making things HTB. Plan on switching over to IB soon anyways. Thanks Glitch.
https://developer.tdameritrade.com/content/streaming-data
#18 in their quote fields. Its not a major request, just sometimes a strategy will continue to attempt to put in a short order that keeps on being rejected although TDA is notorious for making things HTB. Plan on switching over to IB soon anyways. Thanks Glitch.
We can do it for IB in an upcoming build fairly easily.
How do y'all think this should be implemented? It could be transparent by letting the broker adapter reject a short order, but the result would be the same - an order entry error. So what's the point?
I think being able to check before submitting an order would be more beneficial and avoid cluttering the order/strategy monitor and placing orders that will be cancelled.
Having the strategy check makes sense, but requires some indirection in the UserStrategyBase to make it applicable for multiple broker implementations. We'll have to turn this into a feature request.
Makes sense, the only reason it is an issue for me is because I like to limit the number of orders I generate since on most days I am generating more than 390 orders which is over the threshold allowed by some brokers.
Your Response
Post
Edit Post
Login is required