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

Volume and Fees for CVEX #2301

Merged
merged 7 commits into from
Jan 16, 2025
Merged

Volume and Fees for CVEX #2301

merged 7 commits into from
Jan 16, 2025

Conversation

vladjito
Copy link
Contributor

Adding dimensional adapters for cvex (volume and fees)

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Thu, 09 Jan 2025 00:00:00 GMT
End Date:	Fri, 10 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Error: Request failed with status code 403] {
  url: 'https://api.cvex.trade/v1/statistics/volume?timestamp=1736467199',
  method: 'GET',
  axiosError: { code: 'PermissionDenied', message: 'X-Api-Key header is required' },
  chain: 'arbitrum'
}

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Thu, 09 Jan 2025 00:00:00 GMT
End Date:	Fri, 10 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Error: Request failed with status code 403] {
  url: 'https://api.cvex.trade/v1/statistics/fee?timestamp=1736467199',
  method: 'GET',
  axiosError: { code: 'PermissionDenied', message: 'X-Api-Key header is required' },
  chain: 'arbitrum'
}

@vladjito
Copy link
Contributor Author

We are updating our mainnet so you can access these endpoints without api key. We tested it on our side and it should work correctly after our mainnet update.

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Thu, 09 Jan 2025 00:00:00 GMT
End Date:	Fri, 10 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Error: Request failed with status code 403] {
  url: 'https://api.cvex.trade/v1/statistics/volume?timestamp=1736467199',
  method: 'GET',
  axiosError: { code: 'PermissionDenied', message: 'X-Api-Key header is required' },
  chain: 'arbitrum'
}

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Thu, 09 Jan 2025 00:00:00 GMT
End Date:	Fri, 10 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Error: Request failed with status code 403] {
  url: 'https://api.cvex.trade/v1/statistics/fee?timestamp=1736467199',
  method: 'GET',
  axiosError: { code: 'PermissionDenied', message: 'X-Api-Key header is required' },
  chain: 'arbitrum'
}

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Fri, 10 Jan 2025 00:00:00 GMT
End Date:	Sat, 11 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Error: Request failed with status code 403] {
  url: 'https://api.cvex.trade/v1/statistics/volume?timestamp=1736553599',
  method: 'GET',
  axiosError: { code: 'PermissionDenied', message: 'X-Api-Key header is required' },
  chain: 'arbitrum'
}

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Fri, 10 Jan 2025 00:00:00 GMT
End Date:	Sat, 11 Jan 2025 00:00:00 GMT
---------------------------------------------------

[Error: Request failed with status code 403] {
  url: 'https://api.cvex.trade/v1/statistics/fee?timestamp=1736553599',
  method: 'GET',
  axiosError: { code: 'PermissionDenied', message: 'X-Api-Key header is required' },
  chain: 'arbitrum'
}

@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 11, 2025

@vladjito it still error could you check ?

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts dexs cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Wed, 15 Jan 2025 00:00:00 GMT
End Date:	Thu, 16 Jan 2025 00:00:00 GMT
---------------------------------------------------

ARBITRUM 👇
Backfill start time: 8/1/2025
NO METHODOLOGY SPECIFIED
End timestamp: 1736985599 (2025-01-15T23:59:59.000Z)
Daily volume: 105
Total volume: 1.59 k

@llamabutler
Copy link

The cvex adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees cvex

🦙 Running CVEX adapter 🦙
---------------------------------------------------
Start Date:	Wed, 15 Jan 2025 00:00:00 GMT
End Date:	Thu, 16 Jan 2025 00:00:00 GMT
---------------------------------------------------

ARBITRUM 👇
Backfill start time: 8/1/2025
NO METHODOLOGY SPECIFIED
End timestamp: 1736985599 (2025-01-15T23:59:59.000Z)
Daily fees: 0
Total fees: 0

@dtmkeng dtmkeng merged commit 1e320f4 into DefiLlama:master Jan 16, 2025
2 checks passed
@dtmkeng
Copy link
Contributor

dtmkeng commented Jan 17, 2025

@vladjito hi, is it volume from testnet ?

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

Successfully merging this pull request may close these issues.

3 participants