# CryptoFuturesPy
The Python library for different implementations of a exchange interface for cryptocurrency futures trading
[![GitHub issues](https://img.shields.io/github/issues-raw/LeaveMyYard/CryptoFuturesPy?style=flat-square)](https://github.com/LeaveMyYard/CryptoFuturesPy/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/LeaveMyYard/CryptoFuturesPy?style=flat-square)](https://github.com/LeaveMyYard/CryptoFuturesPy/pulls)
[![License](https://img.shields.io/github/license/day8/re-frame.svg?style=flat-square)](LICENSE.txt)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
## Overview
One day, I was tried to be messing with different interfaces of Binance, Bitmex and etc so I desided to create an interface for them and to make some implementations.
So, there exists a Bitmex and a Binance Futures implementation now, but more are coming soon.
All code is written on Python 3.7 with typing specifications.
## Installation
You can easily install it using
`pip install crypto-futures-py`
and then access it in your Python code like that:
```python
from crypto_futures_py import BitmexExchangeHandler
```
<!-- ## Documentation
The documentation is [available here](http://day8.github.io/re-frame/). -->
## Usage
Create an object of your wanted exchange and provide your keys for this exchange there.
```python
from crypto_futures_py import BitmexExchangeHandler
handler = BitmexExchangeHandler("publickey", "privatekey")
```
After that you can call it's methods to load data or to place orders:
```python
handler.start_kline_socket(lambda x: print(x), candle_type="1m", pair_name="XBTUSD")
```
All the methods are described in AbstractExchangeHandler and later would be in a separate documentation.
## TODO
- [x] Add Binance implementation
- [ ] Add a documentation
- [ ] Make websocket threads stoppable
## Licence
CryptoFuturesPy is [MIT licenced](LICENSE.txt)
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
最新资源
- 基于web的在线学习管理系统设计与实现
- 基于JavaWeb的汽车租赁平台论文.doc
- 基于javaweb的KTV点歌管理系统论文.doc
- 预警插件-Fine-report11
- 建设项目现场高温人员中暑事故应急预案.docx
- 建设项目工程超高层测量放线控制方案.docx
- 建筑公司建设项目现场雷电事故应急预案.docx
- 建筑公司员工食物中毒事故应急预案.docx
- 建筑公司建设项目现场风灾事故应急预案.docx
- 建筑集团建设项目火险应急预案.docx
- 深圳建设施工项目物体打击事故应急预案.docx
- 深圳建设项目高处坠落事故应急预案.docx
- 深圳建设项目机械伤害事故应急预案.docx
- 深圳建设项目施工现场各类事故应急预案.docx
- 深圳建设项目现场触电应急预案.docx
- 深圳建设项目坍塌事故应急预案.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈