Name | bingx-headers-generator JSON |
Version |
1.0.4
JSON |
| download |
home_page | |
Summary | BingX Headers Generator that allows to access most of the BingX API endpoints |
upload_time | 2023-08-28 22:42:39 |
maintainer | |
docs_url | None |
author | niewiemczego |
requires_python | |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# THIS PROJECT IS FOR EDUCATIONAL PURPOSES ONLY!
Please keep in mind that I do **NOT** encourage breaking any sort of security on websites.
# bingx-headers-generator
BingX Headers Generator is an python library which generates for you all required headers to make requests to BingX API endpoints
# Installation
```
pip install bingx-headers-generator
```
# Examples
```python
from bingx_headers_generator import BingXHeadersGenerator
# btw as I recently checked generator works even with wrong app_version but I left that option in advance of BingX API changes
bingx_headers_generator = BingXHeadersGenerator(
"4.72.31",
"1020975128917528579",
"1052672282142707717",
)
# you can only generate headers
##### AVAILABLE BASE_URLS: #####
# CURRENT POSITIONS FOR STANDARD ACC -> https://bingx.com/api/v1/copy-trade/traderContractHold
# CURRENT POSITIONS FOR PERPETUAL or FUTURES ACC -> https://bingx.com/api/copytrade/v2/real/trader/positions
# TRADE HISTORY -> https://bingx.com/api/v3/trader/orders/v3
headers = bingx_headers_generator.generate_headers("https://bingx.com/api/v3/trader/orders/v3")
```
# How did I find out how to generate headers?
In one of their site files(**https://bin.bb-os.com/_nuxt/1491b29.js**) I found interesting function - `function wt(e)` Go check it and you follow other functions that are called in `wt()` and I'm sure you will start to understand the whole process of generating headers
<img width="1134" alt="Screenshot 2023-04-04 at 23 12 48" src="https://user-images.githubusercontent.com/50675404/229923789-89571a8b-7372-4c1a-9386-6b9ceecd3fe3.png">
Raw data
{
"_id": null,
"home_page": "",
"name": "bingx-headers-generator",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "niewiemczego",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/0e/02/23d3934c16b542b319fef88aedb1fbd51a6f9020199eac39fc38015bd656/bingx_headers_generator-1.0.4.tar.gz",
"platform": null,
"description": "# THIS PROJECT IS FOR EDUCATIONAL PURPOSES ONLY!\n\nPlease keep in mind that I do **NOT** encourage breaking any sort of security on websites.\n\n# bingx-headers-generator\n\nBingX Headers Generator is an python library which generates for you all required headers to make requests to BingX API endpoints\n\n# Installation\n\n```\npip install bingx-headers-generator\n```\n\n# Examples\n\n```python\nfrom bingx_headers_generator import BingXHeadersGenerator\n\n# btw as I recently checked generator works even with wrong app_version but I left that option in advance of BingX API changes\nbingx_headers_generator = BingXHeadersGenerator(\n \"4.72.31\",\n \"1020975128917528579\",\n \"1052672282142707717\",\n)\n\n# you can only generate headers\n##### AVAILABLE BASE_URLS: #####\n# CURRENT POSITIONS FOR STANDARD ACC -> https://bingx.com/api/v1/copy-trade/traderContractHold\n# CURRENT POSITIONS FOR PERPETUAL or FUTURES ACC -> https://bingx.com/api/copytrade/v2/real/trader/positions\n# TRADE HISTORY -> https://bingx.com/api/v3/trader/orders/v3\n\nheaders = bingx_headers_generator.generate_headers(\"https://bingx.com/api/v3/trader/orders/v3\")\n\n```\n\n# How did I find out how to generate headers?\n\nIn one of their site files(**https://bin.bb-os.com/_nuxt/1491b29.js**) I found interesting function - `function wt(e)` Go check it and you follow other functions that are called in `wt()` and I'm sure you will start to understand the whole process of generating headers\n\n<img width=\"1134\" alt=\"Screenshot 2023-04-04 at 23 12 48\" src=\"https://user-images.githubusercontent.com/50675404/229923789-89571a8b-7372-4c1a-9386-6b9ceecd3fe3.png\">\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "BingX Headers Generator that allows to access most of the BingX API endpoints",
"version": "1.0.4",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8fa1eefc8e5b9911064d6046223757bfcaf0d2ed943e937d60109da03450ddc9",
"md5": "5af76fbb421336e7beb38c49a835e2e1",
"sha256": "e8a538c3dc110eafbd42940bbe360bd6059637c20a8d45ad3859d94d69256e92"
},
"downloads": -1,
"filename": "bingx_headers_generator-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5af76fbb421336e7beb38c49a835e2e1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4433,
"upload_time": "2023-08-28T22:42:36",
"upload_time_iso_8601": "2023-08-28T22:42:36.821067Z",
"url": "https://files.pythonhosted.org/packages/8f/a1/eefc8e5b9911064d6046223757bfcaf0d2ed943e937d60109da03450ddc9/bingx_headers_generator-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0e0223d3934c16b542b319fef88aedb1fbd51a6f9020199eac39fc38015bd656",
"md5": "ba0c3b965cbfdcda97385d7f3602786f",
"sha256": "9648587519ef336c206a8b41238be09b21e60fb582a67802af9ad8f5a89af733"
},
"downloads": -1,
"filename": "bingx_headers_generator-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "ba0c3b965cbfdcda97385d7f3602786f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3831,
"upload_time": "2023-08-28T22:42:39",
"upload_time_iso_8601": "2023-08-28T22:42:39.277238Z",
"url": "https://files.pythonhosted.org/packages/0e/02/23d3934c16b542b319fef88aedb1fbd51a6f9020199eac39fc38015bd656/bingx_headers_generator-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-28 22:42:39",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bingx-headers-generator"
}