Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/banteg/liqui
liqui.io api wrapper
https://github.com/banteg/liqui
api cryptocurrency liqui python trading wrapper
Last synced: 3 months ago
JSON representation
liqui.io api wrapper
- Host: GitHub
- URL: https://github.com/banteg/liqui
- Owner: banteg
- Created: 2017-07-07T21:11:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T05:03:25.000Z (over 7 years ago)
- Last Synced: 2024-10-30T02:21:16.185Z (3 months ago)
- Topics: api, cryptocurrency, liqui, python, trading, wrapper
- Language: Python
- Size: 2.93 KB
- Stars: 21
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# liqui
a minimal [liqui.io api](https://liqui.io/api) wrapper
## installation
```
pip install liqui
```## usage
```python
from liqui import Liqui
from somewhere_else import key, secretliqui = Liqui(key, secret)
# public api
liqui.info()
liqui.ticker('eth_btc')
liqui.depth('eth_btc')
liqui.trades('eth_btc')# private api
liqui.get_info()
liqui.active_orders()
liqui.order_info(314159265)
liqui.cancel_order(271828182)
liqui.trade('eth_btc', 'sell', 0.13, 10)
liqui.trade_history()# convenience methods
liqui.balances()
liqui.sell('eth_btc', 0.14, 10)
liqui.buy('eth_btc', 0.12, 10)
```