Skip to content

bitnomial/python-btnl-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Bitnomial Client

This is a basic python SDK for Bitnomial's trading interface.

Documentation

Development

Setup a virtualenv either manually or with direnv.

Once you have a python virtualenv install dependencies with pip install .. If your editor supports language servers consider using pyright.

Usage

The modules can be imported and used as a library. Particular modules that users might start with are

In addition to the example code in each of these modules the library has a CLI tool for interactive usage and testing. This interface is likely to change between versions, so it's not recommended to build applications against it. Some example commands are shown below

Setup a default websocket feed and print events as they occur

$ python -m btnl_client ws-feed

Query orders for a given connection ID

$ python -m btnl_client get-orders <connection_id> <auth_token>

Query fills for a given connection ID

$ python -m btnl_client get-fills <connection_id> <auth_token>

Query active product specs

$ python -m btnl_client get-product-specs --active 

Query product spec for a specific product

$ python -m btnl_client get-product-spec <product_id>

For extended information usage, including a full list of commands and their options and flags, use the --help flag

About

Basic Python library for Bitnomial's trading interface

Resources

License

Stars

Watchers

Forks