-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat: Fetch fiat price #26
Conversation
5016c87
to
cae619e
Compare
cae619e
to
72605bb
Compare
const result = await this.get<MdwPaginatedResponse<T>>( | ||
next + `&int-as-string=${this.INT_AS_STRING}`, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor notes: should have been its own PR
expect.anything(), | ||
); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we test what happens if we run in the rate limit error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I'd add it to the importer spec however, as in the CoinmarketcapClieht nothing much happens besides returning the error (we are using a mocked version of the API).
service.getHistoricalPriceDataThrottled(1704203935123); | ||
service.getHistoricalPriceDataThrottled(1704203935123); | ||
|
||
await new Promise((res) => setTimeout(res, 200)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems a bit flaky, could we await the first two calls and then for the third call use the timeout?
CoinmarketcapClient
for fetching fiat price on log basis including throttelingHttpService
int-as-string
param not being present in paginated calls