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 🙏

© 2024 – Pkg Stats / Ryan Hefner

bfx-cli

v1.0.0

Published

Bitfinex CLI Trading Interface

Downloads

3

Readme

Bitfinex Trading CLI Interface

Build Status

Thin wrapper around the examples included with the official Bitfinex Node.JS API library that provides a CLI interface for specifying parameters and rendering of results.

Can be configured with API credentials that are encrypted locally on disk pull or them from the environment.

Features

  • Cross platform (Linux, MacOS, and Windows)
  • Uses the official library for all tasks
  • Encrypted credential storage in ~/.bfxclirc
  • Nearly full API method coverage
    • Data feed streaming
    • Order execution
    • Order & position manipulation
    • Wallet transfers
    • Platform status reporting
    • And more!

Installation

npm i -g bfx-cli

To configure your API credentials, run bfx-cli credentials

Usage

Run bfx-cli from a terminal to see a list of available commands:

bfx-cli credentials                       Configure API credentials
bfx-cli watch-liquidations                Monitor the liquidations feed
bfx-cli watch-candles <market> <tf>       Monitor a candle feed
bfx-cli watch-trades <market>             Monitor a trade feed
bfx-cli watch-order-book [market]         Render a live order book
bfx-cli margin-info                       Fetch and display margin information
bfx-cli transfer <q> <ccy> <s> <d>        Transfer between wallets
bfx-cli balances                          Fetch and display wallet balances
bfx-cli positions                         Fetch & display all open positions
bfx-cli order-history <market>            Fetch order history
bfx-cli trade-history <market>            Fetch trade history
bfx-cli close [market]                    Close open position(s)
bfx-cli claim [market]                    Claim open position(s)
bfx-cli order                             Submit an order
bfx-cli currencies                        Fetch & display all available currencies
bfx-cli tickers [market]                  Fetch and display one or multiple tickers
bfx-cli cancel                            Cancel all open orders
bfx-cli orders [market]                   Fetch & display all open orders
bfx-cli status                            Query platform status
bfx-cli download-candles <market> <tf>    Download a candle dataset
<count>
bfx-cli download-trades <market> <count>  Download a trade dataset
<to>

Configuring

To configure bfx-cli, run bfx-cli configure and follow the instructions. Alternatively, you can supply credentials on the environment with the API_KEY and API_SECRET env variables.

The following extra environment variables are supported:

  • WS_URL - optional Bitfinex WSv2 endpoint URL
  • REST_URL - optional Bitfinex RESTv2 endpoint URL
  • SOCKS_PROXY_URL - optional local socksv4 proxy URL to use for both RESTv2 & WSv2 transports

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request