npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bttrxr

v1.0.10

Published

a command line app for buying and selling coins on bittrex

Downloads

21

Readme

bttrxr

Command line interface for trading on bittrex.

Features

  • bttrxr accepts percentages for buy/sell amounts and for buy/sell prices. This way, you don't have to type in an exact decimal value for anything.
  • The rates that bttrxr uses for the calculations are refreshed on every command. If you make a buy, it uses the lowest ask price in that instant of time. If you make a sell, it uses the highest bid price.
  • The list, balance, and order commands display in nice colored and formatted tables with several sorting options
  • This command saves alot of time. If you add your api keys to the environmental variables, you will rarely have to login to bittrex.
  • There is a --dryRun option for both buying and selling. This means you can use it for estimations and calculations as well as testing the commands before you run them.

Installation

Prerequisite

Have Node.js installed

npm install -g bttrxr
bttrxr --help

Configuration

bttrxr looks for your api key and secret in the environmental variables On Windows it's easiest to create an environmental variable for BITTREX_API_KEY and BITTREX_API_SECRET under your current user. You will have to restart your computer to have the environmental variables work in Windows.

in linux, add the following lines to the end of your .bashrc or .zshrc

export BITTREX_API_KEY=your-api-key
export BITTREX_API_SECRET=myreallylongsecret

Commands

bttrxr balance [args]

lists your balances
alias: bal
example: bttrxr bal

bttrxr list [currency] [args]

lists all markets for a currency
alias: ls
example: bttrxr ls (defaults to BTC)
list eth markets: bttrxr ls eth
list top 10 highest % change bitcoin markets: bttrxr ls -p -n 10

bttrxr buy [args]

buy some coins
example bttrxr buy btc-eth -p 10 use 10% of your bitcoin reserves to buy ethereum
example bttrxr buy btc-eth -t 0.5 -r 0.09518962 buy 0.5 btc worth of ethereum at a rate of 0.09518962
example bttrxr buy btc-eth -a 4.2 -r 0.09518962 -d buy 4.2 ethereum a rate of 0.09518962 as a dry run
example bttrxr buy btc-eth -t 0.5 -l 10 -d buy 0.5 btc worth of ethereum a rate of 10% lower than the current ask price
example bttrxr buy --help get help for the buy command

bttrxr sell [args]

sell some coins
example bttrxr sell btc-eth -p 10 sell 10% of your etherium back to bitcoin at highest bid
example bttrxr sell btc-eth -p 10 -l 20 sell 10% of your etherium back to bitcoin at 20% higher than highest bid

bttrxr orders [args]

list open orders
alias: ord
example bttrxr ord

bttrxr cancel [args]

cancel open orders
alias: rm
example bttrxr rm 8edc0f9e-2ffa-44c0-8864-278de9bc7dcc

bttrxr --help

show the help menu

Disclaimer

This is a dangerous command! Use it at your own risk! I am not responsible for the trades this program makes!
You should always run it with the --dryRun argument first to get an estimate on your trade.
I have thouroughly tested these commands with all their options and everything seems fine to me, but if you find an issue, feel free to submit it =)
If you have any suggestions, feel free to submit them too!

License

MIT

Donate?

If you like this program, feel free to donate some ethereum!
0x9C291207Af058dAb43328F87130B52f11Be9A369