Primary is used for deposits and withdrawals, i.e. exchange transactions cannot be performed from the “Primary” account.
Exchange is used for trading on exchange. Not available for Custody only users.
Brokerage is used for trading on brokerage, e.g. RFQ or RFS. Not available for Custody only users.
Furthermore, there are a few unique account types for each user:
Trade_Ahead_Balance is pre-set nominal value that the customer can trade ahead by.
Available_Balance is defined as
Trade_Ahead_Balance is the sum of
Open_Orders_Amount is the amount that represents the cumulative value of open orders (including reserved fees) in the exchange that have not been matched yet. This is a field that needs to be derived by calculations.