Skip to main content

Synthetix protocol SDK

Project description

GitHub pypi Discord Twitter Follow

Synthetix Python SDK

This is a Python SDK designed to help you interact with Synthetix smart contracts and subgraphs. Visit the documentation for more information.

Features

  • Interfaces for all Synthetix V3 contracts
  • Simple tools for trading Synthetix perps
  • Interfaces for synth swapping and wrapping
  • Inferfaces for managing LP positions
  • Seamless integration with Cannon for fetching deployments from IPFS

Installation

To get started, install the synthetix library in your Python environment:

pip install synthetix

Documentation

There are a few guides to help you get started:

For complete documentation, visit our documentation site.

Development

If you are interested in contributing to the library's development, you can clone the repository and set up the dependencies for editable mode:

python3 -m venv env
source env/bin/activate

pip install --upgrade pip
pip install -r requirements.txt
pip install -e ./src

Using this method, you'll have the package installed in an 'editable mode'. This means you can easily modify the code and test your changes without the hassle of reinstalling the package every time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synthetix-0.1.21.tar.gz (213.1 kB view details)

Uploaded Source

Built Distribution

synthetix-0.1.21-py3-none-any.whl (263.7 kB view details)

Uploaded Python 3

File details

Details for the file synthetix-0.1.21.tar.gz.

File metadata

  • Download URL: synthetix-0.1.21.tar.gz
  • Upload date:
  • Size: 213.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for synthetix-0.1.21.tar.gz
Algorithm Hash digest
SHA256 aa132c4cb33b71e855fe6e26b4c2af63a036ced6773a71bf3fb94db6f33aaedd
MD5 3fd492970c32fa1fc7f2c87c39a92cb3
BLAKE2b-256 436e9061d7b857fe908e62d28dc24f79925c6fa3fec5be93884deccb8a2f8cc7

See more details on using hashes here.

File details

Details for the file synthetix-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: synthetix-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 263.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for synthetix-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 d47b4c55a094457a427d1991f65465c6c2abb84b8ccebb8647e31d36340ff84d
MD5 4441106cbd6bb2ed9ae7660e5ac8cd2e
BLAKE2b-256 6641808f96c5402485ebc062e1c06d44b4d1b254c80b89daed75858e4dc239a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page