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.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orbs_orderbook_sdk-0.10.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file orbs_orderbook_sdk-0.10.1.tar.gz.

File metadata

  • Download URL: orbs_orderbook_sdk-0.10.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/6.5.0-1016-azure

File hashes

Hashes for orbs_orderbook_sdk-0.10.1.tar.gz
Algorithm Hash digest
SHA256 3a806083954dd7372f1b255013e8922017ff307884f88f25f49fae87e40d5597
MD5 759e73778370df88a328c70ac59f8090
BLAKE2b-256 ea21e6604bd6e1eb5d85642eb55eceb51e96879e9d274e73b4709882b382e2de

See more details on using hashes here.

File details

Details for the file orbs_orderbook_sdk-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: orbs_orderbook_sdk-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/6.5.0-1016-azure

File hashes

Hashes for orbs_orderbook_sdk-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68305e4b5a929566b99d59bbc523089a07bdc2f34b82e54972d276a61656fa9b
MD5 64974ee469496b03dfb9c2152af5a208
BLAKE2b-256 f75d0b031885e1faee5cc823dc21b63f380553169c090883cd1836e62b1a7598

See more details on using hashes here.

Supported by

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