Skip to main content

Python Client to interact with the Namebase Exchange API

Project description

Namebase Exchange Api for Python

Open Issues Open Issues PyPI MIT Licence Total alerts Total alerts

Python 3.6+ client for interacting with Namebase Exchange API.

Usage

All requests require an API key. You can generate a key from https://www.namebase.io/pro.

At the time of writing, all documented API keys are supported. This may change at any time. See the raw API documentation calls: https://github.com/namebasehq/exchange-api-documentation/

On top of the raw APIs, we also provide the convenience functions:

  • market_buy: Market Buy
  • market_sell: Market Sell
  • limit_buy: Limit Buy
  • limit_sell: Limit Sell

We've also provided a Websocket Client for the WSS API.

Installation

Requirements

  • Python 3.6 or greater

Install

pip install namebase_exchange

Usage

Core REST API for Namebase Exchange

from namebase_exchange.exchange import *
exchange = Exchange("YOUR_API_KEY", "YOUR_SECRET_KEY")
exchange.get_depth(Symbol.HNSBTC)
exchange.market_sell(Symbol.HNSBTC, 500)

WebSocket API for Namebase Exchange This doesn't need any authorization

from namebase_exchange.websocket_data import *
exchange = ExchangeWS(Endpoint.DEPTH)

You can also pass functions in to do more sophisticated things with the message stream. By default, it just prints out the messages.

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

namebase-exchange-0.0.5.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

namebase_exchange-0.0.5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file namebase-exchange-0.0.5.tar.gz.

File metadata

  • Download URL: namebase-exchange-0.0.5.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for namebase-exchange-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0115bb4f83d2dffbe389b70f347b6b2360701def52a104e2aea56418f2d6bbd1
MD5 4b117a0c6bfe729839111516fcfe2786
BLAKE2b-256 1d362ae5badfa9f125be73dee3c56e9cb0ca9ba4c6cdc6f3e5569c22029c6436

See more details on using hashes here.

File details

Details for the file namebase_exchange-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: namebase_exchange-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for namebase_exchange-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 07a3e8aa2a8aeed4dabbf66d085d8381e4527247e77f2bd85b0441a40bb001c7
MD5 ce752b2c064bfd54e83edc77008624e3
BLAKE2b-256 22186a3595fc34708e5065c2041c811abbdf3a3d804212abf431a2e178701e44

See more details on using hashes here.

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