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.


All requests require an API key. You can generate a key from

At the time of writing, all documented API keys are supported. This may change at any time. See the raw API documentation calls:

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
  • get_dns_settings: Get DNS Settings
  • update_dns_settings: Change DNS Settings

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



  • Python 3.6 or greater


pip install namebase_exchange


Core REST API for Namebase Exchange

from import *
exchange = Exchange("YOUR_API_KEY", "YOUR_SECRET_KEY")
exchange.market_sell(Symbol.HNSBTC, '500')
record_type='TXT', host='@', value='skylink=YOUR_SKYLINK', ttl=0)

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.8.tar.gz (10.6 kB view hashes)

Uploaded source

Built Distribution

namebase_exchange-0.0.8-py3-none-any.whl (11.0 kB view hashes)

Uploaded py3

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