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

Add Optim Finance daily volume #2055

Closed
wants to merge 1 commit into from

Conversation

danielfarrelly
Copy link

No description provided.

@llamatester
Copy link

The optim-finance adapter exports:

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

🦙 Running OPTIM-FINANCE adapter 🦙
---------------------------------------------------
Start Date:	Tue, 29 Oct 2024 10:09:30 GMT
End Date:	Wed, 30 Oct 2024 10:09:30 GMT
---------------------------------------------------

Version -> DERIVATIVES
---------
CARDANO 👇
Backfill start time: 1/6/2024
NO METHODOLOGY SPECIFIED
Daily volume: 5.00 M
End timestamp: 1730282969 (2024-10-30T10:09:29.000Z)

const fetchVolume: FetchV2 = async (options: FetchOptions) => {
const volumeResponse = await fetch(`https://spo-server.optim.finance/oada/stake-auction-volume?timeframe=1d&time=${options.endTimestamp}`).then(response => response.json())

if (volumeResponse.tag !== 'OK') return {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we prefer an error when something goes wrong, PR is good otherwise

@g1nt0ki g1nt0ki closed this Oct 30, 2024
g1nt0ki added a commit that referenced this pull request Oct 30, 2024
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