Software Development Kit designated for Probit Global Exchange
Project description
ProbitSocketSDK-python
Installation
pip install probit_socket_sdk
How to Use
- Enter your API ID and Secret values as shown below.
API_CLIENT_ID = '12345678'
API_CLIENT_SECRET = '1a2b3c4d5e6f7g8h'
- Call the constructor of ProbitSDK.
from probit_socket_sdk import ProBitSdk
id = "12345678"
secret = "1a2b3c4d5e6f7g8h"
sdk = ProBitSdk(id, secret)
- You can call the functions below. More will be added if needed
from probit_socket_sdk import CHANNEL_TYPE
from probit_socket_sdk import FILTER_TYPE
sdk.connect_market_data("BTC-USDT", [FILTER_TYPE.order_books_l0.name, FILTER_TYPE.order_books_l4.name, FILTER_TYPE.recent_trades.name, FILTER_TYPE.ticker.name])
sdk.connect_my_balance()
sdk.connect_open_order()
In the case of filter, you can set it as follows.
- order_books_l0
- order_books_l1
- order_books_l2
- order_books_l3
- order_books_l4
- ticker
- recent_trades
For market_id, an example would look like this: (ex, BTC-USDT)
See test.py for a detailed example.
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 probit_socket_sdk-0.0.2.tar.gz.
File metadata
- Download URL: probit_socket_sdk-0.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4568708e69214b96cfb54bb254d918ba22d0706f30a0c0ed36d252ef2494e1c
|
|
| MD5 |
51d4d31d64e48a0c4bc7214168fe9bae
|
|
| BLAKE2b-256 |
f918b7fee35383c45cf028e9485386ab7edaf1c11ad207fb20647ca6ea12385c
|
File details
Details for the file probit_socket_sdk-0.0.2-py3-none-any.whl.
File metadata
- Download URL: probit_socket_sdk-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c3684b7aea8e1bcee6764c305a13297a75fde598536110b5378714e17098963
|
|
| MD5 |
d752decbee0b8f4340f559074d6f25f6
|
|
| BLAKE2b-256 |
bbd6b20322ac0083b7a66cd25569015e73dff7dadb569ddc8ba4a2c174d0e8a3
|