Dash Logo
Dash
Twitter

SDK

Build AI-powered applications with our comprehensive SDK, featuring intuitive APIs and powerful tools.

import { DashSDK, AIModel } from "@dash/sdk";

// Initialize the SDK with your configuration
const dash = new DashSDK({
  network: "mainnet",
  apiKey: process.env.DASH_API_KEY
});

// Create an AI-powered trading strategy
const strategy = await dash.createStrategy({
  model: AIModel.YOLO,
  market: "SOL/USDC",
  params: {
    riskLevel: "aggressive",
    timeframe: "5m"
  }
});

// Subscribe to real-time updates
strategy.onTrade((trade) => {
  console.log("New trade executed:", trade);
});

// Start the strategy
await strategy.start();