-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added Enso volumes #2377
Added Enso volumes #2377
Conversation
The enso adapter exports:
|
function fetch(chainId: number) { | ||
return async (timestamp: number): Promise<FetchResultVolume> => { | ||
const res = await httpGet( | ||
`https://api.enso.finance/api/v1/volume/${chainId}?timestamp=${timestamp}`, |
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.
does it work for any timestamp key? if so should use a v2 adapter
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.
Unfortunately, we can only do v1 adapter fetches as of now (we can only get volumes in time ranges of 0:00-0:00)
The enso adapter exports:
|
The enso adapter exports:
|
ENSO_API_KEY
is required