Developer Overview

Welcome to CapSign's developer ecosystem! Build the next generation of capital markets applications using the CMX Protocol on the CMX Network.

๐Ÿš€ Quick Start for Developers

5-Minute Setup

# 1. Install CapSign CLI
npm install -g @capsign/cli

# 2. Create new project
capsign create my-capital-markets-app

# 3. Deploy to CMX Network testnet
cd my-capital-markets-app
capsign deploy --network testnet

# 4. Start building!

What You Can Build

  • ๐Ÿ“Š Trading Platforms - Decentralized exchanges for capital markets

  • ๐Ÿ’ผ Asset Management - Digital asset custody and portfolio management

  • โš–๏ธ Compliance Tools - Regulatory reporting and KYC/AML solutions

  • ๐Ÿ“ˆ Analytics Dashboards - Real-time market data and insights

  • ๐Ÿค– Trading Bots - Automated trading and arbitrage strategies

๐Ÿ› ๏ธ Development Stack

Smart Contract Development

Frontend Development

Backend Development

๐Ÿ“š Core SDKs

JavaScript/TypeScript SDK

import { CapSignClient, CMXNetwork } from "@capsign/sdk";

// Initialize client
const client = new CapSignClient({
  network: CMXNetwork.MAINNET,
  apiKey: "your-api-key",
});

// Get market data
const markets = await client.markets.getAll();

// Execute trade
const trade = await client.trading.createOrder({
  symbol: "BTC/USD",
  side: "buy",
  amount: 1.0,
  price: 45000,
});

Python SDK

from capsign import CapSignClient, CMXNetwork

# Initialize client
client = CapSignClient(
    network=CMXNetwork.MAINNET,
    api_key='your-api-key'
)

# Get portfolio data
portfolio = client.portfolio.get_balances()

# Create compliance report
report = client.compliance.generate_report(
    start_date='2024-01-01',
    end_date='2024-01-31'
)

๐Ÿ”Œ API Reference

REST APIs

GraphQL APIs

query GetMarketData($symbol: String!) {
  market(symbol: $symbol) {
    symbol
    price
    volume24h
    priceChange24h
    orderBook {
      bids {
        price
        quantity
      }
      asks {
        price
        quantity
      }
    }
  }
}

WebSocket APIs

const ws = new CapSignWebSocket({
  url: "wss://api.cmx.network/v1/ws",
  apiKey: "your-api-key",
});

// Subscribe to real-time market data
ws.subscribe("market.BTC/USD", (data) => {
  console.log("Price update:", data.price);
});

// Subscribe to order updates
ws.subscribe("orders.user", (order) => {
  console.log("Order update:", order);
});

๐Ÿงช Development Environment

Local Development Setup

# 1. Clone starter template
git clone https://github.com/capsign/dapp-template.git
cd dapp-template

# 2. Install dependencies
npm install

# 3. Configure environment
cp .env.example .env
# Edit .env with your API keys

# 4. Start local development
npm run dev

Testing Environment

  • ๐Ÿงช CMX Testnet - Full-featured testing environment

  • ๐Ÿ’ง Faucet - Get test CMX tokens for development

  • ๐Ÿ”ง Mock APIs - Simulate trading and market conditions

  • ๐Ÿ“Š Test Data - Realistic market data for testing

Deployment Options

  • ๐ŸŒ CMX Mainnet - Production deployment

  • ๐Ÿงช CMX Testnet - Staging and testing

  • ๐Ÿ  Local Node - Private development blockchain

  • โ˜๏ธ Managed Infrastructure - Hosted node services

๐Ÿ’ก Code Examples & Tutorials

Getting Started Tutorials

Code Examples

๐Ÿ” Security & Best Practices

Smart Contract Security

API Security

๐ŸŽฏ Advanced Topics

Performance Optimization

Integration Patterns

๐Ÿ“ž Developer Support

Community & Support

Resources

Direct Support


Ready to build the future of capital markets? Start with our Quick Start Guide! ๐Ÿš€๐Ÿ’ผ

Welcome to CapSign's developer ecosystem! Build the next generation of capital markets applications using the CMX Protocol on the CMX Network.

๐Ÿš€ Quick Start for Developers

5-Minute Setup

# 1. Install CapSign CLI
npm install -g @capsign/cli

# 2. Create new project
capsign create my-capital-markets-app

# 3. Deploy to CMX Network testnet
cd my-capital-markets-app
capsign deploy --network testnet

# 4. Start building!

What You Can Build

  • ๐Ÿ“Š Trading Platforms - Decentralized exchanges for capital markets

  • ๐Ÿ’ผ Asset Management - Digital asset custody and portfolio management

  • โš–๏ธ Compliance Tools - Regulatory reporting and KYC/AML solutions

  • ๐Ÿ“ˆ Analytics Dashboards - Real-time market data and insights

  • ๐Ÿค– Trading Bots - Automated trading and arbitrage strategies

๐Ÿ› ๏ธ Development Stack

Smart Contract Development

Frontend Development

Backend Development

๐Ÿ“š Core SDKs

JavaScript/TypeScript SDK

import { CapSignClient, CMXNetwork } from "@capsign/sdk";

// Initialize client
const client = new CapSignClient({
  network: CMXNetwork.MAINNET,
  apiKey: "your-api-key",
});

// Get market data
const markets = await client.markets.getAll();

// Execute trade
const trade = await client.trading.createOrder({
  symbol: "BTC/USD",
  side: "buy",
  amount: 1.0,
  price: 45000,
});

Python SDK

from capsign import CapSignClient, CMXNetwork

# Initialize client
client = CapSignClient(
    network=CMXNetwork.MAINNET,
    api_key='your-api-key'
)

# Get portfolio data
portfolio = client.portfolio.get_balances()

# Create compliance report
report = client.compliance.generate_report(
    start_date='2024-01-01',
    end_date='2024-01-31'
)

๐Ÿ”Œ API Reference

REST APIs

GraphQL APIs

query GetMarketData($symbol: String!) {
  market(symbol: $symbol) {
    symbol
    price
    volume24h
    priceChange24h
    orderBook {
      bids {
        price
        quantity
      }
      asks {
        price
        quantity
      }
    }
  }
}

WebSocket APIs

const ws = new CapSignWebSocket({
  url: "wss://api.cmx.network/v1/ws",
  apiKey: "your-api-key",
});

// Subscribe to real-time market data
ws.subscribe("market.BTC/USD", (data) => {
  console.log("Price update:", data.price);
});

// Subscribe to order updates
ws.subscribe("orders.user", (order) => {
  console.log("Order update:", order);
});

๐Ÿงช Development Environment

Local Development Setup

# 1. Clone starter template
git clone https://github.com/capsign/dapp-template.git
cd dapp-template

# 2. Install dependencies
npm install

# 3. Configure environment
cp .env.example .env
# Edit .env with your API keys

# 4. Start local development
npm run dev

Testing Environment

  • ๐Ÿงช CMX Testnet - Full-featured testing environment

  • ๐Ÿ’ง Faucet - Get test CMX tokens for development

  • ๐Ÿ”ง Mock APIs - Simulate trading and market conditions

  • ๐Ÿ“Š Test Data - Realistic market data for testing

Deployment Options

  • ๐ŸŒ CMX Mainnet - Production deployment

  • ๐Ÿงช CMX Testnet - Staging and testing

  • ๐Ÿ  Local Node - Private development blockchain

  • โ˜๏ธ Managed Infrastructure - Hosted node services

๐Ÿ’ก Code Examples & Tutorials

Getting Started Tutorials

Code Examples

๐Ÿ” Security & Best Practices

Smart Contract Security

API Security

๐ŸŽฏ Advanced Topics

Performance Optimization

Integration Patterns

๐Ÿ“ž Developer Support

Community & Support

Resources

Direct Support


Ready to build the future of capital markets? Start with our Quick Start Guide! ๐Ÿš€๐Ÿ’ผ

Last updated

Was this helpful?