@@ -0,0 +1,1309 @@
+package nxt.http.rpc;%0A%0Aimport nxt.Account;%0Aimport nxt.MofoQueries;%0Aimport nxt.Transaction;%0Aimport nxt.db.DbIterator;%0Aimport nxt.http.ParameterException;%0Aimport nxt.http.websocket.JSONData;%0Aimport nxt.http.websocket.RPCCall;%0A%0Aimport org.json.simple.JSONArray;%0Aimport org.json.simple.JSONObject;%0Aimport org.json.simple.JSONStreamAware;%0A%0Apublic class GetAccountCurrencies extends RPCCall %7B%0A    %0A    public static RPCCall instance = new GetAccountCurrencies(%22getAccountCurrencies%22);%0A    static int COUNT = 10;%0A%0A    public GetAccountCurrencies(String identifier) %7B%0A        super(identifier);%0A    %7D%0A  %0A    @SuppressWarnings(%22unchecked%22)%0A    @Override%0A    public JSONStreamAware call(JSONObject arguments) throws ParameterException %7B%0A        Account account = ParameterParser.getAccount(arguments);%0A        int firstIndex = ParameterParser.getFirstIndex(arguments);%0A        int lastIndex = ParameterParser.getLastIndex(arguments);%0A        %0A        JSONArray response = new JSONArray();%0A        try (%0A            DbIterator%3CAccount.AccountCurrency%3E iterator = account.getCurrencies(firstIndex, lastIndex);%0A        ) %7B  %0A            while (iterator.hasNext()) %7B%0A                response.add(JSONData.accountCurrency(iterator.next(), true));%0A            %7D%0A        %7D        %0A        %0A        return response;%0A    %7D  %0A%0A%7D%0A

Add websocket API GetAccountCurrencies