Injective Python SDK, with Exchange API client
Project description
Injective Python SDK
WIP
Note: Apple M1
processor is not supported
Dependences
Ubuntu
sudo apt install python3.9-dev
Fedora
sudo dnf install python3-devel
Quick Start
pip install injective-py
Usage
Requires Python 3.9+
$ pipenv shell
$ pipenv install
# connecting to Injective Exchange API
# and listening for new orders
$ python src/exchange_api/examples/example.py
# sending a msg with bank transfer
# signs and posts a Tx to the Injective Chain
$ python src/chainclient/examples/example.py
Upgrade pip
to the latest version, if you see these warnings:
WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
WARNING: Additional context: user = True home = None root = None prefix = None
Development
To copy proto schemas and regenerate GRPC clients:
$ pipenv shell
$ pipenv install --dev
$ make copy-proto
$ make gen
Quick Start
import injective.chain_client
import injective.exchange_api
License
Apache Software License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
injective-py-0.2.5.tar.gz
(43.0 kB
view hashes)
Built Distribution
Close
Hashes for injective_py-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3d9f0b3dec4678a4e4ed45a2b696276c0a475015712611b7a3633e61625dd1 |
|
MD5 | 2ab6893c94c9ee7bcd4613bd71d5769e |
|
BLAKE2b-256 | 9a3875aed2763c8feff77ca240eae5cddbfbc403e25a67bb8543ad48fdb8febc |