Binance Payouts / DONE
Binance Payout Module Setup Instructions
Setting API keys in admin panel
Log in to your Binance account -> go to the Manage API page.
Click ‘Create API’ -> select API key type, for example, ‘System Generated’ -> click ‘Next’ -> create a label for the API key -> click ‘Next’ -> pass the security check.
After generating the keys, copy the API Key and Secret key values to a safe place.
In the BoxExchanger admin panel, go to the Binance payout module settings page. To do this, go to the ‘Merchant and API’ page - ‘PAYOUT SYSTEM’ section - settings (settings icon) in the block with the ‘Binance’ module.
In the ‘Withdraw from’ field enter a suitable currency. For more details, see #dopolnitelnye-nastroiki-modulya.
In the ‘API Key’ field, paste the API key copied in step 3 and press ‘Save’.
In the ‘API Secret’ field, paste the Secret key copied in step 3 - click ‘Save’. (after reloading the page, API Secret will be hidden and will not be displayed in the admin panel for security reasons).
On the Binance module settings page in the ‘IP SERVER’ section, copy the IP -> go back to the ‘API Management’ page in Binance LK -> in the block with the created API key, click ‘Edit Restrictions’ -> select ‘Allow access only to trusted IP addresses’ -> paste the IP you copied earlier -> ‘Confirm’.
Under ‘API Restrictions’ select the allowed actions below -> click ‘Save’ -> pass the security check.
Binance's payout module is set up.
Algorithm of module operation (Withdraw from USDT)
Formula for calculating the order amount: Amount to be received by the client on theorder+ amount for withdrawal of this currency + 0.2% (0.1% trading commission and 0.1% margin of error) of the sum of the two previous summands - Amount of currency on the spot balance. Example:
Exchange 5 USDT -> 50 TRX
Payout module for TRX: Binance
TRX withdrawal fee from Binance: 1 TRX
TRX amount on spot balance: 0 TRX
Order amount calculation: (50 TRX + 1 TRX) + (50 TRX + 1 TRX)*0.02 - 0 TRX = 51 TRX + 1.02 TRX = 52.02 TRX (the order will be placed for 52.1 due to Binance rounding).
Starting the Binance payout module, by putting the request into the ‘For payout’ status (confirming the payout with ‘Allow auto payout’ if ‘Auto exchange’ is turned off for the referral).
Checking the balance on the spot account for the currency to be received by the client.
In case of:
There is enough currency on the balance -> the script creates a request to withdraw currency (excluding withdrawal fee) to the client's wallet address.
There is not enough currency on the balance -> the script places an order in the Currency/USDT market pair (but not less than the minimum order amount) to buy the missing amount (the formula for calculating the order amount is above) for the currency for withdrawal -> request for currency withdrawal (without taking into account the withdrawal fee) to the client's wallet address.
Смена статуса заявки на "Завершена" и добавления комментария к заявке с хешем вывода.
Особенности работы модуля
Средства на Funding балансе не учитываются скриптом.
Если недостающая сумма для вывода будет меньше минимальной суммы ордера в данной паре (Обычно ≥ эквивалент 5 USDT), то скрипт будет выставлять минимальный market ордер на покупку (эквивалент 5 USDT + 0.2%).
Сумма ордера округляется в зависимости от пары. К примеру, если недостающая сумма для вывода TRX составляет 45.8623214939582570487 TRX, то ордер будет выставлен на 45.9 TRX.
Комиссия за вывод средств на адрес пользователя Binance возвращается на баланс.
Additional module settings
- depending on the selected parameter the process of obtaining currency for withdrawal to the client on request will depend on it. To configure it, enter one of the proposed currencies in capital letters -> press ‘Save’..
* [**API URL**](#user-content-fn-13)[^13] **-** link to the actual Binance API URL. The value is specified by default.
Last updated