Open marination opened 3 years ago
Yes, this seems to be a problem in the way the API handles base currencies. See also #34 and #70.
As a workaround I would suggest not querying for base currencies that are not returned in the /symbols
response.
Though this wouldn't really work for historical data with out-of-use currencies since the /symbols
endpoint only returns the supported currencies at the time of request.
As a workaround I would suggest not querying for base currencies that are not returned in the
/symbols
response.
It will be an extra API call each time since we use the /convert
endpoint to get historical data.
Hoping a fix is on the way!
Issue: Consider the currency TMM, which is not supported by this API (which is fine): While fetching exchange rate TMM -> INR, we get
86.809808
. This seems like it defaults to the value of**EUR** to INR
Similarly, TMM -> USD, we get1.168879
. Again value of**EUR** to USD
Rather for any currency that does not exist, lets say ABC: ABC -> USD =
1.168879
USD -> ABC =0
This is really not the best API design. It should maybe give back some
exc/exception
that says that this currency is not supported. The response is not predictable.It does not obstruct any other currencies, except
TMM
(poor Turkmenistanis).