-
Notifications
You must be signed in to change notification settings - Fork 32
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
Retrieving local fiat prices when (Asset)(local fiat) pair is not available. #17
Comments
The API call, however, does produce a valid response with no error, so the actual issue which is triggering the warning, seems to be the processing of the API response. Further, the pair |
@shredEngineer I tried some more runs with my exports and had the fail regarding matching exchange rates quite some times. So, I could imagine that OHLC Endpoint with volume weighted averag price ( |
@wearymanateevedaknotstabooresisting
|
I second that weekly data is a too broad time frame for tax calculations. Daily average price would have been somehow ok, I guess. However, this demands different price sources or increase the Trades API time delta, we could also use the exponential base 2 approach: at time, 1m, 2m, 4m, ... until greater than 1d. |
_get_prices_binance already realizes a method, to retrieve the local fiat price for an asset, for which the exchange does not provide a direct pair.
We could implement the logic from
_get_prices_binance
genericly, so that everyget_prices
function is able to handle this kind of case.Idea taken from /u/frugaleringenieur from reddit [1] [2]
The text was updated successfully, but these errors were encountered: