movemind-sdk
v2.0.0
Published
**MoveMind SDK** is offering seamless **liquidity** and **APR insights** powered by advanced **AI-driven analysis with MCP Services**. Developers can use this SDK to integrate dynamic protocol data and actionable insights into their dApps dashboard as wel
Readme
MoveMind SDK
MoveMind SDK is offering seamless liquidity and APR insights powered by advanced AI-driven analysis with MCP Services. Developers can use this SDK to integrate dynamic protocol data and actionable insights into their dApps dashboard as well as call in Terminal for human readable format on Aptos.
Features
⛓️ Move Chains Supported: Aptos
🔍 Liquidity Insights: Fetch real-time liquidity and price data for any Aptos pool.
📊 APR Insights: Analyze staking APR, delegator activity, and more.
🤖 MCP AI-Powered Analysis: Insights delivered through cutting-edge AI systems.
💡 Ready-to-Use Formatting: Output is preformatted into tables for developer ease.
Installation
Install the SDK via npm:
npm install movemind-sdkDependencies
Pyth Network: Real-time price feeds for multiple blockchains.
OpenAI API is needed to be feeded in your
Authorization: Bearer OPEN_AI_API_KEYatsrc/defiLens.tsanalysis via MCP Services for contextual insights.
Getting Started
Here’s how to get started with the SDK in just a few steps:
1. Import and Initialize the SDK
import { MoveMindSDK } from "movemind-sdk";
// Initialize the SDK with your preferred environment (testnet or mainnet)
const sdk = new MoveMindSDK("testnet"); // Use "mainnet" for production2. Query Liquidity Insights
Fetch liquidity data for any Aptos pool:
const liquidityInsight = await sdk.queryDefiLens(
"What is the total liquidity in the pool?",
"0xYourValidLiquidityPoolAddress", // Replace with a valid Aptos pool address
"aptUsd", // Specify the price feed (APT/USD)
"liquidity"
);
console.log(liquidityInsight); // Output: Formatted table showing liquidity details3. Query APR Insights
Analyze APR and delegators for a staking pool:
const aprInsight = await sdk.queryDefiLens(
"What is the APR for staking?",
"0xYourValidStakingPoolAddress", // Replace with a valid staking pool address
"btcUsd", // Specify the price feed (BTC/USD)
"apr"
);
console.log(aprInsight); // Output: Formatted table showing APR detailsExample Output
Liquidity Insights
================= Liquidity Insights =================
Metric Value
------------------------------------------------------
Total Liquidity 103,557,746,887 AptosCoin
APT/USD Price $4.54855783
Liquidity (USD) $471,176,806,024.78
======================================================APR Insights
================= APR Insights =================
Metric Value
------------------------------------------------------
APR 0%
BTC/USD Price $81663.08071848
Delegators None
======================================================Configuration
The SDK automatically uses preconfigured settings for both testnet and mainnet environments. Simply specify the environment (testnet or mainnet) during initialization.
Contributing
Contributions are welcome! If you’d like to enhance the SDK, please fork the repository and submit a pull request.
License
This project is licensed under the MIT License.
