Skip to content
/ firi Public

Interact with Firi's API, a Nordic crypto exchange.

License

Notifications You must be signed in to change notification settings

offish/firi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firi

Version Stars Issues Size Code style

Python package for interacting with Firi's API.

Non-refferal link here.

THIS PACKAGE DOES NOT CURRENTLY SUPPORT PRIVATE ENDPOINTS.

Installation

Install and update using pip

pip install --upgrade firi

Usage

>>> from firi import Firi, floatify, BITCOIN, XRP

>>> firi = Firi()

>>> firi.get_market(BITCOIN) # or get_prices(BTC) or "BTCNOK". Predefined tickers can be found in markets.py
{'last': '480408.40', 'high': '533400.00', 'change': '-7.77', 'low': '460000.00', 'volume': '46.86'}

>>> firi.get_markets() # or get_tickers()
[{'id': 'BTCNOK', 'last': '473000.20', 'high': '533400.00', 'change': '-9.25', 'low': '460000.00', 'volume': '47.21'}, ...]

>>> floatify(firi.get_market(XRP))
{'last': 9.4, 'high': 10.95, 'change': -14.16, 'low': 7.44, 'volume': 1291258.8}

Documentation

Firi's official documentation can be found here.

Donate

BTC: 37hb1eSbodHcKBdH2RbVenbFhkVVGXG2z5

ETH: 0x7862b653d13f2e08df6ee129041511d01a3a0f59