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

Installation

Requirements

  • Python 3.6 or greater

Install

pip install namebase_exchange

Usage

from namebase_exchange import *

exchange = Exchange(YOUR_API_KEY, YOUR_SECRET_KEY)

exchange.get_depth(Symbol.HNSBTC)

exchange.market_sell(Symbol.HNSBTC, 500)

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

Uploaded Source

Built Distribution

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

namebase_exchange-0.0.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: namebase-exchange-0.0.3.tar.gz
  • Upload date:
  • Size: 8.7 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.3.tar.gz
Algorithm Hash digest
SHA256 d8a97eb7e5b33877803584e757dc7ca4221169bda319f084d944ad6abd6d97c7
MD5 3bf5c41bc667b8775fe38519448e91eb
BLAKE2b-256 1b65b4e598cacf6c2b8e6b11cfbeab16e96cbd88ff6ac706806f97e42e8095d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: namebase_exchange-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 992bdf0b04fd8b7ed2564c95967ba1e9e476177295927455a60965f10bdbda09
MD5 2656037746116b403adaaafc66aec926
BLAKE2b-256 c5eaba36fdd968ef313a44950f288d81313482d7546095ec6ae2785925d66586

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