Skip to main content
Claude Code is Anthropic’s official CLI tool for AI-assisted development. Use it to build trading bots and market analysis tools powered by The Brain.

Prerequisites

  • Active Claude subscription (Pro, Max, or API access)
  • Gigabrain API key from your Profile
  • Node.js or Python installed

Setup

1

Install Claude Code

Install Claude Code globally via npm:
2

Create your project

Set up a new trading bot project:
Create .env file:
3

Configure Claude Code

Create CLAUDE.md in your project root to teach Claude about Gigabrain API:
4

Start Claude Code

Run Claude Code in your project directory:
Claude will read your CLAUDE.md and understand Gigabrain API patterns.

Example: Market Sentiment Analyzer

Build a tool that aggregates multiple sentiment indicators into a single market regime score.

Using Claude Code Effectively

Example Prompts

Ask Claude Code to help you build trading tools: Build a liquidation tracker:
Create a narrative momentum dashboard:
Implement a multi-timeframe analyzer:

Best Practices

1. Structured Queries

Always specify exact JSON fields for consistency:

2. Error Recovery

Implement robust error handling:

3. Response Caching

Cache responses to reduce API calls:

Next Steps

Brain API Overview

Complete reference for all agents and data types

REST API Docs

Authentication, endpoints, and error handling

Cursor Integration

Build trading bots with Cursor AI

Windsurf Integration

Use Windsurf Cascade with Gigabrain API
Gigabrain provides market intelligence tools, not financial advice. Implement proper risk management in all trading applications. See the Risk Disclosure.