FundamentalPriceShock#

class pams.events.FundamentalPriceShock(event_id, prng, session, simulator, name)[ソース]#

This suddenly changes the fundamental price (just changing it).

This event is only called via hooked_before_step_for_market() at designated step.

hook_registration()[ソース]#

Define when this event should be hooked by simulator. This method is automatically hooked by simulator at the beginning of simulation. You must implement this.

戻り値:

The list of event hook ( EventHook )

戻り値の型:

List[EventHook]

hooked_before_step_for_market(simulator, market)[ソース]#

This method is hooked at each step before market processing if you set the event hook.

パラメータ:
  • simulator (Simulator) -- simulator for reference.

  • market (Market) -- market to be processed.

戻り値の型:

None

setup(settings, *args, **kwargs)[ソース]#

event setup. Usually be called from simulator/runner automatically.

パラメータ:

settings (Dict[str, Any]) -- agent configuration. Usually, automatically set from json config of simulator. This must include the parameters "triggerDays", "target", "triggerTime", and "priceChangeRate". This can include the parameters "enabled" and "shockTimeLength".

戻り値の型:

None

戻り値:

None