Skip to content

resetfavg - reset final average

Resets the final moving average by scope.

Technical Behavior

For specified finalaverage table scope the action will reset the moving average stored under this scope.

When resetting the final average all values stored inside it will be set to 0 (price, timestamp and moving_window_counter).


This action is meant to be used for diagnostics, debugging or fixing purposes only. It should not be used during normal oracle operation.

Action Parameters

time_symbolstd::optional<symbol>Symbol indicating the scope of the finalaverage table to reset. Must be either 4,SECONDS, 4,MINUTES, 4,HOURS or 4,DAYS. If null is specified instead all the possible scopes will be reset at once

Required Permissions:

CLI - cleos

cleos push action purgefrates '["4,MINUTES"]' -p

JavaScript - eosjs

(async () => {
    const result = await api.transact(
            actions: [
                    account: '',
                    name: 'purgefrates',
                    authorization: [
                            actor: '',
                            permission: 'active',
                    data: {
                        time_symbol: '4,MINUTES'
            blocksBehind: 3,
            expireSeconds: 30,