Linux command
gocryptotrader 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start the trading engine
gocryptotrader
Start with a specific config file
gocryptotrader -config [config.json]
List supported exchanges using the CLI client
gctcli getexchanges
Get ticker for a currency pair
gctcli getticker --exchange [binance] --pair [BTC-USDT] --asset [spot]
Get account portfolio summary
gctcli getportfoliosummary
Enable or disable an exchange
gctcli enableexchange --exchange [binance]
Get orderbook for a currency pair
gctcli getorderbook --exchange [binance] --pair [BTC-USDT] --asset [spot]
说明
gocryptotrader is an open-source cryptocurrency trading engine written in Go. It supports simultaneous connections to multiple exchanges for trading, portfolio management, and market data retrieval. The companion CLI tool gctcli provides command-line access to the trading engine via gRPC, allowing users to query tickers, manage orders, view portfolios, and configure exchange connections. The engine supports backtesting, live trading, and paper trading modes.
参数
- -config _FILE_
- Path to configuration file.
- -verbose
- Enable verbose output.
- -version
- Display version.
- -help
- Display help.
- -grpchost _HOST_
- gRPC host address (gctcli, default: localhost).
- -grpcport _PORT_
- gRPC port (gctcli, default: 9052).
FAQ
What is the gocryptotrader command used for?
gocryptotrader is an open-source cryptocurrency trading engine written in Go. It supports simultaneous connections to multiple exchanges for trading, portfolio management, and market data retrieval. The companion CLI tool gctcli provides command-line access to the trading engine via gRPC, allowing users to query tickers, manage orders, view portfolios, and configure exchange connections. The engine supports backtesting, live trading, and paper trading modes.
How do I run a basic gocryptotrader example?
Run `gocryptotrader` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -config _FILE_ do in gocryptotrader?
Path to configuration file.