MarketShareFCNAgent#

class pams.agents.MarketShareFCNAgent(agent_id, prng, simulator, name, logger=None)[source]#

Market Share FCN Agent class

This agent submits orders based on market shares. This class inherits from the pams.agents.FCNAgent class.

get_sum_trade_volume(market)[source]#

get sum of trade volume.

Parameters:

market (pams.Market) – trading market.

Returns:

total trade volume.

Return type:

int

submit_orders(markets)[source]#

submit orders based on FCN-based calculation and market shares. :rtype: List[Union[Order, Cancel]]