Injective Python SDK, with Exchange API client
Project description
Injective Python SDK
Note: Apple M1
processor is not supported
Dependences
Ubuntu
sudo apt install python3.X-dev
Fedora
sudo dnf install python3-devel
Quick Start
pip install injective-py
import injective.chain_client
import injective.exchange_api
Usage
Requires Python 3.7+
examples: https://github.com/InjectiveLabs/sdk-python/tree/master/examples
$ pipenv shell
$ pipenv install
# connecting to Injective Exchange API
# and listening for new orders from one specific spot market
$ python examples/exchange_api_example/examples/spot_exchange_rpc/8_StreamOrdersRequest.py
# sending a msg with bank transfer
# signs and posts a Tx to the Injective Chain
$ python examples/chain_client_example/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
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.3.2.tar.gz
(42.1 kB
view hashes)
Built Distribution
Close
Hashes for injective_py-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92afebc575881151d58748c3ff7166da6589eb5ab578f0f47230eab63d1ad5b |
|
MD5 | ed621dc5567626afbfd1045d6b563720 |
|
BLAKE2b-256 | 427a3cf3a348c15c24b5f539307654c388f969b3f1e80033b4e63efbd692100e |