Skip to main content

Bybit SDK

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.

Metadata

Release files for tribulnation-bybit 0.2.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 tribulnation-bybit 0.2.0
File Size Uploaded
tribulnation_bybit-0.2.0.tar.gz 24.4 kB Details

Built distribution (wheel)

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

Total release size: 60.1 kB

Release files / tribulnation_bybit-0.2.0.tar.gz

Download URL tribulnation_bybit-0.2.0.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
41d59d242ffa3567e36cdb96541ec38f95648b9591f63a07e811cb3444473cf5
BLAKE2b-256 checksum
How to use checksums
a3904f5bbbfc3296309117b263d647999b2fcb00e5a36b37c48e1c5734ad2ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Sep 12, 2026.

Transparency log

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

Download URL tribulnation_bybit-0.2.0-py3-none-any.whl
Size 35.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f471a2372e1272c20ce9a7a3cbf4968b8b1c01df63c3bbc1bb3df5a376fd5cec
BLAKE2b-256 checksum
How to use checksums
7f7a4a3b373235cf1f28d373e41a8dcd1aac9e66a6330ec7d1acb4cb09546d1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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