API on long vs short posistions

This is my BUY order for TSLA, with take_profit and stop_loss.
Is there any way I can short TSLA the same way using take_profit and stop_loss?
Are there any limitation I should know about?
“order_class”: “bracket”,
“take_profit”: {
“limit_price”: “410”
“stop_loss”: {
“stop_price”: “399”,
“limit_price”: “398”

you should first make sure an asset is shortable.
you could do it with api.get_asset(‘TSLA’)


then I think it should work (as far as I know, but do tell if you see any issues), just make sure you fill the values correctly.