Skip to content
Trade Telegraph CLI tool
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
bin 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
install 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
src 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
templates 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
test 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
.babelrc
.gitignore 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
.prettierrc 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
LICENSE 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
README.md
activate 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
jest.config.js 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019
package.json 1) Introduce trade-cli. A commandline tool to trade cryptocurrencies … Jun 15, 2019

README.md

Trade CLI Netlify Status

Command Line Interface to Trade Telegraph API.

Install

# Install Trade Telegraph CLI tool
curl https://gettradetelegraph.com/latest | bash

Usage

# View all commands
trade-cli

# View settings
trade-cli view-settings

# View book
trade-cli view-standard-book ethbtc

Testing

Install from Github

# Install source
cd YOUR_WORKING_DIRECTORY
git clone https://github.com/Trinkler/trade-cli.git

# Install node modules
cd ./tradetelegraph
yarn install

# Install settings
mkdir $HOME/.tradetelegraph
cp ./test/settings/settings-cp2.json ~/.tradetelegraph/settings.json

Set up a buy trade

use-tt-cp1
trade-cli add-limit-buy ETHBTC 0.001 0.1 # place BID (buy 0.001 ETH for 0.1 BTC/ETH)

use-tt-cp2
trade-cli view-book ETHBTC
trade-cli add-limit-sell ETHBTC 0.001 0.1 # place ASK (sell 0.001 ETH for for 0.1 BTC/ETH)

# initiate channel
use-tt-cp1
trade-cli view-settlement-history # get the settlement id (Settlement Details)
trade-cli settle adc837f6-2294-4625-b624-5e082ea711f3 # assuming settlementId = adc837f6-2294-4625-b624-5e082ea711f3

# participate channel
use-tt-cp2
trade-cli view-settlement-history # get the settlement id (Settlement Details)
trade-cli settle adc837f6-2294-4625-b624-5e082ea711f3 # assuming settlementId = adc837f6-2294-4625-b624-5e082ea711f3

# redeem 'participate channel'
use-tt-cp1
trade-cli view-settlement-history # get the settlement id (Settlement Details)
trade-cli redeem adc837f6-2294-4625-b624-5e082ea711f3

# redeem 'initiate channel'
use-tt-cp2
trade-cli view-settlement-history # get the settlement id (Settlement Details)
trade-cli redeem adc837f6-2294-4625-b624-5e082ea711f3

Set up a sell trade

use-tt-cp1
trade-cli add-limit-sell ETHBTC 0.001 0.1 # place ASK (sell 0.001 ETH for 0.1 BTC/ETH)

use-tt-cp2
trade-cli view-book ETHBTC
trade-cli add-limit-buy ETHBTC 0.001 0.1 # place BID (buy 0.001 ETH for 0.1 BTC/ETH)

# initiate channel
use-tt-cp1
trade-cli view-settlement-history # get the settlement id (Settlement Details)
trade-cli initiate-settlement adc837f6-2294-4625-b624-5e082ea711f3 # assuming settlementId = adc837f6-2294-4625-b624-5e082ea711f3

# participate channel
use-tt-cp2
trade-cli view-settlement-history # get the settlement id (Settlement Details)
trade-cli participate-settlement adc837f6-2294-4625-b624-5e082ea711f3 # assuming settlementId =
You can’t perform that action at this time.