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

Added Bitoro Volume Adapter #1402

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

zareklivak
Copy link

Adapter returns daily and total volumes and supports custom backfill.

@llamatester
Copy link

The bitoro adapter exports:


Dexs for 8/4/2024
_______________________________________

ARBITRUM 👇
Backfill start time: 25/3/2024
NO METHODOLOGY SPECIFIED
Timestamp: 1712620799 (2024-04-08T23:59:59.000Z)
Daily volume: 45.73 M
Total volume: 67.91 M




Done in 10.29s.

const makeRequest = (startTime: number, endTime: number) => bitoroApiVolumeEndpoint + `?start=${startTime}&end=${endTime}`

const fetch = async (timestamp: number) => {
const startOfDayTimestamp = getUniqStartOfTodayTimestamp(new Date(timestamp * 1000)) + 86400
Copy link
Contributor

Choose a reason for hiding this comment

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

why start time is day +1 ?

Copy link
Author

Choose a reason for hiding this comment

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

I'm under the impression that 24hr volume is meant to be calculated for the current day, not the day before. getUniqStartOfTodayTimestamp gives the end of the prior day and we wanted start of current day. Is 24 hour volume meant to be for the day prior? I can see how this can be an issue with custom backfill

Copy link
Contributor

Choose a reason for hiding this comment

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

is there tvl adapter ?

Copy link
Author

Choose a reason for hiding this comment

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

No tvl adapter. Still waiting on endpoint.

Copy link
Author

Choose a reason for hiding this comment

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

Any update?

Choose a reason for hiding this comment

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

Can we not merge the volume adapter without a TVL adapter?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes

Choose a reason for hiding this comment

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

Why is that the case?

Copy link
Contributor

Choose a reason for hiding this comment

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

ppl will complaint why that protocol does not tvl but volume high is it fake volume and will delist

Choose a reason for hiding this comment

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

Ok. We are working on this.

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.

None yet

4 participants