SDK Examples
Get market data of an asset
Fetch market data for a specific asset.
import { Mobula } from "mobula-api-sdk";
const mobula = new Mobula("YOUR_API_KEY_HERE");
mobula
.fetchAssetMarketData({
asset: "Floki Inu",
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error("Error:", error);
});
Parameters
asset
: stringblockchain
: stringrequestOptions
: RequestOptions
Was this page helpful?