Changes to the WebSocket API
Dear developers,
We’ll be making changes in our WebSocket API in the week beginning 10 October.
We’ll remove the crypto_config object from the website_status response. You’ll need to use the new WebSocket method, crypto_config as a replacement.
Please use the new method to get the cryptocurrencies configurations.
Before the change
“website_status:”
{ "website_status" : { "api_call_limits" : {...}, "clients_country" : …, "crypto_config" : { "BTC" : { "minimum_withdrawal" : … } }, "currencies_config" : {...}, "mt5_status" : {...}, "payment_agents" : {...}, "site_status" : …, "supported_languages" : [...], "terms_conditions_version" : … } }
After the change
“website_status:”
{ "website_status" : { "api_call_limits" : {...}, "clients_country" : …, "currencies_config" : {...}, "mt5_status" : {...}, "payment_agents" : {...}, "site_status" : …, "supported_languages" : [...], "terms_conditions_version" : … } }
crypto_config call example:
Request:
{ "crypto_config" : 1 }
Response:
{ "crypto_config" : { "currencies_config" : { "BTC" : { "minimum_withdrawal" : … } } } }
Please make the necessary changes to your code.
If you have any questions, contact us at api-support@deriv.com.
Thank you.
Tagged: