Skip to main content

gigadex-sdk

The community Python SDK for building on GigaDex on Robinhood Chain.

gigadex-sdk gives Python developers a small, typed foundation for reading GigaDex data, working with concentrated-liquidity prices and ticks, loading verified contract ABIs, and preparing Web3 integrations.

It is useful for:

  • liquidity keepers and range-management bots
  • portfolio dashboards
  • analytics and reporting scripts
  • research notebooks
  • trading and automation tools

This SDK is community maintained. Review all transactions yourself before sending funds on-chain.

Features

  • GigaDex GraphQL client for tokens, pools, positions, and portfolio state.
  • Typed Pydantic models for safer application code.
  • Concentrated-liquidity math for ticks, prices, ranges, and tick-spacing alignment.
  • Packaged ABI loading for common GigaDex/Web3 contract interactions.
  • Web3 helpers for contracts, chain validation, gas checks, signing, and sending transactions.
  • Modern Python packaging with uv, pyproject.toml, and Python 3.11+ support.

Installation

With uv:

uv add gigadex-sdk

With pip:

pip install gigadex-sdk

Quick start

Fetch portfolio data

from gigadex_sdk.graphql_client import GigaDexGraphQLClient

GRAPHQL_URL = "https://edge.gigadex.fi/v1/graphql"
CHAIN_ID = 4663
ACCOUNT = "0x2d438b5f9dbb11fb406a92fd97476f4cdc9947d1"

client = GigaDexGraphQLClient(GRAPHQL_URL)
portfolio = client.fetch_portfolio(chain_id=CHAIN_ID, account=ACCOUNT)

for position in portfolio.positions:
    print(position.token_id, position.pool, position.tick_lower, position.tick_upper)

Work with concentrated-liquidity ticks

from decimal import Decimal

from gigadex_sdk.math import percentage_range_ticks, range_width_percent

current_tick = -200_000
tick_spacing = 10

tick_lower, tick_upper = percentage_range_ticks(
    current_tick=current_tick,
    percent_each_side=Decimal("5"),
    tick_spacing=tick_spacing,
)

lower_pct, upper_pct = range_width_percent(tick_lower, tick_upper, current_tick)

print(tick_lower, tick_upper)
print(f"range: -{lower_pct:.2f}% / +{upper_pct:.2f}%")

Load packaged ABIs

from gigadex_sdk.abis import ERC20_ABI, POSITION_MANAGER_ABI

print(len(ERC20_ABI))
print(len(POSITION_MANAGER_ABI))

Create a Web3 contract

from gigadex_sdk.abis import ERC20_ABI
from gigadex_sdk.chain import ChainClient

# ChainClient expects a small settings object with rpc_url, chain_id,
# account/private-key settings, and gas controls. See README-DEV.md for
# development details and examples.
token = chain_client.contract("0xTokenAddress", ERC20_ABI)

Common constants

GIGADEX_GRAPHQL_URL = "https://edge.gigadex.fi/v1/graphql"
ROBINHOOD_CHAIN_ID = 4663

Project status

gigadex-sdk is early software. The current focus is reliable read access, reusable data models, concentrated-liquidity math, and safe building blocks for bot authors.

On-chain write helpers are intentionally low-level. Applications should add their own policy layer for slippage, gas limits, simulation, private-key handling, retries, alerts, and human review.

Contributing

Contributions are welcome. For development setup, test commands, release steps, and PyPI publishing notes, see README-DEV.md.

License

MIT

Metadata

Release files for gigadex-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gigadex-sdk 0.1.0
File Size Uploaded Provenance
gigadex_sdk-0.1.0.tar.gz 14.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gigadex-sdk 0.1.0
File Interpreter ABI Platform
gigadex_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / gigadex_sdk-0.1.0.tar.gz

Download URL gigadex_sdk-0.1.0.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a96e2f35c6bb895bd2aff80fbccaf07df14cc07bdf6e80144e4914732f0067b7
BLAKE2b-256 checksum
How to use checksums
ff731c35bc6622547612616b3ffd05700705628238ebb432d3342b7be94481fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.

Transparency log

Release files / gigadex_sdk-0.1.0-py3-none-any.whl

Download URL gigadex_sdk-0.1.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2104a8bf39190957f0a28b23e64c414d92ca61384d9a89da4ba2ae3f896d3556
BLAKE2b-256 checksum
How to use checksums
5bdac1e4c56894c925f6b88659112195cbf497b2a7160ae38739ff96fb57112d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.

Transparency log

Security for gigadex-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gigadex_sdk-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page