Parfournir.
Skills/sendaifun/DFlow Protocol

DFlow Protocol

Complete DFlow trading protocol SDK - the single source of truth for integrating DFlow on Solana.

sdk
by @sendaifun
SKILL.md

DFlow - Complete Integration Guide

The definitive guide for integrating DFlow - a trading protocol that enables traders to exchange value across spot and prediction markets natively on Solana.

What is DFlow?

DFlow is a comprehensive trading infrastructure that provides:

  • Trading Applications & Wallets - Token swaps with intelligent routing and 99.9% token coverage
  • Exchanges & Aggregators - Access to billions in monthly routed volume across DEXes and Prop AMMs
  • Financial Institutions & Market Makers - Programmable execution layers with CLPs and async trades
  • Prediction Market Platforms - Discovery, pricing, routing, and settlement infrastructure
  • Key Capabilities

    | Feature | Description |
    |---------|-------------|
    | Token Coverage | 99.9% with millisecond detection |
    | Infrastructure | Globally distributed, high-throughput optimization |
    | Execution | Advanced algorithms with JIT routing for best-price execution |
    | Markets | Support for both spot and prediction market trading |
    | MEV Protection | Enhanced sandwich protection with Jito bundles |

    API Overview

    DFlow provides two main API categories:

    1. Swap API (Trading)

    Base URL: https://quote-api.dflow.net

    For executing trades:

  • Imperative Swaps - Full control over route selection at signature time
  • Declarative Swaps - Intent-based swaps with deferred route optimization
  • Trade API - Unified interface for spot and prediction market trading
  • Order API - Quote and transaction generation
  • 2. Prediction Market Metadata API

    Base URL: https://api.prod.dflow.net

    For querying prediction market data:

  • Events API - Query prediction events and forecasts
  • Markets API - Get market details, orderbooks, outcome mints
  • Trades API - Historical trade data
  • Live Data API - Real-time milestones and updates
  • WebSocket - Streaming price and orderbook updates
  • Authentication


    Most endpoints require an API key via the x-api-key he

    Details

    Categoryblockchain
    Typesdk
    Sourcegithub

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent