Skip to main content

Tribulnation SDK Bybit

Tribulnation SDK implementation for Bybit.

Installation

pip install tribulnation-bybit

Surfaces

Surface Class Credentials
Market tribulnation.bybit.BybitMarket keyed (pass public=True for market data only)
Earn tribulnation.bybit.Earn keyed, though every catalogue endpoint is public
Wallet tribulnation.bybit.Wallet keyed
Report tribulnation.bybit.Report keyed
from tribulnation.bybit import BybitMarket

async with BybitMarket.new() as venue:
  perp = await venue.perp_exchange('perp')
  market = await perp.market('BTCUSDT')
  print(await market.next_funding())

Credentials come from BYBIT_API_KEY/BYBIT_API_SECRET when not passed.

Exchanges

Bybit v5 is one API discriminated by a category parameter rather than separate spot and futures endpoints, so spot and perp share a single connection, instrument cache and private stream.

perp lists linear perpetuals only. Bybit's linear category also carries 40-odd dated futures, which settle on a delivery date and pay no funding — nothing about the PerpMarket contract describes them.

Regions

Bybit's regional entities are separate accounts with separate keys, separate environment variables and different product universes; bybit.eu in particular lists no derivatives at all. Pick one at construction:

BybitMarket.new(region='eu')  # reads BYBIT_EU_API_KEY / BYBIT_EU_API_SECRET

History windows

Bybit caps how wide a single history query may be and rejects a wider one rather than truncating it — 7 days for trade history and the transaction log, 30 for deposit and withdrawal records — and refuses any window starting more than two years back. Both Market.trades_history() and Report.history() take whatever window you give them and split it to fit; Report.history() with no window sweeps the full two years.

Funding payment signs

Since 0.5.0, funding payments are positive when received and negative when paid, for every supported history scope. Requires SDK >=2.10.0. Funding rates keep their existing signs. See migration notes before upgrading.

Metadata

Release files for tribulnation-bybit 0.10.3

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

Source distribution (sdist)

Source distribution for tribulnation-bybit 0.10.3
File Size Uploaded Provenance Actions
tribulnation_bybit-0.10.3.tar.gz 27.2 kB With provenance Details for tribulnation_bybit-0.10.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tribulnation-bybit 0.10.3
File Interpreter ABI Platform Actions
tribulnation_bybit-0.10.3-py3-none-any.whl Python 3 none any Details for tribulnation_bybit-0.10.3-py3-none-any.whl

Total release size: 65.6 kB

Release files / tribulnation_bybit-0.10.3.tar.gz

Download URL tribulnation_bybit-0.10.3.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
394b5740bad786cfd0d7c7d6076b46688fb406314d9be57e7a79106f563cbcd1
BLAKE2b-256 checksum
How to use checksums
fd5297308d60982ef14a0ac7aed99ca43bf69c3cd3e8556ca0fb0ab7f943e04d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Release files / tribulnation_bybit-0.10.3-py3-none-any.whl

Download URL tribulnation_bybit-0.10.3-py3-none-any.whl
Size 38.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7426429ae8e322acfb93591865f2f2709faa2b24485463ac249659231e5b65c
BLAKE2b-256 checksum
How to use checksums
2dcf9c3938fbd1b9dd439ed9a0d1a096762653fe203438e7f70a8e9c3974a1c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 19, 2026.

Transparency log

Security for tribulnation-bybit 0.10.3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tribulnation_bybit-0.10.3.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 Nov 19, 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