Broker API HubMenu

DXtrade API error code

DXtrade API error: 12 HMAC signature too old

The error, as text you can copy

12 HMAC signature too old
Kind
API error code
HTTP status
401
API
DXtrade APIs

What does 12 HMAC signature too old mean on the DXtrade API?

DXtrade errorCode 12, description "HMAC signature too old" (the vendor's wording). More than the permitted amount of time has passed since the request was created. The vendor says the server checks the timestamp in the request against its own system time, and that the permitted range is configurable.

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 unofficialdemo.dx.tradechecked

How do I fix 12 HMAC signature too old?

Sign and send the request promptly, and check that the clock of the client machine is correct, since the server compares the request timestamp with its own time.