Skip to content
DiscordTwitter

Quick Start

Get up and running with GrailHub in just a few minutes. This guide will walk you through creating your first automated trading flow.

Make sure you have installed GrailHub Desktop before starting.


When you first launch GrailHub, you’ll see a welcome screen.

Create Flow

  1. Launch GrailHub Desktop.
  2. Click “New Flow” on the welcome screen.
  3. Choose “Blank Flow” template.

Template

  1. Name it: BTC Price Alert
  2. Click “Create”

You’ll see the Flow Builder—a canvas where you’ll build your bot.

Flow Builder


Components are the building blocks. Let’s create a simple Bitcoin price alert.

This fetches the current Bitcoin price.

  1. Navigate to the Components tab.
  2. Search for “Ticker Stream”
  3. Click to add it to the flow or drag the component in
  4. Click the component to configure:
    • Symbol: BTCUSDT
    • Interval: 1s (updates every second)

Binance Ticker

This sends you an alert.

  1. Add component: “Telegram Notification”
  2. Configure it:
    • Bot Token: Your Telegram bot token
    • Chat ID: Your Telegram chat ID
    • Message: Bitcoin is above $50,000! Current price: {{value}}

Telegram Notification

Edges (the lines) show where data flows between components.

  1. Click and drag from the Ticker output handle to the Condition input handle
  2. Click and drag from the Condition output to the Notification input

Connect Components

Then to config the condition click to the icon + in the edges to open filter value

Filter Value

Your flow now:

  1. Gets Bitcoin price every second
  2. Checks if it’s above $500,000
  3. Sends you a Telegram alert when true

Time to test it!

  1. Click the “Test Flow” button in the top

Action Bar

  1. Your flow starts executing
  2. Watch the status in node, if it’s green it means it’s running

Test Flow

  • Green indicators on components show they’re running
  • Data flowing through edges (you’ll see values passing)

Click the “Stop” button when you’re done testing.


Instead of running manually, schedule your flow to run automatically.

  1. Click the “View Runs” Selection -> “Create New Schedule”
  2. Choose the time schedule
  3. Click “Start”

Schedule

Your flow now runs automatically on your schedule!


Let’s break down your first workflow:

  • Binance Ticker: Fetches real-time Bitcoin price from Binance
  • Condition: Evaluates if price meets your criteria
  • Telegram Notification: Sends you an alert
flowchart LR
    A[Binance Ticker] --> B[Condition]
    B --> C[Telegram Notification]

Each component has settings you can adjust:

  • Inputs: What data it needs (e.g., ticker symbol)
  • Outputs: What data it produces (e.g., current price)
  • Config: Component-specific settings (e.g., update interval)

Congratulations! You’ve built your first workflow.

Try these improvements:

Add More Conditions

  • Check multiple price levels
  • Combine with volume indicators
  • Add time-based filters

Add More Notifications

  • Discord alerts
  • Email notifications

Use Technical Indicators

  • RSI (Relative Strength Index)
  • MACD (Moving Average Convergence Divergence)
  • Bollinger Bands

Price Monitoring

  • Track multiple cryptocurrencies
  • Set up price range alerts
  • Monitor percentage changes

Trading Automation

  • Automated buy/sell orders
  • Stop-loss management
  • Portfolio rebalancing

Market Analysis

  • Candlestick pattern detection
  • Volume spike alerts
  • Trend following strategies

Monitor multiple cryptocurrencies:

flowchart LR
    A[Ticker BTC] --> D[Condition]
    B[Ticker ETH] --> D
    C[Ticker SOL] --> D
    D --> E[Notification]

Only trade when multiple conditions are met:

flowchart LR
    A[Price Check] --> D[AND Condition]
    B[Volume Check] --> D
    C[RSI Check] --> D
    D --> E[Place Order]

Send different alerts based on severity:

flowchart LR
    A[Price Check] --> B[Condition > 50k]
    A --> C[Condition > 60k]
    A --> D[Condition > 70k]
    B --> E[Telegram]
    C --> F[Discord]
    D --> G[Email + SMS]

You’re ready to build! Start experimenting with different components and create your own trading strategies.