Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkristof200/py_bittrex_api
https://github.com/kkristof200/py_bittrex_api
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kkristof200/py_bittrex_api
- Owner: kkristof200
- License: mit
- Created: 2020-05-19T16:38:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T01:01:38.000Z (over 1 year ago)
- Last Synced: 2024-10-14T01:13:23.154Z (about 1 month ago)
- Language: Python
- Size: 129 KB
- Stars: 18
- Watchers: 8
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bittrex_api
![PyPI - version](https://img.shields.io/pypi/v/bittrex_api?style=flat-square)
![PyPI - license](https://img.shields.io/pypi/l/bittrex_api?label=package%20license&style=flat-square)
![PyPI - python version](https://img.shields.io/pypi/pyversions/bittrex_api?logo=pypi&style=flat-square)
![PyPI - downloads](https://img.shields.io/pypi/dm/bittrex_api?logo=pypi&style=flat-square)![GitHub - last commit](https://img.shields.io/github/last-commit/kkristof200/py_bittrex_api?style=flat-square)
![GitHub - commit activity](https://img.shields.io/github/commit-activity/m/kkristof200/py_bittrex_api?style=flat-square)![GitHub - code size in bytes](https://img.shields.io/github/languages/code-size/kkristof200/py_bittrex_api?style=flat-square)
![GitHub - repo size](https://img.shields.io/github/repo-size/kkristof200/py_bittrex_api?style=flat-square)
![GitHub - lines of code](https://img.shields.io/tokei/lines/github/kkristof200/py_bittrex_api?style=flat-square)![GitHub - license](https://img.shields.io/github/license/kkristof200/py_bittrex_api?label=repo%20license&style=flat-square)
## Description
Python implementation of the V1, V2 and V3 Bittrex API. No affiliation to Bittrex.
## Install
~~~~bash
pip install bittrex_api
# or
pip3 install bittrex_api
~~~~## Usage
~~~~python
from bittrex_api import Bittrexbittrex = Bittrex(
api_key='', # YOUR API KEY
secret_key='', # YOUR API SECRET
max_request_try_count=3, # Max tries for a request to succeed
sleep_time=2, # sleep seconds between failed requests
debug_level=3
)v3 = bittrex.v3
# or
# from bittrex_api import *
# v3 = BittrexV3(
# api_key='', # YOUR API KEY
# secret_key='', # YOUR API SECRET
# max_request_try_count=3, # Max tries for a request to succeed
# sleep_time=2, # sleep seconds between failed requests
# debug_level=3,
# reverse_market_names=True
# )# V3 Usage samples
from kcu import kjsonMARKET_NAME = 'BTC-XRP'
kjson.print(v3.get_market(market=MARKET_NAME))
kjson.print(v3.get_market_summary(market=MARKET_NAME))
kjson.print(v3.get_orderbook(market=MARKET_NAME, depth=1))
~~~~## Dependencies
[kcu](https://pypi.org/project/kcu), [requests](https://pypi.org/project/requests)