Lib for fisco Private and Public API
Project description
python_fisco
Fisco API wrapper for Python 3.
Inspired by this wrapper written by 'zaifapi'.
Install latest release:
pip install python-fisco
Usage:
from python_fisco import *
FiscoPublic().get_ticker('btc_jpy')
Public Api
# ticker
from python_fisco import *
FiscoPublic().get_ticker('btc_jpy')
# last_price
FiscoPublic().get_last_price('btc_jpy')
# trades
FiscoPublic().get_trades('btc_jpy')
# depth
FiscoPublic().get_depth('btc_jpy')
Private API
import os
from python_fisco import *
private_api = FiscoPrivate(os.environ.get('FCCE_KEY'), os.environ.get('FCCE_SECRET'))
private_api.get_info()
private_api.get_trade_history()
private_api.get_active_orders()
from decimal import Decimal
private_api.trade(currency_pair='btc_jpy', action='ask', price=Decimal(70000), amount=Decimal(0.001))
private_api.cancel_order(order_id=1)
private_api.withdraw(currency='btc', address='address', amount=Decimal(0.001))
private_api.get_deposit_history('btc')
private_api.get_withdraw_history('btc')
See
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_fisco-0.0.4.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for python_fisco-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65e033cd802fe6d7ae23bf249457ec5a32ea1576c957b27d2949f5d2ac0f80eb |
|
MD5 | 3b90a3f916e65f881c2089fe98e716a4 |
|
BLAKE2b-256 | c94a8ff1c9656f80acba1f7e9a6e4e9423c74d47871f2159e22742ebd3d881cc |