1、Preparing for integration:

1.1 Apply with BingX for the broker sourceKey ID to be used as thhe rebate mark and API rebate
settings for placing orders, assuming: "test_key" and 10%
1.2 Apply for APIkey of bingx, application address::https://bingx.com/en-us/account/api/
1.3 Endpoint access domain name:https://open-api.bingx.com
1.6 Restriction Tips: The documentation will explain the number of attempts per endpoint is limited. If the request is too frequent, the system will automatically limit the request, and it will automatically recover after a few minutes.

2、place order

2.1 Transparently transmit the rebate identification “sourceKey”
When requesting the order endpoint of bingx, the header information needs to carry the sourceKey
Assume sourceKey = "test_key",it needs to be replaced with the correct key when placing an actual order.
An example request header is as follows: 'X-SOURCE-KEY: test_key'

1 curl --location --request GET 'https://open- api.bingx.com/openApi/swap/v2/trade/order? timestamp=1676376523574&signature=f0d64e51c345ca5f79037d1874aba7f2929c11f18f841 6a0d5221659dcc760a7' \

2  --header 'X-SOURCE-KEY: test_key' \

3  --header 'X-BX-APIKEY: api_key'

 

2.2 Query whether the transparent transmission of the rebate identification "sourceKey" is successful
After the order is placed successfully, the rebate identification sourceKey can be found in the response header information, indicating that the transparent transmission is successful.
Examples are as follows:

1 {'Date': 'Mon, 18 Sep 2023 03:39:24 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request- Headers', 'X-SOURCE-KEY': 'test_key', 'CF-Cache-Status': 'DYNAMIC', 'Set- Cookie': '__cf_bm=l6X8vWnmZ3k6QnzmjfAimWXqUxvzkm1NI7HagOsr4XQ-1695008364-0- AZ67S172bCAtmrnzCUW2tNDtuG7naFj2KZ05HdGQ6lwtLg6vLKMibHhpMcHdX68OOzSgzouQAqRflRc TJl9K4BM=; path=/; expires=Mon, 18-Sep-23 04:09:24 GMT; domain=.bingx.com; HttpOnly; Secure; SameSite=None, _cfuvid=olvyI7wa166rS6VQerEVJUkMJ_fjDNd8ugzZ6TZIKII-1695008364427-0-604800000; path=/; domain=.bingx.com; HttpOnly; Secure; SameSite=None', 'Strict-Transport- Security': 'max-age=15552000; includeSubDomains; preload', 'X-Content-Type- Options': 'nosniff', 'Server': 'cloudflare', 'CF-RAY': '80868fc51c6630d3-ICN', 'Content-Encoding': 'gzip', 'alt-svc': 'h3=":443"; ma=86400'}

 

3、Query invitation commission

Currently, brokers are supported to check the daily rebates on the Kanban board. You can contact Bingx market colleague to open the permission, and the email address is broker@bingx.com.