> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DFlow Trading Skill

> DFlow 거래 API와 Helius 인프라를 결합합니다. 현물 스왑, 예측 시장, 실시간 시장 스트리밍, Proof KYC, 거래 제출을 다룹니다.

**DFlow** 스킬은 AI 어시스턴트를 Solana 거래 애플리케이션 구축 전문가로 만듭니다. [DFlow's](https://pond.dflow.net) 거래 API — 현물 스왑, 예측 시장, 실시간 스트리밍, Proof KYC — 와 Helius 인프라를 결합하여 거래 제출, 수수료 최적화, 자산 질의 및 온체인 모니터링을 제공합니다.

<Info>
  **Claude Code:** `/helius:dflow` (via [plugin](/docs/ko/agents/claude-code-plugin)) 또는 자동 호출 (독립형). **Codex:** `$helius-dflow` (`.agents/skills/`에서 자동 탐색됨). **API / Cursor / ChatGPT:** 사전 빌드된 [시스템 프롬프트 변형](/docs/ko/agents/skills/overview#플랫폼-간-기술-사용)을 사용하세요.
</Info>

## 포함 내용

DFlow 스킬은 AI를 DFlow 및 Helius 도구로 라우팅합니다:

| 도메인            | 사용된 API                           | MCP 도구                                                                    |
| -------------- | --------------------------------- | ------------------------------------------------------------------------- |
| **현물 스왑**      | DFlow Trading API + Helius Sender | `getPriorityFeeEstimate`, `getSenderInfo`, `transferSol`, `transferToken` |
| **예측 시장**      | DFlow Order API + Proof KYC       | `getPriorityFeeEstimate`, `parseTransactions`                             |
| **실시간 시장 데이터** | DFlow WebSockets                  | DFlow MCP 도구                                                              |
| **온체인 모니터링**   | 향상된 WebSockets, LaserStream       | `transactionSubscribe`, `accountSubscribe`, `laserstreamSubscribe`        |
| **포트폴리오 및 발견** | DAS API, Wallet API               | `getAssetsByOwner`, `getWalletBalances`, `getWalletHistory`               |
| **거래 제출**      | Helius Sender                     | `getPriorityFeeEstimate`, `getSenderInfo`                                 |
| **KYC 검증**     | DFlow Proof                       | DFlow MCP 도구                                                              |

## 사전 요구 사항

이 스킬은 두 개의 MCP 서버가 필요합니다:

### Helius MCP 서버 (필수)

[Helius MCP 서버](/docs/ko/agents/mcp)는 거래 제출, 자산 질의 및 온체인 스트리밍을 위한 블록체인 도구를 제공합니다.

```bash theme={"system"}
claude mcp add helius npx helius-mcp@latest
```

### DFlow MCP 서버 (권장)

DFlow MCP 서버는 API 세부 사항, 응답 스키마 및 코드 예제를 질의하기 위한 도구를 제공합니다. MCP가 설치되지 않은 경우에도 DFlow API는 fetch를 통해 직접 호출할 수 있습니다.

```bash theme={"system"}
claude mcp add --transport http DFlow https://pond.dflow.net/mcp
```

<Note>
  [Claude Code plugin](/docs/ko/agents/claude-code-plugin)을 통해 설치하면 두 MCP 서버가 자동으로 시작됩니다.
</Note>

## 독립형 설치

<Steps>
  <Step title="저장소 복제">
    ```bash theme={"system"}
    git clone https://github.com/helius-labs/core-ai.git
    cd core-ai/helius-skills/helius-dflow
    ```
  </Step>

  <Step title="설치 스크립트 실행">
    ```bash theme={"system"}
    ./install.sh
    ```

    다음 위치에 설치: `~/.claude/skills/helius-dflow/`.

    **옵션:**

    * `./install.sh --project` — 현재 프로젝트에 설치
    * `./install.sh --path /custom/path` — 사용자 지정 디렉토리에 설치
  </Step>

  <Step title="MCP 서버 설치">
    ```bash theme={"system"}
    claude mcp add helius npx helius-mcp@latest
    claude mcp add --transport http DFlow https://pond.dflow.net/mcp
    ```
  </Step>

  <Step title="API 키 설정">
    **Helius:**

    ```bash theme={"system"}
    export HELIUS_API_KEY=YOUR_API_KEY
    ```

    **DFlow:** REST 개발 엔드포인트는 API 키 없이 작동 (속도 제한). WebSockets 및 생산 사용에는 [pond.dflow.net/build/api-key](https://pond.dflow.net/build/api-key)에서 키가 필요합니다.
  </Step>
</Steps>

## 예제 프롬프트

설치 후, 쉽게 영어로 질문하세요:

* "DFlow 및 Helius Sender를 사용하여 스왑 인터페이스를 구축하세요"
* "예측 시장 거래 UI를 만드세요"
* "이 예측 시장의 실시간 가격을 스트리밍하세요..."
* "밈코인을 거래하는 거래 봇을 만드세요"
* "예측 시장에서 Proof KYC를 통합하는 방법을 보여주세요"
* "라이브 토큰 가격이 포함된 포트폴리오 대시보드를 구축하세요"

## 복합 워크플로

DFlow 스킬은 여러 API를 걸치는 작업에 뛰어납니다. AI가 자동으로 처리하는 일반적인 패턴은 다음과 같습니다:

### 스왑 / 거래 애플리케이션

DFlow Trading API는 견적 및 라우팅을 위해 사용되며, Helius Sender는 거래 제출을, DAS API는 토큰 목록을, Priority Fee API는 최적 수수료를 담당합니다.

### 예측 시장 UI

DFlow Metadata API는 시장 발견을, DFlow Order API는 거래를, Proof KYC는 신원 확인을, DFlow WebSockets는 라이브 가격을, Helius Sender는 제출을 담당합니다.

### 거래 봇

DFlow WebSockets는 가격 신호를 위한 것이며, DFlow Order API는 실행을, Helius Sender는 제출을, LaserStream은 shred-레벨 지연에서의 깔때기 감지를 담당합니다.

### 포트폴리오 + 거래 대시보드

Wallet API는 보유 자산을, DAS API는 토큰 메타데이터를, DFlow WebSockets는 라이브 가격을, DFlow Order API는 거래를 담당합니다.

## 포함 내용

* **`SKILL.md`** — 거래 애플리케이션을 위한 라우팅 로직, 규칙 및 전문가 컨텍스트
* **`prompts/`** — 사전 빌드된 시스템 프롬프트 변형 (`openai.developer.md`, `claude.system.md`, `full.md`) — [플랫폼 설정](/docs/ko/agents/skills/overview#플랫폼-간-기술-사용) 참조
* **`references/`** — 심층 문서 파일:
  * `dflow-spot-trading.md` — 명령형 및 선언형 스왑 흐름
  * `dflow-prediction-markets.md` — 예측 시장 주문 라이프사이클
  * `dflow-websockets.md` — 실시간 스트리밍 (가격, 주문서, 거래)
  * `dflow-proof-kyc.md` — 예측 시장의 신원 확인
  * `integration-patterns.md` — 복합 패턴 (스왑 실행, 토큰 선택기, CORS 프록시, 봇)
  * `helius-sender.md` — Helius Sender를 통한 거래 제출
  * `helius-priority-fees.md` — 수수료 추정 전략
  * `helius-das.md` — Digital Asset Standard API
  * `helius-laserstream.md` — gRPC 스트리밍
  * `helius-wallet-api.md` — 지갑 분석 및 신원
  * `helius-websockets.md` — WebSocket 구독
  * `helius-onboarding.md` — 계정 설정 및 가입 흐름

## 더 배우기

<CardGroup cols={2}>
  <Card title="스킬 빌드" icon="hammer" href="/docs/ko/agents/skills/build">
    일반적인 Solana 개발을 위한 코어 Helius 스킬
  </Card>

  <Card title="DFlow 문서" icon="book" href="https://pond.dflow.net/introduction">
    공식 DFlow API 문서
  </Card>

  <Card title="DFlow 요리책" icon="code" href="https://github.com/DFlowProtocol/cookbook">
    DFlow 통합을 위한 코드 예제
  </Card>

  <Card title="GitHub" icon="github" href="https://github.com/helius-labs/core-ai">
    소스 코드 및 문제 추적
  </Card>
</CardGroup>
