ansemedge
v1.0.0
Published
Official SDK for AnsemEdge — Programmable Market Intelligence.
Maintainers
Readme
AnsemEdge SDK
Official Node/Browser SDK for AnsemEdge — Programmable Market Intelligence. Ingest real-time sentiment scoring, coin mentions, and emerging narrative shifts parsed directly from @blknoiz06's commentary on the Solana ecosystem.
Visit ansemedge.xyz to manage API credentials and view gating tiers.
Installation
Install via npm:
npm install ansemedgeGetting Started
Initialize the client with your developer API key:
import { AnsemEdge } from "ansemedge";
const edge = new AnsemEdge({
apiKey: "ae_live_your_api_key_here"
});Usage Examples
1. Fetch Ecosystem Sentiment Index
Get the normalized real-time sentiment index aggregated across active feeds.
try {
const data = await edge.getSentiment("24h");
console.log(`Sentiment: ${data.sentimentIndex} (${data.label})`);
console.log(`Confidence Score: ${data.confidenceScore}`);
} catch (error) {
console.error("Failed to query sentiment:", error.message);
}2. Retrieve Automated Signals
Fetch high-conviction automated signals computed by NLP extraction models.
const signals = await edge.getSignals(10, 0.90);
signals.forEach(signal => {
console.log(`Asset: $${signal.tokenSymbol} | Sentiment: ${signal.sentimentScore}`);
console.log(`Summary: ${signal.summary}`);
});3. Stream Real-Time Updates via WebSockets
Subscribe to the low-latency streaming pipeline to receive structured events instantly.
// Connect and listen for real-time updates
edge.subscribe((payload) => {
console.log("Stream update parsed:", payload);
});
// To disconnect/cleanup:
// edge.close();API Methods
getSentiment(window?): Normalized ecosystem index [−1, +1].getSignals(limit?, confidence?): Structured automated trading signals.getTopics(): Active narrative clusters with trend scores.getSummary(): Daily briefing document outlining catalyst events.getMarket(): Platform overview, convictions, and monitored channels status.subscribe(callback): Open a WebSockets pipeline to listen to active scrape feeds.unsubscribe(callback): Unregister listener and tear down sockets when inactive.close(): Shut down all active client feeds.
License
MIT License.
