Skip to content

Commit

Permalink
Merge pull request #16 from InjectiveLabs/f/update-versions
Browse files Browse the repository at this point in the history
update examples & python versions
  • Loading branch information
achilleas-kal committed Sep 7, 2021
2 parents 10bbd86 + 6768620 commit 4613906
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Injective Python SDK

Note: Apple `M1` processor is not supported

### Dependences

**Ubuntu**
Expand All @@ -24,18 +22,18 @@ import injective.exchange_api
### Usage
Requires Python 3.7+

[examples](https://github.com/InjectiveLabs/sdk-python/tree/master/examples): https://github.com/InjectiveLabs/sdk-python/tree/master/examples
[Examples](https://github.com/InjectiveLabs/sdk-python/tree/master/examples)
```bash
$ 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
$ python examples/exchange_api_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
$ python examples/chain_client_examples/1_CosmosBankMsgSend.py
```
Upgrade `pip` to the latest version, if you see these warnings:
```
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
EMAIL = "[email protected]"
AUTHOR = "Injective Labs"
REQUIRES_PYTHON = ">=3.7.0"
VERSION = "0.3.2"
VERSION = "0.4.1"

REQUIRED = [
"grpcio",
Expand All @@ -28,6 +28,7 @@
"mnemonic",
"hdwallets",
"pysha3",
"protobuf",
]

# The rest you shouldn't have to touch too much :)
Expand Down Expand Up @@ -114,7 +115,7 @@ def run(self):
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down

0 comments on commit 4613906

Please sign in to comment.