bybit exchange api client
Project description
bybit-python
Python SDK (sync and async) for Bybit with Rest and WS capabilities.
You can check Bybit's docs here: Docs
You can check the SDK docs here: SDK
This package derives from CCXT and allows you to call pretty much every endpoint by either using the unified CCXT API or calling the endpoints directly
Installation
pip install bybit-api
Usage
Async
from bybit_api import BybitAsync
async def main():
instance = BybitAsync({})
order = await instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
Sync
from bybit_api import BybitSync
def main():
instance = BybitSync({})
order = instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
Websockets
from bybit_api import BybitWs
async def main():
instance = BybitWs({})
while True:
orders = await instance.watch_orders(__EXAMPLE_SYMBOL__)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bybit_api-0.0.4.tar.gz.
File metadata
- Download URL: bybit_api-0.0.4.tar.gz
- Upload date:
- Size: 628.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42e517bf956ddd1fb6d57db9640801616ec5f896d0f98c79ab7728b667cae10c
|
|
| MD5 |
2912de3fc4fe933fbbfe396895c0a9f7
|
|
| BLAKE2b-256 |
4ddb8acaa42276bad5f3a8ee2358e5cae7c585c5ab252c3b5d535430645f7f36
|
File details
Details for the file bybit_api-0.0.4-py3-none-any.whl.
File metadata
- Download URL: bybit_api-0.0.4-py3-none-any.whl
- Upload date:
- Size: 753.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d99bde9ec0963bc1dc35dd084968a59204501bb43e5c613c9695061388592b1a
|
|
| MD5 |
3b826b11cd6c8f09a4fe0c3248b3e539
|
|
| BLAKE2b-256 |
a0335e145af78dcc587efd04157b9914f6850c0d986574cb8dfdd3daf35b80a2
|