← 返回
数据分析 Key 中文

Bitstamp Trader

Safety-first Bitcoin and crypto trading on Bitstamp via CLI. Use when the user wants to check crypto prices, view account balance, place buy/sell orders, man...
通过 CLI 在 Bitstamp 进行安全至上的比特币及加密货币交易。适用于查询加密货币价格、查看账户余额、下单买卖等操作。
zhen08
数据分析 clawhub v1.0.0 1 版本 99863.2 Key: 需要
★ 0
Stars
📥 730
下载
💾 19
安装
1
版本
#latest

概述

Bitstamp Trader

Safety-first crypto trading CLI powered by CCXT.

Quick Reference

All commands use the script at scripts/bitstamp.py. Run via:

python3 scripts/bitstamp.py <command> [options]

Market Data (no auth needed)

python3 scripts/bitstamp.py ticker                    # BTC/USD price
python3 scripts/bitstamp.py ticker -m ETH/USD         # ETH price
python3 scripts/bitstamp.py orderbook -m BTC/USD -d 5 # Top 5 order book
python3 scripts/bitstamp.py markets --all              # All available pairs

Account (requires API keys)

python3 scripts/bitstamp.py balance           # Account balances
python3 scripts/bitstamp.py orders            # Open orders
python3 scripts/bitstamp.py trades --limit 10 # Recent trade history

Trading (dry-run by default)

# Dry-run (simulation)
python3 scripts/bitstamp.py buy 0.001 -m BTC/USD              # Market buy
python3 scripts/bitstamp.py buy 0.001 -m BTC/USD -p 50000     # Limit buy
python3 scripts/bitstamp.py sell 0.5 -m ETH/USD               # Market sell

# Live execution (add --live)
python3 scripts/bitstamp.py buy 0.001 -m BTC/USD --live       # REAL market buy
python3 scripts/bitstamp.py sell 0.5 -m ETH/USD -p 4000 --live

Order Management

python3 scripts/bitstamp.py cancel --order-id 12345 -m BTC/USD
python3 scripts/bitstamp.py cancel --all   # Cancel all open orders

Safety Controls

python3 scripts/bitstamp.py kill-switch                         # EMERGENCY STOP
python3 scripts/bitstamp.py kill-switch --status                # Check status
python3 scripts/bitstamp.py kill-switch --deactivate            # Resume trading
python3 scripts/bitstamp.py config                              # View safety limits
python3 scripts/bitstamp.py config --set max_order_size_usd=200 # Adjust limits
python3 scripts/bitstamp.py audit --limit 30                    # View audit log

Setup

  1. Set API keys as environment variables:

```bash

export BITSTAMP_API_KEY="your-key"

export BITSTAMP_API_SECRET="your-secret"

```

  1. On Bitstamp, create an API key with Orders permission only (NO Withdrawals). Enable IP whitelisting.
  1. Test with: python3 scripts/bitstamp.py ticker

Safety Details

See references/safety.md for full safety architecture:

  • Dry-run default, kill switch, max order size, daily limits, price sanity checks

API Details

See references/api-reference.md for Bitstamp API specifics, permissions, and rate limits.

Important Rules

  • NEVER place live orders without explicit user confirmation. Always dry-run first.
  • NEVER store API keys in files. Use environment variables only.
  • When user says "buy" or "sell" without --live, always run as dry-run and show what WOULD happen.
  • For live trades, always show the dry-run result first, then ask for confirmation before adding --live.
  • If anything seems wrong (price spike, unusual volume, API errors), activate the kill switch.
  • Log everything. Check audit log when debugging issues.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,589
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,091
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,168