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

fix price feeds #1

Closed
wants to merge 7 commits into from
Closed

fix price feeds #1

wants to merge 7 commits into from

Conversation

abitmore
Copy link
Contributor

No description provided.

price_median_blockchain[asset] = 0.0
price_median_blockchain[asset] = float(result["current_feed"]["settlement_price"]["base"]["amount"]) ### FIXME (is this really 'base')
price_median_blockchain[asset] = float(result["current_feed"]["settlement_price"]["base"]["amount"]/result["current_feed"]["settlement_price"]["quote"]["amount"]*(10**(5-asset_data["precision"]))) ### FIXME (is this really 'base')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the core assets precision fixed is not very flexible ..
Furthermore, if I recall correctly, there is a dictionary assets that contains all assets involved and their parameters already .. so no need to do an other get_asset call

@abitmore
Copy link
Contributor Author

I just tried to make the numbers right, don't really know what the symbols mean. ;)
Feel free to modify it according to your philosophy.

@xeroc xeroc closed this Oct 16, 2015
xeroc pushed a commit that referenced this pull request Oct 19, 2015
not quite sure what I am doing here
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

Successfully merging this pull request may close these issues.

None yet

2 participants