# Liquidity Provider

CEX uses Binance as a liquidity provider by default. You can get exact copy of orderbook from Binance Markets. Whenever you place an order, if it matches with the orders from the orderbook, the system will create the same order in your Binance account as well.

# Installation:

In order to enable Liqudity Module, you have to set it up first by following the steps below:

  1. Register Binance Account https://binance.com and pass KYC verification.

  2. Create API Token from Binance Dashboard https://www.binance.com/en/my/settings/api-management

  3. Enable Enable Spot & Margin Trading and Enable Reading options on the Binance API Management page.

  4. Enter to the CEX server via SSH and edit .env file located at the project directory. Usually it is /var/www/html. Add the following content:

BINANCE_API_KEY="HERE_YOUR_BINANCE_API_KEY"
BINANCE_API_SECRET="HERE_YOUR_BINANCE_API_SECRET"
  1. Open CEX Admin Dashboard and go to Liquidity section and enable markets.

IMPORTANT NOTES:

  • You should have balance in Binance equal to the total balance of users per currency.

Example: All your users have 2 BTC in total in their CEX Balance, you should have the same amount in Binance account in case if they all decide to sell their coin.

  • All deposits and withdrawals from Binance account is manual

  • It works for immediate match condition, if it won't be matched with other orders, it will stay as a local order in orderbook.

  1. Open Market Services from Admin Dashboard and activate liquidity per market and other services.