Getting Started
What do I need to start trading through the browser?
There are three prerequisites needed to start trading products on the AFP:
- An EVM compatible wallet (e.g., Rabby, MetaMask, WalletConnect, Coinbase Wallet) with the Autonity Mainnet 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.
- 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. Add the address of USDz on Autonity to your wallet so you can view your balance:
0xAB436b2CAFC02a079cb5266fB1aA7957092953C2
.
- 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 Autonity, ATN can be acquired by registering for the Forecastathon: https://forecastathon.ai/join-now
How to get ATN and USDz on Autonity
- Receive funding by registering for the Forecastathon: https://forecastathon.ai/join-now. This will require you to sign a message using your EVM compatible wallet to prove ownership of your wallet.
- Once funded, you will receive 100,000 USDz, the play-money collateral token used in the AFP during the Forecastathon, and a minimal amount of ATN to pay for gas to deposit your USDz collateral to your margin account.
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, margin account deposits can be made directly on the Forecastathon website at https://forecastathon.ai/margin-account.
- Visit https://forecastathon.ai/margin-account and connect your EVM compatible wallet by clicking the “Connect Wallet” button.
- Ensure you connect the same wallet you registered for the Forecastathon with. 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.
- Deposit to the AFP by clicking the “Deposit” button on the USDz entry in the margin account table.
- Enter the amount of USDC you would like to deposit to start trading and click “Deposit”. N.B. it is reccomended to deposit all your 100,000 USDz funds as there is no other use for them.
- Confirm the transaction in your wallet extension.
- You are now ready to start trading products on the AFP!
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.
- Navigate to https://autex.exchange/ and select the product you would like to trade in the product drop down selector.
- 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.
- 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.
- Once your order has been submitted, it can be viewed in the “Open Orders” tab until it is filled.
- 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).