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

Refresh & log updated portfolio balance so that advice & trading is not based on old data #67

Merged
merged 2 commits into from
Dec 21, 2013

Conversation

kuzetsa
Copy link
Contributor

@kuzetsa kuzetsa commented Dec 6, 2013

This time a "refresh-balance" branch was created on my own repository unlike #65 and #66 which were NOT properly insulated from any work I was doing on my own fork unrelated to this patch for keeping the portfolio state more consistent with realtime balance on the exchanges.

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
bugfix for gekko having a stale internal state which doesn't match the actual balance in portfolio
@askmike
Copy link
Owner

askmike commented Dec 6, 2013

Thanks, unfortunately I am offline this weekend, but will def take a look as soon as I get back.

@kuzetsa
Copy link
Contributor Author

kuzetsa commented Dec 6, 2013

I've tested the code in #67 & left it running for a couple days now and had no problems, so I'm signing off on this feature as "the code has actually been tested & it seems stable" and I also don't expect to feel the need for any further changes to this initial code for the refresh-balance branch.

it was suggested on #65 (commit fa9f8f2 was accidentally "logging only" code ... wrote that before I realized the balance itself wasn't being refreshed) that the interval should be configurable. I agree, it should probably be configurable but I don't have time to implement it this weekend.

askmike added a commit that referenced this pull request Dec 21, 2013
Refresh & log updated portfolio balance so that advice & trading is not based on old data
@askmike askmike merged commit a212f15 into askmike:master Dec 21, 2013
@kuzetsa kuzetsa deleted the refresh-balance branch June 25, 2014 19:33
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