DEX Operations

Video Tutorial: Watch Here

Prerequisites


  1. Completed the BTC deposit guide.
  1. Have Nyks tokens in your wallet.
  1. Deposited BTC into your Twilight wallet.

Create Subaccounts


Creating separate Subaccounts for each trade is highly recommended, as active orders render the account unusable. Note that exchange operations can also be conducted on the “Trading Account”.

  1. Connect your Keplr wallet from the top right corner of the navigation bar.
  1. Once connected, select “Manage Subaccounts” from the Trading Account dropdown menu.
  1. Hover and click on “Manage Subaccounts”
  1. Open the accounts dialog and click on “New” to create a new Subaccount.
    1. Enter a name for your Subaccount and click “Create.”

Once the new Subaccount is created, you can now transfer BTC into it.

Funding to Trading Transfer


The Subaccount can now be funded with SATS using the Funding to Trading account transfer menu:
1. Hover over the “Trade” menu on the navigation bar and click on “Wallet.”

  1. Under “Funding”, click on the highlighted button to open the transfer dialog.
  1. In the transfer dialog, select the Subaccount you created from the “Account To” dropdown.
  1. Enter the appropriate amount of BTC to transfer into your Subaccount and click “Transfer.”
  1. Approve the request to confirm the transaction.

After approval, the transferred amount will be reflected in your Subaccount.

Opening a Market Order


  1. On the home page, select an account with a balance, such as "Subaccount 1".
  1. Once your account is selected, place an order in the "Orders" panel, typically located on the right of the screen.
  1. Enter the amount in BTC and set the leverage.
  1. Create an order by selecting Buy/Sell. A notification will appear at the bottom right if the order is successfully created.
  1. View your open orders in the "Orderbook" panel under "My Trades".

Closing a Market Order


  1. On the home page, in the "Orderbook" panel, select "My Trades".
  1. Click on the "Close" button to close your order. A notification will confirm the successful closure of the order.

Trading to Trading Transfer


This operation allows for the private transfer of BTC among Subaccounts:

  1. Create a new Subaccount for the BTC to be transferred to.
  1. Navigate to "Wallet" under the "Trade" menu on the navigation bar to access the wallet page.
  1. In the "Trading" section, click the button to open the transfer dialog.
  1. In the transfer dialog, select the source and destination Subaccounts and enter the amount to be transferred.
  1. Confirm the transfer. The transferred amount will reflect in the destination Subaccount and transaction details will appear in "Account History".

Trading to Funding Transfer


This function returns BTC from Subaccounts to the Funding Account:

  1. Access the Wallet page.
  1. In the "Trading" section, click the button to open the transfer dialog.
  1. In the dialog, select "Trading to Funding", choose the relevant Subaccount, and click on "Transfer".
  1. The BTC will appear in the Funding account upon successful transfer.

For lending at the DEX, please refer to the Lend to Twilight Pool guide.