Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

refresh portfolio stats every 11 minutes #65

Closed
wants to merge 2 commits into from

Conversation

kuzetsa
Copy link
Contributor

@kuzetsa kuzetsa commented Dec 5, 2013

some users would prefer the cex.io portfolio balance should be refreshed periodically with more current BTC balance (as a result of BTC withdraw, deposit, mining new coin with the GHS, etc.)

this commit will affect all exchanges, not just cex.io

refresh period is 11 minutes

some users would prefer the cex.io portfolio balance should be refreshed periodically with more current BTC balance (as a result of BTC withdraw, deposit, mining new coin with the GHS, etc.)

this commit will affect all exchanges, not just cex.io

refresh period is 20 minutes
@azizmb
Copy link

azizmb commented Dec 5, 2013

Wouldn't it be much better if the interval could be configurable from the config?

@kuzetsa
Copy link
Contributor Author

kuzetsa commented Dec 5, 2013

@azizmb yes, it would... this was just an initial commit.

Not only was the hardcoded 11 in-part because I was being lazy and didn't bother to add config support, but also because using prime numbers instead of "nice round numbers" like 10, 15, or 60 minutes.

I try to be friendly to servers for this sort of thing, partially because of my own experience with a POOL.NTP.ORG server I operate --- the load spikes can be rather bad due to the abundance of inconsiderate linux admins who don't consider scalability of their actions when setting up a cronjob to do something like run ntpdate once every night at exactly midnight.

@kuzetsa kuzetsa closed this Dec 5, 2013
@kuzetsa kuzetsa reopened this Dec 5, 2013
@kuzetsa kuzetsa closed this Dec 5, 2013
@kuzetsa kuzetsa reopened this Dec 5, 2013
@kuzetsa
Copy link
Contributor Author

kuzetsa commented Dec 5, 2013

oops, I haven't had my coffee yet and clicked "close" trying to close this browser tab

...and then did it a second time after having had to re-open the pull request / issue once already.

bugfix for gekko having a stale internal state which doesn't match the actual balance in portfolio
@kuzetsa kuzetsa closed this Dec 5, 2013
@kuzetsa
Copy link
Contributor Author

kuzetsa commented Dec 5, 2013

see #66 for new version of patch (actually updates the balance before refreshing the display)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants