Skip to content

Commit 96f46da

Browse files
Add 1DEX volume (#2967)
* Added 1dex adapter to capture daily transaction volume of EOS chains * Fix: Correct spelling errors in variable names * Fix: Update endpoint URL and correct volume property name in 1dex adapter * Update index.ts * Implementation to obtain contract actions from Hyperion and calculate daily transaction volume * revert back to using api --------- Co-authored-by: g1nt0ki <[email protected]>
1 parent f869b5c commit 96f46da

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

dexs/1dex/index.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { CHAIN } from "../../helpers/chains"
2+
import { httpGet } from "../../utils/fetchURL"
3+
4+
async function fetch() {
5+
const endpoint = `https://api.1dex.com/24h-trade-info`
6+
const { data: { volume_usdt: dailyVolume } } = await httpGet(endpoint)
7+
return { dailyVolume, }
8+
}
9+
10+
export default {
11+
adapter: {
12+
[CHAIN.EOS]: {
13+
fetch,
14+
start: "2025-04-15",
15+
runAtCurrTime: true,
16+
},
17+
},
18+
}

0 commit comments

Comments
 (0)