alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
141 stars 13 forks source link

Get an incorrect "Your account is set to liquidation only" error every morning prior to the market opening #168

Open nickyeager opened 3 years ago

nickyeager commented 3 years ago

Describe the bug Whenever I submit an order (since Friday, 2/5) prior to the market opening I get an error saying "your account is set to liquidation only", even though I have a "fully" funded account (ie. beyond the ptd) and have no outstanding positions. After I mention it in the Slack channel, it usually gets fixed and I'm once again able to submit an order.

To Reproduce Steps to reproduce the behavior:

  1. Submit a buy or sell order via the API or Trading View
  2. The error is in the response
  3. Try again at some random interval of time

Expected behavior I would be able to submit an order prior to the market opening. It would also be great if you notified the user of their account status in some way prior to them submitting an order, via an email or a notice on the alpaca dashboard alerting them to their account status change and giving reasons why that would happen.

Screenshots

Screen Shot 2021-02-09 at 6 16 20 AM
oducille commented 3 years ago

It's happening to me to with paper trading! No understanding why!