BingX Headers Generator that allows to access most of the BingX API endpoints
Project description
THIS PROJECT IS FOR EDUCATIONAL PURPOSES ONLY!
Please keep in mind that I do NOT encourage breaking any sort of security on websites. In addition, the project will not be updated in case of security changes by BingX
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
from bingx_headers_generator import BingXHeadersGenerator
# custom headers are NOT necessary, but are just an additional option you can pass to request
custom_headers = {
"cache-control": "no-cache, no-store, must-revalidate",
"pragma": "no-cache",
"expires": "0",
}
# 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.58.39",
"1020975128917528579",
"1052672282142707717",
)
# you can only generate headers
headers = bingx_headers_generator.generate_headers(custom_headers)
# also you can generate just sign header
sign = bingx_headers_generator.generate_sign()
# or you can make full request
res = bingx_headers_generator.make_request(
"GET",
"https://api-app.we-api.com/api/copytrade/v1/real/trader/positions",
custom_headers,
)
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
Project details
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
Hashes for bingx_headers_generator-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bfaf0a05287f8fc526b115690432027d18fb0f0e965fa70212c7930159e124e |
|
MD5 | e3e76a30d29ec87bbca4f2494de247c0 |
|
BLAKE2b-256 | 58eb539ec6e5abbb6a4aa95d8006eb9fd7f31400c2b3d9fd26596d7863a2e2f5 |
Hashes for bingx_headers_generator-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ea42c649c601d3e9b2eaa1ba22a409222bab3c41791492f619da0c1add34b6 |
|
MD5 | 5a24845bf56a5eec1367dd8efb35ee62 |
|
BLAKE2b-256 | 85e5c3d8a1cc492c16bf83b52b823cf82f5bea552db7e2a76d467f4d9be8c476 |