Let us know what language you’re writing your code in. Please include the version number you’re running, if possible.
Python 3.8 but testing with Postman first
Alpaca SDK Version
If you’re using an SDK library to interface with the Alpaca API, please include the version number you have installed in your environment.
Other Environment Details
If there’s anything else you’d like to invlude about the environment you’re running your code in - operating System, cloud provider, etc. - list it here.
Describe the provlem you’re running into here.
Paper or Live Tradng?
Let us know if you’re using the paper trading simulator or the live trading API.
Paper trading is working, live trading is not in Postman and Python SDK
If you have code that reproduces the problem or will make your issue more clear, please include it here
print(account) positions = api.list_positions() print(positions) order = api.submit_order( symbol='SPY', side='buy', type='limit', qty='10000000000', time_in_force='day', order_class='bracket', limit_price='300', take_profit=dict( limit_price='305.0', ), stop_loss=dict( stop_price='295.5', limit_price='295.5', ) ) print(order) api.cancel_all_orders()```