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

fix: optimize v2 daily volume request with sleep 2s interval #1695

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

bryansniyve
Copy link

As commit mentioned, our API https://www.apollox.finance/bapi/future/v1/public/future/apx/pair has some concurrency issue when call 4 different chain request it will throw 90800 error as below:

{
  code: '90800',
  message: 'Bad Request',
  messageDetail: null,
  data: null,
  success: false
}

, so we decided to add 2s interval for each chain request.

@llamatester
Copy link

The apollox adapter exports:

> adapters@1.0.0 test
> ts-node --transpile-only cli/testAdapter.ts dexs apollox

🦙 Running APOLLOX adapter 🦙
---------------------------------------------------
Start Date:	Sun, 21 Jul 2024 00:00:00 GMT
End Date:	Mon, 22 Jul 2024 00:00:00 GMT
---------------------------------------------------

fetch  base 0
fetch  bsc 2000
fetch  arbitrum 4000
fetch  opbnb 6000
BSC 👇
Backfill start time: 21/4/2023
NO METHODOLOGY SPECIFIED
Daily volume: 54.93 M
Total volume: 299.12 B
End timestamp: 1721606399 (2024-07-21T23:59:59.000Z)


ARBITRUM 👇
Backfill start time: 21/4/2023
NO METHODOLOGY SPECIFIED
End timestamp: 1721606399 (2024-07-21T23:59:59.000Z)
Daily volume: 52.61 M
Total volume: 3.37 B


OP_BNB 👇
Backfill start time: 21/4/2023
NO METHODOLOGY SPECIFIED
End timestamp: 1721606399 (2024-07-21T23:59:59.000Z)
Daily volume: 49.56 k
Total volume: 326.99 M


BASE 👇
Backfill start time: 21/4/2023
NO METHODOLOGY SPECIFIED
End timestamp: 1721606399 (2024-07-21T23:59:59.000Z)
Daily volume: 103.84 k
Total volume: 728.45 M

@dtmkeng dtmkeng merged commit 14d555b into DefiLlama:master Jul 22, 2024
2 checks passed
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.

4 participants