Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feeder does not seem to receive prices from kraken #34

Open
altafan opened this issue Oct 15, 2021 · 1 comment
Open

Feeder does not seem to receive prices from kraken #34

altafan opened this issue Oct 15, 2021 · 1 comment

Comments

@altafan
Copy link
Contributor

altafan commented Oct 15, 2021

After running the feeeder for a while it may happen that the socket connection is dropped unexpectedly by Kraken (Cloudflare actually), and the service correctly tries to establish a new connection, and keeps feeding the daemon as expected.

Sometimes, though, the feeder seems to not feed the price received from Kraken but keeps using the same outdated price.

Check these logs for example:

time="2021-10-13T01:17:56Z" level=warning msg="connection dropped unexpectedly. Trying to reconnect..." error="<nil>"
time="2021-10-13T01:22:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:22:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:27:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:27:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:32:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:32:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:37:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:37:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:42:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:42:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:47:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:47:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:52:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:52:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T01:57:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T01:57:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T02:02:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T02:02:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"
time="2021-10-13T02:07:35Z" level=info msg="received price feed: market XBT/USDT, price 0.00001775/56347.2"
time="2021-10-13T02:07:35Z" level=info msg="updated market price (XBT/USDT) for target x.y.z.w:9000"

We need to investigate why this happens and also why it happens only sometimes and not all the times for instance.

@altafan altafan changed the title Feeder does not feed daemon with correct prices sometimes Feeder does not seem to receive prices from kraken Nov 5, 2021
@tiero
Copy link
Contributor

tiero commented May 13, 2022

Seems that this does not only happen with kraken: we should try to refactor the code to try to prevent prices not in sync with what the socket is giving to us

@altafan altafan removed their assignment Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants