SDK for Hyperliquid API trading with Python.
Project description
hyperliquid-python-sdk
Getting started with development
-
Download
Poetry
: https://python-poetry.org/. Note that in the install script you might have to setsymlinks=True
invenv.EnvBuilder
. -
Point poetry to correct version of python. We require python 3.10 exactly. Some dependencies have issues on 3.11, while older versions don't have correct typing support.
brew install python@3.10 && poetry env use /opt/homebrew/Cellar/python@3.10/3.10.10_1/bin/python3.10
-
Install dependencies:
make install
Makefile usage
CLI commands for faster development.
Install all dependencies and pre-commit hooks
Install requirements:
make install
Pre-commit hooks coulb be installed after git init
via
make pre-commit-install
Codestyle
Automatic formatting uses pyupgrade
, isort
and black
.
make codestyle
# or use synonym
make formatting
Codestyle checks only, without rewriting files:
make check-codestyle
Note:
check-codestyle
usesisort
,black
anddarglint
library
Update all dev libraries to the latest version using one comand
make update-dev-deps
Tests with coverage badges
Run pytest
make test
All linters
make lint
the same as:
make test && make check-codestyle && make mypy && make check-safety
Cleanup
Delete pycache files
make pycache-remove
Remove package build
make build-remove
Delete .DS_STORE files
make dsstore-remove
Remove .mypycache
make mypycache-remove
Or to remove all above run:
make cleanup
Releases
You can see the list of available releases on the GitHub Releases page.
We follow the Semantic Versions specification and use Release Drafter
. As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when you’re ready. With the categories option, you can categorize pull requests in release notes using labels.
List of labels and corresponding titles
Label | Title in Releases |
---|---|
enhancement , feature |
Features |
bug , refactoring , bugfix , fix |
Fixes & Refactoring |
build , ci , testing |
Build System & CI/CD |
breaking |
Breaking Changes |
documentation |
Documentation |
dependencies |
Dependencies updates |
Building and releasing
Building a new version of the application contains steps:
- Bump the version of your package with
poetry version <version>
. You can pass the new version explicitly, or a rule such asmajor
,minor
, orpatch
. For more details, refer to the Semantic Versions standard. - Make a commit to
GitHub
- Create a
GitHub release
poetry publish --build
License
This project is licensed under the terms of the MIT
license. See LICENSE for more details.
@misc{hyperliquid-python-sdk,
author = {Hyperliquid},
title = {SDK for Hyperliquid API trading with Python.},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/hyperliquid/hyperliquid-python-sdk}}
}
Credits
This project was generated with python-package-template
.
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
Built Distribution
Hashes for hyperliquid_python_sdk-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e91c405ebdea33605186e3e0fcb3e3ad3ca947c940ae8a4926b4f57e45881ca |
|
MD5 | 87ddf3f439ab390c30f3a90d0c72c6ea |
|
BLAKE2b-256 | 7875dda2837522ab194c18f430dab97675d47d0bc4c2ed6b0588d8a400a3c818 |
Hashes for hyperliquid_python_sdk-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c32a8389679363860263e425c57a9e69390070a01ec636576ec11f0e34efc3 |
|
MD5 | 2de3c400e8e738637a22d66fb622adc3 |
|
BLAKE2b-256 | 7d8046566cd1d544e6b76b5295c3323eff4feaaa086326c0b6cd644a72e65765 |