Closed brian-from-quantrocket closed 3 years ago
@brian-from-quantrocket Thanks for the detailed report. This is a regression we noticed as well. The fix will be out before market open tomorrow
A fixed has been pushed out and should be in effect. Thank you for the report.
Describe the bug Per the docs, when placing an order (
POST /v2/orders
), thesymbol
field can be set to the ticker symbol or theasset_id
. As of June 1, placing an order using theasset_id
fails with an error message like:This affects both live and paper accounts.
QuantRocket users are currently unable to place orders to Alpaca as a result of this issue because QuantRocket relies on asset IDs.
To Reproduce Steps to reproduce the behavior:
asset_id
usingGET/v2/assets
orGET/v2/assets/{symbol}
. For example, the asset ID for AAPL isb0b6dd9d-8b9b-48a9-ba46-b9d54906e415
POST /v2/orders
Expected behavior Placing orders using asset IDs has worked since Alpaca's launch and was working as recently as Friday, May 28 before the Memorial Day holiday.
Using
asset_id
s (which don't change) to place orders is a safer approach than using ticker symbols (which can change) because it avoids the risk of inadvertently placing an order for the wrong security in the event that a ticker symbol has become stale due to a ticker change.