blave-quant

SKILL.md

Blave CLI Skill

This skill provides a comprehensive interface to the blave command-line tool. Before executing any commands, ensure that blave is installed and the virtual environment is properly set up.

1. Fetch News

Purpose: Retrieve news articles using keywords with customizable language, period, and result limits.
When to Use: When you want to gather recent news for analysis or strategy signals.
Parameters:

  • keyword (str) — The search term to fetch news for. Required.
  • max_results (int, default=10) — Maximum number of news articles to return.
  • lang (str, default="en") — Language of the news articles (e.g., "en" for English, "zh" for Chinese).
  • period (str, default="7d") — Time range for news articles (e.g., "1d", "7d", "30d").

Execution Steps:

  • Run the fetch_news command with a keyword:
    blave fetch_news "bitcoin" --max_results 10 --lang en --period 7d
    

2. Fetch Hyperliquid Account Value

Purpose: Retrieve your account value on Hyperliquid (both spot and perp balances). When to Use: To monitor your assets and margin positions.

Execution Steps:

  • Run the command:
    blave fetch_hyperliquid_account_value
    

3. Adjust Hyperliquid Portfolio

Purpose: Automatically adjust your Hyperliquid positions to match a target portfolio. Supports both buying and selling based on current holdings. When to Use: To align your current positions with a predefined strategy or OpenClaw target portfolio.

Execution Steps:

  • Define your target portfolio as a JSON string. For example:

    '{"BTC": 500, "ETH": 300}'
    
  • Run the command:

    blave adjust_hyperliquid_portfolio '{"BTC": 500, "ETH": 300}'
    
  • The Skill will:

    1. Fetch your current Hyperliquid positions (perp and/or spot).

    2. Calculate the difference between current positions and target portfolio.

    3. Place market orders to buy or sell tokens as needed.

    4. Return a list of executed orders with details:

Notes:

  • target_portfolio amounts are in USD by default.

  • Small differences below a minimum threshold (min_usd_order) are ignored to prevent frequent tiny trades.

  • Make sure market_order function is properly configured for USD-to-token conversion and precision.

4. Fetch Holder Concentration

Purpose: Retrieve the latest Holder Concentration (籌碼集中度) for a given cryptocurrency. When to Use: When you want the most recent alpha metric to analyze market concentration and holder distribution. Parameters:

  • symbol (str) — Cryptocurrency symbol (e.g., "BTC", "ETH"). Required.

Execution Steps:

  • Run the fetch_holder_concentration command for a specific coin:
    blave fetch_holder_concentration BTC
    

5. Fetch Threads Insight Table

Purpose: Retrieve the latest Threads posts along with their engagement insights. When to Use: When you want to analyze recent Threads activity and metrics for your account. Execution Steps:

  • Run the fetch_threads_insight_table command to get the latest Threads data:
    blave fetch_threads_insight_table
    

6. Create Text Post

Purpose: Publish a new text-only post on Threads. When to Use: When you want to post updates, announcements, or content directly to your Threads account. Parameters:

  • text (str) — The content of the post. Required.

Execution Steps:

  • Run the create_text_post command with your desired text:
    blave create_text_post "Hello World from my bot!"
    

7. Fetch Taker Intensity

Purpose: Retrieve the latest Taker Intensity (多空力道) for a given cryptocurrency. When to Use: Use this command when you want to measure the aggressiveness of market participants (taker buying vs selling pressure) for a specific cryptocurrency. It helps identify short-term trading momentum and market dominance. Parameters:

  • symbol (str) — Cryptocurrency symbol (e.g., "BTC", "ETH"). Required.
  • timeframe (str) — Time range used for the taker intensity calculation (e.g., 1h, 4h, 24h). Optional. Default: 24h.

Execution Steps:

  • Run the fetch_holder_concentration command for a specific coin:
    blave fetch_taker_intensity BTC --timeframe 24h
    
Weekly Installs
6
GitHub Stars
2
First Seen
10 days ago
Installed on
openclaw6
github-copilot6
codex6
kimi-cli6
gemini-cli6
cursor6