Function definition, where:
- fl_hist_portfolio is a transactional table.
- coin, locked, free and updated are the fields to be updated on the transactional datastore.
- NEW.coin, NEW.locked, NEW.free and NEW.updated refer to the new inserted data.
CREATE OR REPLACE FUNCTION fl_history_portfolio ()
RETURNS TRIGGER
AS