you need to parse json and navigate that for example if you are calling active_symbols then parse that json var data = JSON.parse(msg.data); then loop over date["active_symbols"] and match if (date["active_symbols"][i]["market_display_name"] === "Forex"
Comments
@reiber you can make use of https://developers.binary.com/api/#trading_times or use https://developers.binary.com/api/#active_symbols and for active symbols call in response you can check for exchange_is_open
As forex can have multiple underlying that can be open or close on different times so better to check for each underlying
thanks sir
i want ask agai, how i can get spesifik dysplay name?
cause i get message so much
you need to parse json and navigate that for example if you are calling
active_symbols
then parse that jsonvar data = JSON.parse(msg.data);
then loop overdate["active_symbols"]
and matchif (date["active_symbols"][i]["market_display_name"] === "Forex"
thanks sir