GithubHelp home page GithubHelp logo

bfx-cli's Introduction

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

bfx-cli's People

Contributors

f3rno avatar prdn avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.