DXtrade API error code
DXtrade API error: 1 Authorization required
The error, as text you can copy
1 Authorization required- Kind
- API error code
- HTTP status
- 401
- API
- DXtrade APIs
What does 1 Authorization required mean on the DXtrade API?
DXtrade errorCode 1, description "Authorization required" (the vendor's wording). The request comes from a client that is not authenticated. The vendor says any API resource can return it. The Push API uses the same code when the session code is missing, invalid or expired.
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.
How do I fix 1 Authorization required?
Authenticate first, then send the request with a valid session token or HMAC signature. The vendor's page gives no further remedy.