Skip to content

Latest commit

 

History

History
89 lines (66 loc) · 1.98 KB

README.md

File metadata and controls

89 lines (66 loc) · 1.98 KB

Symbols

Cryptocurrency symbols catalog library

Release Python

Get the advantage of IDE hints for every symbol, don't worry about repeatedly consulting exchange/symbol-specific information. You can have all information in itself as an accessible object.

Disclaimer: The symbols data is updated automatically and periodically, the data in this library can be subject of skewed/lagged information, all the data come from official apis from its respective exchange. Use it at your own risk.

Supported exchanges

Quickstart

Install

pip install git+https://github.com/zatura/symbols.git

Iterating

from symbols import bitfinex
for symbol in bitfinex:
    print(symbol.name)
    print(symbol.significant_digits)
    print(symbol.min_order_size)
> symbol.name='t1INCH:USD' symbol.has_margin=False symbol.min_order_size=2.0
> symbol.name='t1INCH:UST' symbol.has_margin=False symbol.min_order_size=2.0
> symbol.name='tAAVE:USD' symbol.has_margin=False symbol.min_order_size=0.02

Usage

from symbols import bitfinex


symbol = bitfinex.BTCUSD  

print(symbol)
> "tBTCUSD"

print(symbol.name)
> "tBTCUSD"

print(symbol.significant_digits)
> 5

print(symbol.min_margin)
> 5.0

print(symbol.initial_margin)
> 10.0

print(symbol.min_order_size)
> 0.00006

print(symbol.max_order_size)
> 2000.0

print(symbol.has_margin)
> True

print(symbol.exchange)
> "bitfinex"

bitfinex.BTCUSD == 'tBTCUSD'
> True

str(symbol)
> "tBTCUSD"

repr(symbol)
> "tBTCUSD"

print(bitfinex.BTCUSD)
> "tBTCUSD"