Skip to main content

btfx-trader

https://img.shields.io/pypi/v/btfx_trader.svg https://travis-ci.org/sentrip/btfx-trader.svg?branch=master Documentation Status https://codecov.io/gh/sentrip/btfx-trader/branch/master/graph/badge.svg Updates

Simple to use wrappers for Bitfinex’s web socket api

Features

  • Access to cryptocurrency data with an API similar to queue.Queue

  • Simple trading API that responds to account data

Installation

To install btfx-trader, run this command in your terminal:

pip install btfx-trader

Usage

To use public data:

from btfx_trader import PublicData

q = PublicData(types=['tickers'], symbols=['BTCUSD'])
q.connect()

while True:
    data = q.get('tickers', 'BTCUSD')

To make an order:

from btfx_trader import Trader

trader = Trader('YOUR_BITFINEX_KEY', 'YOUR_BITFINEX_SECRET')
trader.connect()
# Order 0.01 BTC at $10000 per bitcoin
order_id = trader.order('BTCUSD', 10000, dollar_amount=100)

To cancel an order:

# for a single order
trader.cancel(order_id)
# for multiple orders
trader.cancel_all(older_than=10)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.6 (2018-10-15)

  • Fix btfxwss dependency update error

0.1.5 (2018-06-04)

  • Fix rendering of docs

0.1.4 (2018-06-04)

  • Updated README

0.1.3 (2018-05-28)

  • Updated codecov config to only run with travis-ci builds.

0.1.2 (2018-05-27)

  • Added codecov to docs.

0.1.1 (2018-05-27)

  • Fixed rendering of readme on pypi.

0.1.0 (2018-05-25)

  • First release on PyPI.

Metadata

Release files for btfx-trader 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for btfx-trader 0.1.6
File Size Uploaded Provenance Actions
btfx_trader-0.1.6.tar.gz 25.6 kB Without provenance Details for btfx_trader-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for btfx-trader 0.1.6
File Interpreter ABI Platform Actions
btfx_trader-0.1.6-py2.py3-none-any.whl Python 3, Python 2 none any Details for btfx_trader-0.1.6-py2.py3-none-any.whl

Total release size: 34.8 kB

Release files / btfx_trader-0.1.6.tar.gz

Download URL btfx_trader-0.1.6.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6f4b6b926123a9bbe910bdf7f6be4e555bbd28e647dbe4b940c70022d659797c
BLAKE2b-256 checksum
How to use checksums
caa02af92f292837db5091041b50b4b8c83b9b4433ddf93ed22d38284a7b147f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Release files / btfx_trader-0.1.6-py2.py3-none-any.whl

Download URL btfx_trader-0.1.6-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
00f448f827af91c49b98690ac236dd0bf067309cc668c6639c3182a1add4c442
BLAKE2b-256 checksum
How to use checksums
789ed33c93c14d965eecb547e6347c3f82fdd3181b2f9cd98a6873c825383bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Security for btfx-trader 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page