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

Pipe price sources #59

Open
ThomasdenH opened this issue Jul 24, 2021 · 1 comment
Open

Pipe price sources #59

ThomasdenH opened this issue Jul 24, 2021 · 1 comment

Comments

@ThomasdenH
Copy link
Contributor

I would like to have some way of combining price sources. For example, say there is a source that denotes the price of Asset X in USD, I would then like to combine that with a source for USD denoted in EUR to get the price of asset X in EUR.

I tried to write this as just another price source, but the result will be quite ugly with all the character escapes that are needed. What do you think would be the best course of action?

Something like this could work with minimal changes to the base source parsing, but the syntax becomes quite convoluted. By adding more string escaping it could work without changes to the current parsing at all.

2000-01-01 commodity AAPL
  price: "USD:pipe/yahoo//AAPL>coinbase//USD-EUR"
@vascosantos
Copy link

This would be great.

Some commodities are not be available in the desired currency through the available APIs. But we could chain multiple conversions.

It would be great to be able to specify AAPL-USD and USD-EUR quotes (fetchable from APIs) and have the reports converted all the way down to the desired currency - EUR in this case.

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