Info

この質問は閉じられています。 編集または回答するには再度開いてください。

MoneyNet connection instable and randomly lost

1 回表示 (過去 30 日間)
Marie Noëlle
Marie Noëlle 2017 年 7 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I am currently trying to replace, yahoo by MoneyNet in my code as financial data price feed as yahoo has stopped its API mid May of this year. I am encountering a lot of problem as MoneyNet connection is lost very often, so that all my programs end up in errors due to an unavailable moneynet connection, the connection is lost randomly at different steps of the program, never at the same step, sometimes at the very beginning sometimes at the end. Is there a way to avoid that? Shall I use try and catch loops until the server responds or is there a cleaner solution?

回答 (1 件)

Shashank
Shashank 2017 年 7 月 11 日
A much cleaner way would be to use the 'isconnection' function to check if the connection is valid
- Shashank
  1 件のコメント
Marie Noëlle
Marie Noëlle 2017 年 7 月 11 日
The problem is that to use v = isconnection(c) you need first to establish the connection. Establishing the connection is where the program get stuck, so v = isconnection(c) is never checked (this is the problem I am facing sometimes the connection works sometimes it does not work and I do not know why)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by