# ProbitSocketSDK-python
## Installation
```bash
pip install probit_socket_sdk
```
## How to Use
1. Enter your API ID and Secret values as shown below.
```bash
API_CLIENT_ID = '12345678'
API_CLIENT_SECRET = '1a2b3c4d5e6f7g8h'
```
2. Call the constructor of ProbitSDK.
```python
from probit_socket_sdk import ProBitSdk
id = "12345678"
secret = "1a2b3c4d5e6f7g8h"
sdk = ProBitSdk(id, secret)
```
3. You can call the functions below. More will be added if needed
```python
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/probitexchange/ProbitSocketSDK-python.git",
"name": "probit-socket-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "probit exchange, probit, probit global, probit sdk, probit socket, probit websocket",
"author": "Probit Global",
"author_email": "dev@probit.com",
"download_url": "https://files.pythonhosted.org/packages/f9/18/b7fee35383c45cf028e9485386ab7edaf1c11ad207fb20647ca6ea12385c/probit_socket_sdk-0.0.2.tar.gz",
"platform": null,
"description": "# ProbitSocketSDK-python\n\n## Installation\n\n```bash\npip install probit_socket_sdk\n```\n\n## How to Use\n\n1. Enter your API ID and Secret values \u200b\u200bas shown below.\n```bash\nAPI_CLIENT_ID = '12345678'\nAPI_CLIENT_SECRET = '1a2b3c4d5e6f7g8h'\n```\n\n2. Call the constructor of ProbitSDK.\n```python\nfrom probit_socket_sdk import ProBitSdk\n\nid = \"12345678\"\nsecret = \"1a2b3c4d5e6f7g8h\"\nsdk = ProBitSdk(id, secret)\n```\n\n3. You can call the functions below. More will be added if needed\n```python\nfrom probit_socket_sdk import CHANNEL_TYPE\nfrom probit_socket_sdk import FILTER_TYPE\n\nsdk.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])\nsdk.connect_my_balance()\nsdk.connect_open_order()\n```\n\nIn the case of filter, you can set it as follows.\n- order_books_l0\n- order_books_l1\n- order_books_l2\n- order_books_l3\n- order_books_l4\n- ticker\n- recent_trades\n\nFor market_id, an example would look like this: (ex, BTC-USDT)\n\nSee test.py for a detailed example.\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Software Development Kit designated for Probit Global Exchange",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/probitexchange/ProbitSocketSDK-python.git"
},
"split_keywords": [
"probit exchange",
" probit",
" probit global",
" probit sdk",
" probit socket",
" probit websocket"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bbd6b20322ac0083b7a66cd25569015e73dff7dadb569ddc8ba4a2c174d0e8a3",
"md5": "d752decbee0b8f4340f559074d6f25f6",
"sha256": "1c3684b7aea8e1bcee6764c305a13297a75fde598536110b5378714e17098963"
},
"downloads": -1,
"filename": "probit_socket_sdk-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d752decbee0b8f4340f559074d6f25f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 7397,
"upload_time": "2024-10-08T03:24:19",
"upload_time_iso_8601": "2024-10-08T03:24:19.705663Z",
"url": "https://files.pythonhosted.org/packages/bb/d6/b20322ac0083b7a66cd25569015e73dff7dadb569ddc8ba4a2c174d0e8a3/probit_socket_sdk-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f918b7fee35383c45cf028e9485386ab7edaf1c11ad207fb20647ca6ea12385c",
"md5": "51d4d31d64e48a0c4bc7214168fe9bae",
"sha256": "b4568708e69214b96cfb54bb254d918ba22d0706f30a0c0ed36d252ef2494e1c"
},
"downloads": -1,
"filename": "probit_socket_sdk-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "51d4d31d64e48a0c4bc7214168fe9bae",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 5793,
"upload_time": "2024-10-08T03:24:21",
"upload_time_iso_8601": "2024-10-08T03:24:21.259484Z",
"url": "https://files.pythonhosted.org/packages/f9/18/b7fee35383c45cf028e9485386ab7edaf1c11ad207fb20647ca6ea12385c/probit_socket_sdk-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-08 03:24:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "probitexchange",
"github_project": "ProbitSocketSDK-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "probit-socket-sdk"
}