# Account Management (FAMS)

FAMS is a middle-layer smart contract system that allows Horizon Protocol Futures traders to intelligently manage their margin across perpetual futures markets by automatically performing multi-step operations by batch executing these actions in a single transaction, improving the overall UX for the user.&#x20;

<figure><img src="https://3445697649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FayTLoJXw8Tkgy1ANey1X%2Fuploads%2FsiqFPjHQgFlxIbri5ngJ%2FAccount%20Manager_1_Overview.png?alt=media&#x26;token=389cf9fd-4aff-4436-91c3-00c33d84dfd8" alt=""><figcaption><p>The Account Manager includes pages for Overview, Deposit, Withdraw, and Keeper.</p></figcaption></figure>

### Using FAMS in Horizon Protocol Futures

FAMS make Limit and Stop Loss possible by automating the multi-step transactions via batch execution.

FAMS is a part of Futures trading on Horizon Protocol. Every user is required to set up a non-KYC account on Horizon Protocol Futures before they can start trading.

Setting up your account includes the following steps:

1. **Create Account** - Approve the FAMS middle-layer to act on your behalf to automate actions such as limit and stop-loss orders. Requires signing with your wallet.
2. **Deposit Margin** - deposit the funds you want to use in Horizon Futures. Only the funds deposited can be used by FAMS. It cannot touch other assets in your wallet.
3. **Fund Keeper** - to access limit and stop-loss orders, the Keeper must be funded. The Keeper is what is used to automate and batch-execute multi-step operations on your behalf. Without funding the Keeper, you will be limited to just Market actions without Take Profit/Stop Loss orders.

<figure><img src="https://3445697649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FayTLoJXw8Tkgy1ANey1X%2Fuploads%2F4acTUvsIc6gT2aN1VhJ3%2FAccount%20Manager_4_Keeper_1.png?alt=media&#x26;token=dcb4718d-0d6e-471b-a6d4-4db5ce331096" alt=""><figcaption><p> Deposit Funds into your Keeper (BNB for BNB Chain)</p></figcaption></figure>

Learn more about the Account Setup process here: [2. Set up your Account.](https://academy.horizonprotocol.com/english-v2/futures/guides/trading-futures-on-horizon-protocol/2.-set-up-your-account)

### How the FAMS contracts work

For more details about how the contracts work, please visit our Github: <https://github.com/Horizon-Protocol/horizon-perps-margin>

### Future Development

Horizon Protocol's FAMS is flexible and fully upgradable, meaning further multi-step operations can be implemented and integrated seamlessly.

If there are any requests or suggestions, please connect with our Community Managers on[ Telegram](https://t.me/HorizonProtocol) or[ Discord](https://discord.gg/HorizonProtocol).
