I’m using the TradingClient to perform all my trades. However, I would also like the ability to liquidate all positions.
Could someone provide an example in python on how to liquidate all positions? I’ve only seen examples using the tradeapi.REST() but that gives me an error and is also not what I’m using. Is there another way to achieve liquidation?
I finally figured it out but I’m bumping again because I wanted clarification on how liquidating works.
If I hold a number of shares of a stock and liquidate, it will sell all those shares. But if I hold a short position of 100 shares in NVDA, will liquidating that position result in a BUY order of 100 shares of NVDA?