Skip to content

gijzelaerr/pybl3p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pybl3p

A Python bl3p API

installation

$ pip install pybl3p

usage

For the public API

from pybl3p.public import orderbook
orderbook()

For the private API first set your public and private key as environment variables. This procedure might change in the future, but this way you don't accidentally push your private keys in a notebook or source code:

export BL3P_PUB="........-....-....-....-............"
export BL3P_PRIV="(long string with a-z/A-Z/0-9 and =)"

Now from python you can access the private API:

from pybl3p.private import depth_full
depth_full()