Namebase Exchange Api for Python
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
- get_dns_settings: Get DNS Settings
- update_dns_settings: Change DNS Settings
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')
exchange.update_dns_settings(domain='YOUR_DOMAIN',
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.
Metadata
Release files for namebase-exchange 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| namebase-exchange-0.0.8.tar.gz | 10.6 kB | Without provenance | Details for namebase-exchange-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| namebase_exchange-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for namebase_exchange-0.0.8-py3-none-any.whl |
Total release size: 21.6 kB
Release files / namebase-exchange-0.0.8.tar.gz
| Download URL | namebase-exchange-0.0.8.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
223841e9569f1a7a8a8d7aa4927f5a1e326281bc31210614fa24bc67e3d13fa7
|
|
BLAKE2b-256 checksum How to use checksums |
5772256413628e3fd4bef975b1d1c8c6e5c511e9d149a54121187eb30f64d421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0
|
Release files / namebase_exchange-0.0.8-py3-none-any.whl
| Download URL | namebase_exchange-0.0.8-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da6cbfef02bb5811746a858bc4971cfefeabd947b4045ef33b8382b1a910e2b7
|
|
BLAKE2b-256 checksum How to use checksums |
e137277be5e247c7a3ea91e743c179968c3acccd8c8397b66e3837deabbfba24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0
|
Security for namebase-exchange 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.