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.

Files for namebase-exchange, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size namebase_exchange-0.0.5-py3-none-any.whl (10.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size namebase-exchange-0.0.5.tar.gz (9.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page