Skip to main content

Python SDK for the Orbs order book

Project description

Python SDK for Orb's order book

This Python SDK allows you to query the Orb's order book and place orders.

Please note that this SDK is still in development and is subject to change.

Getting started

The SDK is available on PyPI and can be installed with pip:

pip install orbs-orderbook-sdk

You will need to request an API key from the Orbs team, and provide us with your Externally Owned Account (EOA) wallet address (NOT the private key).

Usage

Creating an order

See examples/create_order.py.

Creating multiple orders in a batch

See examples/create_multiple_orders.py.

Signing an order

See examples/sign_order.py.

Cancelling orders

See examples/cancel_order.py.

Getting orders (open and filled)

See examples/get_orders.py.

Other endpoints

See orbs_orderbook/client.py for the full list of available endpoints.

Folder structure

  • examples: Example scripts
  • orbs_orderbook: The Python SDK source code

Development

Installation

  1. Ensure you have at least Python 3.8 installed

Pip

  1. Run pip install -r requirements.txt to install dependencies

Poetry

  1. Install Poetry
  2. Run poetry install to install dependencies into a virtual environment

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

orbs_orderbook_sdk-0.10.2.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

orbs_orderbook_sdk-0.10.2-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page