trade python api包装器

bitfex的Python项目详细描述


BitFex-API.py文件

BitFex.trade交易API python库

安装

pip install bitfex

用法示例

frombitfex_apiimportApiclient=Api(token='4320dbf5-3df1-483d-a155-1fc860c4a14d')client.user().response# ApiResponse(#   success=True,#   response={'username': 'client', 'balances': {'BTC': 0.985e-05, 'RUR': 0.0, ..., 'DOGE': 0.0}},#   error=None# )client.orders_my()# ApiResponse(#   success=True,#   response={'orders': [#     {'id': 1, 'pair': 'KWH_ETH', 'amount': 10000.0, 'price': 1.2e-07, 'operation': 'sell', 'completed': False, 'updated': 1563824693000, 'user_id': 'xx12'},#     ...#   ]}# )client.orders('BTC_RUR')# ApiResponse(#   success=True,#   response={'orders': [#     {'id': 11256624, 'pair': 'BTC_RUR', 'amount': 2.597e-05, 'price': 640988.03, 'operation': 'buy', 'completed': True, 'updated': 1563995215000, 'user_id': 'YZ'},#     ...#   ]}# )client.create_order(pair='BTC_RUR',operation='buy',amount=0.01,price=600000.0)# ApiResponse(success = True) # fully completed# ApiResponse(success = True, response = {'order_id': 1}) # not fully completedclient.cancel_order(order_id=1)# ApiResponse(success = True)

许可证

麻省理工学院

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
AmazonS3查找从S3forJava下载的压缩文件的MIME类型   java如何使用Selenium在<span>中查找具有特定文本的元素   python如何使用OpenIEDemo生成自定义三元组。由stanfordnlp提供的java   java遇到“方法不适用”编译错误   java如何使用Mockito在Looper中运行的验证代码。getMainLooper?   类Java目录错误   java在已知其他泛型信息时使用原始类型   java connect()和disconnect()在哪里实现?   java使用PDF Box库拆分PDF,生成的PDF几乎与源PDF文件大小相同   java PowerMockito返回错误的对象   java如何找到TIBCO集合消息的字节编码?   java Basic音乐播放器下一步和上一步按钮   添加模块描述符时,java没有名为“entityManagerFactory”的bean可用   java为什么我的代码不是线程安全的?   eclipse java。引用项目中的类的lang.NoClassDefFoundError