const { fetchPrice } = require("dexscreener");
async function main() {
const priceNative = await fetchPrice("avalanchedfk", "defikingdoms", "DFKSHVAS/CRYSTAL");
console.log(`priceNative: ${priceNative}`);
const priceUsd = await fetchPrice("avalanchedfk", "defikingdoms", "DFKSHVAS/CRYSTAL", inUSD = true);
console.log(`priceUsd: ${priceUsd}`);
}
main()
.then(() => process.exit(0))
.catch((e) => {
console.error(e);
process.exit(1);
});
-
Notifications
You must be signed in to change notification settings - Fork 2
xEarn-Team/dexscreener
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
DEXScreener API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published