btfx-trader-0.1.6
توضیحات
Simple to use wrappers for the Bitfinex web socket api
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | btfx-trader-0.1.6 |
| نام | btfx-trader |
| نسخه کتابخانه | 0.1.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Djordje Pepic |
| ایمیل نویسنده | djordje.m.pepic@gmail.com |
| آدرس صفحه اصلی | https://github.com/sentrip/btfx_trader |
| آدرس اینترنتی | https://pypi.org/project/btfx-trader/ |
| مجوز | GNU General Public License v3 |
===========
btfx-trader
===========
.. image:: https://img.shields.io/pypi/v/btfx_trader.svg
:target: https://pypi.python.org/pypi/btfx-trader/
.. image:: https://travis-ci.org/sentrip/btfx-trader.svg?branch=master
:target: https://travis-ci.com/sentrip/btfx-trader/
.. image:: https://readthedocs.org/projects/btfx-trader/badge/?version=latest
:target: https://btfx-trader.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://codecov.io/gh/sentrip/btfx-trader/branch/master/graph/badge.svg
:target: https://codecov.io/gh/sentrip/btfx-trader
.. image:: https://pyup.io/repos/github/sentrip/btfx_trader/shield.svg
:target: https://pyup.io/repos/github/sentrip/btfx-trader/
:alt: Updates
Simple to use wrappers for Bitfinex's web socket api
* Free software: GNU General Public License v3
* Documentation: https://btfx-trader.readthedocs.io.
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:
.. code-block:: shell
pip install btfx-trader
Usage
------
To use public data:
.. code-block:: python
from btfx_trader import PublicData
q = PublicData(types=['tickers'], symbols=['BTCUSD'])
q.connect()
while True:
data = q.get('tickers', 'BTCUSD')
To make an order:
.. code-block:: python
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:
.. code-block:: python
# 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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
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.
نیازمندی
| مقدار | نام |
|---|---|
| ==1.1.16 | btfxwss |
| ==2.19.1 | requests |
نحوه نصب
نصب پکیج whl btfx-trader-0.1.6:
pip install btfx-trader-0.1.6.whl
نصب پکیج tar.gz btfx-trader-0.1.6:
pip install btfx-trader-0.1.6.tar.gz