CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. -- % of retail investor accounts lose money when trading CFDs with this provider. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.

Darwinex API - credentials


I have watched the youtube tutorial and looked for some information but I couldn’t find the answer to my question.
The python algo needs credentials as follow (as per github repo):

Could you please clarify what are the last 2 variables:

And where to find them?

Is that referring to the the so called “Consumer key” and “consumer secret” respectively?


Hi @ThibautBoizumeau,

Please take a look at the post Get the Access Token
The youtube tutorial is outdated, as we not longer allow for the Password Flow, which uses the username, password, client_id (consumer key) and client_secret (consumer secret) in the same request.
The way to use an automated bot is to get the consumer key, consumer secret, initial access token and initial refresh token from the web. And then renewing the access token and refresh token every hour by using the consumer key, consumer secret and refresh token.

Kind regards

1 Like


Thank you for your swift reply!