Getting Started

What do I need to start trading through the browser?

There are three prerequisites needed to start trading products on the AFP:

  1. An EVM compatible wallet (e.g., Rabby, MetaMask, WalletConnect, Coinbase Wallet) with the Autonity Bakerloo network added to it.
    • If you don’t have an EVM compatible wallet, you can easily set one up by downloading a browser-based wallet extension such as MetaMask.
    • After downloading a wallet extension for your browser, follow the instructions to create a new wallet.
    • Your wallet has a secret recovery phrase – anyone with access to your seed phrase can access your funds. Do not share your private key with anyone. Best practice is to record your seed phrase and store it in a safe physical location.
    • To add the Autonity network to your wallet, visit chainlist.org where you can connect your wallet and add the network automatically. Alternatively, you can manually add it by entering the details found here.
  2. Collateral
    • It is up to the discretion of a Product Builder to decide which collateral a product will use but initially USDz will be supported.
    • To get USDz, please see the subsequent section How to get ATN and USDz on Autonity Bakerloo. Add the address of USDz on Bakerloo to your wallet so you can view your balance: 0x7914e33423232885C1a3350c26bb420d23Ff31Bb.
  3. Auton (ATN)
    • ATN is used for paying gas fees on Autonity. When you make a transaction (e.g. to deposit your collateral) you will have to pay gas for that transaction to be included in the blockchain. Note that trading products on AutEx is gas-less.
    • On Bakerloo, ATN can be acquired through the faucet: https://autonity.faucetme.pro/

How to get ATN and USDz on Autonity Bakerloo

  1. Receive funding by visiting https://proto-afp.pages.dev/get-funded and filling out the form. This will require you to sign a message using your EVM compatible wallet to prove ownership of your wallet.
  2. Once funded, you will receive USDz, the play-money collateral token used in the AFP on Bakerloo, and a minimal amount of ATN to pay for gas on the Bakerloo network. Additional ATN can be requested through the dedicated faucet: https://autonity.faucetme.pro/

How to create and fund a margin account on the AFP

As highlighted in the Overall Architecture, interaction with the AFP is not limited to a single front-end and collateral can be deposited by various methods (e.g. SDK, direct on-chain calls). However, for the ease of onboarding, the front-end of the first exchange built on the AFP, the AutEx, can also be used to deposit collateral to a margin account.

  1. Visit https://proto-afp.pages.dev and connect your EVM compatible wallet by clicking the “Connect Wallet” button.
    • Select the wallet you have previously configured. A pop-up will appear in your wallet extension asking to connect. Click “Connect”.
    • You will then be prompted to sign a gas-less message to prove ownership of the connected wallet.
  2. Deposit to the AFP by clicking the “Deposit” button next to your connected wallet address on AutEx.
    • Enter the amount of USDC you would like to deposit to start trading and click “Deposit”.
    • Confirm the transaction in your wallet extension.
  3. You are now ready to start trading.

How to start trading products on the AFP

Once you have collateral in your on-chain Margin Account (when you make your first deposit a Margin Account is automatically created for you), you can start trading.

  1. Navigate to https://proto-afp.pages.dev/trade and select the product you would like to trade in the product drop down selector.
  2. Fill out the order form by entering the quantity you wish to trade and the price at which you want your order to be filled. Ensure your “Available Margin” is greater than the Initial Margin (IM) Required to place your desired order. You can go long (BUY) if you expect the price to go up or short (SELL) if you expect the price to go down.
  3. When submitting an order on AutEx you are required to sign it with your wallet. This is gas-less as it is providing cryptographic proof that you want your order to be filled with the parameters you have defined – not actually making an on-chain transaction.
  4. Once your order has been submitted, it can be viewed in the “Open Orders” tab until it is filled.
  5. Once it is filled you can track the PnL of your position under the “Positions” tab, and in the “Order History” you can see details related to your order execution, including the on-chain transaction that was sent to the clearing system on Autonity. The gas fees for the on-chain transaction were paid for by the trading protocol (e.g. AutEx).