All Projects → johntitus → Coinx

johntitus / Coinx

Licence: mit
Buy, sell, and find the best prices for crypto-currencies from multiple markets.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Coinx

Coinmon
💰 The cryptocurrency price tool on CLI. 🖥
Stars: ✭ 1,581 (+954%)
Mutual labels:  bitcoin, cryptocurrency, command-line
Cointop
A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
Stars: ✭ 2,912 (+1841.33%)
Mutual labels:  bitcoin, cryptocurrency, command-line
Cryptocurrency Cli
💰 Cryptocurrency Portfolio On The Command Line 💰
Stars: ✭ 99 (-34%)
Mutual labels:  bitcoin, cryptocurrency, command-line
Ebtc
eBitcoin (eBTC) is an ERC20 token. Its primary utility is to provide an easy & fast payment solution. Its edge over other tokens is that it is capable of sending up to 255 payments in a single transaction.
Stars: ✭ 149 (-0.67%)
Mutual labels:  bitcoin, cryptocurrency
Stocklook
crypto currency library for trading & market making bots, account management, and data analysis
Stars: ✭ 119 (-20.67%)
Mutual labels:  bitcoin, cryptocurrency
Gnome Feeder
Profit Trailer Feeder Full Build with Settings
Stars: ✭ 122 (-18.67%)
Mutual labels:  bitcoin, cryptocurrency
Coinbase Pro Node
Coinbase Pro API written in TypeScript and covered by tests.
Stars: ✭ 116 (-22.67%)
Mutual labels:  bitcoin, cryptocurrency
Awdy
are we decentralized yet? an analysis of how truly decentralized cryptocurrency networks are
Stars: ✭ 133 (-11.33%)
Mutual labels:  bitcoin, cryptocurrency
Orko
Trade on and script multiple crypto exchanges from a single user interface on desktop and mobile. In development.
Stars: ✭ 128 (-14.67%)
Mutual labels:  bitcoin, cryptocurrency
Awesome Token Sale
Curated list of token sale resources / ICO resources
Stars: ✭ 149 (-0.67%)
Mutual labels:  bitcoin, cryptocurrency
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (-7.33%)
Mutual labels:  bitcoin, cryptocurrency
Binance Trader
💰 Cryptocurrency Trading Bot for Binance (Experimental)
Stars: ✭ 2,128 (+1318.67%)
Mutual labels:  bitcoin, cryptocurrency
Peatiocryptoexchange
An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
Stars: ✭ 141 (-6%)
Mutual labels:  bitcoin, cryptocurrency
Grokkingbitcoin
Source repository for Grokking Bitcoin
Stars: ✭ 119 (-20.67%)
Mutual labels:  bitcoin, cryptocurrency
Simplecoin
Just a really simple, insecure and incomplete implementation of a blockchain for a cryptocurrency made in Python as educational material. In other words, a simple Bitcoin clone.
Stars: ✭ 1,694 (+1029.33%)
Mutual labels:  bitcoin, cryptocurrency
Cryptocurrencyawesome
Cryptocurrency study materials resources
Stars: ✭ 118 (-21.33%)
Mutual labels:  bitcoin, cryptocurrency
Coinnect
Coinnect is a Rust library aiming to provide a complete access to main crypto currencies exchanges via REST API.
Stars: ✭ 130 (-13.33%)
Mutual labels:  bitcoin, cryptocurrency
Coinflict Of Interest
Browser extension to show user biases on Crypto Twitter.
Stars: ✭ 142 (-5.33%)
Mutual labels:  bitcoin, cryptocurrency
Moneda Cli
Command line to track cryptocurrency prices
Stars: ✭ 114 (-24%)
Mutual labels:  bitcoin, cryptocurrency
Coingraph
Coingraph is a real-time graph for cryptocurrencies.
Stars: ✭ 116 (-22.67%)
Mutual labels:  bitcoin, cryptocurrency

coinx

A command-line tool to interact with multiple crypto-currencies exchanges. Buy, sell, find the best price, and check your exchange balances.

Setup

Usage

Security

Automation

Install

Install it globally on your computer. npm install -g coinx

Upgrade to the latest version

Coinx is currently at version 0.10.0 You can upgrade with npm: npm update -g coinx

Supported Exchanges

Currently: Kraken, Poloniex, Bitfinex, Liqui, Bittrex.

Configure

The tool uses your exchange API keys to make requests and queries. You'll have to get your API keys from each exchange manually, but then you can store it in the tool by using the config command.

$ coinx config kraken
? Kraken API Key abcd
? Kraken API Secret efgh
Saved data for Kraken

Note: Your API Keys and Secrets are stored in your operating system home directory in a coinx directory as a JSON file.

Update

Use coinx update to update coinx with the latest list of coins from coinmarketcap.com.

Coin Price

Get the price of any crypto-currency by using the coin's symbol. Bitcoin is shown in US Dollars, all other coins are shown in BTC and in US Dollars.

For example, to get the price of Bitcoin:

$ coinx price btc
Getting prices for BTC...
Exchange Price in USD
Liqui        $2419.87
Bitfinex     $2429.68
Poloniex     $2431.92
Bittrex      $2442.46
Kraken       $2454.00
                     
Average      $2435.59

Or, to get the price of Etherium:

$ coinx price eth
Getting prices for Ethereum (ETH)...
Exchange Price in BTC Price in USD
Liqui      0.08789270      $208.30
Poloniex   0.08809500      $208.78
Kraken     0.08811500      $208.82
Bitfinex   0.08821900      $209.07
Bittrex    0.08840483      $209.51
                                  
Average    0.08814531      $208.89

Or, for Siacoin:

$ coinx price sc
Getting prices for Siacoin (SC)...
Exchange Price in BTC Price in USD
Bittrex    0.00000335        $0.01
Poloniex   0.00000333        $0.01
                                  
Average    0.00000334        $0.01

Check Exchange Funds

Check your balances on the exchanges.

$ coinx funds
Getting balances...
Poloniex
Name             Symbol          Count Value USD
Bitcoin          BTC        0.03227520    $76.51
Siacoin          SC      2465.11765598    $19.46
NEM              XEM      151.10258763    $18.43
Dash             DASH       0.09817530    $16.94

...

Options:

$ coinx funds --help
Options:

    -e, --exchange [name]  Get balances at the specified exchange.
    -a, --alphabetically   Sort the balance list alphabetically.
    -n, --numerically      Sort the balance list by the number of coins, descending.
    -c, --coin [symbol]    Only get balances for this coin.

For example, to check balances only on Liqui:

$ coinx funds -e poloniex
Getting balances on Liqui...
Liqui
Name                  Symbol        Count Value USD
Bitcoin               BTC      0.02564645    $30.77
Ethereum              ETH      0.08706164    $18.04
Augur                 REP      0.66674308    $13.59
MobileGo              MGO     17.23038495    $13.33
...

Or, to check how many BTC you have on all the exchanges:

$ coinx funds -c btc
Getting balances...
Poloniex
Name    Symbol      Count Value USD
Bitcoin BTC    0.00227520    $6.53
Total                        $6.53
Kraken
Name    Symbol      Count Value USD
Bitcoin BTC    0.00237879    $6.40
Total                        $6.40
Liqui
Name    Symbol      Count Value USD
Bitcoin BTC    0.00256464    $6.81
Total                        $6.81


Buy Coins

Buy a coin by specifying, in US dollars, how much you want to spend. Note that BTC is what will actually be spent! You must have the necessary BTC available on the exchange for the purchase to go through.

Coinx will automatically use the exchange with the best rate, unless you specify an exchange to use via the --exchange option.

Before the purchase goes through, you'll be asked to confirm.

For example, to buy $2 worth of AntShares at the best available price:

$ coinx buy ans -$ 2
Checking AntShares (ANS) on the markets...
Best price found on Bittrex at $8.14

*Note that the number of coins may change slightly if the market fluctuates*
? Buy about 0.24562982 worth of ANS? Yes
Buying...
Order complete!
Bittrex order number xxxxx-xxxxx-xxxxxxx
Bought 0.2461696 ANS
Worth about $2.00

Or, to buy $2 worth of Ethereum on the Liqui exchange:

$ coinx buy eth -e liqui -$ 2
Checking Ethereum (ETH) on the markets...
Best price found on Liqui at $278.70

*Note that the number of coins may change slightly if the market fluctuates*

? Buy about 0.00717629 worth of ETH? Yes
Buying...
Order complete!
Liqui order number 0
Bought 0.00717629 ETH
Worth about $2.00

The results of all purchases are logged into {home folder}/coinx/log.csv.

Sell Coins

Coming soon.

Lock

Encrypt the file that contains your API keys. Please choose a good password, and don't forget it. If you do forget it, you'll have to delete the coinx.json file in your {homedir}/coinx folder, and rerun coinx config for each exchange.

coinx lock password

After you lock your config, you will not be able to use coinx until you unlock it.

Unlock

Decrypt your API key file.

coinx unlock password

Actions

Actions are a way to automate steps in coinx.

Buy all the Coins!

Lets you buy the top crypto coins by market cap. Specify how much you want to spend per coin (-$), and how many coins you want to buy (-t, default is 50).

You can exclude coins by putting their symbol into the exclude_coins.txt in the actions/buyallthecoins folder.

$ coinx action buyallthecoins -$ 2 -t 50
Buy all the coins!
Spend per coin: $2
Coins to buy: 50
Maximum spend: $100 (assumes all coins available to buy)
Will not buy:  BTC, USDT, BCC, VERI
? Proceed? Yes
Getting latest Market Cap list...
Got list...
Skipping excluded coin Bitcoin.

Buying Ethereum.
Checking Ethereum (ETH) on the markets...
Best price found on Bittrex at $228.64
Buying 0.00874752 Ethereum on Bittrex
Order complete!
Bittrex order number e2fffabd-915b-4d13-bf37-af534cf82af8
Bought 0.00874747 ETH at 0.08268905 BTC per coin
Worth about $2.00

Buying Ripple.
Checking Ripple (XRP) on the markets...
Best price found on Bittrex at $0.20
...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].