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 = "0x0000000000000000000000000000000000000000"

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.1

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.1
File Size Uploaded Provenance
gigadex_sdk-0.1.1.tar.gz 14.2 kB With provenance Details

Built distribution (wheel)

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

Total release size: 26.4 kB

Release files / gigadex_sdk-0.1.1.tar.gz

Download URL gigadex_sdk-0.1.1.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8a32f544ab688765274d8072f0f9844ff227df5e78b1f4e72551a1931a68df63
BLAKE2b-256 checksum
How to use checksums
284144b512466e365f90f8b42ad42fea0513204c9211626c698108f8f7332df5
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.1-py3-none-any.whl

Download URL gigadex_sdk-0.1.1-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20620ae663dbaa480986d942d18e6d1590d37cdc2c8e7e75e7019373bcd0d5fb
BLAKE2b-256 checksum
How to use checksums
f93072accaf3e897bd0af83577c39222a2d0ae97f9d13a4775b521be0de5d04e
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.1

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.1.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