Skip to content

xEarn-Team/dexscreener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

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);
    });

Releases

No releases published

Packages

No packages published