Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gilokimu/pyxchange
Class based. Rest client implementation of the HITBTC API. Great for large crypto projects
https://github.com/gilokimu/pyxchange
api bitcoin crypto declarative-api exchage hitbtc python
Last synced: about 1 month ago
JSON representation
Class based. Rest client implementation of the HITBTC API. Great for large crypto projects
- Host: GitHub
- URL: https://github.com/gilokimu/pyxchange
- Owner: gilokimu
- Created: 2019-07-26T05:03:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-11T02:43:49.000Z (over 5 years ago)
- Last Synced: 2024-12-08T20:14:50.643Z (about 1 month ago)
- Topics: api, bitcoin, crypto, declarative-api, exchage, hitbtc, python
- Language: Python
- Homepage: https://gilo.me
- Size: 39.1 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyExchange
Scope of the project has change - Python wrapper for several cryptocurrency exchange APIs.# Installation
```
pip install pyXchange
```# Currently supports
1. Hitbtc## Previously
Rest client implementation of the HITBTC API according to the rest doc here# Motivation
Most crypto API on github only either provide a guide on how to retrieve data or provide a json dump which quickly becomes unmaintainably as the complexity of the project kicks in. This project seeks to structure data responses from hitbtc API and eventually become augnestic of the crypto exchange# !!! Under Construction !!!
I am still moving files around, once done, I will provide documentation on how to use the client.## Usage
To retrieve order you have made```python
api = OrderService()
order = api.historical_orders()
pprint(order)
```And the output you will receive
```python
{
'clientOrderId': '',
'createdAt': datetime.datetime(2019, 7, 26, 3, 30, 25, 96000),
'price': Decimal('9698.33'),
'quantity': Decimal('0.00003'),
'side': 'sell',
'status': 'filled',
'symbol': 'BTCUSD',
'timeInForce': 'GTC',
'type': 'limit',
'updatedAt': datetime.datetime(2019, 7, 26, 3, 45, 0, 682000)
}
```