KnightChaser / LiveCLICryptoPanel

Simple CLI-Based live update cryptocurrency panel, written as Python.
0 stars 0 forks source link

[LiveCryptoPanel_upbitAPI] Fast error recovery #2

Closed KnightChaser closed 3 years ago

KnightChaser commented 3 years ago

에러 발생시 일률적으로 정상적일 때와 같이 무조건 2초 후 데이터를 다시 받아와 화면을 재구성하는 대신, 에러 발생시에만 이 새로고침 간격을 1초로 줄였으면 좋겠다. I would like to reduce this refresh interval to 1 second only when an error occurs, instead of receiving the data after 2 seconds unconditionally as if it is uniformly normal in the event of an error and reconstructing the screen.

Upbit API 소스가 안정적인 편이고 에러 발생률이 상대적으로 낮은 데다가 최대 1초에 5번까지는 안정적으로 요청을 보낼 수 있는 것으로 알고 있기 때문에 이번 안은 충분히 가능할 것으로 보인다. It seems to be possible sufficiently because Upbit API source is pretty stable and low-error probability. In addition, it's known that Upbit API can accommodate up to 5 requests per second.

KnightChaser commented 3 years ago

4

Accomplished! 해결 완료!