Broker API HubMenu

Alpaca status code

Alpaca status code: HTTP 400

The error, as text you can copy

HTTP 400
Kind
Status code
API
Alpaca

What does HTTP 400 mean on the Alpaca API?

One of the request's parameters is invalid. Both OpenAPI documents give this as a shared reply, and the market data document adds that the message in the body says which; on the bars endpoints an unknown adjustment value or a repeated query key is one cause.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Independent and unofficialdocs.alpaca.marketschecked

How do I fix HTTP 400?

Read the message in the reply body, correct the named parameter and send again. Check enum values against the record of the call.